test-getcwd: disambiguate exit status
[gnulib.git] / ChangeLog
1 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2
3         test-getcwd: disambiguate exit status
4         * tests/test-getcwd.c (test_long_name): Return 0..7.
5         (main): Exit with an unambiguous exit status.  The old
6         code yielded a mysterious mixture of two failure codes.
7
8         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11         rpl_fstatat or fstatat.  This should fix the other problem
12         reported by Kai Habel in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
14         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
15         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
16         and I reproduced it on a Solaris 8 host we still have in production.
17
18 2011-11-18  Jim Meyering  <meyering@redhat.com>
19
20         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
21         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
22         Add a sentence to the comment.
23         (hash_insert0): New function that simply calls hash_insert_if_absent.
24         * lib/hash.h (hash_insert_if_absent): Declare it.
25         (hash_insert0): Add deprecation attribute.
26         (_GL_ATTRIBUTE_DEPRECATED): Define.
27         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
28         not hash_insert0.
29         * NEWS: Mention it, even though it's not really an incompatible change.
30
31 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
32
33         openat: avoid compilation failure due to lack of <errno.h> inclusion
34         * lib/openat.c: Include <errno.h>.
35
36 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37
38         * modules/getcwd (Depends-on): Add fdopendir.
39         This fixes one of the two problems reported by Kai Habel in
40         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
41
42         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
43         stdalign problem reported by Ian Beckwith in
44         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
45         * modules/crypto/gc-arcfour (Depends-on):
46         Depend conditionally on crypto/arcfour.
47         * modules/crypto/gc-arctwo (Depends-on):
48         Depend conditionally on crypto/arctwo.
49         * modules/crypto/gc-des (Depends-on):
50         Depend conditionally on crypto/des.
51         * modules/crypto/gc-hmac-md5 (Depends-on):
52         Depend conditionally on crypto/hmac-md5.
53         * modules/crypto/gc-hmac-sha1 (Depends-on):
54         Depend conditionally on crypto/hmac-sha1.
55         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
56         * modules/crypto/gc-md4 (Depends-on):
57         Depend conditionally on crypto/md4.
58         * modules/crypto/gc-md5 (Depends-on):
59         Depend conditionally on crypto/md5.
60         * modules/crypto/gc-rijndael (Depends-on):
61         Depend conditionally on crypto/rijndael.
62         * modules/crypto/gc-sha1 (Depends-on):
63         Depend conditionally on crypto/sha1.
64         * modules/crypto/gc-arcfour:
65         * modules/crypto/gc-arctwo:
66         * modules/crypto/gc-des:
67         * modules/crypto/gc-hmac-md5:
68         * modules/crypto/gc-hmac-sha1:
69         * modules/crypto/gc-md2:
70         * modules/crypto/gc-md4:
71         * modules/crypto/gc-md5:
72         * modules/crypto/gc-rijndael:
73         * modules/crypto/gc-sha1:
74         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
75         now that the conditional dependencies do the work for us.
76
77 2011-11-17  Jim Meyering  <meyering@redhat.com>
78
79         tests: factor st_ctime-comparison out of two headers
80         * tests/test-utimens-common.h (ctime_compare): Define.
81         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
82         * tests/test-lutimens.h (test_lutimens): Likewise.
83         * tests/test-utimens.h (test_utimens): Likewise.
84
85         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
86         Invoke the test program via an init.sh-using wrapper.
87         * tests/test-getcwd.sh: New file.
88         * modules/getcwd-tests (Files): Add it.
89         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
90
91 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
92
93         gitlog-to-changelog: support multi-author commits.
94         The FSF cares about keeping track of all authors of patches to its
95         projects, but Git doesn't provide obvious support for multi-author
96         changesets. Consensus seems to be forming around the use of extra
97         Signed-off-by inspired lines in the log message formatted as
98         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
99         multi-author commits between version control systems.
100         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
101         log message and output in standard ChangeLog multi-author format.
102         Reported by Peter Rosin <peda@lysator.liu.se>
103
104 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
105             Bruno Haible  <bruno@clisp.org>
106
107         Fix some modules' file list.
108         * modules/fstatat (Files): Add m4/lstat.m4.
109         * modules/openat (Files): Likewise.
110         * modules/unlinkat (Files): Likewise.
111
112 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
113
114         maint.mk: fix tight-scope.mk generation in VPATH builds.
115         * top/maint.mk (tight-scope.mk): Make sure to prefix file
116         reference with $(srcdir) so that the file is found correctly even
117         when running `make syntax-check' in a VPATH build.
118
119 2011-11-13  Bruno Haible  <bruno@clisp.org>
120             Jim Meyering  <meyering@redhat.com>
121
122         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
123         * tests/init.sh (compare): Remove "No differences encountered" or
124         synonymous output from the 'diff' program.
125
126 2011-11-13  Bruno Haible  <bruno@clisp.org>
127
128         Makefile: Tweak indentation.
129         * Makefile: Use tab as first character in every line that contains rule
130         commands.
131
132 2011-11-13  Bruno Haible  <bruno@clisp.org>
133
134         Syntax check for copyright statements.
135         * check-copyright: New file.
136         * Makefile (sc_check_copyright): New rule.
137
138 2011-11-13  Simon Josefsson  <simon@josefsson.org>
139
140         * build-aux/git-version-gen: Add --prefix to configure the tag
141         match string.
142
143 2011-11-13  Simon Josefsson  <simon@josefsson.org>
144
145         * build-aux/git-version-gen: Add --help and --version.
146
147 2011-11-12  Jim Meyering  <meyering@redhat.com>
148
149         revamp the other test-exclude?.sh scripts to use init.sh, too
150         * tests/test-exclude1.sh: Use init.sh.
151         * tests/test-exclude2.sh: Likewise.
152         * tests/test-exclude3.sh: Likewise.
153         * tests/test-exclude4.sh: Likewise.
154         * tests/test-exclude5.sh: Likewise.
155         * tests/test-exclude6.sh: Likewise.
156         * tests/test-exclude7.sh: Likewise.
157         * tests/test-exclude8.sh: Likewise.
158         * modules/exclude-tests (Files): List init.sh.
159
160         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
161         These shell scripts ignored failure of the binary test-exclude,
162         so making the latter return 77 didn't cause them to be skipped.
163         * tests/test-exclude5.sh: Exit with test-exclude's error status
164         when that program fails.  Revamp to use init.sh.
165         * tests/test-exclude2.sh: Likewise.
166
167         test-exclude: fix a typo
168         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
169
170 2011-11-11  Bruno Haible  <bruno@clisp.org>
171
172         obstack: Fix compilation error on MSVC 9.
173         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
174
175 2011-11-11  Jim Meyering  <meyering@redhat.com>
176
177         test-exclude: skip tests rather than failing on deficient systems
178         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
179         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
180         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
181         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
182
183 2011-11-10  Bruno Haible  <bruno@clisp.org>
184
185         ptsname_r test: Avoid gcc warning on glibc systems.
186         * tests/test-ptsname_r.c (null_ptr): New function.
187         (test_errors): Use it.
188
189 2011-11-10  Bruno Haible  <bruno@clisp.org>
190
191         ptsname_r: Avoid compilation error on OSF/1 5.1.
192         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
194         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
195         function is not declared or incompatibly declared.
196         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
197         * modules/ptsname_r (Depends-on, configure.ac): Update.
198         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
199
200 2011-11-10  Bruno Haible  <bruno@clisp.org>
201
202         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
203         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
204         When cross-compiling, guess yes on all platforms except AIX.
205         Reported by Ludovic Courtès <ludo@gnu.org>.
206
207 2011-11-09  Bruno Haible  <bruno@clisp.org>
208
209         ptsname_r tests: Fix bugs.
210         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
211         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
212
213 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
214
215         fstatat: work with cross-compilation
216         Problem reported by Ludovic Courtès in
217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
218         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
219         "cross-compiling" and assume the bug is present.  Replace
220         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
221         an inverted sense, to be more conservative about our assumptions.
222         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
223
224 2011-11-09  Bruno Haible  <bruno@clisp.org>
225
226         Improve MODULES.html output.
227         * modules/mkfifoat (Description): Use the word "function".
228         * modules/readlinkat (Description): Likewise.
229         * modules/symlinkat (Description): Likewise.
230
231 2011-11-09  Eric Blake  <eblake@redhat.com>
232
233         ptsname_r-tests: new test module
234         * modules/ptsname_r-tests: New module.
235         * tests/test-ptsname_r.c: New file.
236
237         ptsname_r: new module
238         * modules/ptsname_r: New module.
239         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
240         * lib/ptsname.c (__ptsname_r): Split...
241         * lib/ptsname_r.c: ...into new file.
242         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
243         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
244         * modules/stdlib (Makefile.am): Substitute witnesses.
245         * lib/stdlib.in.h (ptsname_r): Declare it.
246         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
247         * MODULES.html.sh (Misc): Likewise.
248         * modules/ptsname (Depends-on): Alter dependency.
249         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
250
251 2011-11-09  Jim Meyering  <meyering@redhat.com>
252
253         announce-gen: be more concise when there's only one URL+tarball
254         * build-aux/announce-gen (get_tool_versions): When you distribute
255         only one type of tarball, combine the first two "Here are..."
256         sections and make the key-checking grammar independent of
257         how many tarballs there are.
258
259 2011-11-09  Eric Blake  <eblake@redhat.com>
260
261         openpty: provide a stub on mingw
262         * lib/pty.in.h (includes): Provide forward declarations.
263         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
264
265         raise: fix mingw handling of SIGPIPE
266         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
267
268 2011-11-08  Bruno Haible  <bruno@clisp.org>
269
270         More conditional dependencies.
271         * modules/faccessat (Depends-on): Add conditions.
272         * modules/fchmodat (Depends-on): Likewise.
273         * modules/fchownat (Depends-on): Likewise.
274         * modules/fstatat (Depends-on): Likewise.
275         * modules/mkfifoat (Depends-on): Likewise.
276         * modules/readlinkat (Depends-on): Likewise.
277         * modules/symlinkat (Depends-on): Likewise.
278         * modules/unlinkat (Depends-on): Likewise.
279         * modules/utimensat (Depends-on): Likewise.
280         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
281         * modules/linkat (Depends-on): Refine the conditions.
282         * modules/renameat (Depends-on): Likewise.
283
284 2011-11-08  Bruno Haible  <bruno@clisp.org>
285
286         faccessat: Move AC_LIBOBJ invocation to module description.
287         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
288         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
289         invocation from here...
290         * modules/faccessat (configure.ac): ... to here. Invoke
291         gl_PREREQ_FACCESSAT.
292
293 2011-11-08  Bruno Haible  <bruno@clisp.org>
294
295         faccessat: Simplify autoconf macro.
296         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
297         gl_FUNC_EUIDACCESS.
298
299 2011-11-08  Bruno Haible  <bruno@clisp.org>
300
301         renameat: Fix dependencies.
302         * modules/renameat (Depends-on): Add stdbool.
303
304 2011-11-08  Bruno Haible  <bruno@clisp.org>
305
306         mkfifoat: Fix module description.
307         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
308         not gl_UNISTD_MODULE_INDICATOR.
309
310 2011-11-08  Bruno Haible  <bruno@clisp.org>
311
312         fstatat: Remove unused dependency.
313         * modules/fstatat (Depends-on): Remove fstat.
314
315 2011-11-08  Simon Josefsson  <simon@josefsson.org>
316
317         GNUmakefile: behave when Makefile is missing.
318         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
319
320 2011-11-08  Bruno Haible  <bruno@clisp.org>
321
322         openat: Conditionalize dependencies.
323         * lib/openat.c: Reduce the scope of some #includes.
324         * modules/openat (Depends-on): Add conditions.
325
326 2011-11-07  Jim Meyering  <meyering@redhat.com>
327
328         maint.mk: extract GPG key ID without using a temporary file
329         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
330         without using a temporary file.  Based on a suggestion from Werner Koch
331         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
332
333 2011-11-07  Eric Blake  <eblake@redhat.com>
334
335         grantpt: fix typo
336         * lib/stdlib.in.h (grantpt): Check correct function.
337
338         maint.mk: silence new syntax check
339         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
340
341 2011-11-06  Bruno Haible  <bruno@clisp.org>
342
343         Doc about floating-point and math API.
344         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
345         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
346
347 2011-11-06  Bruno Haible  <bruno@clisp.org>
348
349         stdalign tests: Skip the test when compiled by Sun C.
350         * tests/test-stdalign.c (main): Skip the test on Sun C.
351
352 2011-11-06  Bruno Haible  <bruno@clisp.org>
353
354         ansi-c++-opt: Complete the 2011-06-05 change.
355         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
356         does not support namespaces, set the variable to "no", not to ":".
357
358 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
359
360         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
361
362 2011-11-06  Bruno Haible  <bruno@clisp.org>
363
364         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
365         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
366         (minus_zerol) [HP-UX]: New macro.
367         (unary_minus) [HP-UX]: New function.
368         (copysignl) [HP-UX]: Use unary_minus function.
369
370 2011-11-06  Bruno Haible  <bruno@clisp.org>
371
372         ldexp, ldexpf, ldexpl: Enhance tests.
373         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
374         and tests/test-ldexpl.c.
375         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
376         LDEXP, MIN_EXP, MAX_EXP): New macros.
377         Include test-ldexp.h.
378         (main): Just call test_function.
379         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
380         infinity.h, nan.h.
381         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
382         MAX_EXP): New macros.
383         Include test-ldexp.h.
384         (x, y): Remove variables.
385         (main): Just call test_function.
386         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
387         infinity.h, nan.h.
388         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
389         MAX_EXP): New macros.
390         Include test-ldexp.h.
391         (x, y): Remove variables.
392         (main): Just call test_function.
393         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
394         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
395         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
396         (Depends-on): Add isnand-nolibm, signbit, float.
397         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
398         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
399         (Depends-on): Add isnanf-nolibm, signbit, float.
400
401 2011-11-06  Bruno Haible  <bruno@clisp.org>
402
403         math tests: Cosmetics.
404         * tests/test-math-c++.cc: Reorder declarations.
405
406 2011-11-05  Bruno Haible  <bruno@clisp.org>
407
408         fma*: Simplify test.
409         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
410         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
411
412         Tests for module 'fmal'.
413         * modules/fmal-tests: New file.
414         * tests/test-fmal1.c: New file.
415         * tests/test-fmal2.c: New file.
416
417         New module 'fmal'.
418         * lib/math.in.h (fmal): New declaration.
419         * lib/fmal.c: New file.
420         * m4/fmal.m4: New file.
421         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
423         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
424         REPLACE_FMAL.
425         * modules/fmal: New file.
426         * doc/posix-functions/fmal.texi: Mention the new module and the various
427         bugs.
428
429         Tests for module 'fmaf'.
430         * modules/fmaf-tests: New file.
431         * tests/test-fmaf1.c: New file.
432         * tests/test-fmaf2.c: New file.
433
434         New module 'fmaf'.
435         * lib/math.in.h (fmaf): New declaration.
436         * lib/fmaf.c: New file.
437         * m4/fmaf.m4: New file.
438         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
440         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
441         REPLACE_FMAF.
442         * modules/fmaf: New file.
443         * doc/posix-functions/fmaf.texi: Mention the new module and the various
444         bugs.
445
446         Tests for module 'fma'.
447         * modules/fma-tests: New file.
448         * tests/test-fma1.c: New file.
449         * tests/test-fma1.h: New file.
450         * tests/test-fma2.c: New file.
451         * tests/test-fma2.h: New file.
452
453         New module 'fma'.
454         * lib/math.in.h (fma): New declaration.
455         * lib/fma.c: New file.
456         * m4/fma.m4: New file.
457         * m4/fegetround.m4: New file.
458         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
460         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
461         REPLACE_FMA.
462         * modules/fma: New file.
463         * doc/posix-functions/fma.texi: Mention the new module and the various
464         bugs.
465
466         Extend gl_MATHFUNC.
467         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
468         Support 'void' as argument type.
469         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
470
471 2011-11-05  Jim Meyering  <meyering@redhat.com>
472
473         maint.mk: also prohibit inclusion of dirent.h without use
474         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
475
476 2011-11-05  Bruno Haible  <bruno@clisp.org>
477
478         ldexpl tests: Avoid test failure on MSVC 9.
479         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
480         value. Needed in order to enforce the conversion from a value greater
481         than LDBL_MAX to Infinity.
482
483 2011-11-05  Bruno Haible  <bruno@clisp.org>
484
485         New modules 'at-internal', 'openat-h', split off from module 'openat'.
486         * modules/at-internal: New file, extracted from modules/openat.
487         * modules/openat-h: New file.
488         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
489         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
490         * modules/openat (Description): Add reference to POSIX function.
491         (Files): Remove lib/openat.h, lib/openat-proc.c.
492         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
493         intprops, unistd.
494         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
495         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
496         gl_FCNTL_MODULE_INDICATOR.
497         (Include): Remove unistd.h, openat.h.
498         * modules/areadlinkat (Files): Add lib/at-func.c.
499         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
500         openat-die, openat-h, save-cwd.
501         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
502         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
503         openat-die, openat-h, save-cwd, unistd.
504         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
505         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
506         openat-h, save-cwd. Remove fcntl-h, openat.
507         * modules/fchmodat (Files): Remove lib/openat.h.
508         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
509         openat, stdbool, unistd.
510         * modules/fchownat (Files): Remove lib/openat.h.
511         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
512         openat, stdbool, sys_stat.
513         * modules/fdopendir (Files): Remove lib/openat-priv.h,
514         lib/openat-proc.c.
515         (Depends-on): Add at-internal.
516         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
517         * modules/fstatat (Files): Remove lib/openat.h.
518         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
519         stdbool, unistd.
520         * modules/fts (Depends-on): Add openat-h.
521         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
522         openat.
523         * modules/mkdirat (Files): Remove lib/openat.h.
524         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
525         openat, stdbool, sys_stat.
526         * modules/mkfifoat (Files): Add lib/at-func.c.
527         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
528         openat-h, save-cwd. Remove fcntl-h, openat.
529         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
530         * modules/readlinkat (Files): Add lib/at-func.c.
531         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
532         openat-h, save-cwd. Remove fcntl-h, openat.
533         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
534         openat.
535         * modules/selinux-at (Files): Add lib/at-func.c.
536         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
537         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
538         * modules/symlinkat (Files): Add lib/at-func.c.
539         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
540         openat-h, save-cwd. Remove fcntl-h, openat.
541         * modules/unlinkat (Files): Remove lib/openat.h.
542         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
543         stdbool.
544         * modules/utimensat (Files): Add lib/at-func.c.
545         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
546         openat-die, openat-h, save-cwd.
547         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
548         * modules/fdutimensat-tests (Depends-on): Add openat.
549         * modules/fstatat-tests (Depends-on): Add openat-h.
550         * modules/readlinkat-tests (Depends-on): Add openat.
551         * modules/symlinkat-tests (Depends-on): Add openat.
552
553 2011-11-05  Bruno Haible  <bruno@clisp.org>
554
555         openat: Include <stdbool.h>.
556         * lib/openat.c: Include <stdbool.h>.
557
558 2011-11-04  Bruno Haible  <bruno@clisp.org>
559
560         fchownat, renameat, unlinkat: Fix dependencies.
561         * modules/fchownat (Depends-on): Add fstatat.
562         * modules/renameat (Depends-on): Likewise.
563         * modules/unlinkat (Depends-on): Likewise.
564
565 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
566
567         openat: remove direct dependency on dirent
568         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
569         and hasn't been needed ever since fdopendir was split into its own
570         module on 2009-08-31.
571         * modules/openat (Depends-on): Remove dirent.
572
573 2011-11-04  Bruno Haible  <bruno@clisp.org>
574
575         renameat: Optimize code size.
576         * modules/renameat (configure.ac): Don't compile at-func2.c if
577         REPLACE_RENAMEAT is 1.
578
579 2011-11-04  Bruno Haible  <bruno@clisp.org>
580
581         openat tests: Fix file list.
582         * modules/openat-tests (Files): Add tests/test-open.h.
583
584 2011-11-04  Bruno Haible  <bruno@clisp.org>
585
586         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
587         * modules/fchmodat (Depends-on): Add openat-die.
588         * modules/fchownat (Depends-on): Likewise.
589         * modules/linkat (Depends-on): Likewise.
590         * modules/renameat (Depends-on): Likewise.
591         * modules/openat (Depends-on): Add dirent.
592
593 2011-11-04  Jim Meyering  <meyering@redhat.com>
594
595         at-func*.c: fix comments
596         * lib/at-func2.c: Correct/improve first-line comment.
597         * lib/at-func.c: Correct grammar in first-line comment.
598
599 2011-11-04  Bruno Haible  <bruno@clisp.org>
600
601         New module 'mkdirat', split off from module 'openat'.
602         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
603         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
604         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
605         * modules/mkdirat: New file, extracted from modules/openat.
606         * modules/openat (Files): Remove lib/mkdirat.c.
607         (Depends-on): Remove mkdir.
608         (configure.ac): Remove AC_LIBOBJ of mkdirat.
609         (Include): Remove <sys/stat.h>.
610         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
611         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
612         tests/test-mkdir.h.
613         (Depends-on): Remove ignore-value.
614         (Makefile.am): Remove rules for test-mkdirat.
615         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
616         of module 'openat'.
617         * NEWS: Mention the change.
618
619 2011-11-04  Bruno Haible  <bruno@clisp.org>
620
621         closedir: Avoid warning on mingw.
622         * lib/closedir.c: Include <unistd.h>.
623
624 2011-11-04  Bruno Haible  <bruno@clisp.org>
625
626         New module 'fstatat', split off from module 'openat'.
627         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
628         defined.
629         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
630         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
631         gl_FUNC_FSTATAT.
632         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
633         * modules/fstatat: New file, extracted from modules/openat.
634         * modules/openat (Files): Remove lib/fstatat.c.
635         (Depends-on): Remove lstat.
636         (configure.ac): Remove AC_LIBOBJ of fstatat.
637         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
638         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
639         tests/test-lstat.h, tests/test-stat.h.
640         (Depends-on): Remove getcwd-lgpl.
641         (Makefile.am): Remove rules for test-fstatat.
642         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
643         of module 'openat'.
644         * NEWS: Mention the change.
645         * modules/getcwd (Depends-on): Add fstatat.
646         * modules/linkat (Depends-on): Likewise.
647         * modules/mkfifoat-tests (Depends-on): Likewise.
648         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
649
650 2011-11-03  Bruno Haible  <bruno@clisp.org>
651
652         New module 'unlinkat', split off from module 'openat'.
653         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
654         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
655         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
656         * modules/unlinkat: New file, extracted from modules/openat. Correct
657         the dependency conditions.
658         * modules/openat (Files): Remove lib/unlinkat.c.
659         (Depends-on): Remove rmdir, unlink.
660         (configure.ac): Remove AC_LIBOBJ of unlinkat.
661         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
662         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
663         tests/test-rmdir.h, tests/test-unlink.h.
664         (Depends-on): Remove unlinkdir.
665         (Makefile.am): Remove rules for test-unlinkat.
666         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
667         of module 'openat'.
668         * NEWS: Mention the change.
669         * modules/linkat-tests (Depends-on): Add unlinkat.
670         * modules/mkfifoat-tests (Depends-on): Likewise.
671         * modules/readlinkat-tests (Depends-on): Likewise.
672
673 2011-11-02  Bruno Haible  <bruno@clisp.org>
674
675         New module 'fchmodat', split off from module 'openat'.
676         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
677         defined.
678         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
679         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
680         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
681         * modules/fchmodat: New file, extracted from modules/openat.
682         * modules/openat (Files): Remove lib/fchmodat.c.
683         (configure.ac): Remove AC_LIBOBJ of fchmodat.
684         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
685         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
686         (Makefile.am): Remove rules for test-fchmodat.
687         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
688         of module 'openat'.
689         * NEWS: Mention the change.
690
691 2011-11-02  Jim Meyering  <meyering@redhat.com>
692
693         putenv: indent #definition of "environ" to placate cppi
694         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
695
696         gitlog-to-changelog: provide a ChangeLog-repair mechanism
697         Git logs are often treated as immutable, because editing them
698         changes the SHA1 checksums of all descendants.  Thus, errors in
699         git logs tend to stay there forever.  However, when we generate
700         a ChangeLog file -- typically for distribution -- from that git log,
701         we can actually make corrections in the generated file.  The key
702         lies in recording in machine-readable/applicable form the desired
703         corrections.  See --help for description and an example.
704         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
705         (usage): Describe it; alphabetize option descriptions.
706         (main): Honor the new option, carefully.
707
708 2011-11-01  Jim Meyering  <meyering@redhat.com>
709
710         gitlog-to-changelog: avoid an infloop
711         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
712         that ends up being empty.
713
714 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
715
716         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
717         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
718         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
719         contains (possibly-quoted) backslashes.  This should avoid
720         all-too-common shell bugs if COMPLICATED contains backslashes in
721         the "wrong" places.  Reported by David Evans in
722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
723         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
724         because we want ASCII ranges.  Is there some reason we don't use
725         the C locale everywhere in this script?
726         (func_module, top level): Avoid unwanted pathname expansion when
727         $repo_url_prefix or $repo_url_suffix_repl contain shell
728         metacharacters like '?' and '*'.
729
730 2011-11-01  Bruno Haible  <bruno@clisp.org>
731
732         fchownat: Improve description.
733         * modules/fchownat (Description): Add link to function.
734
735 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
736
737         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
738         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
740         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
741
742 2011-11-01  Bruno Haible  <bruno@clisp.org>
743
744         alignof: Avoid collision with stdalign module.
745         * lib/alignof.h (alignof): Remove macro.
746         * NEWS: Mention the change.
747         Reported by Paul Eggert.
748
749 2011-11-01  Bruno Haible  <bruno@clisp.org>
750
751         New module 'fchownat', split off from module 'openat'.
752         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
753         defined.
754         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
755         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
756         invoke gl_FUNC_FCHOWNAT.
757         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
758         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
759         * modules/fchownat: New file, extracted from modules/openat.
760         * modules/openat (Files): Remove lib/fchownat.c.
761         (Depends-on): Remove lchown.
762         (configure.ac): Remove AC_LIBOBJ of fchownat.
763         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
764         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
765         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
766         (Depends-on): Remove mgetgroups, usleep, stat-time.
767         (configure.ac): Remove test for getegid.
768         (Makefile.am): Remove rules for test-fchownat.
769         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
770         of module 'openat'.
771         * NEWS: Mention the change.
772
773 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
774
775         stdalign: port better to MSVC and to Sun C 5.11
776         This fixes some of the problems reported by Bruno Haible in
777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
778         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
779         shortcomings of MSVC and of Sun C 5.11.
780         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
781         around __declspec arg.
782         * modules/stdalign-tests (Files): Add tests/macros.h.
783         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
784         Include macros.h, for ASSERT.
785         (DECLARE_ALIGNED): Remove.
786         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
787         to catch bug), and to 1 if not (simplifies the rest of the code).
788         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
789         (CHECK_AUTO): Remove.
790         (CHECK_ALIGNED): Check only the alignment of the static vars,
791         since auto var alignment isn't supported by Sun C 5.11.
792         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
793         ASSERT failures are easier to diagnose.
794
795 2011-10-31  Bruno Haible  <bruno@clisp.org>
796
797         doc about some IRIX 5.3 problems.
798         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
799         on IRIX 5.3.
800         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
801         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
802         5.3.
803         * doc/posix-functions/grantpt.texi: Likewise.
804         * doc/posix-functions/unlockpt.texi: Likewise.
805         * doc/posix-functions/lgamma.texi: Likewise.
806         * doc/posix-functions/nextafter.texi: Likewise.
807         * doc/posix-functions/remainder.texi: Likewise.
808         * doc/posix-functions/select.texi: Mention misplaced declaration on
809         IRIX 5.3.
810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
811
812 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
813
814         gitlog-to-changelog: fix git-log invocation.
815         git-log mishandles date strings before 1970-01-01 UTC, and there is
816         no use to specify --since=1970-01-01 by default anyway.
817         * build-aux/gitlog-to-changelog: By default, when no --since option
818         was given, do not specify explicit --since option to git-log.
819
820 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
821
822         gitlog-to-changelog: new option --append-dot.
823         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
824         first non-blank line of each commit message terminated with a dot.
825
826 2011-10-30  Bruno Haible  <bruno@clisp.org>
827
828         ffsl, ffsll: Avoid compilation error due to 'restrict'.
829         * lib/ffsl.h: Include <config.h>.
830         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
831
832 2011-10-30  Jim Meyering  <meyering@redhat.com>
833
834         GNUmakefile: reenable "make syntax-check" for most projects
835         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
836         build-aux variable", "syntax-check" would do nothing but succeed with
837         the "No version control files detected..." diagnostic (unless you
838         happened to override _build-aux via cfg.mk).
839         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
840         to precede inclusion of maint.mk.  Otherwise, these variables would
841         be used undefined in any project that does not override the default.
842
843 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
844
845         gitlog-to-changelog: treat a message with only blank lines as empty.
846         * build-aux/gitlog-to-changelog: Move the code that removes leading and
847         trailing blank lines before the code that issues a warning about an
848         empty commit message.
849
850 2011-10-30  Jim Meyering  <meyering@redhat.com>
851
852         test-parse-datetime.c: avoid new DST-related false positive test failure
853         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
854         based on the time/date we'll convert, not the current time.
855         Otherwise, the moment we cross a DST boundary like today's in
856         Europe, (CEST to CET), that offset ends up being one hour off.
857
858 2011-10-27  Bruno Haible  <bruno@clisp.org>
859
860         fstat: Tweak documentation.
861         * modules/fstat (Description): More precise description.
862
863 2011-10-27  Bruno Haible  <bruno@clisp.org>
864
865         Update documentation regarding 'largefile' module.
866         * doc/posix-functions/fstat.texi: Tweak wording.
867         * doc/posix-functions/opendir.texi: Mention that the module fixes the
868         problems with huge directories and/or small ino_t types.
869         * doc/posix-functions/readdir.texi: Likewise.
870         * doc/posix-functions/rewinddir.texi: Likewise.
871
872 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
873
874         maint.mk: don't maintain a second build-aux variable.
875         * maint.mk (build_aux): Removed.  The maintainer-makefile module
876         depends on GNUmakefile, which already maintains a cfg.mk
877         overridable $(_build-aux) for projects with a non-standard
878         build-aux directory location, although without the $(srcdir)
879         prefix.  Use that variable consistently instead of introducing a
880         second one.  Adjust all call sites.
881
882 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
883
884         Add stdalign module and use it in other modules.
885         This is based on a previous proposal by Bruno Haible
886         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
887
888         stdalign: new module
889         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
890         * modules/stdalign: New files.
891         * MODULES.html.sh (c1x_core_properties): Add stdalign.
892         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
893
894         stdalign-tests: new module
895         * modules/stdalign-tests, tests/test-stdalign.c: New files.
896
897         argp: use stdalign
898         * lib/argp-parse.c: Include <stdalign.h>.
899         (alignof): Remove.
900         * modules/argp (Depends-on): Add stdalign.
901
902         crypto libraries: use stdalign
903         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
904         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
905         Do not include <stdlib.h> twice, in md4.c.
906         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
907         because we are accessing a pointer's bit-pattern, not a size.
908         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
909         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
910         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
911         * modules/crypto/sha512: Likewise.
912
913         sys_socket: use stdalign, not alignof
914         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
915         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
916
917 2011-10-27  Bruno Haible  <bruno@clisp.org>
918
919         raise test: Avoid a test failure on Linux/MIPS.
920         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
921         because 99 is a valid signal on Linux/MIPS.
922
923 2011-10-27  Bruno Haible  <bruno@clisp.org>
924
925         nonblocking tests: Fix test failure on Linux/MIPS.
926         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
927         Set to 270000.
928
929 2011-10-27  Bruno Haible  <bruno@clisp.org>
930
931         utimensat: Work around problem on Linux/hppa.
932         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
933         values.
934         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
935
936 2011-10-25  Jim Meyering  <meyering@redhat.com>
937
938         maint.mk: fix a bug in sc_prohibit_stddef_without_use
939         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
940         after symbols like NULL, size_t, etc.
941         Reported by Alfred M. Szmidt.
942
943         maint.mk: exempt ENODATA from a syntax-check rule
944         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
945         from the sc_prohibit_always-defined_macros syntax-check rule.
946         Add a comment.  See this for more details:
947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
948
949 2011-10-23  Jim Meyering  <meyering@redhat.com>
950
951         fts: close parent dir FD before returning from post-traversal fts_read
952         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
953         unlink A, even though an FD open on A remained.  This is suboptimal
954         (holding a file descriptor open longer than needed), but otherwise not
955         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
956         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
957         that represents a real problem: it causes the removal of A to fail
958         with e.g., "rm: cannot remove `A': Device or resource busy"
959
960         fts visits each directory twice and keeps a cache (fts_fd_ring) of
961         directory file descriptors.  After completing the final, FTS_DP,
962         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
963         cache, but then proceeded to add a new FD to it via the subsequent
964         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
965         final file descriptor would be closed only via fts_close's call to
966         fd_ring_clear.  Now, it is usually closed earlier, via the final
967         FTS_DP-returning fts_read call.
968         * lib/fts.c (restore_initial_cwd): New function, converted from
969         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
970         Update callers.
971         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
972         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
973
974 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
975             Bruno Haible  <bruno@clisp.org>
976             Jim Meyering  <jim@meyering.net>
977
978         readme-release: improve safety of release prep instructions.
979         * README-release: Don't git pull all branches when only master
980         is needed for the release process.
981         Run make maintainer-clean before changing trees and merging.
982         Don't try to run ./configure right after git pull in case files
983         that influence the bootstrap process have changed, move the
984         ./configure step to after running ./bootstrap.
985         Don't bootstrap "one last time"... it's the first time!
986
987 2011-10-22  Bruno Haible  <bruno@clisp.org>
988
989         errno, strerror-override: Support for MSVC 10.
990         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
991         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
992         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
993         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
994         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
995         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
996         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
997         Assign values compatible with MSVC 10.
998         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
999         New macros.
1000         (GNULIB_defined_EWINSOCK): New macro.
1001         * lib/strerror-override.c (strerror_override): Update accordingly.
1002         * lib/strerror-override.h: Likewise.
1003         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1004         longer equal to the corresponding errno value.
1005         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1006
1007 2011-10-22  Bruno Haible  <bruno@clisp.org>
1008
1009         perror: Recognize when test program crashes.
1010         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1011         strerror, set gl_cv_func_perror_works to no.
1012         Reported by Daniel Richard G. <skunk@iskunk.org>.
1013
1014         perror: Fix indentation.
1015         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1016
1017 2011-10-22  Bruno Haible  <bruno@clisp.org>
1018
1019         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1020         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1021         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1022         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1023         functions, not as a macro.
1024         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1025         macros.
1026         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1027         absence of macro.
1028         Suggested by Eric Blake.
1029         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1030
1031 2011-10-21  Bruno Haible  <bruno@clisp.org>
1032
1033         relocatable-prog-wrapper: Don't leave object files behind.
1034         * build-aux/install-reloc: Re-synchronize list of .o files to be
1035         removed with list of compilation units.
1036
1037 2011-10-20  Bruno Haible  <bruno@clisp.org>
1038
1039         openpty, posix_openpt: Remove code duplication.
1040         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1041         * lib/openpty.c: Include <stdlib.h>.
1042         (openpty): Use posix_openpt on all platforms except IRIX.
1043         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1044
1045 2011-10-20  Bruno Haible  <bruno@clisp.org>
1046
1047         unlockpt: Detect invalid argument.
1048         * lib/unlockpt.c: Include <fcntl.h>.
1049         (unlockpt): Check whether fd is valid, using fcntl().
1050         * modules/unlockpt (Depends-on): Add fcntl-h.
1051
1052 2011-10-20  Bruno Haible  <bruno@clisp.org>
1053
1054         openpty: Avoid compilation error on AIX 6.1.
1055         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1056
1057 2011-10-20  Bruno Haible  <bruno@clisp.org>
1058
1059         posix_openpt: Support for OpenBSD.
1060         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1061         (posix_openpt) [OpenBSD]: New code.
1062         * lib/grantpt.c: Include <fcntl.h>.
1063         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1064         * modules/grantpt (Depends-on): Add fcntl-h.
1065
1066 2011-10-20  Bruno Haible  <bruno@clisp.org>
1067
1068         posix_openpt test: Coding style.
1069         * tests/test-posix_openpt.c: Use GNU coding style.
1070
1071 2011-10-20  Bruno Haible  <bruno@clisp.org>
1072
1073         grantpt: Support --avoid=pt_chown.
1074         * modules/grantpt (Files): Add lib/pty-private.h.
1075
1076 2011-10-20  Bruno Haible  <bruno@clisp.org>
1077
1078         posix_openpt: Fix autoconf macro.
1079         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1080         unneeded check for _getpty.
1081
1082 2011-10-20  Bruno Haible  <bruno@clisp.org>
1083
1084         openpty: Update comments.
1085         * lib/openpty.c: Add comments about Minix.
1086
1087 2011-10-19  Eric Blake  <eblake@redhat.com>
1088
1089         openpty: relax license
1090         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1091
1092         pt_chown: use configmake to simplify build
1093         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1094
1095         ptsname and others: relax license
1096         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1097         * modules/unlockpt (License): Likewise.
1098         * modules/pt_chown (License): Likewise.
1099         * modules/ptsname (License): Likewise.
1100         * modules/ttyname_r (License): Likewise.
1101
1102 2011-10-19  Jim Meyering  <meyering@redhat.com>
1103
1104         posix_openpt: remove spurious #endif
1105         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1106
1107 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1108
1109         maint.mk: Respect $(build_aux) in web-manual rule.
1110         * top/maint.mk (web-manual): Find gen-announce script in user's
1111         $(build_aux) directory instead of hard-coding 'build-aux'.
1112
1113 2011-10-19  Bruno Haible  <bruno@clisp.org>
1114
1115         posix_openpt: Fix compilation error.
1116         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1117         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1118         Mention the openpty module as an alternative.
1119
1120 2011-10-19  Bruno Haible  <bruno@clisp.org>
1121
1122         Support for old NeXTstep 3.3 frexp().
1123         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1124         execution time of the test to 5 seconds.
1125         Reported by Daniel Richard G. <skunk@iskunk.org>.
1126
1127 2011-10-19  Bruno Haible  <bruno@clisp.org>
1128
1129         Support for old NeXTstep 3.3 sed.
1130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1131         part, use /.../, not \|...|. Escape periods in the header file name.
1132         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1133         Reported by Daniel Richard G. <skunk@iskunk.org>.
1134
1135 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1136
1137         Support for old NeXTstep 3.3 gcc.
1138         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1139         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1140         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1141         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1142         * lib/regex.h (_Restrict_arr_): Likewise.
1143         * lib/regex_internal.h (re_token_t): Likewise.
1144         * lib/regexec.c (check_node_accept_bytes): Likewise.
1145         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1146
1147 2011-10-18  Eric Blake  <eblake@redhat.com>
1148
1149         posix_openpt: new module
1150         * modules/posix_openpt: New module.
1151         * m4/posix_openpt.m4: New file.
1152         * lib/posix_openpt.c: Likewise.
1153         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1154         (gl_STDLIB_H_DEFAULTS): Set defaults.
1155         * modules/stdlib (Makefile.am): Substitute macros.
1156         * lib/stdlib.in.h (posix_openpt): Declare.
1157         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1158         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1159         * modules/posix_openpt-tests: New test module.
1160         * tests/test-posix_openpt.c: New test.
1161
1162 2011-10-15  Bruno Haible  <bruno@clisp.org>
1163
1164         xstrtoll: Fix compilation failure.
1165         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1166         from lib/strtol.c.
1167         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1168         some platforms.
1169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1170
1171 2011-10-15  Bruno Haible  <bruno@clisp.org>
1172
1173         vasnprintf: Optimize bit search operation.
1174         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1176         gl_DOUBLE_EXPONENT_LOCATION.
1177         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1178         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1179         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1180         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1181         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1182         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1183         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1184         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1185         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1186
1187 2011-10-15  Bruno Haible  <bruno@clisp.org>
1188
1189         vasnprintf: Fix comments.
1190         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1191
1192 2011-10-14  Bruno Haible  <bruno@clisp.org>
1193
1194         Tests for module 'integer_length_ll'.
1195         * modules/integer_length_ll-tests: New file.
1196         * tests/test-integer_length_ll.c: New file.
1197
1198         New module 'integer_length_ll'.
1199         * lib/integer_length_ll.c: New file.
1200         * modules/integer_length_ll: New file.
1201
1202 2011-10-14  Bruno Haible  <bruno@clisp.org>
1203
1204         Tests for module 'integer_length_l'.
1205         * modules/integer_length_l-tests: New file.
1206         * tests/test-integer_length_l.c: New file.
1207
1208         New module 'integer_length_l'.
1209         * lib/integer_length_l.c: New file.
1210         * modules/integer_length_l: New file.
1211
1212 2011-10-14  Bruno Haible  <bruno@clisp.org>
1213
1214         Tests for module 'integer_length'.
1215         * modules/integer_length-tests: New file.
1216         * tests/test-integer_length.c: New file.
1217
1218         New module 'integer_length'.
1219         * lib/integer_length.h: New file.
1220         * lib/integer_length.c: New file.
1221         * modules/integer_length: New file.
1222
1223 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1224
1225         popen: Fix dependency conditions.
1226         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1227
1228 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1229
1230         perror: Fix autoconf test.
1231         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1232         <stdlib.h> and <string.h>.
1233
1234 2011-10-14  Bruno Haible  <bruno@clisp.org>
1235
1236         ffsl: Optimize on 64-bit platforms.
1237         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1238         unrolling.
1239
1240 2011-10-13  Bruno Haible  <bruno@clisp.org>
1241
1242         ffsl: Optimize on 32-bit platforms.
1243         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1244         use ffs() without a loop.
1245
1246         ffsl, ffsll: Optimize for GCC.
1247         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1248         * lib/ffsl.c (GCC_BUILTIN): New macro.
1249         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1250
1251 2011-10-13  Bruno Haible  <bruno@clisp.org>
1252
1253         ffs, bcopy, memset: Support symbol renaming via config.h.
1254         * lib/ffs.c: Include <config.h>.
1255         * lib/bcopy.c: Likewise.
1256         * lib/memset.c: Likewise.
1257
1258 2011-10-10  Bruno Haible  <bruno@clisp.org>
1259
1260         atanl: Simplify for platforms where 'long double' == 'double'.
1261         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1262         alternative implementation.
1263         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1264         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1265         * modules/atanl (Depends-on): Add atan. Update conditions.
1266
1267 2011-10-10  Bruno Haible  <bruno@clisp.org>
1268
1269         acosl: Simplify for platforms where 'long double' == 'double'.
1270         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1271         alternative implementation.
1272         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1273         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1274         * modules/acosl (Depends-on): Add acos. Update conditions.
1275
1276 2011-10-10  Bruno Haible  <bruno@clisp.org>
1277
1278         asinl: Simplify for platforms where 'long double' == 'double'.
1279         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1280         alternative implementation.
1281         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1282         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1283         * modules/asinl (Depends-on): Add asin. Update conditions.
1284
1285 2011-10-10  Bruno Haible  <bruno@clisp.org>
1286
1287         tanl: Simplify for platforms where 'long double' == 'double'.
1288         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1289         implementation.
1290         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1291         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1292         * modules/tanl (Depends-on): Add tan. Update conditions.
1293         (configure.ac): Don't compile trigl.c if
1294         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1295
1296 2011-10-10  Bruno Haible  <bruno@clisp.org>
1297
1298         cosl: Simplify for platforms where 'long double' == 'double'.
1299         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1300         implementation.
1301         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1302         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1303         * modules/cosl (Depends-on): Add cos. Update conditions.
1304         (configure.ac): Don't compile sincosl.c and trigl.c if
1305         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1306
1307 2011-10-10  Bruno Haible  <bruno@clisp.org>
1308
1309         sinl: Simplify for platforms where 'long double' == 'double'.
1310         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1311         implementation.
1312         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1313         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1314         * modules/sinl (Depends-on): Add sin. Update conditions.
1315         (configure.ac): Don't compile sincosl.c and trigl.c if
1316         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1317
1318 2011-10-10  Bruno Haible  <bruno@clisp.org>
1319
1320         logl: Simplify for platforms where 'long double' == 'double'.
1321         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1322         implementation.
1323         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1324         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1325         * modules/logl (Depends-on): Add log. Update conditions.
1326
1327 2011-10-10  Bruno Haible  <bruno@clisp.org>
1328
1329         expl: Simplify for platforms where 'long double' == 'double'.
1330         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1331         implementation.
1332         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1333         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1334         * modules/expl (Depends-on): Add exp. Update conditions.
1335
1336 2011-10-10  Bruno Haible  <bruno@clisp.org>
1337
1338         sqrtl: Simplify for platforms where 'long double' == 'double'.
1339         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1340         alternative implementation.
1341         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1342         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1343         * modules/sqrtl (Depends-on): Update conditions.
1344
1345 2011-10-10  Bruno Haible  <bruno@clisp.org>
1346
1347         ldexpl: Simplify for platforms where 'long double' == 'double'.
1348         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1349         alternative implementation.
1350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1351         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1352         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1353
1354 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1355
1356         ffsll: set correct witness
1357         * modules/ffsll (configure.ac): Fix typo.
1358
1359 2011-10-10  Bruno Haible  <bruno@clisp.org>
1360
1361         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1362         * lib/printf-frexpl.c: Include <config.h>.
1363         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1364         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1365         second time.
1366         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1367         gl_LONG_DOUBLE_VS_DOUBLE.
1368         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1369         conditions.
1370
1371 2011-10-10  Bruno Haible  <bruno@clisp.org>
1372
1373         frexpl: Simplify for platforms where 'long double' == 'double'.
1374         * lib/frexpl.c: Include <config.h>.
1375         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1376         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1377         time.
1378         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1379         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1380         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1381         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1382         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1383         conditions.
1384
1385 2011-10-10  Jim Meyering  <meyering@redhat.com>
1386
1387         test-renameat: don't leave behind a temporary file
1388         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1389           ERROR: files left in build directory after distclean:
1390           ./gltests/test-renameat.too
1391           make[1]: *** [distcleancheck] Error 1
1392         Reported by Tom G. Christensen.
1393
1394 2011-10-09  Bruno Haible  <bruno@clisp.org>
1395
1396         rint: Determine RINT_LIBM correctly on AIX 7.
1397         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1398         directly, not only through a function pointer. Also accept an optional
1399         4th argument with extra code.
1400         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1401         rintf() call by gcc when optimizing.
1402
1403         mathfunc.m4: Refactor.
1404         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1405         m4 variable.
1406
1407 2011-10-09  Bruno Haible  <bruno@clisp.org>
1408
1409         rintl: Simplify for platforms where 'long double' == 'double'.
1410         * lib/rintl.c: Include <config.h>.
1411         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1412         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1413         time.
1414         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1415         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1416         * modules/rintl (Depends-on): Add rint. Update conditions.
1417
1418 2011-10-09  Bruno Haible  <bruno@clisp.org>
1419
1420         roundl: Simplify for platforms where 'long double' == 'double'.
1421         * lib/roundl.c: Include <config.h>.
1422         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1423         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1424         time.
1425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1426         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1427         * modules/roundl (Depends-on): Add round. Update conditions.
1428
1429 2011-10-09  Bruno Haible  <bruno@clisp.org>
1430
1431         truncl: Simplify for platforms where 'long double' == 'double'.
1432         * lib/truncl.c: Include <config.h>.
1433         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1434         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1435         time.
1436         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1437         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1438         * modules/truncl (Depends-on): Add trunc. Update conditions.
1439
1440 2011-10-09  Bruno Haible  <bruno@clisp.org>
1441
1442         ceill: Simplify for platforms where 'long double' == 'double'.
1443         * lib/ceill.c: Include <config.h>.
1444         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1445         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1446         time.
1447         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1448         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1449         * modules/ceill (Depends-on): Add ceil. Update conditions.
1450
1451 2011-10-09  Bruno Haible  <bruno@clisp.org>
1452
1453         floorl: Simplify for platforms where 'long double' == 'double'.
1454         * lib/floorl.c: Include <config.h>.
1455         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1456         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1457         time.
1458         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1459         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1460         * modules/floorl (Depends-on): Add floor. Update conditions.
1461
1462 2011-10-09  Bruno Haible  <bruno@clisp.org>
1463
1464         rint: Fix ordering constraints.
1465         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1466         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1467         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1468
1469 2011-10-09  Bruno Haible  <bruno@clisp.org>
1470
1471         copysignl: Simplify for platforms where 'long double' == 'double'.
1472         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1473         alternative.
1474         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1475         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1476         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1477
1478 2011-10-09  Bruno Haible  <bruno@clisp.org>
1479
1480         Tests for module 'rintl'.
1481         * modules/rintl-tests: New file.
1482         * tests/test-rintl.c: New file.
1483
1484         New module 'rintl'.
1485         * lib/math.in.h (rintl): New declaration.
1486         * lib/rintl.c: New file.
1487         * m4/rintl.m4: New file.
1488         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1490         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1491         * modules/rintl: New file.
1492         * tests/test-math-c++.cc: Check the declaration of rintl.
1493         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1494         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1495         * doc/posix-functions/rintl.texi: Mention the new module.
1496
1497 2011-10-09  Bruno Haible  <bruno@clisp.org>
1498
1499         Tests for module 'rintf'.
1500         * modules/rintf-tests: New file.
1501         * tests/test-rintf.c: New file.
1502
1503         New module 'rintf'.
1504         * lib/math.in.h (rintf): New declaration.
1505         * lib/rintf.c: New file.
1506         * m4/rintf.m4: New file.
1507         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1509         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1510         * modules/rintf: New file.
1511         * tests/test-math-c++.cc: Check the declaration of rintf.
1512         * doc/posix-functions/rintf.texi: Mention the new module.
1513
1514 2011-10-09  Bruno Haible  <bruno@clisp.org>
1515
1516         rint: Support for MSVC.
1517         * lib/math.in.h (rint): New declaration.
1518         * lib/rint.c: New file.
1519         * m4/rint.m4: New file.
1520         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1522         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1523         * modules/rint (Description): Fix.
1524         (Files): Add lib/rint.c, m4/rint.m4.
1525         (Depends-on): Add math.
1526         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1527         gl_MATH_MODULE_INDICATOR.
1528         * tests/test-math-c++.cc: Check the declaration of rint.
1529         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1530         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1531         * doc/posix-functions/rint.texi: Mention the replacement provided by
1532         the module.
1533
1534         rint tests: More tests.
1535         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1536         minus-zero.h, infinity.h, nan.h.
1537         (main): Skip the test if the current rounding mode is not standard. Add
1538         tests for negative numbers, minus zero, infinity, NaN.
1539         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1540         tests/nan.h.
1541         (Depends-on): Add isnand-nolibm.
1542
1543 2011-10-09  Bruno Haible  <bruno@clisp.org>
1544
1545         Tests for module 'copysignl'.
1546         * modules/copysignl-tests: New file.
1547         * tests/test-copysignl.c: New file.
1548
1549         New module 'copysignl'.
1550         * lib/math.in.h (copysignl): New declaration.
1551         * lib/copysignl.c: New file.
1552         * m4/copysignl.m4: New file.
1553         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1555         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1556         HAVE_COPYSIGNL.
1557         * modules/copysignl: New file.
1558         * tests/test-math-c++.cc: Check the declaration of copysignl.
1559         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1560         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1561         * doc/posix-functions/copysignl.texi: Mention the new module.
1562
1563 2011-10-09  Bruno Haible  <bruno@clisp.org>
1564
1565         Tests for module 'copysignf'.
1566         * modules/copysignf-tests: New file.
1567         * tests/test-copysignf.c: New file.
1568
1569         New module 'copysignf'.
1570         * lib/math.in.h (copysignf): New declaration.
1571         * lib/copysignf.c: New file.
1572         * m4/copysignf.m4: New file.
1573         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1575         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1576         HAVE_COPYSIGNF.
1577         * modules/copysignf: New file.
1578         * tests/test-math-c++.cc: Check the declaration of copysignf.
1579         * doc/posix-functions/copysignf.texi: Mention the new module.
1580
1581 2011-10-09  Bruno Haible  <bruno@clisp.org>
1582
1583         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1584         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1585         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1586         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1587         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1588         gl_SIGNAL_H_DEFAULTS.
1589
1590 2011-10-09  Bruno Haible  <bruno@clisp.org>
1591
1592         poll: Make macro safer.
1593         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1594         ac_cv_header_poll_h is not set.
1595
1596 2011-10-09  Bruno Haible  <bruno@clisp.org>
1597
1598         copysign: Provide replacement.
1599         * lib/math.in.h (copysign): New declaration.
1600         * lib/copysign.c: New file.
1601         * m4/copysign.m4: New file.
1602         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1604         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1605         HAVE_COPYSIGN.
1606         * modules/copysign (Description): Clarify.
1607         (Files): Add lib/copysign.c, m4/copysign.m4.
1608         (Depends-on): Add math, signbit.
1609         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1610         gl_MATH_MODULE_INDICATOR.
1611         * tests/test-math-c++.cc: Check the declaration of copysign.
1612         * doc/posix-functions/copysign.texi: Mention the effects of the module
1613         on Minix and MSVC.
1614
1615 2011-10-09  Bruno Haible  <bruno@clisp.org>
1616
1617         isinf: Ensure macro on AIX 5.1.
1618         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1619         macro.
1620         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1621
1622 2011-10-09  Bruno Haible  <bruno@clisp.org>
1623
1624         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1625         * modules/snprintf-posix-tests (configure.ac): Require
1626         gl_LONG_DOUBLE_VS_DOUBLE.
1627         * modules/sprintf-posix-tests (configure.ac): Likewise.
1628         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1629         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1630         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1631         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1632         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1633         tests on platforms where 'long double' is the same as 'double'.
1634         * tests/test-sprintf-posix.h (test_function): Likewise.
1635         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1636         * tests/test-vasprintf-posix.c (test_function): Likewise.
1637
1638         *printf: Fix for platforms where 'long double' == 'double'.
1639         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1640         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1641         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1642         * modules/fprintf-posix (Files): Likewise.
1643         * modules/obstack-printf-posix (Files): Likewise.
1644         * modules/snprintf-posix (Files): Likewise.
1645         * modules/sprintf-posix (Files): Likewise.
1646         * modules/vasnprintf (Files): Likewise.
1647         * modules/vasnprintf-posix (Files): Likewise.
1648         * modules/vasprintf-posix (Files): Likewise.
1649         * modules/vdprintf-posix (Files): Likewise.
1650         * modules/vfprintf-posix (Files): Likewise.
1651         * modules/vsnprintf-posix (Files): Likewise.
1652         * modules/vsprintf-posix (Files): Likewise.
1653         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1654         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1655         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1656         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1657         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1658         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1659         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1660
1661         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1662         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1663         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1664         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1665         'long double'.
1666         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1667
1668         isinf: Fix for platforms where 'long double' == 'double'.
1669         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1670         Don't blindly assume 80-bit 'long double'.
1671
1672         isfinite: Fix for platforms where 'long double' == 'double'.
1673         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1674         Don't blindly assume 80-bit 'long double'.
1675
1676         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1677         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1678         * modules/isfinite-tests (configure.ac): Require
1679         gl_LONG_DOUBLE_VS_DOUBLE.
1680         * modules/isinf-tests (configure.ac): Likewise.
1681         * modules/isnan-tests (configure.ac): Likewise.
1682         * modules/isnanl-tests (configure.ac): Likewise.
1683         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1684         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1685         tests on platforms where 'long double' is the same as 'double'.
1686         * tests/test-isinf.c (test_isinfl): Likewise.
1687         * tests/test-isnan.c (test_long_double): Likewise.
1688         * tests/test-isnanl.h (main): Likewise.
1689
1690 2011-10-08  Bruno Haible  <bruno@clisp.org>
1691
1692         Tests for module 'tanhf'.
1693         * modules/tanhf-tests: New file.
1694         * tests/test-tanhf.c: New file.
1695
1696         New module 'tanhf'.
1697         * lib/math.in.h (tanhf): New declaration.
1698         * lib/tanhf.c: New file.
1699         * m4/tanhf.m4: New file.
1700         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1702         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1703         * modules/tanhf: New file.
1704         * tests/test-math-c++.cc: Check the declaration of tanhf.
1705         * doc/posix-functions/tanhf.texi: Mention the new module.
1706
1707         tanh: Use a .m4 file.
1708         * m4/tanh.m4: New file.
1709         * modules/tanh (Files): Add it.
1710         (configure.ac): Just invoke gl_FUNC_TANH.
1711
1712 2011-10-08  Bruno Haible  <bruno@clisp.org>
1713
1714         Tests for module 'coshf'.
1715         * modules/coshf-tests: New file.
1716         * tests/test-coshf.c: New file.
1717
1718         New module 'coshf'.
1719         * lib/math.in.h (coshf): New declaration.
1720         * lib/coshf.c: New file.
1721         * m4/coshf.m4: New file.
1722         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1724         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1725         * modules/coshf: New file.
1726         * tests/test-math-c++.cc: Check the declaration of coshf.
1727         * doc/posix-functions/coshf.texi: Mention the new module.
1728
1729         cosh: Use a .m4 file.
1730         * m4/cosh.m4: New file.
1731         * modules/cosh (Files): Add it.
1732         (configure.ac): Just invoke gl_FUNC_COSH.
1733
1734 2011-10-08  Bruno Haible  <bruno@clisp.org>
1735
1736         Tests for module 'sinhf'.
1737         * modules/sinhf-tests: New file.
1738         * tests/test-sinhf.c: New file.
1739
1740         New module 'sinhf'.
1741         * lib/math.in.h (sinhf): New declaration.
1742         * lib/sinhf.c: New file.
1743         * m4/sinhf.m4: New file.
1744         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1746         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1747         * modules/sinhf: New file.
1748         * tests/test-math-c++.cc: Check the declaration of sinhf.
1749         * doc/posix-functions/sinhf.texi: Mention the new module.
1750
1751         sinh: Use a .m4 file.
1752         * m4/sinh.m4: New file.
1753         * modules/sinh (Files): Add it.
1754         (configure.ac): Just invoke gl_FUNC_SINH.
1755
1756 2011-10-08  Bruno Haible  <bruno@clisp.org>
1757
1758         Tests for module 'atan2f'.
1759         * modules/atan2f-tests: New file.
1760         * tests/test-atan2f.c: New file.
1761
1762         New module 'atan2f'.
1763         * lib/math.in.h (atan2f): New declaration.
1764         * lib/atan2f.c: New file.
1765         * m4/atan2f.m4: New file.
1766         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1768         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1769         * modules/atan2f: New file.
1770         * tests/test-math-c++.cc: Check the declaration of atan2f.
1771         * doc/posix-functions/atan2f.texi: Mention the new module.
1772
1773         atan2: Use a .m4 file.
1774         * m4/atan2.m4: New file.
1775         * modules/atan2 (Files): Add it.
1776         (configure.ac): Just invoke gl_FUNC_ATAN2.
1777
1778 2011-10-08  Bruno Haible  <bruno@clisp.org>
1779
1780         Tests for module 'atanf'.
1781         * modules/atanf-tests: New file.
1782         * tests/test-atanf.c: New file.
1783
1784         New module 'atanf'.
1785         * lib/math.in.h (atanf): New declaration.
1786         * lib/atanf.c: New file.
1787         * m4/atanf.m4: New file.
1788         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1790         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1791         * modules/atanf: New file.
1792         * tests/test-math-c++.cc: Check the declaration of atanf.
1793         * doc/posix-functions/atanf.texi: Mention the new module.
1794
1795         atan: Use a .m4 file.
1796         * m4/atan.m4: New file.
1797         * modules/atan (Files): Add it.
1798         (configure.ac): Just invoke gl_FUNC_ATAN.
1799
1800 2011-10-08  Bruno Haible  <bruno@clisp.org>
1801
1802         Tests for module 'acosf'.
1803         * modules/acosf-tests: New file.
1804         * tests/test-acosf.c: New file.
1805
1806         New module 'acosf'.
1807         * lib/math.in.h (acosf): New declaration.
1808         * lib/acosf.c: New file.
1809         * m4/acosf.m4: New file.
1810         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1812         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1813         * modules/acosf: New file.
1814         * tests/test-math-c++.cc: Check the declaration of acosf.
1815         * doc/posix-functions/acosf.texi: Mention the new module.
1816
1817         acos: Use a .m4 file.
1818         * m4/acos.m4: New file.
1819         * modules/acos (Files): Add it.
1820         (configure.ac): Just invoke gl_FUNC_ACOS.
1821
1822 2011-10-08  Bruno Haible  <bruno@clisp.org>
1823
1824         Tests for module 'asinf'.
1825         * modules/asinf-tests: New file.
1826         * tests/test-asinf.c: New file.
1827
1828         New module 'asinf'.
1829         * lib/math.in.h (asinf): New declaration.
1830         * lib/asinf.c: New file.
1831         * m4/asinf.m4: New file.
1832         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1834         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1835         * modules/asinf: New file.
1836         * tests/test-math-c++.cc: Check the declaration of asinf.
1837         * doc/posix-functions/asinf.texi: Mention the new module.
1838
1839         asin: Use a .m4 file.
1840         * m4/asin.m4: New file.
1841         * modules/asin (Files): Add it.
1842         (configure.ac): Just invoke gl_FUNC_ASIN.
1843
1844 2011-10-08  Bruno Haible  <bruno@clisp.org>
1845
1846         Tests for module 'tanf'.
1847         * modules/tanf-tests: New file.
1848         * tests/test-tanf.c: New file.
1849
1850         New module 'tanf'.
1851         * lib/math.in.h (tanf): New declaration.
1852         * lib/tanf.c: New file.
1853         * m4/tanf.m4: New file.
1854         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1856         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1857         * modules/tanf: New file.
1858         * tests/test-math-c++.cc: Check the declaration of tanf.
1859         * doc/posix-functions/tanf.texi: Mention the new module.
1860
1861         tan: Use a .m4 file.
1862         * m4/tan.m4: New file.
1863         * modules/tan (Files): Add it.
1864         (configure.ac): Just invoke gl_FUNC_TAN.
1865
1866 2011-10-08  Bruno Haible  <bruno@clisp.org>
1867
1868         Tests for module 'cosf'.
1869         * modules/cosf-tests: New file.
1870         * tests/test-cosf.c: New file.
1871
1872         New module 'cosf'.
1873         * lib/math.in.h (cosf): New declaration.
1874         * lib/cosf.c: New file.
1875         * m4/cosf.m4: New file.
1876         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1878         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1879         * modules/cosf: New file.
1880         * tests/test-math-c++.cc: Check the declaration of cosf.
1881         * doc/posix-functions/cosf.texi: Mention the new module.
1882
1883         cos: Use a .m4 file.
1884         * m4/cos.m4: New file.
1885         * modules/cos (Files): Add it.
1886         (configure.ac): Just invoke gl_FUNC_COS.
1887
1888 2011-10-08  Bruno Haible  <bruno@clisp.org>
1889
1890         Tests for module 'sinf'.
1891         * modules/sinf-tests: New file.
1892         * tests/test-sinf.c: New file.
1893
1894         New module 'sinf'.
1895         * lib/math.in.h (sinf): New declaration.
1896         * lib/sinf.c: New file.
1897         * m4/sinf.m4: New file.
1898         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1900         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1901         * modules/sinf: New file.
1902         * tests/test-math-c++.cc: Check the declaration of sinf.
1903         * doc/posix-functions/sinf.texi: Mention the new module.
1904
1905         sin: Use a .m4 file.
1906         * m4/sin.m4: New file.
1907         * modules/sin (Files): Add it.
1908         (configure.ac): Just invoke gl_FUNC_SIN.
1909
1910 2011-10-08  Bruno Haible  <bruno@clisp.org>
1911
1912         Tests for module 'powf'.
1913         * modules/powf-tests: New file.
1914         * tests/test-powf.c: New file.
1915
1916         New module 'powf'.
1917         * lib/math.in.h (powf): New declaration.
1918         * lib/powf.c: New file.
1919         * m4/powf.m4: New file.
1920         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1922         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1923         * modules/powf: New file.
1924         * tests/test-math-c++.cc: Check the declaration of powf.
1925         * doc/posix-functions/powf.texi: Mention the new module.
1926
1927         pow: Use a .m4 file.
1928         * m4/pow.m4: New file.
1929         * modules/pow (Files): Add it.
1930         (configure.ac): Just invoke gl_FUNC_POW.
1931
1932 2011-10-08  Bruno Haible  <bruno@clisp.org>
1933
1934         Tests for module 'log10f'.
1935         * modules/log10f-tests: New file.
1936         * tests/test-log10f.c: New file.
1937
1938         New module 'log10f'.
1939         * lib/math.in.h (log10f): New declaration.
1940         * lib/log10f.c: New file.
1941         * m4/log10f.m4: New file.
1942         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1944         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1945         * modules/log10f: New file.
1946         * tests/test-math-c++.cc: Check the declaration of log10f.
1947         * doc/posix-functions/log10f.texi: Mention the new module.
1948
1949         log10: Use a .m4 file.
1950         * m4/log10.m4: New file.
1951         * modules/log10 (Files): Add it.
1952         (configure.ac): Just invoke gl_FUNC_LOG10.
1953
1954 2011-10-08  Bruno Haible  <bruno@clisp.org>
1955
1956         Tests for module 'logf'.
1957         * modules/logf-tests: New file.
1958         * tests/test-logf.c: New file.
1959
1960         New module 'logf'.
1961         * lib/math.in.h (logf): New declaration.
1962         * lib/logf.c: New file.
1963         * m4/logf.m4: New file.
1964         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1966         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1967         * modules/logf: New file.
1968         * tests/test-math-c++.cc: Check the declaration of logf.
1969         * doc/posix-functions/logf.texi: Mention the new module.
1970
1971         log: Use a .m4 file.
1972         * m4/log.m4: New file.
1973         * modules/log (Files): Add it.
1974         (configure.ac): Just invoke gl_FUNC_LOG.
1975
1976 2011-10-08  Bruno Haible  <bruno@clisp.org>
1977
1978         Tests for module 'expf'.
1979         * modules/expf-tests: New file.
1980         * tests/test-expf.c: New file.
1981
1982         New module 'expf'.
1983         * lib/math.in.h (expf): New declaration.
1984         * lib/expf.c: New file.
1985         * m4/expf.m4: New file.
1986         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1988         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1989         * modules/expf: New file.
1990         * tests/test-math-c++.cc: Check the declaration of expf.
1991         * doc/posix-functions/expf.texi: Mention the new module.
1992
1993         exp: Use a .m4 file.
1994         * m4/exp.m4: New file.
1995         * modules/exp (Files): Add it.
1996         (configure.ac): Just invoke gl_FUNC_EXP.
1997
1998 2011-10-08  Bruno Haible  <bruno@clisp.org>
1999
2000         Tests for module 'sqrtf'.
2001         * modules/sqrtf-tests: New file.
2002         * tests/test-sqrtf.c: New file.
2003
2004         New module 'sqrtf'.
2005         * lib/math.in.h (sqrtf): New declaration.
2006         * lib/sqrtf.c: New file.
2007         * m4/sqrtf.m4: New file.
2008         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2010         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2011         * modules/sqrtf: New file.
2012         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2013         * doc/posix-functions/sqrtf.texi: Mention the new module.
2014
2015 2011-10-08  Bruno Haible  <bruno@clisp.org>
2016
2017         Tests: Avoid link failures w.r.t. libintl.
2018         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2019         $(LIBINTL).
2020         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2021         $(LIBINTL).
2022         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2023         against $(LIBINTL).
2024         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2025         $(LIBINTL).
2026         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2027         $(LIBINTL).
2028         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2029
2030 2011-10-08  Bruno Haible  <bruno@clisp.org>
2031
2032         pow tests: Defeat compiler optimizations.
2033         * tests/test-pow.c (main): Assign arguments to x and y before use.
2034
2035 2011-10-08  Bruno Haible  <bruno@clisp.org>
2036
2037         gnulib-tool: Improve last commit.
2038         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2039         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2040         ignore dependencies that are not among the modules list.
2041
2042 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         gnulib-tool: don't follow dependencies to avoided modules
2045         This fixes a bug that is related to the previous one.
2046         * gnulib-tool (func_modules_transitive_closure)
2047         (func_emit_autoconf_snippets):
2048         Check whether a dependency is acceptable before using it.
2049         (--extract-dependencies): Report an error if --avoid is also used,
2050         since this combination of options is not yet supported.
2051
2052         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2053         Problem reported by Peter Dyballa in
2054         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2055         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2056         when echoing "$condition".
2057
2058 2011-10-07  Bruno Haible  <bruno@clisp.org>
2059
2060         Fix documentation about math functions on MacOS X.
2061         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2062         MacOS X 10.5.
2063         * doc/posix-functions/fdim.texi: Likewise.
2064         * doc/posix-functions/feclearexcept.texi: Likewise.
2065         * doc/posix-functions/fegetenv.texi: Likewise.
2066         * doc/posix-functions/fegetround.texi: Likewise.
2067         * doc/posix-functions/feholdexcept.texi: Likewise.
2068         * doc/posix-functions/feraiseexcept.texi: Likewise.
2069         * doc/posix-functions/fesetenv.texi: Likewise.
2070         * doc/posix-functions/fesetround.texi: Likewise.
2071         * doc/posix-functions/fetestexcept.texi: Likewise.
2072         * doc/posix-functions/feupdateenv.texi: Likewise.
2073         * doc/posix-functions/fmax.texi: Likewise.
2074         * doc/posix-functions/fmin.texi: Likewise.
2075         * doc/posix-functions/log2.texi: Likewise.
2076         * doc/posix-functions/modff.texi: Likewise.
2077         * doc/posix-functions/nan.texi: Likewise.
2078         * doc/posix-functions/nanf.texi: Likewise.
2079         * doc/posix-functions/nextafterf.texi: Likewise.
2080         * doc/posix-functions/remquo.texi: Likewise.
2081
2082 2011-10-07  Bruno Haible  <bruno@clisp.org>
2083
2084         modff: Drop assumption about library that defines modff.
2085         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2086         AC_CHECK_FUNCS.
2087         * modules/modff (Files): Add m4/mathfunc.m4.
2088
2089 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2090
2091         raise tests: Avoid a GCC warning.
2092         * tests/test-raise.c (handler): Use _Noreturn.
2093
2094 2011-10-07  Bruno Haible  <bruno@clisp.org>
2095
2096         Tests for module 'ldexpf'.
2097         * modules/ldexpf-tests: New file.
2098         * tests/test-ldexpf.c: New file.
2099
2100         New module 'ldexpf'.
2101         * lib/math.in.h (ldexpf): New declaration.
2102         * lib/ldexpf.c: New file.
2103         * m4/ldexpf.m4: New file.
2104         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2106         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2107         * modules/ldexpf: New file.
2108         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2109         * doc/posix-functions/ldexpf.texi: Mention the new module.
2110
2111 2011-10-06  Bruno Haible  <bruno@clisp.org>
2112
2113         frexpf: Work around problems on IRIX and mingw.
2114         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2116         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2117         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2118         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2119         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2120         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2121
2122 2011-10-06  Bruno Haible  <bruno@clisp.org>
2123
2124         fabsf: Drop assumption about library that defines fabsf.
2125         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2126         AC_CHECK_FUNCS.
2127         * modules/fabsf (Files): Add m4/mathfunc.m4.
2128
2129 2011-10-06  Bruno Haible  <bruno@clisp.org>
2130
2131         frexpf: Drop assumption about library that defines frexpf.
2132         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2133         'int *', 'float *', 'long double *', 'float', 'long double'.
2134         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2135         AC_CHECK_FUNCS.
2136         * modules/frexpf (Files): Add m4/mathfunc.m4.
2137
2138         Tests for module 'frexpf'.
2139         * modules/frexpf-tests: New file.
2140         * tests/test-frexpf.c: New file.
2141
2142         New module 'frexpf'.
2143         * lib/math.in.h (frexpf): New declaration.
2144         * lib/frexpf.c: New file.
2145         * m4/frexpf.m4: New file.
2146         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2148         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2149         * modules/frexpf: New file.
2150         * tests/test-math-c++.cc: Check the declaration of frexpf.
2151         * doc/posix-functions/frexpf.texi: Mention the new module.
2152
2153 2011-10-06  Bruno Haible  <bruno@clisp.org>
2154
2155         math: Sort function declarations of math.in.h.
2156         * lib/math.in.h (frexp, logb): Move declarations.
2157
2158 2011-10-05  Bruno Haible  <bruno@clisp.org>
2159
2160         Tests for module 'modff'.
2161         * modules/modff-tests: New file.
2162         * tests/test-modff.c: New file.
2163
2164         New module 'modff'.
2165         * lib/math.in.h (modff): New declaration.
2166         * lib/modff.c: New file.
2167         * m4/modff.m4: New file.
2168         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2170         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2171         * modules/modff: New file.
2172         * tests/test-math-c++.cc: Check the declaration of modff.
2173         * doc/posix-functions/modff.texi: Mention the new module.
2174
2175         modf tests: Make test sharper.
2176         * tests/test-modf.c (main): Strengthen upper bound.
2177
2178         modf: Use a .m4 file.
2179         * m4/modf.m4: New file.
2180         * modules/modf (Files): Add it.
2181         (configure.ac): Just invoke gl_FUNC_MODF.
2182
2183 2011-10-05  Bruno Haible  <bruno@clisp.org>
2184
2185         Tests for module 'fmodf'.
2186         * modules/fmodf-tests: New file.
2187         * tests/test-fmodf.c: New file.
2188
2189         New module 'fmodf'.
2190         * lib/math.in.h (fmodf): New declaration.
2191         * lib/fmodf.c: New file.
2192         * m4/fmodf.m4: New file.
2193         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2195         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2196         * modules/fmodf: New file.
2197         * tests/test-math-c++.cc: Check the declaration of fmodf.
2198         * doc/posix-functions/fmodf.texi: Mention the new module.
2199
2200         fmod: Use a .m4 file.
2201         * m4/fmod.m4: New file.
2202         * modules/fmod (Files): Add it.
2203         (configure.ac): Just invoke gl_FUNC_FMOD.
2204
2205 2011-10-05  Bruno Haible  <bruno@clisp.org>
2206
2207         Tests for module 'fabsf'.
2208         * modules/fabsf-tests: New file.
2209         * tests/test-fabsf.c: New file.
2210
2211         New module 'fabsf'.
2212         * lib/math.in.h (fabsf): New declaration.
2213         * lib/fabsf.c: New file.
2214         * m4/fabsf.m4: New file.
2215         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2217         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2218         * modules/fabsf: New file.
2219         * tests/test-math-c++.cc: Check the declaration of fabsf.
2220         * doc/posix-functions/fabsf.texi: Mention the new module.
2221
2222         fabs: Use a .m4 file.
2223         * m4/fabs.m4: New file.
2224         * modules/fabs (Files): Add it.
2225         (configure.ac): Just invoke gl_FUNC_FABS.
2226
2227 2011-10-05  Jim Meyering  <meyering@redhat.com>
2228
2229         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2230         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2231         ls -lL regression introduced in coreutils-8.12, it does so at the
2232         cost of an additional stat call in the common case.  Besides, now
2233         that the kernel change that prompted commit 95f7c57f has been reverted
2234         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2235         we have no use for commit 95f7c57f, "file-has-acl: use
2236         acl_extended_file_nofollow if available".
2237
2238 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2239
2240         file-has-acl: revert unintended change in behavior of ls -L
2241         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2242         derived from...
2243         (file_has_acl): ...code here.  Call it.
2244         This problem was introduced with 2011-07-22 commit 95f7c57f,
2245         "file-has-acl: use acl_extended_file_nofollow if available".
2246         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2247
2248 2011-10-03  Bruno Haible  <bruno@clisp.org>
2249
2250         poll: Avoid link errors on MSVC.
2251         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2252         * modules/poll (Depends-on): Add sockets.
2253         (Link): New section.
2254         * NEWS: Mention the change.
2255         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2256         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2257         $(LIB_POLL) instead of $(LIBSOCKET).
2258
2259 2011-10-03  Bruno Haible  <bruno@clisp.org>
2260
2261         sys_select tests: Fix link error on MSVC 9.
2262         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2263         with $(LIB_SELECT) instead of $(LIBSOCKET).
2264
2265 2011-10-03  Bruno Haible  <bruno@clisp.org>
2266
2267         sys_select: Fix compilation error on mingw.
2268         * lib/sys_select.in.h: On native Windows, include <io.h>.
2269
2270 2011-10-03  Bruno Haible  <bruno@clisp.org>
2271
2272         wmemset: Support for MSVC.
2273         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2274         whether wmemset() exists.
2275
2276 2011-10-03  Bruno Haible  <bruno@clisp.org>
2277
2278         wmemmove: Support for MSVC.
2279         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2280         whether wmemmove() exists.
2281
2282 2011-10-03  Bruno Haible  <bruno@clisp.org>
2283
2284         wmemcpy: Support for MSVC.
2285         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2286         whether wmemcpy() exists.
2287
2288 2011-10-03  Bruno Haible  <bruno@clisp.org>
2289
2290         wmemcmp: Support for MSVC.
2291         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2292         whether wmemcmp() exists.
2293
2294 2011-10-03  Bruno Haible  <bruno@clisp.org>
2295
2296         wmemchr: Support for MSVC.
2297         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2298         whether wmemchr() exists.
2299
2300 2011-10-03  Bruno Haible  <bruno@clisp.org>
2301
2302         glthread/*, strsignal: Support for MSVC.
2303         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2304         including <winsock.h> on MSVC 9.
2305         * lib/glthread/lock.h: Likewise.
2306         * lib/glthread/thread.h: Likewise.
2307         * lib/glthread/tls.h: Likewise.
2308         * lib/glthread/yield.h: Likewise.
2309         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2310         if HAVE_UNISTD_H is false.
2311         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2312
2313 2011-10-03  Bruno Haible  <bruno@clisp.org>
2314
2315         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2316         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2317         Set to 100000.
2318
2319 2011-10-03  Bruno Haible  <bruno@clisp.org>
2320
2321         acl: Fix specification.
2322         * lib/file-has-acl.c (file_has_acl): Fix specification.
2323
2324 2011-10-03  Bruno Haible  <bruno@clisp.org>
2325
2326         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2327         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2328         (compute_curr_prefix, shared_library_fullname,
2329         find_shared_library_fullname, get_shared_library_fullname, relocate):
2330         Use it together with PIC && INSTALLDIR.
2331         Reported by <jojelino@gmail.com>
2332         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2333
2334 2011-10-01  Jim Meyering  <meyering@redhat.com>
2335
2336         maint.mk: adjust a release-related rule not to require use of gzip
2337         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2338         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2339         projects that build only .tar.xz files.  Also fix an erroneous test.
2340
2341         test-linkat: don't leave behind a temporary file
2342         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2343         Otherwise, coreutils' "make distcheck" would fail with this:
2344           Only in /c/cu/tests/torture/coreutils/test/\
2345             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2346           make[2]: *** [my-distcheck] Error 1
2347
2348         float, math: add omitted file
2349         * lib/itold.c: Add file, required for yesterday's float change.
2350
2351 2011-10-01  Bruno Haible  <bruno@clisp.org>
2352
2353         isinf: Fix for OpenBSD/x86.
2354         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2355         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2356         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2357
2358 2011-10-01  Bruno Haible  <bruno@clisp.org>
2359
2360         isfinite: Fix syntax error in configure test.
2361         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2362
2363         isfinite: Fix typo.
2364         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2365         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2366
2367 2011-10-01  Bruno Haible  <bruno@clisp.org>
2368
2369         nonblocking tests: Fix test failure on Linux/IA-64.
2370         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2371         Set to 270000.
2372
2373 2011-10-01  Bruno Haible  <bruno@clisp.org>
2374
2375         mkfifoat tests: Fix a test failure on mingw.
2376         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2377         with error ENOSYS.
2378
2379 2011-09-30  Bruno Haible  <bruno@clisp.org>
2380
2381         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2382         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2383         'long double'. Set REPLACE_ITOLD.
2384         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2385         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2386         * lib/itold.c: New file.
2387         * modules/float (Files): Add lib/itold.c.
2388         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2389         (Makefile.am): Substitute REPLACE_ITOLD.
2390         * modules/math (Depends-on): Add float.
2391         (Makefile.am): Substitute REPLACE_ITOLD.
2392         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2393         * doc/posix-headers/math.texi: Likewise.
2394         * doc/posix-functions/logl.texi: Likewise.
2395
2396 2011-09-30  Bruno Haible  <bruno@clisp.org>
2397
2398         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2399         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2400         Set to 140000.
2401
2402 2011-09-30  Bruno Haible  <bruno@clisp.org>
2403
2404         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2405         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2406         invocation, say "right after AC_PROG_CC_STDC", not "right after
2407         AC_PROG_CC".
2408         Reported by Gary V. Vaughan <gary@gnu.org>.
2409
2410 2011-09-30  Bruno Haible  <bruno@clisp.org>
2411
2412         Centralize C99 requirement.
2413         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2414         * modules/stdarg (configure.ac-early): Invoke it instead of
2415         AC_PROG_CC_STDC.
2416         Reported by Gary V. Vaughan and Paul Eggert.
2417
2418 2011-09-29  Bruno Haible  <bruno@clisp.org>
2419
2420         float: Fix LDBL_MAX value on Linux/PowerPC.
2421         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2422         on Linux/PowerPC.
2423         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2424         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2425         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2426         platform.
2427         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2428
2429 2011-09-29  Bruno Haible  <bruno@clisp.org>
2430
2431         doc: Improve doc about gl_EARLY.
2432         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2433         AC_PROG_CC_STDC invocation.
2434         Reported by Gary V. Vaughan <gary@gnu.org>.
2435
2436 2011-09-28  Bruno Haible  <bruno@clisp.org>
2437
2438         fgetc, fputc, fread, fwrite tests: Fix link error.
2439         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2440         on non-MSVC platforms.
2441         * tests/test-fputc.c (main): Likewise.
2442         * tests/test-fread.c (main): Likewise.
2443         * tests/test-fwrite.c (main): Likewise.
2444         Reported by Jim Meyering.
2445
2446 2011-09-27  Bruno Haible  <bruno@clisp.org>
2447
2448         fputc, fwrite tests: Avoid test failure on MSVC.
2449         * tests/test-fgetc.c: Include msvc-inval.h.
2450         (main): Invoke gl_msvc_inval_ensure_handler.
2451         * tests/test-fputc.c: Include msvc-inval.h.
2452         (main): Invoke gl_msvc_inval_ensure_handler.
2453         * tests/test-fread.c: Include msvc-inval.h.
2454         (main): Invoke gl_msvc_inval_ensure_handler.
2455         * tests/test-fwrite.c: Include msvc-inval.h.
2456         (main): Invoke gl_msvc_inval_ensure_handler.
2457         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2458         * modules/fputc-tests (Depends-on): Likewise.
2459         * modules/fread-tests (Depends-on): Likewise.
2460         * modules/fwrite-tests (Depends-on): Likewise.
2461
2462 2011-09-27  Bruno Haible  <bruno@clisp.org>
2463
2464         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2465         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2466         (raise): Remove older, duplicated declaration.
2467         (_gl_raise_SIGPIPE): New declaration.
2468         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2469         (rpl_raise): Remove function.
2470         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2471         a gnulib-defined SIGPIPE here.
2472         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2473         'sigprocmask' has detected missing signal-blocking and the module
2474         'sigpipe' is enabled.
2475         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2476
2477 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2478
2479         base64-tests: avoid memory leak
2480         * tests/test-base64.c (main): Plug memory leak.
2481
2482         base32: new module
2483         * modules/base32: New module.
2484         * lib/base32.c: New file.
2485         * lib/base32.h: Likewise.
2486         * m4/base32.m4: Likewise.
2487         * modules/base32-tests: New test.
2488         * tests/test-base32.c: Likewise.
2489         * MODULES.html.sh (Misc): Mention it.
2490
2491 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2492
2493         gnulib: use more-standard license notice wording
2494         * gnulib-tool (func_emit_copyright_notice): When emitting a
2495         license notice into a file, use the standard wording as suggested
2496         by the current information for GNU maintainers, except say "file"
2497         rather than "program".  The new wording gives a license version
2498         number, which addresses an issue raised by Glenn Morris in
2499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2500         * m4/onceonly.m4: Use that same wording here, too.
2501
2502         dup2: minor simplification
2503         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2504         as lib/dup2.c no longer uses 'inline'.
2505
2506 2011-09-25  Bruno Haible  <bruno@clisp.org>
2507
2508         strings: Fix compilation error on MSVC.
2509         * lib/strings.in.h: Include <stddef.h> for size_t.
2510
2511 2011-09-25  Bruno Haible  <bruno@clisp.org>
2512
2513         fflush et al.: Document limitation on MSVC.
2514         * doc/posix-functions/fflush.texi: Document possible crash in handling
2515         mode other than DEFAULT_HANDLING.
2516         * doc/posix-functions/fgetc.texi: Likewise.
2517         * doc/posix-functions/fputc.texi: Likewise.
2518         * doc/posix-functions/fread.texi: Likewise.
2519         * doc/posix-functions/fwrite.texi: Likewise.
2520
2521 2011-09-25  Bruno Haible  <bruno@clisp.org>
2522
2523         msvc-inval: Allow three invalid parameter handling modes.
2524         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2525         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2526         macros.
2527         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2528         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2529         SANE_LIBRARY_HANDLING as a no-op.
2530         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2531         <stdlib.h>.
2532         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2533
2534 2011-09-25  Bruno Haible  <bruno@clisp.org>
2535
2536         msvc-inval: Make handler multithread-safe.
2537         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2538         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2539         declarations.
2540         (gl_msvc_inval_current): New declaration.
2541         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2542         Operate on the structure returned by gl_msvc_inval_current().
2543         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2544         Remove varaiables.
2545         (tls_index, tls_initialized): New variables.
2546         (not_per_thread): New variable.
2547         (gl_msvc_inval_current): New function.
2548         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2549         returned by gl_msvc_inval_current().
2550
2551 2011-09-25  Bruno Haible  <bruno@clisp.org>
2552
2553         msvc-inval: Install handler globally.
2554         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2555         !_MSC_VER.
2556         (gl_msvc_invalid_parameter_handler): Remove declaration.
2557         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2558         declarations.
2559         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2560         Install the handler globally, don't uninstall it.
2561         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2562         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2563         currently valid, call RaiseException instead.
2564         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2565         for !_MSC_VER.
2566
2567 2011-09-25  Bruno Haible  <bruno@clisp.org>
2568
2569         strerror_r-posix: Fix for MSVC 9.
2570         * lib/strerror_r.c (local_snprintf): New function.
2571         (snprintf): Define to local_snprintf, not to _snprintf.
2572
2573 2011-09-25  Bruno Haible  <bruno@clisp.org>
2574
2575         ftruncate: Support for MSVC 9.
2576         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2577         (chsize_nothrow): New function.
2578         (chsize): Redefine as a macro.
2579         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2580         * modules/ftruncate (Depends-on): Add msvc-inval.
2581
2582 2011-09-25  Bruno Haible  <bruno@clisp.org>
2583
2584         New module 'fstat'.
2585         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2586         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2587         * lib/fchdir.c (rpl_fstat): Remove function.
2588         * m4/fstat.m4: New file.
2589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2591         declared.
2592         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2593         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2594         * modules/fstat: New file.
2595         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2596         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2597         is set.
2598         * doc/posix-functions/fstat.texi: Mention the new module and the
2599         problem on MSVC.
2600         * NEWS: Mention the change.
2601         * modules/acl (Depends-on): Add fstat.
2602         * modules/chdir-safer (Depends-on): Likewise.
2603         * modules/chown (Depends-on): Likewise.
2604         * modules/copy-file (Depends-on): Likewise.
2605         * modules/fchdir (Depends-on): Likewise.
2606         * modules/fdopendir (Depends-on): Likewise.
2607         * modules/fopen (Depends-on): Likewise.
2608         * modules/fts (Depends-on): Likewise.
2609         * modules/getcwd (Depends-on): Likewise.
2610         * modules/isapipe (Depends-on): Likewise.
2611         * modules/linkat (Depends-on): Likewise.
2612         * modules/lseek (Depends-on): Likewise.
2613         * modules/mkdir-p (Depends-on): Likewise.
2614         * modules/open (Depends-on): Likewise.
2615         * modules/openat (Depends-on): Likewise.
2616         * modules/read-file (Depends-on): Likewise.
2617         * modules/renameat (Depends-on): Likewise.
2618         * modules/utimens (Depends-on): Likewise.
2619
2620 2011-09-25  Bruno Haible  <bruno@clisp.org>
2621
2622         linkat: Fix compilation on MSVC 9.
2623         * lib/linkat.c: Don't include <stdint.h>.
2624
2625 2011-09-25  Bruno Haible  <bruno@clisp.org>
2626
2627         fclose: Support for MSVC 9.
2628         * lib/fclose.c: Include msvc-inval.h.
2629         (fclose_nothrow): New function.
2630         (rpl_fclose): Use it.
2631         * modules/fclose (Depends-on): Add msvc-inval.
2632         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2633
2634 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2635
2636         dup2: minor simplifications
2637         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2638         that it's a performance win.
2639         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2640         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2641
2642 2011-09-24  Jim Meyering  <meyering@redhat.com>
2643
2644         test-futimens: avoid a warning from gcc -Wshadow
2645         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2646         to avoid a shadowing warning.
2647
2648 2011-09-24  Bruno Haible  <bruno@clisp.org>
2649
2650         fdopen: Support for MSVC 9.
2651         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2652         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2653         * lib/fdopen.c: Include msvc-inval.h.
2654         (fdopen_nothrow): New function.
2655         (rpl_fdopen): Use it.
2656         * modules/fdopen (Depends-on): Add msvc-inval.
2657         * modules/fclose-tests (Depends-on): Add fdopen.
2658         * modules/fflush-tests (Depends-on): Likewise.
2659         * modules/fgetc-tests (Depends-on): Likewise.
2660         * modules/fputc-tests (Depends-on): Likewise.
2661         * modules/fread-tests (Depends-on): Likewise.
2662         * modules/freopen-tests (Depends-on): Likewise.
2663         * modules/fseeko-tests (Depends-on): Likewise.
2664         * modules/ftello-tests (Depends-on): Likewise.
2665         * modules/fwrite-tests  (Depends-on): Likewise.
2666         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2667
2668 2011-09-24  Bruno Haible  <bruno@clisp.org>
2669
2670         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2671         * modules/fgetc-tests (Depends-on): Add unistd.
2672         * modules/fputc-tests (Depends-on): Likewise.
2673         * modules/fread-tests (Depends-on): Likewise.
2674         * modules/fwrite-tests (Depends-on): Likewise.
2675
2676 2011-09-24  Bruno Haible  <bruno@clisp.org>
2677
2678         dup: Simplify autoconf test.
2679         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2680         on gl_MSVC_INVAL's result.
2681
2682 2011-09-24  Bruno Haible  <bruno@clisp.org>
2683
2684         Tests for function fwrite().
2685         * modules/fwrite-tests: New file.
2686         * tests/test-fwrite.c: New file.
2687         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2688
2689         Tests for function fread().
2690         * modules/fread-tests: New file.
2691         * tests/test-fread.c: New file.
2692         * modules/stdio-tests (Depends-on): Add fread-tests.
2693
2694         Activate fputc tests.
2695         * modules/stdio-tests (Depends-on): Add fputc-tests.
2696
2697         Enhance fgetc, fputc tests.
2698         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2699         * tests/test-fputc.c (main): Likewise.
2700
2701 2011-09-24  Bruno Haible  <bruno@clisp.org>
2702
2703         write: Support for MSVC 9.
2704         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2705         is not 1.
2706         * lib/write.c (write_nothrow): New function.
2707         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2708         not 1. Use write_nothrow.
2709         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2710         invalid parameter handler.
2711         (gl_PREREQ_WRITE): New macro.
2712         * modules/write (Depends-on): Add msvc-inval.
2713         (configure.ac): Invoke gl_PREREQ_WRITE.
2714         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2715
2716 2011-09-24  Bruno Haible  <bruno@clisp.org>
2717
2718         read: Fix last commit.
2719         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2720
2721 2011-09-24  Bruno Haible  <bruno@clisp.org>
2722
2723         dup2: Fix last commit.
2724         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2725         (rpl_dup2): Disable fcntl workaround on native Windows.
2726
2727         sigprocmask: Make code safer.
2728         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2729         section that changes macro definitions for this compilation unit.
2730
2731 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2732
2733         dup2: clarify by coalescing Windows-specific material
2734         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2735         "msvc-nothrow.h"' to the Windows-specific section, so that the
2736         Emacs source need not contain these include files.
2737         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2738         Windows-specific fixes into this function rather than just the
2739         nothrow fix, as this shortens and clarifies the code.  Always
2740         define as a function, as that's a bit cleaner than having it be
2741         sometimes a function and sometimes a macro.
2742         (rpl_dup2): Move the Windows-specific stuff out of here and into
2743         ms_windows_dup2.  Don't protect the Haiku-related fix with
2744         "#if !defined __linux__", as the same code also works around
2745         a Linux kernel bug, and it doesn't add any system calls on any
2746         platform.  Add comment about FreeBSD 6.1.
2747
2748         sigprocmask: move #include directive
2749         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2750         Windows-specific section, so that the Emacs source need not
2751         contain msvc-inval.h.
2752
2753 2011-09-23  Bruno Haible  <bruno@clisp.org>
2754
2755         read: Support for MSVC 9.
2756         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2757         is not 1.
2758         * lib/read.c (read_nothrow): New function.
2759         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2760         read_nothrow.
2761         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2762         invalid parameter handler.
2763         (gl_PREREQ_READ): New macro.
2764         * modules/read (Depends-on): Add msvc-inval.
2765         (configure.ac): Invoke gl_PREREQ_READ.
2766         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2767
2768 2011-09-23  Bruno Haible  <bruno@clisp.org>
2769
2770         close: Support for MSVC 9.
2771         * lib/close.c: Include <errno.h>, msvc-inval.h.
2772         (close_nothrow): New function.
2773         (rpl_close): Use it.
2774         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2775         invalid parameter handler.
2776         * modules/close (Depends-on): Add msvc-inval.
2777         * modules/dup2-tests (Depends-on): Add close.
2778         * modules/dup3-tests (Depends-on): Likewise.
2779         * modules/fcntl-tests (Depends-on): Likewise.
2780         * modules/spawn-pipe-tests (Depends-on): Likewise.
2781         * modules/unistd-safer-tests (Depends-on): Likewise.
2782         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2783
2784 2011-09-23  Bruno Haible  <bruno@clisp.org>
2785
2786         New module 'dup'.
2787         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2788         Allow replacement.
2789         * lib/dup.c: New file.
2790         * lib/fchdir.c (rpl_dup): Remove function.
2791         * m4/dup.m4: New file.
2792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2793         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2794         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2795         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2796         * modules/dup: New file.
2797         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2798         'dup' module is in use.
2799         * modules/fdopendir (Depends-on): Add dup.
2800         * modules/fdutimensat-tests (Depends-on): Likewise.
2801         * modules/fts (Depends-on): Likewise.
2802         * modules/futimens-tests (Depends-on): Likewise.
2803         * modules/posix_spawnp-tests (Depends-on): Likewise.
2804         * modules/unistd-safer-tests (Depends-on): Likewise.
2805         * modules/utimens-tests (Depends-on): Likewise.
2806         * doc/posix-functions/dup.texi: Mention the new module and the problem
2807         on MSVC.
2808
2809 2011-09-23  Bruno Haible  <bruno@clisp.org>
2810
2811         getdtablesize: Support for MSVC 9.
2812         * lib/getdtablesize.c: Include msvc-inval.h.
2813         (_setmaxstdio_nothrow): New function.
2814         (_setmaxstdio): Redefine it.
2815         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2816         * modules/getdtablesize (Depends-on): Add msvc-inval.
2817         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2818
2819 2011-09-23  Bruno Haible  <bruno@clisp.org>
2820
2821         signal-h: Rename from signal.
2822         * modules/signal-h: Renamed from modules/signal.
2823         * modules/pthread_sigmask (Depends-on): Update.
2824         * modules/raise (Depends-on): Likewise.
2825         * modules/sigaction (Depends-on): Likewise.
2826         * modules/sigpipe (Depends-on): Likewise.
2827         * modules/sigprocmask (Depends-on): Likewise.
2828         * modules/sys_select (Depends-on): Likewise.
2829         * modules/signal-h-tests: Renamed from modules/signal-tests.
2830         (Files, Depends-on, Makefile.am): Update.
2831         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2832         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2833         (Files, Makefile.am): Update.
2834         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2835         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2836         * modules/signal: New placeholder file.
2837         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2838         * doc/posix-headers/signal.texi: Update.
2839         * NEWS: Mention the change.
2840
2841 2011-09-23  Bruno Haible  <bruno@clisp.org>
2842
2843         sigprocmask: Avoid crashes through signal() on MSVC 9.
2844         * lib/sigprocmask.c: Include msvc-inval.h.
2845         (signal_nothrow): New function.
2846         (signal): Redefine it.
2847         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2848         * modules/sigprocmask (Depends-on): Add msvc-inval.
2849         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2850
2851 2011-09-23  Bruno Haible  <bruno@clisp.org>
2852
2853         Tests for module 'raise'.
2854         * modules/raise-tests: New file.
2855         * tests/test-raise.c: New file.
2856
2857         raise: Support for MSVC.
2858         * lib/signal.in.h (raise): New declaration.
2859         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2860         for native Windows platforms.
2861         * m4/raise.m4: New file.
2862         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2863         HAVE_RAISE, REPLACE_RAISE.
2864         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2865         REPLACE_RAISE.
2866         * modules/raise (Status, Notice): Remove fields.
2867         (Files): Add m4/raise.m4.
2868         (Depends-on): Add signal, msvc-inval.
2869         (configure.ac): Use the common idioms.
2870         (Maintainer): Add me.
2871         * tests/test-signal-c++.cc: Check the signature of raise.
2872         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2873
2874 2011-09-23  Bruno Haible  <bruno@clisp.org>
2875
2876         pipe2: Fix compilation on pre-C99 compilers.
2877         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2878
2879 2011-09-23  Bruno Haible  <bruno@clisp.org>
2880
2881         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2882         * lib/msvc-nothrow.h: New file.
2883         * lib/msvc-nothrow.c: New file.
2884         * m4/msvc-nothrow.m4: New file.
2885         * modules/msvc-nothrow: New file.
2886         * lib/dup2.c: Include msvc-nothrow.h.
2887         (rpl_dup2): No need to protect _get_osfhandle call here.
2888         * lib/accept4.c: Include msvc-nothrow.h.
2889         * lib/error.c: Likewise.
2890         * lib/fcntl.c: Likewise.
2891         * lib/lseek.c: Likewise.
2892         * lib/nonblocking.c: Likewise.
2893         * lib/poll.c: Likewise.
2894         * lib/read.c: Likewise.
2895         * lib/select.c: Likewise.
2896         * lib/sockets.h: Likewise.
2897         * lib/sockets.c: Likewise.
2898         * lib/stdio-read.c: Likewise.
2899         * lib/stdio-write.c: Likewise.
2900         * lib/write.c: Likewise.
2901         * lib/w32sock.h: Likewise.
2902         * lib/w32spawn.h: Likewise.
2903         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2904         * lib/fsync.c: Likewise.
2905         * lib/isapipe.c: Likewise.
2906         * modules/dup2 (Depends-on): Add msvc-nothrow.
2907         * modules/accept4 (Depends-on): Likewise.
2908         * modules/error (Depends-on): Likewise.
2909         * modules/fcntl (Depends-on): Likewise.
2910         * modules/lseek (Depends-on): Likewise.
2911         * modules/nonblocking (Depends-on): Likewise.
2912         * modules/poll (Depends-on): Likewise.
2913         * modules/read (Depends-on): Likewise.
2914         * modules/select (Depends-on): Likewise.
2915         * modules/sockets (Depends-on): Likewise.
2916         * modules/sigpipe (Depends-on): Likewise.
2917         * modules/write (Depends-on): Likewise.
2918         * modules/accept (Depends-on): Likewise.
2919         * modules/bind (Depends-on): Likewise.
2920         * modules/connect (Depends-on): Likewise.
2921         * modules/gethostname (Depends-on): Likewise.
2922         * modules/getpeername (Depends-on): Likewise.
2923         * modules/getsockname (Depends-on): Likewise.
2924         * modules/getsockopt (Depends-on): Likewise.
2925         * modules/ioctl (Depends-on): Likewise.
2926         * modules/listen (Depends-on): Likewise.
2927         * modules/recv (Depends-on): Likewise.
2928         * modules/recvfrom (Depends-on): Likewise.
2929         * modules/send (Depends-on): Likewise.
2930         * modules/sendto (Depends-on): Likewise.
2931         * modules/setsockopt (Depends-on): Likewise.
2932         * modules/shutdown (Depends-on): Likewise.
2933         * modules/socket (Depends-on): Likewise.
2934         * modules/execute (Depends-on): Likewise.
2935         * modules/spawn-pipe (Depends-on): Likewise.
2936         * modules/flock (Depends-on): Likewise.
2937         * modules/fsync (Depends-on): Likewise.
2938         * modules/isapipe (Depends-on): Likewise.
2939         * tests/test-cloexec.c: Include msvc-nothrow.h.
2940         * tests/test-dup-safer.c: Likewise.
2941         * tests/test-dup2.c: Likewise.
2942         * tests/test-dup3.c: Likewise.
2943         * tests/test-fcntl.c: Likewise.
2944         * tests/test-pipe.c: Likewise.
2945         * tests/test-pipe2.c: Likewise.
2946         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2947         * modules/unistd-safer-tests (Depends-on): Likewise.
2948         * modules/dup2-tests (Depends-on): Likewise.
2949         * modules/dup3-tests (Depends-on): Likewise.
2950         * modules/fcntl-tests (Depends-on): Likewise.
2951         * modules/pipe-posix-tests (Depends-on): Likewise.
2952         * modules/pipe2-tests (Depends-on): Likewise.
2953
2954 2011-09-23  Bruno Haible  <bruno@clisp.org>
2955
2956         dup2: Make code more maintainable.
2957         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2958         (rpl_dup2): Use it.
2959         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2960         * modules/dup2 (configure.ac): Invoke it.
2961         Reported by Paul Eggert.
2962
2963 2011-09-23  Bruno Haible  <bruno@clisp.org>
2964
2965         msvc-inval: Fix compilation error.
2966         * lib/msvc-inval.h: Include <excpt.h>.
2967
2968 2011-09-23  Bruno Haible  <bruno@clisp.org>
2969
2970         mkdir: Tweak for MSVC 9.
2971         * lib/sys_stat.in.h: Update comments.
2972         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2973
2974         Tests for module 'chdir'.
2975         * modules/chdir-tests: New file.
2976         * tests/test-chdir.c: New file.
2977
2978         New module 'chdir'.
2979         * modules/chdir: New file.
2980         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2981         (chdir): New declaration.
2982         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2983         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2984         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2985         * tests/test-unistd-c++.cc: Check signature of chdir.
2986         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2987         * modules/chdir-long (Depends-on): Add chdir.
2988         * modules/fchdir (Depends-on): Likewise.
2989         * modules/rename (Depends-on): Likewise.
2990         * modules/savewd (Depends-on): Likewise.
2991
2992         rmdir: Support for mingw, MSVC 9.
2993         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2994         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2995
2996         getcwd: Tweak for MSVC 9.
2997         * lib/unistd.in.h: Update comments.
2998         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2999
3000 2011-09-22  Bruno Haible  <bruno@clisp.org>
3001
3002         strerror_r-posix: Avoid a link error on MSVC.
3003         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3004         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3005
3006 2011-09-22  Bruno Haible  <bruno@clisp.org>
3007
3008         select: Avoid link errors on MSVC.
3009         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3010         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3011         * modules/pselect (Link): Likewise.
3012         * NEWS: Mention the change.
3013         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3014         test-select-stdin against $(LIB_SELECT).
3015         * modules/pselect-tests (Makefile.am): Link test-pselect against
3016         $(LIB_SELECT).
3017
3018 2011-09-22  Bruno Haible  <bruno@clisp.org>
3019
3020         select: Avoid compilation error on MSVC.
3021         * lib/select.c: Don't include <stdbool.h>.
3022
3023 2011-09-21  Bruno Haible  <bruno@clisp.org>
3024
3025         Consolidate all uses of PATH_MAX in *.m4 files.
3026         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3027         macros.
3028         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3029         and gl_PATHMAX_SNIPPET.
3030         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3032         * modules/chdir-long (Files): Add m4/pathmax.m4.
3033         * modules/getcwd (Files): Likewise.
3034
3035 2011-09-21  Bruno Haible  <bruno@clisp.org>
3036
3037         ftruncate: Un-deprecate, concentrate on Win32 support.
3038         * modules/ftruncate (Status, Notice): Remove sections.
3039         (Depends-on): Add largefile.
3040         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3041         non-mingw platforms.
3042         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3043         include <io.h>.
3044         * modules/perror-tests (Depends-on): Add ftruncate.
3045         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3046         'ftruncate' module.
3047
3048 2011-09-21  Bruno Haible  <bruno@clisp.org>
3049
3050         Add dependencies to new dirent related modules.
3051         * modules/opendir (Depends-on): Add closedir.
3052         * modules/getcwd (Depends-on): Add opendir, closedir.
3053         * modules/dirent-safer-tests (Depends-on): Likewise.
3054         * modules/fdopendir-tests (Depends-on): Likewise.
3055         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3056         * modules/renameat-tests (Depends-on): Likewise.
3057
3058 2011-09-21  Bruno Haible  <bruno@clisp.org>
3059
3060         opendir: Avoid compilation error on mingw.
3061         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3062         * modules/opendir (Depends-on): Add unistd.
3063
3064 2011-09-21  Bruno Haible  <bruno@clisp.org>
3065
3066         ftruncate tests: Avoid a test failure on mingw.
3067         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3068
3069 2011-09-21  Bruno Haible  <bruno@clisp.org>
3070
3071         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3072         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3073         native Windows.
3074
3075 2011-09-21  Bruno Haible  <bruno@clisp.org>
3076
3077         New module 'fdopen'.
3078         * lib/stdio.in.h (fdopen): New declaration.
3079         * lib/fdopen.c: New file.
3080         * m4/fdopen.m4: New file.
3081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3082         REPLACE_FDOPEN.
3083         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3084         REPLACE_FDOPEN.
3085         * modules/fdopen: New file.
3086         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3087         * tests/test-stdio-c++.cc: Check signature of fdopen.
3088         * doc/posix-functions/fdopen.texi: Mention the new module.
3089
3090 2011-09-21  Bruno Haible  <bruno@clisp.org>
3091
3092         unlockpt tests: Avoid test failure on NetBSD 5.1.
3093         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3094         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3095
3096 2011-09-21  Bruno Haible  <bruno@clisp.org>
3097
3098         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3099         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3100         * tests/test-getlogin_r.c (main): Likewise.
3101
3102 2011-09-20  Bruno Haible  <bruno@clisp.org>
3103
3104         time tests: Don't require pid_t.
3105         * doc/posix-headers/time.texi: Revert last change.
3106         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3107         * tests/test-time.c: Comment out the check for pid_t.
3108
3109 2011-09-20  Bruno Haible  <bruno@clisp.org>
3110
3111         fsync tests: Avoid a test failure on mingw.
3112         * tests/test-fsync.c (main): Allow a failure with EIO.
3113
3114 2011-09-20  Bruno Haible  <bruno@clisp.org>
3115
3116         euidaccess: Update comments.
3117         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3118
3119 2011-09-20  Bruno Haible  <bruno@clisp.org>
3120
3121         Ensure EBADF returns for socket functions on mingw.
3122         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3123         descriptor is invalid.
3124         * lib/bind.c (rpl_bind): Likewise.
3125         * lib/connect.c (rpl_connect): Likewise.
3126         * lib/getpeername.c (rpl_getpeername): Likewise.
3127         * lib/getsockname.c (rpl_getsockname): Likewise.
3128         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3129         * lib/listen.c (rpl_listen): Likewise.
3130         * lib/recv.c (rpl_recv): Likewise.
3131         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3132         * lib/send.c (rpl_send): Likewise.
3133         * lib/sendto.c (rpl_sendto): Likewise.
3134         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3135         * lib/shutdown.c (rpl_shutdown): Likewise.
3136
3137 2011-09-20  Bruno Haible  <bruno@clisp.org>
3138
3139         select tests: EBADF tests.
3140         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3141         test_bad_fd): New functions.
3142         (test_function): Invoke also test_bad_fd.
3143
3144 2011-09-20  Bruno Haible  <bruno@clisp.org>
3145
3146         Tests for module 'posix_spawn_file_actions_addopen.
3147         * modules/posix_spawn_file_actions_addopen-tests: New file.
3148         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3149
3150         Tests for module 'posix_spawn_file_actions_adddup2'.
3151         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3152         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3153
3154         Tests for module 'posix_spawn_file_actions_addclose'.
3155         * modules/posix_spawn_file_actions_addclose-tests: New file.
3156         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3157
3158 2011-09-20  Bruno Haible  <bruno@clisp.org>
3159
3160         Tests for module 'unlockpt'.
3161         * modules/unlockpt-tests: New file.
3162         * tests/test-unlockpt.c: New file.
3163         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3164
3165         Tests for module 'grantpt'.
3166         * modules/grantpt-tests: New file.
3167         * tests/test-grantpt.c: New file.
3168         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3169
3170 2011-09-20  Bruno Haible  <bruno@clisp.org>
3171
3172         freopen tests: EBADF tests.
3173         * tests/test-freopen.c: Include errno.h, unistd.h.
3174         (main): Add tests for EBADF, commented out for the moment.
3175
3176         fclose tests: EBADF tests.
3177         * tests/test-fclose.c (main): Add tests for EBADF.
3178
3179         fflush tests: EBADF tests.
3180         * tests/test-fflush.c: Include errno.h, macros.h.
3181         (main): Add tests for EBADF.
3182
3183         ftello tests: EBADF tests.
3184         * tests/test-ftello4.sh: New file.
3185         * tests/test-ftello4.c: New file.
3186         * modules/ftello-tests (Files): Add them.
3187         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3188
3189         fseeko tests: EBADF tests.
3190         * tests/test-fseeko4.sh: New file.
3191         * tests/test-fseeko4.c: New file.
3192         * modules/fseeko-tests (Files): Add them.
3193         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3194
3195         Tests for function fputc().
3196         * modules/fputc-tests: New file.
3197         * tests/test-fputc.c: New file.
3198         * modules/stdio-tests (Depends-on): Add fputc-tests.
3199
3200         Tests for function fgetc().
3201         * modules/fgetc-tests: New file.
3202         * tests/test-fgetc.c: New file.
3203         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3204
3205         Tests for function fdopen().
3206         * modules/fdopen-tests: New file.
3207         * tests/test-fdopen.c: New file.
3208         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3209
3210         Tests for module 'vdprintf'.
3211         * modules/vdprintf-tests: New file.
3212         * tests/test-vdprintf.c: New file.
3213
3214         Tests for module 'dprintf'.
3215         * modules/dprintf-tests: New file.
3216         * tests/test-dprintf.c: New file.
3217
3218 2011-09-20  Bruno Haible  <bruno@clisp.org>
3219
3220         Tests for module 'ioctl'.
3221         * modules/ioctl-tests: New file.
3222         * tests/test-ioctl.c: New file.
3223
3224 2011-09-20  Bruno Haible  <bruno@clisp.org>
3225
3226         fcntl tests: EBADF tests.
3227         * tests/test-fcntl.c (main): Add more tests for EBADF.
3228
3229 2011-09-20  Bruno Haible  <bruno@clisp.org>
3230
3231         utimensat tests: EBADF tests.
3232         * tests/test-utimensat.c (main): Add tests for EBADF.
3233
3234         renameat tests: EBADF tests.
3235         * tests/test-renameat.c (main): Add tests for EBADF.
3236
3237         mkfifoat tests: EBADF tests.
3238         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3239
3240         readlinkat tests: EBADF tests.
3241         * tests/test-readlinkat.c (main): Add tests for EBADF.
3242
3243         symlinkat tests: EBADF tests.
3244         * tests/test-symlinkat.c (main): Add tests for EBADF.
3245
3246         linkat tests: EBADF tests.
3247         * tests/test-linkat.c (main): Add tests for EBADF.
3248
3249         Tests for module 'faccessat'.
3250         * modules/faccessat-tests: New file.
3251         * tests/test-faccessat.c: New file.
3252
3253         fdopendir tests: EBADF tests.
3254         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3255
3256         openat tests: EBADF tests.
3257         * tests/test-fchownat.c (main): Add tests for EBADF.
3258         * tests/test-fstatat.c (main): Likewise.
3259         * tests/test-mkdirat.c (main): Likewise.
3260         * tests/test-openat.c (main): Likewise.
3261         * tests/test-unlinkat.c (main): Likewise.
3262         * tests/test-fchmodat.c: New file.
3263         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3264         (Makefile.am): Also run 'test-fchmodat'.
3265
3266 2011-09-20  Bruno Haible  <bruno@clisp.org>
3267
3268         utimens, futimens, fdutimensat tests: EBADF tests.
3269         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3270
3271         Tests for function fstat().
3272         * modules/fstat-tests: New file.
3273         * tests/test-fstat.c: New file.
3274         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3275
3276 2011-09-20  Bruno Haible  <bruno@clisp.org>
3277
3278         test-ttyname_r tests: EBADF tests.
3279         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3280
3281         Tests for module 'isatty'.
3282         * modules/isatty-tests: New file.
3283         * tests/test-isatty.c: New file.
3284
3285         Tests for module 'write'.
3286         * modules/write-tests: New file.
3287         * tests/test-write.c: New file.
3288
3289         Tests for module 'read'.
3290         * modules/read-tests: New file.
3291         * tests/test-read.c: New file.
3292
3293         pwrite tests: EBADF tests.
3294         * tests/test-pwrite.c (main): Add tests for EBADF.
3295
3296         pread tests: EBADF tests.
3297         * tests/test-pread.c (main): Add tests for EBADF.
3298
3299         lseek tests: EBADF tests.
3300         * tests/test-lseek.c (main): Add more tests for EBADF.
3301
3302         Tests for module 'ftruncate'.
3303         * modules/ftruncate-tests: New file.
3304         * tests/test-ftruncate.sh: New file.
3305         * tests/test-ftruncate.c: New file.
3306
3307         fsync tests: EBADF tests.
3308         * tests/test-fsync.c (main): Add more tests for EBADF.
3309
3310         fdatasync tests: EBADF tests.
3311         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3312
3313         Tests for module 'fchown'.
3314         * modules/fchown-tests: New file.
3315         * tests/test-fchown.c: New file.
3316
3317         Tests for module 'fchmod'.
3318         * modules/fchmod-tests: New file.
3319         * tests/test-fchmod.c: New file.
3320
3321         fchdir tests: EBADF tests.
3322         * tests/test-fchdir.c (main): Add more tests for EBADF.
3323
3324         dup2 tests: EBADF tests.
3325         * tests/test-dup2.c (main): Add more tests for EBADF.
3326
3327         Tests for module 'dup'.
3328         * modules/dup-tests: New file.
3329         * tests/test-dup.c: New file.
3330
3331         Tests for module 'close'.
3332         * modules/close-tests: New file.
3333         * tests/test-close.c: New file.
3334
3335 2011-09-20  Bruno Haible  <bruno@clisp.org>
3336
3337         Tests for module 'shutdown'.
3338         * modules/shutdown-tests: New file.
3339         * tests/test-shutdown.c: New file.
3340
3341         Tests for module 'setsockopt'.
3342         * modules/setsockopt-tests: New file.
3343         * tests/test-setsockopt.c: New file.
3344
3345         Tests for module 'sendto'.
3346         * modules/sendto-tests: New file.
3347         * tests/test-sendto.c: New file.
3348
3349         Tests for module 'send'.
3350         * modules/send-tests: New file.
3351         * tests/test-send.c: New file.
3352
3353         Tests for module 'recvfrom'.
3354         * modules/recvfrom-tests: New file.
3355         * tests/test-recvfrom.c: New file.
3356
3357         Tests for module 'recv'.
3358         * modules/recv-tests: New file.
3359         * tests/test-recv.c: New file.
3360
3361         Tests for module 'listen'.
3362         * modules/listen-tests: New file.
3363         * tests/test-listen.c: New file.
3364
3365         Tests for module 'getsockopt'.
3366         * modules/getsockopt-tests: New file.
3367         * tests/test-getsockopt.c: New file.
3368
3369         Tests for module 'getsockname'.
3370         * modules/getsockname-tests: New file.
3371         * tests/test-getsockname.c: New file.
3372
3373         Tests for module 'getpeername'.
3374         * modules/getpeername-tests: New file.
3375         * tests/test-getpeername.c: New file.
3376
3377         Tests for module 'connect'.
3378         * modules/connect-tests: New file.
3379         * tests/test-connect.c: New file.
3380
3381         Tests for module 'bind'.
3382         * modules/bind-tests: New file.
3383         * tests/test-bind.c: New file.
3384
3385         accept4 tests: Fix for native Windows.
3386         * tests/test-accept4.c: Include sockets.h.
3387         (main): Invoke gl_sockets_startup.
3388         * modules/accept4-tests (Depends-on): Add sockets.
3389
3390         accept tests: Fix for native Windows.
3391         * tests/test-accept.c: Include sockets.h.
3392         (main): Invoke gl_sockets_startup.
3393         * modules/accept-tests (Depends-on): Add sockets.
3394
3395 2011-09-19  Bruno Haible  <bruno@clisp.org>
3396
3397         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3398         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3399         do...while(0).
3400         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3401         Suggested by Paul Eggert.
3402
3403 2011-09-19  Bruno Haible  <bruno@clisp.org>
3404
3405         sched: Ensure pid_t is defined.
3406         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3407         not define pid_t.
3408         * lib/sched.in.h: Include <sys/types.h>.
3409         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3411
3412 2011-09-19  Bruno Haible  <bruno@clisp.org>
3413
3414         msvc-inval: Ensure the entire expansion is a single statement.
3415         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3416         of braces.
3417
3418 2011-09-19  Jim Meyering  <meyering@redhat.com>
3419
3420         tests: use printf, not echo in init.sh's warn_ function
3421         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3422         misbehave when given strings containing a backslash or starting
3423         with e.g., -n.  James Youngman suggested setting IFS.
3424
3425 2011-09-19  Eric Blake  <eblake@redhat.com>
3426
3427         futimens: enhance test
3428         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3429         closed non-negative fd.
3430
3431         date: accept 'hence' as opposite of 'ago'
3432         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3433         * tests/test-parse-datetime.c (main): Enhance test.
3434         Suggested by Jesse Wilson.
3435
3436 2011-09-19  Jim Meyering  <meyering@redhat.com>
3437
3438         getcwd: don't fail in a deep directory on a system without openat
3439         Before this change, getcwd would fail when called from a directory
3440         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3441         the non-openat implementation used "..", "../..", "../../..", etc.
3442         to access ancestor directories.  With too many, that string would
3443         be longer than PATH_MAX.
3444         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3445         using gnulib's openat replacement.
3446         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3447         we're using the replacement function.
3448
3449 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3450
3451         maint.mk: avoid warnings from perl about missing files
3452         * top/maint.mk (def_sym_regex): Ignore files listed in
3453         $(gl_other_headers_) that do not exist, say because a project
3454         does not use a corresponding module.
3455
3456 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3457
3458         stat: use pathmax.h only if needed
3459         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3460         This is better for Emacs, which does not have a mingw port and
3461         therefore can avoid the pathmax module.
3462
3463         utimens: remove dependency on dup2
3464         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3465         to work around the Linux kernel bug.
3466         * modules/utimens (Depends-on): Remove dup2.
3467
3468 2011-09-18  Bruno Haible  <bruno@clisp.org>
3469
3470         inet_ntop, inet_pton: Look for it also in libresolv.
3471         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3472         libnsl, search for it in libresolv.
3473         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3474         Needed on Solaris 7.
3475
3476 2011-09-18  Bruno Haible  <bruno@clisp.org>
3477
3478         accept, accept4 tests: Avoid link error on Solaris.
3479         * modules/accept-tests (Makefile.am): Link test-accept against
3480         $(LIBSOCKET).
3481         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3482         $(LIBSOCKET).
3483
3484         accept4: Avoid link error on Solaris.
3485         * modules/accept4 (Link): New section.
3486
3487         socket functions: Avoid link errors on Solaris.
3488         * modules/accept (Depends-on): Add socketlib.
3489         (Link): New section.
3490         * modules/bind (Depends-on): Add socketlib.
3491         (Link): New section.
3492         * modules/connect (Depends-on): Add socketlib.
3493         (Link): New section.
3494         * modules/getpeername (Depends-on): Add socketlib.
3495         (Link): New section.
3496         * modules/getsockname (Depends-on): Add socketlib.
3497         (Link): New section.
3498         * modules/getsockopt (Depends-on): Add socketlib.
3499         (Link): New section.
3500         * modules/listen (Depends-on): Add socketlib.
3501         (Link): New section.
3502         * modules/recv (Depends-on): Add socketlib.
3503         (Link): New section.
3504         * modules/recvfrom (Depends-on): Add socketlib.
3505         (Link): New section.
3506         * modules/send (Depends-on): Add socketlib.
3507         (Link): New section.
3508         * modules/sendto (Depends-on): Add socketlib.
3509         (Link): New section.
3510         * modules/setsockopt (Depends-on): Add socketlib.
3511         (Link): New section.
3512         * modules/shutdown (Depends-on): Add socketlib.
3513         (Link): New section.
3514         * modules/socket (Depends-on): Add socketlib.
3515         (Link): New section.
3516
3517 2011-09-18  Bruno Haible  <bruno@clisp.org>
3518
3519         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3520         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3521         than 5 seconds.
3522         * modules/ptsname-tests (configure.ac): Test for alarm.
3523
3524 2011-09-18  Bruno Haible  <bruno@clisp.org>
3525
3526         posix_spawn_file_actions_add*: Fix module dependencies.
3527         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3528         posix_spawn_file_actions_init.
3529         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3530         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3531
3532 2011-09-18  Bruno Haible  <bruno@clisp.org>
3533
3534         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3535         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3536         * tests/test-renameat.c (main): Likewise.
3537
3538 2011-09-18  Bruno Haible  <bruno@clisp.org>
3539
3540         Tests for module 'accept4'.
3541         * modules/accept4-tests: New file.
3542         * tests/test-accept4.c: New file.
3543
3544 2011-09-18  Bruno Haible  <bruno@clisp.org>
3545
3546         Tests for module 'accept'.
3547         * modules/accept-tests: New file.
3548         * tests/test-accept.c: New file.
3549
3550 2011-09-18  Bruno Haible  <bruno@clisp.org>
3551
3552         dup2: Support for MSVC.
3553         * lib/dup2.c: Include msvc-inval.h.
3554         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3555         _get_osfhandle calls.
3556         * modules/dup2 (Depends-on): Add msvc-inval.
3557         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3558
3559         New module 'msvc-inval'.
3560         * lib/msvc-inval.h: New file.
3561         * lib/msvc-inval.c: New file.
3562         * m4/msvc-inval.m4: New file.
3563         * modules/msvc-inval: New file.
3564
3565 2011-09-17  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'pclose'.
3568         * modules/pclose-tests: New file.
3569
3570         New module 'pclose'.
3571         * lib/stdio.in.h (pclose): New declaration.
3572         * lib/pclose.c: New file.
3573         * m4/pclose.m4: New file.
3574         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3575         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3576         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3577         * modules/pclose: New file.
3578         * modules/popen-tests (Depends-on): Add pclose.
3579         * modules/popen-safer-tests (Depends-on): Likewise.
3580         * doc/posix-functions/pclose.texi: Mention the new module.
3581
3582 2011-09-17  Bruno Haible  <bruno@clisp.org>
3583
3584         popen: Support for MSVC.
3585         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3586         * lib/popen.c (popen): Provide alternate definition for native Windows.
3587         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3589         * modules/popen (Depends-on, configure.ac): Update condition.
3590         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3591         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3592         fixed.
3593
3594 2011-09-17  Bruno Haible  <bruno@clisp.org>
3595
3596         isnanl, isnand, isnanf: Work around MSVC bug.
3597         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3598
3599 2011-09-17  Bruno Haible  <bruno@clisp.org>
3600
3601         sys_socket tests: Fix recent mistake.
3602         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3603
3604 2011-09-17  Bruno Haible  <bruno@clisp.org>
3605
3606         putenv: Support for MSVC.
3607         * modules/putenv (Depends-on): Add environ.
3608         * lib/putenv.c (environ): Disable declaration.
3609         * lib/unistd.in.h: Update comment.
3610
3611 2011-09-17  Bruno Haible  <bruno@clisp.org>
3612
3613         math: Avoid macro redefinition warnings on MSVC.
3614         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3615         Undefine before redefining.
3616
3617 2011-09-17  Bruno Haible  <bruno@clisp.org>
3618
3619         doc: Mention functions which are declared as macros.
3620         * doc/posix-functions/*[fl].texi: Mention that some functions are
3621         defined as macros with arguments only.
3622
3623 2011-09-17  Bruno Haible  <bruno@clisp.org>
3624
3625         Add dependencies to new dirent related modules.
3626         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3627         * modules/fts (Depends-on): Likewise.
3628         * modules/glob (Depends-on): Likewise.
3629         * modules/savedir (Depends-on): Likewise.
3630         * modules/scandir (Depends-on): Likewise.
3631         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3632         * modules/fdopendir (Depends-on): Add opendir.
3633
3634 2011-09-17  Bruno Haible  <bruno@clisp.org>
3635
3636         inet_pton: Support for MSVC on Windows Vista or newer.
3637         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3638         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3639         HAVE_DECL_INET_PTON is defined.
3640         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3641         On platforms with <winsock2.h>, test whether inet_pton is declared in
3642         <ws2tcpip.h>. If so, arrange to replace it.
3643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3644         REPLACE_INET_PTON.
3645         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3646         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3647         (Depends-on, configure.ac): Update condition.
3648         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3649
3650 2011-09-17  Bruno Haible  <bruno@clisp.org>
3651
3652         inet_ntop: Support for MSVC on Windows Vista or newer.
3653         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3654         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3655         HAVE_DECL_INET_NTOP is defined.
3656         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3657         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3658         <ws2tcpip.h>. If so, arrange to replace it.
3659         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3660         REPLACE_INET_NTOP.
3661         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3662         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3663         (Depends-on, configure.ac): Update condition.
3664         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3665
3666 2011-09-16  Eric Blake  <eblake@redhat.com>
3667
3668         test-fsync: yet another enhancement
3669         * tests/test-fsync.c (main): Also test behavior on read-only text
3670         file.
3671
3672 2011-09-16  Bruno Haible  <bruno@clisp.org>
3673
3674         Enhance fsync, fdatasync tests.
3675         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3676         * tests/test-fdatasync.c (main): Likewise.
3677
3678 2011-09-16  Bruno Haible  <bruno@clisp.org>
3679
3680         Support for MSVC compiler: Ensure mode_t gets defined.
3681         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3682         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3684         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3685         * tests/test-fcntl-h.c: Check that mode_t is defined.
3686         * tests/test-sys_stat.c: Likewise.
3687         * tests/test-sys_types.c: Likewise.
3688         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3689         * doc/posix-headers/sys_stat.texi: Likewise.
3690         * doc/posix-headers/sys_types.texi: Likewise.
3691
3692 2011-09-16  Bruno Haible  <bruno@clisp.org>
3693
3694         sys_stat: Support for MSVC.
3695         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3696         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3697         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3698         MSVC.
3699
3700 2011-09-16  Bruno Haible  <bruno@clisp.org>
3701
3702         Support for MSVC compiler: Ensure off_t gets defined.
3703         * lib/unistd.in.h: Include <sys/types.h>.
3704         * tests/test-fcntl-h.c: Check that off_t is defined.
3705         * tests/test-sys_stat.c: Likewise.
3706         * tests/test-sys_types.c: Likewise.
3707
3708 2011-09-16  Eric Blake  <eblake@redhat.com>
3709
3710         fdatasync: port to Solaris
3711         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3712         * modules/fdatasync (Link): Document it.
3713         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3714
3715         fdatasync: port to MacOS X 10.7
3716         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3717         declared.
3718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3719         * modules/unistd (Makefile.am): Substitute it.
3720         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3721         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3722
3723         fdatasync: minor improvements
3724         * modules/fdatasync (Depends-on): Add condition for fsync.
3725         * lib/fdatasync.c (fdatasync): Add comment.
3726         * tests/test-unistd-c++.cc: Test fdatasync.
3727
3728         unistd: update refs to newer POSIX
3729         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3730         Suggested by Bruno Haible.
3731
3732         fdatasync: new module
3733         * modules/fsync (Description): Document difference to fdatasync.
3734         * modules/fdatasync: New module.
3735         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3736         * lib/fdatasync.c (fdatasync): Likewise.
3737         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3738         defaults.
3739         * modules/unistd (Makefile.am): Set witnesses.
3740         * lib/unistd.in.h (fdatasync): Declare.
3741         * MODULES.html.sh: Document it.
3742         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3743         * modules/fdatasync-tests: New test.
3744         * tests/test-fdatasync.c: Likewise.
3745
3746 2011-09-16  Eric Blake  <eblake@redhat.com>
3747
3748         test-fsync: enhance tests
3749         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3750         * tests/test-fsync.c (main): Enhance test.
3751
3752 2011-09-15  Bruno Haible  <bruno@clisp.org>
3753
3754         Support for MSVC compiler: Ensure ssize_t gets defined.
3755         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3756         * doc/posix-headers/stdio.texi: Likewise.
3757         * modules/stdio (Depends-on): Add ssize_t.
3758         * modules/sys_socket (Depends-on): Likewise.
3759         * modules/sys_types (Depends-on): Likewise.
3760         * modules/sys_uio (Depends-on): Likewise.
3761         * modules/unistd (Depends-on): Likewise.
3762         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3763         * tests/test-sys_types.c: Check that ssize_t is defined.
3764
3765 2011-09-14  Bruno Haible  <bruno@clisp.org>
3766
3767         Avoid using #, the m4 comment starter character, near brackets.
3768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3769         delimiter character in sed expressions.
3770         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3771         Suggested by Eric Blake.
3772
3773         Properly quote AC_CHECK_DECLS' 4th argument.
3774         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3775         argument.
3776         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3777         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3778         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3779         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3780         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3781         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3782         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3783         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3784         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3785         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3786         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3787         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3788         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3789         * m4/isinf.m4 (gl_ISINF): Likewise.
3790         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3791         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3792         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3793         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3795         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3796         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3797         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3798         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3799         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3800         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3803         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3805         Reported by Eric Blake.
3806
3807         Properly quote AC_CHECK_DECL's 4th argument.
3808         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3809         argument.
3810         * m4/argp.m4 (gl_ARGP): Likewise.
3811         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3812         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3813         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3814         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3816         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3817         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3818         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3819         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3820         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3821         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3822         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3823         Reported by Eric Blake.
3824
3825 2011-09-14  Eric Blake  <eblake@redhat.com>
3826
3827         opendir: avoid compile warning
3828         * lib/opendir.c (includes): Always include errno.h.
3829         Reported by Tatsuro MATSUOKA.
3830
3831 2011-09-14  Jim Meyering  <meyering@redhat.com>
3832
3833         maint.mk: sc_tight_scope: propagate failure from sub-make
3834         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3835         Reported by Martin von Gagern.
3836
3837 2011-09-13  Bruno Haible  <bruno@clisp.org>
3838
3839         tempname: Support for MSVC.
3840         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3841         MSVC.
3842         * modules/tempname (Depends-on): Add fcntl-h.
3843
3844 2011-09-13  Bruno Haible  <bruno@clisp.org>
3845
3846         sys_time: Support for MSVC.
3847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3848         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3849         include <winsock2.h>.
3850         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3851         function declarations that collide with POSIX.
3852         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3853         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3854
3855 2011-09-13  Bruno Haible  <bruno@clisp.org>
3856
3857         stat: Support for MSVC.
3858         * lib/stat.c: Include pathmax.h.
3859         * modules/stat (Depends-on): Add pathmax.
3860
3861         pathmax: Support for native Windows.
3862         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3863
3864 2011-09-12  Bruno Haible  <bruno@clisp.org>
3865
3866         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3867         * lib/dirent.in.h (struct dirent): New type.
3868         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3869         DT_WHT): New macros.
3870         (DIR): New type.
3871         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3872         (readdir, rewinddir): New declarations.
3873         * lib/dirent-private.h: New file.
3874         * lib/opendir.c: New file.
3875         * lib/readdir.c: New file.
3876         * lib/rewinddir.c: New file.
3877         * lib/closedir.c: New file.
3878         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3879         * m4/opendir.m4: New file.
3880         * m4/readdir.m4: New file.
3881         * m4/rewinddir.m4: New file.
3882         * m4/closedir.m4: New file.
3883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3884         REPLACE_CLOSEDIR here.
3885         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3886         readdir, rewinddir are declared.
3887         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3888         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3889         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3890         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3891         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3892         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3893         * modules/opendir: New file.
3894         * modules/readdir: New file.
3895         * modules/rewinddir: New file.
3896         * modules/closedir: New file.
3897         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3898         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3899         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3900         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3901         * NEWS: Mention the 'fchdir' change.
3902
3903 2011-09-11  Bruno Haible  <bruno@clisp.org>
3904
3905         asm-underscore.m4: Support for MSVC.
3906         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3907         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3908
3909 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3910
3911         Doc about crypt functions.
3912         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3913         needing for _GNU_SOURCE to get crypt.
3914         * doc/posix-functions/encrypt.texi: Likewise.
3915         * doc/posix-functions/setkey.texi: Likewise.
3916
3917 2011-09-11  Bruno Haible  <bruno@clisp.org>
3918
3919         doc: Update regarding MSVC 9.
3920         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3921         tested".
3922         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3923         * doc/posix-headers/*.texi: Likewise.
3924         * doc/pastposix-functions/*.texi: Likewise.
3925         * doc/glibc-functions/*.texi: Likewise.
3926         * doc/glibc-headers/*.texi: Likewise.
3927
3928 2011-09-11  Bruno Haible  <bruno@clisp.org>
3929
3930         unistd et al.: Don't assume <unistd.h> exists.
3931         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3932         does not exist.
3933         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3934         exist. But include <stdlib.h>.
3935         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3936         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3937         symlink() does not exist.
3938         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3939         include <io.h> instead.
3940         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3941         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3942         include <direct.h> instead.
3943         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3945         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3946         <io.h> instead.
3947         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3948         correctly if the system does not have hard links.
3949         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3950         <direct.h> instead.
3951         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3952         it when looking for function declarations.
3953         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3954         <direct.h> and <io.h> instead.
3955         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3956
3957 2011-09-11  Bruno Haible  <bruno@clisp.org>
3958
3959         strcase: Support for MSVC.
3960         * modules/strcase (Status, Notice): Remove obsoletion mark.
3961         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3962         * doc/posix-functions/strncasecmp.texi: Likewise.
3963
3964         strings: Don't assume <strings.h> exists.
3965         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3966         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3967         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3968         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3969
3970 2011-09-11  Bruno Haible  <bruno@clisp.org>
3971
3972         dirent: Don't assume <dirent.h> exists.
3973         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3974         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3975         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3976         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3977
3978 2011-09-11  Bruno Haible  <bruno@clisp.org>
3979
3980         Fix wint_t on MSVC.
3981         * lib/wchar.in.h (wint_t): On MSVC, override it.
3982         * lib/wctype.in.h (wint_t): Likewise.
3983         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3984         MSVC.
3985         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3986         * doc/posix-headers/wctype.texi: Likewise.
3987
3988 2011-09-11  Bruno Haible  <bruno@clisp.org>
3989
3990         sys_types: Fix typo.
3991         * lib/sys_types.in.h: Fix typo in comment.
3992         Reported by Paul Eggert.
3993
3994         Support for MSVC compiler: Ensure size_t gets defined.
3995         * modules/strings (Depends-on): Add 'sys_types'.
3996         * modules/sys_uio (Depends-on): Likewise.
3997         * lib/sys_uio.in.h: Update comment.
3998
3999         C++ tests for module 'sys_types'.
4000         * modules/sys_types-c++-tests: New file.
4001         * tests/test-sys_types-c++.cc: New file.
4002
4003         Tests for module 'sys_types'.
4004         * modules/sys_types-tests: New file.
4005         * tests/test-sys_types.c: New file.
4006
4007         New module 'sys_types'.
4008         * lib/sys_types.in.h: New file.
4009         * m4/sys_types_h.m4: New file.
4010         * modules/sys_types: New file.
4011         * doc/posix-headers/sys_types.texi: Mention the new module and the
4012         size_t problem on MSVC 9.
4013
4014 2011-09-11  Bruno Haible  <bruno@clisp.org>
4015
4016         Support for MSVC compiler: Avoid division by a literal 0.
4017         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4019         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4020         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4021         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4022         * tests/infinity.h: New file.
4023         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4024         on MSVC.
4025         * tests/test-ceilf1.c: Include infinity.h.
4026         (main): Use Infinityf.
4027         * tests/test-ceil1.c: Include infinity.h.
4028         (main): Use Infinityd.
4029         * tests/test-ceill.c: Include infinity.h.
4030         (main): Use Infinityl.
4031         * tests/test-dprintf-posix.c: Include infinity.h.
4032         (test_function): Use Infinityd.
4033         * tests/test-floorf1.c: Include infinity.h.
4034         (main): Use Infinityf.
4035         * tests/test-floor1.c: Include infinity.h.
4036         (main): Use Infinityd.
4037         * tests/test-floorl.c: Include infinity.h.
4038         (main): Use Infinityl.
4039         * tests/test-fprintf-posix.c: Include infinity.h.
4040         (test_function): Use Infinityd.
4041         * tests/test-frexp.c: Include infinity.h.
4042         (main): Use Infinityd.
4043         * tests/test-frexpl.c: Include infinity.h.
4044         (main): Use Infinityl.
4045         * tests/test-isfinite.c: Include infinity.h.
4046         (test_isfinitef): Use Infinityf.
4047         (test_isfinited): Use Infinityd.
4048         (test_isfinitel): Use Infinityl.
4049         * tests/test-isinf.c: Include infinity.h.
4050         (test_isinff): Use Infinityf.
4051         (test_isinfd): Use Infinityd.
4052         (test_isinfl): Use Infinityl.
4053         * tests/test-isnan.c: Include infinity.h.
4054         (test_float): Use Infinityf.
4055         (test_double): Use Infinityd.
4056         (test_long_double): Use Infinityl.
4057         * tests/test-isnanf.h: Include infinity.h.
4058         (main): Use Infinityf.
4059         * tests/test-isnand.h: Include infinity.h.
4060         (main): Use Infinityd.
4061         * tests/test-isnanl.h: Include infinity.h.
4062         (main): Use Infinityl.
4063         * tests/test-ldexpl.c: Include infinity.h.
4064         (main): Use Infinityl.
4065         * tests/test-printf-posix.h: Include infinity.h.
4066         (test_function): Use Infinityd.
4067         * tests/test-roundf1.c: Include infinity.h.
4068         (main): Use Infinityf.
4069         * tests/test-round1.c: Include infinity.h.
4070         (main): Use Infinityd.
4071         * tests/test-roundl.c: Include infinity.h.
4072         (main): Use Infinityl.
4073         * tests/test-signbit.c: Include infinity.h.
4074         (test_signbitf): Use Infinityf.
4075         (test_signbitd): Use Infinityd.
4076         (test_signbitl): Use Infinityl.
4077         * tests/test-snprintf-posix.h: Include infinity.h.
4078         (test_function): Use Infinityd, Infinityl.
4079         * tests/test-sprintf-posix.h: Include infinity.h.
4080         (test_function): Use Infinityd, Infinityl.
4081         * tests/test-truncf1.c: Include infinity.h.
4082         (main): Use Infinityf.
4083         * tests/test-trunc1.c: Include infinity.h.
4084         (main): Use Infinityd.
4085         * tests/test-truncl.c: Include infinity.h.
4086         (main): Use Infinityl.
4087         * tests/test-vasnprintf-posix.c: Include infinity.h.
4088         (test_function): Use Infinityd, Infinityl.
4089         * tests/test-vasprintf-posix.c: Include infinity.h.
4090         (test_function): Use Infinityd, Infinityl.
4091         * modules/ceilf-tests (Files): Add tests/infinity.h.
4092         * modules/ceil-tests (Files): Likewise.
4093         * modules/ceill-tests (Files): Likewise.
4094         * modules/dprintf-posix-tests (Files): Likewise.
4095         * modules/floorf-tests (Files): Likewise.
4096         * modules/floor-tests (Files): Likewise.
4097         * modules/floorl-tests (Files): Likewise.
4098         * modules/fprintf-posix-tests (Files): Likewise.
4099         * modules/frexp-tests (Files): Likewise.
4100         * modules/frexp-nolibm-tests (Files): Likewise.
4101         * modules/frexpl-tests (Files): Likewise.
4102         * modules/frexpl-nolibm-tests (Files): Likewise.
4103         * modules/isfinite-tests (Files): Likewise.
4104         * modules/isinf-tests (Files): Likewise.
4105         * modules/isnan-tests (Files): Likewise.
4106         * modules/isnanf-tests (Files): Likewise.
4107         * modules/isnanf-nolibm-tests (Files): Likewise.
4108         * modules/isnand-tests (Files): Likewise.
4109         * modules/isnand-nolibm-tests (Files): Likewise.
4110         * modules/isnanl-tests (Files): Likewise.
4111         * modules/isnanl-nolibm-tests (Files): Likewise.
4112         * modules/ldexpl-tests (Files): Likewise.
4113         * modules/printf-posix-tests (Files): Likewise.
4114         * modules/roundf-tests (Files): Likewise.
4115         * modules/round-tests (Files): Likewise.
4116         * modules/roundl-tests (Files): Likewise.
4117         * modules/signbit-tests (Files): Likewise.
4118         * modules/snprintf-posix-tests (Files): Likewise.
4119         * modules/sprintf-posix-tests (Files): Likewise.
4120         * modules/truncf-tests (Files): Likewise.
4121         * modules/trunc-tests (Files): Likewise.
4122         * modules/truncl-tests (Files): Likewise.
4123         * modules/vasnprintf-posix-tests (Files): Likewise.
4124         * modules/vasprintf-posix-tests (Files): Likewise.
4125         * modules/vdprintf-posix-tests (Files): Likewise.
4126         * modules/vfprintf-posix-tests (Files): Likewise.
4127         * modules/vprintf-posix-tests (Files): Likewise.
4128         * modules/vsnprintf-posix-tests (Files): Likewise.
4129         * modules/vsprintf-posix-tests (Files): Likewise.
4130         * modules/xprintf-posix-tests (Files): Likewise.
4131
4132 2011-09-11  Bruno Haible  <bruno@clisp.org>
4133
4134         Ensure pid_t gets defined.
4135         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4136         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4137         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4138         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4139         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4140         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4141         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4142         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4143         * tests/test-fcntl-h.c: Check that pid_t is defined.
4144         * tests/test-sched.c: Likewise.
4145         * tests/test-termios.c: Likewise.
4146         * tests/test-time.c: Likewise.
4147         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4148         * doc/posix-headers/signal.texi: Likewise.
4149         * doc/posix-headers/sys_types.texi: Likewise.
4150         * doc/posix-headers/time.texi: Likewise.
4151
4152 2011-09-11  Bruno Haible  <bruno@clisp.org>
4153
4154         acl: Fix compilation on Solaris 10 (older version).
4155         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4156         of ACE_EVERYONE.
4157         * lib/set-mode-acl.c (qset_acl): Likewise.
4158         Reported by Christian Jullien <eligis@orange.fr>.
4159
4160 2011-09-10  Bruno Haible  <bruno@clisp.org>
4161
4162         iconv, unsetenv: Add support for MSVC compiler.
4163         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4164         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4165
4166 2011-09-10  Bruno Haible  <bruno@clisp.org>
4167
4168         *printf: Add support for MSVC compiler.
4169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4170         handles the exception caused by the %n directive. When cross-compiling,
4171         guess no on native Windows.
4172         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4173         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4174         emulate it through vsnprintf.
4175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4176         * doc/posix-functions/dprintf.texi: Update documentation regarding
4177         MSVC 9.
4178         * doc/posix-functions/fprintf.texi: Likewise.
4179         * doc/posix-functions/printf.texi: Likewise.
4180         * doc/posix-functions/snprintf.texi: Likewise.
4181         * doc/posix-functions/sprintf.texi: Likewise.
4182         * doc/posix-functions/swprintf.texi: Likewise.
4183         * doc/posix-functions/vdprintf.texi: Likewise.
4184         * doc/posix-functions/vfprintf.texi: Likewise.
4185         * doc/posix-functions/vprintf.texi: Likewise.
4186         * doc/posix-functions/vsnprintf.texi: Likewise.
4187         * doc/posix-functions/vsprintf.texi: Likewise.
4188         * doc/glibc-functions/asprintf.texi: Likewise.
4189         * doc/glibc-functions/obstack_printf.texi: Likewise.
4190         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4191         * doc/glibc-functions/vasprintf.texi: Likewise.
4192
4193 2011-09-10  Bruno Haible  <bruno@clisp.org>
4194
4195         nocrash: Add support for native Windows.
4196         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4197
4198 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4199             Bruno Haible  <bruno@clisp.org>
4200
4201         absolute-header, include-next: Add support for MSVC compiler.
4202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4203         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4204         directory separator in #line directives.
4205         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4206         recognize also backslash as directory separator in #line directives.
4207
4208 2011-09-08  Jim Meyering  <meyering@redhat.com>
4209
4210         maint.mk: mark the post-release commit log with "maint: " prefix
4211         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4212         one-line commit-log summary.
4213
4214 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4215             Bruno Haible  <bruno@clisp.org>
4216
4217         Doc about crypt functions.
4218         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4219         systems.
4220         * doc/posix-functions/encrypt.texi: Likewise.
4221         * doc/posix-functions/setkey.texi: Likewise.
4222
4223 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4224
4225         * lib/gc.h: Fix copyright header.
4226
4227 2011-09-07  Bruno Haible  <bruno@clisp.org>
4228
4229         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4231         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4232
4233 2011-09-07  Bruno Haible  <bruno@clisp.org>
4234
4235         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4236         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4237         * lib/freopen.c: Likewise.
4238         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4239         * lib/lstat.c: Likewise.
4240         * lib/stat.c: Likewise.
4241         * lib/open.c: Use different syntax for include of <fcntl.h>.
4242         * lib/openat.c: Include fcntl.h again, explicitly.
4243
4244 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4245
4246         parse-datetime: document the newly accepted format
4247         * doc/parse-datetime.texi (Combined date and time of day items):
4248         New section.
4249
4250 2011-09-06  Bruno Haible  <bruno@clisp.org>
4251
4252         acl: Fix a test failure on newer Solaris 10 with ZFS.
4253         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4254         ENOSYS as no ACL.
4255         Reported by Jim Meyering.
4256
4257 2011-09-06  Bruno Haible  <bruno@clisp.org>
4258
4259         acl: Update for AIX >= 5.3 with NFS.
4260         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4261         ENOSYS as no ACL.
4262
4263         acl: Fix a test failure on AIX >= 5.3 with NFS.
4264         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4265         as no ACL.
4266
4267 2011-09-06  Bruno Haible  <bruno@clisp.org>
4268
4269         acl: Fix a test failure on IRIX 6.5 with NFS.
4270         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4271         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4272         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4273         * lib/copy-acl.c (qcopy_acl): Likewise.
4274
4275 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4276
4277         openat: port to AIX 7.1 with large files
4278         AIX 7.1 does a "#define openat open64at" if large files are in use,
4279         so we can't simply #undef openat.  Use the orig_openat trick (similar
4280         to orig_open in lib/open.c) to work around the problem.  Problem
4281         reported by Kevin Brott for GNU tar, in the thread containing
4282         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4283         * lib/openat.c (__need_system_fcntl_h): Define first.
4284         Include <fcntl.h> and <sys/types.h> before undefining.
4285         (orig_openat) [HAVE_OPENAT]: New inline function.
4286         (openat) [HAVE_OPENAT]: Do not undef.
4287         (rpl_openat): Use orig_openat, not openat.
4288
4289 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4290             Bruno Haible  <bruno@clisp.org>
4291
4292         acl: Avoid errors on NonStop Kernel.
4293         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4294         ENOTSUP errors.
4295
4296 2011-09-05  Bruno Haible  <bruno@clisp.org>
4297
4298         acl: Clean up Solaris code.
4299         * lib/acl-internal.h: Remove no-op #if.
4300         * lib/file-has-acl.c: Likewise.
4301         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4302         * lib/copy-acl.c (qcopy_acl): Likewise.
4303
4304 2011-09-05  Bruno Haible  <bruno@clisp.org>
4305
4306         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4307         binaries built on the original Solaris 10.
4308         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4309         trivial.
4310
4311 2011-09-05  Bruno Haible  <bruno@clisp.org>
4312
4313         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4314         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4315         10.
4316         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4317         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4318         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4319         instead of acl_get, facl_get, acl_set, facl_set.
4320
4321 2011-09-05  Bruno Haible  <bruno@clisp.org>
4322
4323         copy-file: Try unit tests on more file systems.
4324         * tests/test-copy-file-1.sh: New file.
4325         * tests/test-copy-file-2.sh: New file.
4326         * modules/copy-file-tests (Files): Add them.
4327         (Makefile.am): Add them to TESTS.
4328
4329         acl: Try unit tests on more file systems.
4330         * tests/test-file-has-acl-1.sh: New file.
4331         * tests/test-file-has-acl-2.sh: New file.
4332         * tests/test-set-mode-acl-1.sh: New file.
4333         * tests/test-set-mode-acl-2.sh: New file.
4334         * tests/test-copy-acl-1.sh: New file.
4335         * tests/test-copy-acl-2.sh: New file.
4336         * modules/acl-tests (Files): Add them.
4337         (Makefile.am): Add them to TESTS.
4338
4339 2011-09-04  Bruno Haible  <bruno@clisp.org>
4340
4341         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4342         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4343         10.
4344         (OLD_ALLOW, OLD_DENY): New macros.
4345         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4346         ACE_ACCESS_ALLOWED_ACE_TYPE.
4347         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4348         ACE_ACCESS_DENIED_ACE_TYPE.
4349         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4350         (NEW_ACE_EXECUTE): Fix value.
4351         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4352         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4353         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4354         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4355         NEW_ACE_SYNCHRONIZE): New macros.
4356         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4357         instead of acl_fromtext, acl_set, facl_set.
4358         Fixes a coreutils/tests/cp/perm failure.
4359
4360 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4361
4362         openat: test for fstatat (..., 0) bug
4363         Further testing with tar suggests that fstatat (..., 0)
4364         does not work in general, on AIX 7.1; see
4365         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4366         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4367         replacement fstatat (which is what older AIX releases were using
4368         anyway).
4369         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4370         use is now changed to orig_fstatat.  This was probably the right
4371         thing to do anyway.
4372         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4373         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4374         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4375         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4376         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4377         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4378         if the bug is found.
4379
4380         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4381         This tests for another fstatat bug on AIX 7.1:
4382         fstatat (AT_FDCWD, ..., 0) does not work.  See
4383         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4384         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4385         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4386         (rpl_fstatat): Adjust so that it works around either (or both)
4387         bugs if present.
4388         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4389
4390 2011-09-03  Karl Berry  <karl@gnu.org>
4391
4392         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4393         in index entries.
4394
4395 2011-09-02  Bruno Haible  <bruno@clisp.org>
4396
4397         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4398         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4399         values of AR, ARFLAGS, RANLIB.
4400         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4401
4402 2011-09-02  Bruno Haible  <bruno@clisp.org>
4403
4404         Find 'ar' program that fits with --host argument.
4405         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4406
4407 2011-09-02  Bruno Haible  <bruno@clisp.org>
4408
4409         tests: init.sh: Support any non-GNU diff.
4410         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4411         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4412         Solaris 8.
4413
4414 2011-09-02  Bruno Haible  <bruno@clisp.org>
4415
4416         tests: init.sh: work also with any non-GNU diff that supports -u
4417         * tests/init.sh: Relax check for diff -u support.
4418         Rather than checking for GNU diff via --version, simply check
4419         for support for -u itself.  Useful at least on OpenBSD 4.9,
4420         AIX 7.1, IRIX 6.5, and Solaris 10.
4421
4422 2011-09-01  Bruno Haible  <bruno@clisp.org>
4423
4424         strtoimax, strtoumax: Document problem on HP-UX 11.
4425         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4426         * doc/posix-functions/strtoumax.texi: Likewise.
4427
4428 2011-09-01  Bruno Haible  <bruno@clisp.org>
4429
4430         strtoumax: Avoid link error on OSF/1 with DTK cc.
4431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4432         defined as a function.
4433         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4434         strtoumax is defined, not whether it is declared.
4435
4436 2011-09-01  Bruno Haible  <bruno@clisp.org>
4437
4438         strtoimax: Avoid link error on OSF/1 with DTK cc.
4439         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4440         defined as a function.
4441         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4442         strtoimax is defined, not whether it is declared.
4443
4444 2011-09-01  Bruno Haible  <bruno@clisp.org>
4445
4446         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4447         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4448         as a function.
4449         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4450         whether it is declared.
4451
4452 2011-09-01  Bruno Haible  <bruno@clisp.org>
4453
4454         imaxabs: Avoid link error on OSF/1 with DTK cc.
4455         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4456         as a function.
4457         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4458         whether it is declared.
4459
4460 2011-09-01  Bruno Haible  <bruno@clisp.org>
4461
4462         Tests for module 'strtoumax'.
4463         * modules/strtoumax-tests: New file.
4464         * tests/test-strtoumax.c: New file.
4465
4466         Tests for module 'strtoimax'.
4467         * modules/strtoimax-tests: New file.
4468         * tests/test-strtoimax.c: New file.
4469
4470         Tests for module 'imaxdiv'.
4471         * modules/imaxdiv-tests: New file.
4472         * tests/test-imaxdiv.c: New file.
4473
4474         Tests for module 'imaxabs'.
4475         * modules/imaxabs-tests: New file.
4476         * tests/test-imaxabs.c: New file.
4477
4478 2011-09-01  Bruno Haible  <bruno@clisp.org>
4479
4480         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4481         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4482         pthread_create.
4483
4484 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4485
4486         openat: work around AIX 7.1 fstatat issue
4487         This should fix the problem that was not properly fixed
4488         in the previous change, dated 2011-08-30.
4489         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4490         __need_system_stat_h defined.
4491         (orig_fstatat) [HAVE_FSTATAT]: New function.
4492         (rpl_fstatat): Go back to the old way of doing things,
4493         except call orig_fstatat instead of fstatat.
4494         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4495         Remove unnecessary check whether fstatat fills in st_size etc.
4496
4497 2011-09-01  Bruno Haible  <bruno@clisp.org>
4498
4499         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4500         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4501         just include the system's header.
4502
4503 2011-08-31  Jim Meyering  <meyering@redhat.com>
4504
4505         tests: avoid spurious assertion failure in test-float.c on ppc64
4506         * tests/test-float.c (test_long_double): Comment out an assertion,
4507         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4508         with gcc-4.4.4.
4509
4510         maint: indent with spaces, not TABs
4511         I need to get in the habit of running gnulib's "make check".
4512         Both of these would have been caught.
4513         * m4/largefile.m4: Indent with spaces, not TABs.
4514         * lib/parse-datetime.y (iso_8601_time): Likewise.
4515         Spotted by Pádraig Brady.
4516
4517         test-parse-datetime.c: accommodate a relatively strict gcc warning
4518         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4519         to avoid a warning from gcc's -Werror=missing-declarations.
4520         Insert a few spaces-before-funcall-parenthesis.
4521
4522 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4523
4524         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4525         The parser now accepts ISO 8601 date-time strings with "T" as the
4526         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4527         with a space between the date and time strings.  Now it also parses
4528         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4529         variants like "2004-02-29T16:21:42.333-07:00"
4530         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4531         of day representation using the 'T' separator character.
4532         * doc/parse-datetime.texi (General date syntax): replace use of
4533         deprecated --iso-8601 option with --rfc-3339 in example of date
4534         command output formats that can be parsed.
4535         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4536         lib/parse-datetime.y.
4537         (gmt_offset): New function.
4538         (main): Add additional test cases to validate ISO8601 extended
4539         date and time of day parsing.
4540
4541 2011-08-31  Bruno Haible  <bruno@clisp.org>
4542
4543         freopen: Documentation.
4544         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4545         name.
4546         Reported by Claudio Bley <claudio.bley@gmail.com>.
4547
4548 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4549
4550         freopen: Don't crash if the filename argument is NULL.
4551         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4552         NULL.
4553
4554 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         openat: work around AIX 7.1 fstatat bug
4557         Problem reported by Kevin Brott for GNU tar, in the thread containing
4558         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4559         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4560         FSTATAT_ST_SIZE_ETC_BROKEN.
4561         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4562         rpl_fstatat.
4563         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4564         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4565         AC_CHECK_FUNCS_ONCE for fstatat.
4566         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4567         fchmodat, mkdirat, openat and unlinkat.
4568
4569 2011-08-30  Bruno Haible  <bruno@clisp.org>
4570
4571         Avoid endless recursions if config.h includes some header files.
4572         * lib/fopen.c (__need_FILE): Define already before including config.h.
4573         * lib/freopen.c (__need_FILE): Likewise.
4574         * lib/open.c (__need_system_fcntl_h): Likewise.
4575         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4576         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4577         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4578
4579 2011-08-25  Karl Berry  <karl@gnu.org>
4580
4581         * config/srclist.txt (ylwrap): new try.
4582         * build-aux/ylwrap: new file.
4583
4584 2011-08-23  Bruno Haible  <bruno@clisp.org>
4585
4586         tmpdir: Use a good default directory on native Windows.
4587         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4588         (P_tmpdir): Default to _P_tmpdir on native Windows.
4589         (path_search): On native Windows, try the value returned by GetTempPath
4590         before trying P_tmpdir.
4591         * modules/tmpdir (Depends-on): Add pathmax.
4592         Suggested by John Darrington <john@darrington.wattle.id.au>.
4593
4594 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4595
4596         doc: fix typo in README-release
4597         * top/README-release: Capitalize first word of a sentence.
4598
4599 2011-08-19  Jim Meyering  <meyering@redhat.com>
4600
4601         fts: do not exhaust memory when processing million-entry directories
4602         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4603         directory would require about 256*N bytes of memory.  Thus, it was
4604         easy to construct a directory too large to be processed by any of
4605         those tools.  With this change, fts' maximum memory utilization is
4606         now limited to around 30MB.
4607         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4608         (fts_read): When we've processed the final entry (i.e., when
4609         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4610         using the parent entry to read any remaining entries.  Dispatch
4611         depending on what fts_build returns:
4612         - NULL+stop, aka failure: stop
4613         - NULL otherwise: move up in the dir hierarchy
4614         - non-NULL: handle this new entry
4615         (fts_build): Declare and use new local, continue_readdir.
4616         Prepare to be called from fts_read, when the entries
4617         from a partially-read directory have just been exhausted.
4618         In that case, we'll skip the opendir and instead use the parent's
4619         fts_dirp and derive dir_fd from that.
4620         Finally, in the readdir loop, if we read max_entries entries,
4621         exit the loop ensuring *not* to call closedir.  This is required
4622         so that fts_dirp can be reused on a subsequent call.
4623         Prompted by Ben England's report of memory exhaustion in find
4624         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4625
4626         maint: fts: move decl of `dp' down into while loop; split a long line
4627         * lib/fts.c (fts_build): No semantic change.
4628
4629         fts: add/use new struct member, fts_dirp
4630         We are about to use this to manage any directory with
4631         too many entries to read all of them into memory at once.
4632         To do that, we'll need to save the DIR* pointer in each
4633         affected FTSENT struct.
4634         * lib/fts_.h: Include <dirent.h>.
4635         (struct FTSENT) [fts_dirp]: New member.
4636         * lib/fts.c (closedir_and_clear): Define.
4637         Use it in place of closedir so that we are sure to
4638         clear the new fts_dirp member when done with it.
4639         (fts_alloc): Initialize the new member.
4640         (fts_lfree): Free, if needed.
4641
4642         maint: fts: give __opendir2 a new parameter and rename
4643         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4644         than surreptitiously using sole caller's "dir_fd".
4645         (fts_opendir): Rename from __opendir2.
4646
4647         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4648         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4649
4650         maint: fts.c: correct off-by-one indentation
4651         * lib/fts.c (fts_build): Correct indentation, change style
4652         of a couple of block comments, and bracing style.
4653
4654         maint: fts.c: move __opendir2 #define "up" out of function body
4655         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4656
4657         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4658         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4659         out for a long time and besides was useful only on BSD systems.
4660
4661 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4662
4663         regex: port to Stratus OpenVOS
4664         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4665         define to empty, rather than attempting nonportable optimizations.
4666         Problem reported by Paul Green in:
4667         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4668         and fix suggested by Eric Blake in:
4669         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4670
4671 2011-08-17  Eric Blake  <eblake@redhat.com>
4672
4673         getcwd: fix test failures on mingw
4674         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4675         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4676         test if long directory cannot be created, and allow mingw errno.
4677
4678         getcwd-lgpl: fix m4 to match relaxed test for BSD
4679         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4680         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4681         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4682         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4683         signature problem.
4684
4685         getcwd: fix compilation on mingw64
4686         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4687         getcwd.
4688         Reported by Marc-André Lureau.
4689
4690         pipe2: silence compiler warning
4691         * lib/pipe2.c (pipe2): Hide label if it is not used.
4692
4693 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4694
4695         relocatable-prog: fix link error
4696         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4697         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4698         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4699         into modules/relocatable-lib without noticing that
4700         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4701         also needs to build relocatable.c.
4702
4703 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4707         shell code: it contained a 'break' that was not in a loop.
4708         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4709         via a shell-language loop; this may have been true in old Autoconf
4710         versions, but it's not true in Autoconf 2.68.  I found this bug
4711         when testing coreutils git on Solaris 8, whose shell complains
4712         about the syntax error.
4713
4714 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4715
4716         * lib/base64.c: Fix comment to reference RFC 4648.
4717         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4718         <gvtulder@gmail.com>.
4719
4720 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4723
4724         po/Makefile.in.in: fix make -q problem
4725         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4726         rule, since there's no file named 'check-macro-version' and its
4727         use as a file breaks make -q.
4728         (all): Don't depend on check-macro-version.
4729         (CHECK_MACRO_VERSION): New macro.
4730         (stamp-po): Use it.
4731
4732         configmake: fix make -q problem
4733         * modules/configmake (configmake.h): Update configmake.h's time stamp
4734         even if the file does not change.  Otherwise, 'make -q' fails.
4735         Problem reported by Simon Josefsson in
4736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4737
4738 2011-08-11  Jim Meyering  <meyering@redhat.com>
4739
4740         git-version-gen: correct the advice in a comment
4741         * build-aux/git-version-gen: Correct comment.
4742         Don't recommend to list .tarball-version in .gitignore.
4743
4744 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4745
4746         base64: fix off-by-one buffer size bug
4747         Problem and (trivial) fix reported by Gijs van Tulder in
4748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4749         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4750         * tests/test-base64.c (main): Catch the bug.
4751
4752 2011-08-10  Eric Blake  <eblake@redhat.com>
4753
4754         closein: correct comments
4755         * lib/closein.c (close_stdin): Improve comments.
4756
4757 2011-08-09  Bruno Haible  <bruno@clisp.org>
4758
4759         More tests for 'fseeko'.
4760         * tests/test-fseeko3.c: New file, from Eric Blake.
4761         * tests/test-fseeko3.sh: New file.
4762         * modules/fseeko-tests (Files): Add them.
4763         (TESTS): Add test-fseeko3.sh.
4764         (check_PROGRAMS): Add test-fseeko3.
4765
4766 2011-08-09  Eric Blake  <eblake@redhat.com>
4767
4768         fseeko: remove unneeded hack
4769         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4770
4771         fseeko: fix bug on glibc
4772         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4773         Reported by John W. Eaton.
4774
4775 2011-08-08  Bruno Haible  <bruno@clisp.org>
4776
4777         unictype/base: Fix interoperability with preinstalled libunistring.
4778         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4779         Reported by Simon Josefsson.
4780
4781 2011-08-08  Bruno Haible  <bruno@clisp.org>
4782
4783         iswblank: Detect declaration correctly.
4784         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4785         AC_CHECK_DECLS invocation.
4786
4787 2011-08-08  Bruno Haible  <bruno@clisp.org>
4788
4789         tcgetsid: Detect declaration correctly.
4790         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4791         AC_CHECK_DECLS invocation.
4792         Reported by Simon Josefsson.
4793
4794 2011-08-08  Eric Blake  <eblake@redhat.com>
4795
4796         largefile: fix typo that regressed large file support
4797         * modules/largefile (configure.ac-early): Fix section name.
4798
4799 2011-08-06  Karl Berry  <karl@gnu.org>
4800
4801         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4802         a separate module.
4803
4804 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4805
4806         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4807         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4808         get prototype for free.
4809
4810 2011-08-04  Bruno Haible  <bruno@clisp.org>
4811
4812         Tests for module 'pathmax'.
4813         * modules/pathmax-tests: New file.
4814         * tests/test-pathmax.c: New file.
4815
4816         canonicalize-lgpl: Support larger filenames on the Hurd.
4817         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4818         Reported by Paul Eggert.
4819
4820         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4821         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4822         * lib/chdir-long.h: Include pathmax.h.
4823         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4824         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4825         (PATH_MAX): Remove code that is done by pathmax.h.
4826         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4827         * lib/tmpfile.c: Add a comment.
4828         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4829         * modules/chdir-long (Depends-on): Add pathmax.
4830         * modules/getcwd (Depends-on): Add pathmax.
4831         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4832         is not defined.
4833         * doc/posix-headers/limits.texi: Mention the pathmax module.
4834         * NEWS: Mention the change.
4835
4836 2011-08-02  Bruno Haible  <bruno@clisp.org>
4837
4838         pthread_sigmask: Actually use results of gl_THREADLIB.
4839         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4840         gl_THREADLIB, not gl_[]THREADLIB.
4841         Reported by Eric Blake.
4842
4843 2011-08-02  Jim Meyering  <meyering@redhat.com>
4844
4845         maint.mk: relax the default _gl_TS_function_match regexp
4846         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4847         space between function name and "(" in an "extern" declaration.
4848         That would fail to match a decl with no space there: extern void foo();
4849
4850 2011-07-31  Iain Nicol  <iain@thenicols.net>
4851
4852         git-version-gen: document that EXTRA_DIST must include .version
4853         * build-aux/git-version-gen: In the how-to-use comment, document
4854         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4855         will fail when run from an unpacked distribution tarball.
4856
4857 2011-08-01  Bruno Haible  <bruno@clisp.org>
4858
4859         wctype-h: Fix last change.
4860         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4861         REPLACE_TOWLOWER to 0.
4862         Reported by Sam Steingold <sds@gnu.org>.
4863
4864 2011-07-31  Bruno Haible  <bruno@clisp.org>
4865
4866         frexpl: Update autoconf test.
4867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4868         according to changes of 2011-06-20.
4869
4870 2011-07-31  Bruno Haible  <bruno@clisp.org>
4871
4872         sys_utsname: Add support for Minix.
4873         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4874         <sys/utsname.h>.
4875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4876         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4877
4878 2011-07-31  Bruno Haible  <bruno@clisp.org>
4879
4880         strings: Add support for Minix.
4881         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4882         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4883         * doc/posix-headers/strings.texi: Document the Minix problem.
4884
4885 2011-07-31  Bruno Haible  <bruno@clisp.org>
4886
4887         wctype-h: Add support for Minix.
4888         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4889         REPLACE_TOWLOWER.
4890         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4891         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4892         REPLACE_ISWCNTRL.
4893
4894 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4895
4896         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4897         This is a performance improvement for 64-bit hosts: it causes the
4898         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4899
4900 2011-07-31  Bruno Haible  <bruno@clisp.org>
4901
4902         stdioext: Add support for Minix.
4903         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4904         * lib/fpurge.c (fpurge): Likewise.
4905         * lib/freadahead.c (freadahead): Likewise.
4906         * lib/freadable.c (freadable): Likewise.
4907         * lib/freading.c (freading): Likewise.
4908         * lib/freadptr.c (freadptr): Likewise.
4909         * lib/freadseek.c (freadptrinc): Likewise.
4910         * lib/fseeko.c (rpl_fseeko): Likewise.
4911         * lib/fseterr.c (fseterr): Likewise.
4912         * lib/fwritable.c (fwritable): Likewise.
4913         * lib/fwriting.c (fwriting): Likewise.
4914         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4915         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4916
4917 2011-07-31  Bruno Haible  <bruno@clisp.org>
4918
4919         errno: Port to Minix.
4920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4921         ECONNABORTED are defined.
4922         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4923         GNULIB_defined_ECONNABORTED): New macros.
4924         * lib/strerror-override.h (strerror_override): Test also
4925         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4926         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4927         ECONNABORTED.
4928         * doc/posix-headers/errno.texi: Mention the Minix problem.
4929
4930 2011-07-31  Bruno Haible  <bruno@clisp.org>
4931
4932         Work around declaration collisions on Minix.
4933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4934         defined, set REPLACE_MBSINIT.
4935         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4936         defined, set REPLACE_MBRTOWC.
4937         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4938         set REPLACE_MBRLEN.
4939         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4940         defined, set REPLACE_MBSRTOWCS.
4941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4942         defined, set REPLACE_WCRTOMB.
4943         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4944         defined, set REPLACE_WCSRTOMBS.
4945
4946 2011-07-31  Bruno Haible  <bruno@clisp.org>
4947
4948         Add support for Minix with ACK compiler.
4949         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4950         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4951         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4952
4953 2011-07-31  Bruno Haible  <bruno@clisp.org>
4954
4955         Documentation about Minix.
4956         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4957         * doc/glibc-headers/*.texi: Likewise.
4958         * doc/posix-functions/*.texi: Likewise.
4959         * doc/glibc-functions/*.texi: Likewise.
4960
4961 2011-07-31  Bruno Haible  <bruno@clisp.org>
4962
4963         snippet/warn-on-use: Fix indentation.
4964         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4965
4966 2011-07-25  Jim Meyering  <meyering@redhat.com>
4967
4968         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4969         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4970         commands.
4971
4972 2011-07-27  Jim Meyering  <meyering@redhat.com>
4973
4974         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4975         * top/maint.mk (gl_extract_significant_defines_): Now that
4976         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4977         gnulib/lib/signal.in.h, and now that we recommend to
4978         define-if-undefined those two symbols in application code,
4979         we must filter them out of the "significant" list.
4980         This avoids a "make syntax-check" failure in coreutils.
4981
4982 2011-07-26  Eric Blake  <eblake@redhat.com>
4983
4984         warnings: add comments about previous patch
4985         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4986         * m4/include_next.m4: Likewise.
4987         * m4/warn-on-use.m4: Likewise.
4988         * m4/warnings.m4: Likewise, and simplify use.
4989         Suggested by Stefano Lattarini.
4990
4991         include-next, warnings: support older autoconf
4992         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4993         AS_VAR_PUSHDEF in a way that works with older autoconf.
4994         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4995         Reported by Daniel P. Berrange.
4996
4997 2011-07-25  Bruno Haible  <bruno@clisp.org>
4998
4999         fseek, ftell: Fix doc.
5000         * doc/posix-functions/fseek.texi: Reword statement about
5001         AC_SYS_LARGEFILE.
5002         * doc/posix-functions/ftell.texi: Likewise.
5003
5004 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5005             Bruno Haible  <bruno@clisp.org>
5006
5007         Add dependencies to the 'largefile' module.
5008         * modules/fopen (Depends-on): Add 'largefile'.
5009         * modules/freopen (Depends-on): Likewise.
5010         * modules/fseeko (Depends-on): Likewise.
5011         * modules/ftello (Depends-on): Likewise.
5012         * modules/glob (Depends-on): Likewise.
5013         * modules/lseek (Depends-on): Likewise.
5014         * modules/lstat (Depends-on): Likewise.
5015         * modules/mkostemp (Depends-on): Likewise.
5016         * modules/mkostemps (Depends-on): Likewise.
5017         * modules/mkstemp (Depends-on): Likewise.
5018         * modules/mkstemps (Depends-on): Likewise.
5019         * modules/open (Depends-on): Likewise.
5020         * modules/openat (Depends-on): Likewise.
5021         * modules/pread (Depends-on): Likewise.
5022         * modules/pwrite (Depends-on): Likewise.
5023         * modules/scandir (Depends-on): Likewise.
5024         * modules/stat (Depends-on): Likewise.
5025         * modules/tmpfile (Depends-on): Likewise.
5026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5027         since the containing module now depends on the largefile module.
5028         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5029         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5030         off_t is fixed by gnulib.
5031         * doc/posix-functions/freopen.texi: Likewise.
5032         * doc/posix-functions/fseeko.texi: Likewise.
5033         * doc/posix-functions/fstatat.texi: Likewise.
5034         * doc/posix-functions/ftello.texi: Likewise.
5035         * doc/posix-functions/glob.texi: Likewise.
5036         * doc/posix-functions/lseek.texi: Likewise.
5037         * doc/posix-functions/lstat.texi: Likewise.
5038         * doc/posix-functions/mkstemp.texi: Likewise.
5039         * doc/posix-functions/open.texi: Likewise.
5040         * doc/posix-functions/openat.texi: Likewise.
5041         * doc/posix-functions/pread.texi: Likewise.
5042         * doc/posix-functions/pwrite.texi: Likewise.
5043         * doc/posix-functions/scandir.texi: Likewise.
5044         * doc/posix-functions/stat.texi: Likewise.
5045         * doc/posix-functions/tmpfile.texi: Likewise.
5046         * doc/glibc-functions/mkostemp.texi: Likewise.
5047         * doc/glibc-functions/mkostemps.texi: Likewise.
5048         * doc/glibc-functions/mkstemps.texi: Likewise.
5049
5050 2011-07-25  Bruno Haible  <bruno@clisp.org>
5051
5052         fcntl: Move AC_LIBOBJ invocation to module description.
5053         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5054         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5055
5056         fcntl: Remove call-in from fchdir.m4.
5057         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5059
5060         dup3: Remove potential call-in from fchdir.m4.
5061         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5063
5064         dup2: Move AC_LIBOBJ invocation to module description.
5065         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5066         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5067         Don't invoke AC_LIBOBJ.
5068         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5069
5070         dup2: Remove call-in from fchdir.m4.
5071         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5073
5074         fclose: Move AC_LIBOBJ invocation to module description.
5075         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5076         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5077         to 1.
5078         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5079
5080         fclose: Remove call-in from close.m4.
5081         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5082         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5083
5084         close: Move AC_LIBOBJ invocation to module description.
5085         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5086         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5087         1.
5088         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5089
5090         close: Remove call-in from fchdir.m4.
5091         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5093
5094         open: Move AC_LIBOBJ invocation to module description.
5095         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5096         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5097         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5098
5099         open: Remove call-in from fchdir.m4.
5100         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5102
5103         fchdir: Start to remove gl_REPLACE_* idiom.
5104         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5105         (gl_FUNC_FCHDIR): Invoke it.
5106
5107 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5108
5109         * lib/ftell.c (ftell): Comment out cast.
5110
5111         close: use gl_REPLACE_FCLOSE only if defined
5112         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5113         is defined.  The close module doesn't depend on the fclose module
5114         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5116         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5117
5118 2011-07-24  Jim Meyering  <meyering@redhat.com>
5119
5120         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5121         * tests/test-select.h (test_function): Declare as "static".
5122
5123 2011-07-24  Bruno Haible  <bruno@clisp.org>
5124
5125         doc: Mention the effects of AC_SYS_LARGEFILE.
5126         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5127         on this function.
5128         * doc/posix-functions/aio_error.texi: Likewise.
5129         * doc/posix-functions/aio_fsync.texi: Likewise.
5130         * doc/posix-functions/aio_read.texi: Likewise.
5131         * doc/posix-functions/aio_return.texi: Likewise.
5132         * doc/posix-functions/aio_suspend.texi: Likewise.
5133         * doc/posix-functions/aio_write.texi: Likewise.
5134         * doc/posix-functions/fgetpos.texi: Likewise.
5135         * doc/posix-functions/fopen.texi: Likewise.
5136         * doc/posix-functions/freopen.texi: Likewise.
5137         * doc/posix-functions/fsetpos.texi: Likewise.
5138         * doc/posix-functions/fstatvfs.texi: Likewise.
5139         * doc/posix-functions/ftruncate.texi: Likewise.
5140         * doc/posix-functions/ftw.texi: Likewise.
5141         * doc/posix-functions/getrlimit.texi: Likewise.
5142         * doc/posix-functions/glob.texi: Likewise.
5143         * doc/posix-functions/lio_listio.texi: Likewise.
5144         * doc/posix-functions/lockf.texi: Likewise.
5145         * doc/posix-functions/mkstemp.texi: Likewise.
5146         * doc/posix-functions/mmap.texi: Likewise.
5147         * doc/posix-functions/nftw.texi: Likewise.
5148         * doc/posix-functions/openat.texi: Likewise.
5149         * doc/posix-functions/opendir.texi: Likewise.
5150         * doc/posix-functions/posix_fadvise.texi: Likewise.
5151         * doc/posix-functions/posix_fallocate.texi: Likewise.
5152         * doc/posix-functions/pread.texi: Likewise.
5153         * doc/posix-functions/pwrite.texi: Likewise.
5154         * doc/posix-functions/readdir.texi: Likewise.
5155         * doc/posix-functions/readdir_r.texi: Likewise.
5156         * doc/posix-functions/rewinddir.texi: Likewise.
5157         * doc/posix-functions/scandir.texi: Likewise.
5158         * doc/posix-functions/seekdir.texi: Likewise.
5159         * doc/posix-functions/setrlimit.texi: Likewise.
5160         * doc/posix-functions/statvfs.texi: Likewise.
5161         * doc/posix-functions/telldir.texi: Likewise.
5162         * doc/posix-functions/tmpfile.texi: Likewise.
5163         * doc/posix-functions/truncate.texi: Likewise.
5164         * doc/glibc-functions/fallocate.texi: Likewise.
5165         * doc/glibc-functions/fstatfs.texi: Likewise.
5166         * doc/glibc-functions/fts_children.texi: Likewise.
5167         * doc/glibc-functions/fts_read.texi: Likewise.
5168         * doc/glibc-functions/getdirentries.texi: Likewise.
5169         * doc/glibc-functions/mkostemp.texi: Likewise.
5170         * doc/glibc-functions/mkostemps.texi: Likewise.
5171         * doc/glibc-functions/mkstemps.texi: Likewise.
5172         * doc/glibc-functions/preadv.texi: Likewise.
5173         * doc/glibc-functions/pwritev.texi: Likewise.
5174         * doc/glibc-functions/sendfile.texi: Likewise.
5175         * doc/glibc-functions/statfs.texi: Likewise.
5176
5177 2011-07-24  Bruno Haible  <bruno@clisp.org>
5178
5179         doc: Fix typo.
5180         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5181
5182 2011-07-24  Bruno Haible  <bruno@clisp.org>
5183
5184         doc: Mention fsusage.
5185         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5186
5187 2011-07-24  Bruno Haible  <bruno@clisp.org>
5188
5189         doc: Mention new glibc headers and functions.
5190         * doc/glibc-headers/gshadow.texi: New file.
5191         * doc/glibc-functions/endsgent.texi: New file.
5192         * doc/glibc-functions/fgetsgent.texi: New file.
5193         * doc/glibc-functions/fgetsgent_r.texi: New file.
5194         * doc/glibc-functions/getsgent.texi: New file.
5195         * doc/glibc-functions/getsgent_r.texi: New file.
5196         * doc/glibc-functions/getsgnam.texi: New file.
5197         * doc/glibc-functions/getsgnam_r.texi: New file.
5198         * doc/glibc-functions/putsgent.texi: New file.
5199         * doc/glibc-functions/setsgent.texi: New file.
5200         * doc/glibc-functions/sgetsgent.texi: New file.
5201         * doc/glibc-functions/sgetsgent_r.texi: New file.
5202         * doc/glibc-functions/malloc_info.texi: New file.
5203         * doc/glibc-functions/preadv.texi: New file.
5204         * doc/glibc-functions/pwritev.texi: New file.
5205         * doc/glibc-functions/register_printf_modifier.texi: New file.
5206         * doc/glibc-functions/register_printf_specifier.texi: New file.
5207         * doc/glibc-functions/register_printf_type.texi: New file.
5208         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5209         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5210         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5211         * doc/glibc-functions/pthread_getname_np.texi: New file.
5212         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5213         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5214         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5215         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5216         * doc/glibc-functions/pthread_setname_np.texi: New file.
5217         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5218         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5219         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5220         * doc/glibc-functions/qsort_r.texi: New file.
5221         * doc/glibc-functions/quick_exit.texi: New file.
5222         * doc/glibc-functions/syncfs.texi: New file.
5223         * doc/gnulib.texi: Include them.
5224         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5225         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5226         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5227         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5228         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5229         * doc/glibc-functions/execvpe.texi: Likewise.
5230
5231 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5232
5233         ftell: don't include <unistd.h>
5234         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5235         guaranteed to define off_t, and the ftell module depends on the
5236         stdio module.
5237
5238         ftell: do not assume wraparound signed arithmetic
5239         * lib/ftell.c: Include <limits.h>.
5240         (ftell): Don't assume wraparound signed arithmetic.
5241
5242 2011-07-24  Bruno Haible  <bruno@clisp.org>
5243
5244         close: No longer depend on module 'fclose'.
5245         * modules/close (Depends-on): Remove fclose.
5246         * NEWS: Mention the change.
5247         Suggested by Sam Steingold <sds@gnu.org>.
5248
5249 2011-07-24  Bruno Haible  <bruno@clisp.org>
5250
5251         fsusage: Enable large volume support on AIX >= 5.2.
5252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5253         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5254         instead of STAT_STATVFS.
5255         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5256
5257         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5259         f_blocks field only on MacOS X.
5260
5261         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5263         * modules/fsusage (Depends-on): Add largefile.
5264
5265 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         * README: Modernize discussion of signed integers.
5268         Assuming overflow wraparound is no longer safe.
5269         Mention ones' complement and signed magnitude.
5270
5271 2011-07-22  Bruno Haible  <bruno@clisp.org>
5272
5273         select tests, pselect tests: Refactor.
5274         * tests/test-select.h: New file, extracted from tests/test-select.c.
5275         (select_fn): New type.
5276         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5277         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5278         test_pipe): Add my_select argument.
5279         (test_function): Renamed from main. Add my_select argument.
5280         * tests/test-select.c: Move most code to tests/test-select.h. Include
5281         test-select.h.
5282         * modules/select-tests (Files): Add tests/test-select.h.
5283         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5284         (my_select, main): New functions.
5285         * modules/pselect-tests (Files): Add tests/test-select.h,
5286         tests/macros.h, tests/signature.h.
5287         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5288         (configure.ac): Check for <sys/wait.h>.
5289
5290 2011-07-22  Bruno Haible  <bruno@clisp.org>
5291
5292         sys_select tests: Check the signature of FD_*.
5293         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5294         signature tests from here...
5295         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5296         here.
5297         * modules/sys_select-tests (Files): Add tests/signature.h.
5298
5299 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5300
5301         largefile: new module, replacing large-inode
5302         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5303         * MODULES.html.sh: Add largefile, remove large-inode.
5304         * modules/largefile, m4/largefile.m4: New files.
5305         * modules/large-inode, m4/large-inode.m4: Remove.
5306
5307         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5308         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5309         implementations that use only 32 bits to count blocks.
5310         On typical hosts with 1024-byte blocks, this fails with file
5311         systems as small as 4 TiB.  Problem reported by Herb Wartens
5312         <http://debbugs.gnu.org/9140> and this should also fix a similar
5313         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5314
5315         large-inode: New module
5316         * MODULES.html.sh: Add it.
5317         * modules/large-inode, m4/large-inode.m4: New files.
5318
5319         extensions: Enable extensions on MacOS X 10.5 and later.
5320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5321
5322 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5323
5324         file-has-acl: use acl_extended_file_nofollow if available
5325         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5326         (acl_extended_file): New macro.
5327         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5328         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5329
5330 2011-07-21  Bruno Haible  <bruno@clisp.org>
5331
5332         Declare system functions in a way that works with C++.
5333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5334         declare fdopendir as extern "C".
5335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5336         declare frexpl as extern "C".
5337         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5338         declare gai_strerror as extern "C".
5339         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5340         programs, declare gai_strerror as extern "C".
5341         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5342         declare getlogin_r as extern "C".
5343         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5344         as extern "C".
5345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5346         declare ldexpl as extern "C".
5347         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5348         as extern "C".
5349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5350         program, declare getmntinfo as extern "C".
5351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5352         stpncpy as extern "C".
5353         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5354         program, declare __xpg_strerror_r as extern "C".
5355         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5356         strndup as extern "C".
5357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5358         declare memset and bzero as extern "C".
5359         Reported by Sam Steingold <sds@gnu.org>.
5360
5361 2011-07-12  Jim Meyering  <meyering@redhat.com>
5362
5363         maint.mk: prohibit inclusion of "verify.h" without use
5364         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5365
5366 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5367
5368         timer-time: A new module to check for timer_settime()
5369         * m4/timer_time.m4: Check for the posix function.
5370         * modules/timer-time: Add the new module.
5371         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5372         Mention it.
5373
5374 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5375             Bruno Haible  <bruno@clisp.org>
5376
5377         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5378         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5379         not defined, assume POSIX threads and look for pthread_sigmask in
5380         $LIBS, without changing $CPPFLAGS.
5381
5382 2011-07-19  Bruno Haible  <bruno@clisp.org>
5383
5384         strstr: Update cross-compilation guess.
5385         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5386         CPUs, guess no, in view of glibc
5387         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5388         Suggested by Eric Blake. Reported by Reuben Thomas.
5389
5390 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5391
5392         getopt-gnu: suppress core dumps from detection code
5393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5394         to suppress core dumps that may well occur on glibc systems.
5395         * modules/getopt-gnu: Depend on nocrash.
5396
5397 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         pthread_sigmask: ensure usleep is declared
5400         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5401         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5402
5403 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         doc: Document NonStop portability issues.
5406         * doc/posix-functions/sigaction.texi (sigaction):
5407         * doc/posix-headers/signal.texi (signal.h):
5408         Document NonStop.  See Joachim Schmitz in
5409         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5410
5411 2011-07-15  Bruno Haible  <bruno@clisp.org>
5412
5413         ffsl, ffsll: Avoid unportable behaviour.
5414         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5415
5416 2011-07-15  Bruno Haible  <bruno@clisp.org>
5417
5418         ffs: More tests.
5419         * tests/test-ffs.c (NBITS): New macro.
5420         (main): Add more tests.
5421         * tests/test-ffsl.c (NBITS): New macro.
5422         (main): Add more tests.
5423         * tests/test-ffsll.c (NBITS): New macro.
5424         (main): Add more tests.
5425
5426 2011-07-15  Eric Blake  <eblake@redhat.com>
5427
5428         ffsl, ffsll: new modules
5429         * modules/ffsl: New file.
5430         * modules/ffsll: Likewise.
5431         * m4/ffsl.m4: Likewise.
5432         * m4/ffsll.m4: Likewise.
5433         * lib/ffsl.c: Likewise.
5434         * lib/ffsl.h: Likewise.
5435         * lib/ffsll.c: Likewise.
5436         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5437         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5438         * modules/string (Makefile.am): Substitute witnesses.
5439         * lib/strings.in.h (ffsl, ffsll): Declare.
5440         * modules/ffsl-tests: New test file.
5441         * modules/ffsll-tests: Likewise.
5442         * tests/test-ffsl.c: Likewise.
5443         * tests/test-ffsll.c: Likewise.
5444         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5445         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5446         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5447
5448         ffs: fix m4 prerequisite
5449         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5450
5451         ffs: avoid undefined behavior
5452         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5453         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5454         Reported by Bruno Haible.
5455
5456 2011-07-12  Bruno Haible  <bruno@clisp.org>
5457
5458         pthread_sigmask: Rely on module 'threadlib'.
5459         * modules/pthread_sigmask (Depends-on): Add threadlib.
5460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5461         is defined.
5462
5463 2011-07-12  Bruno Haible  <bruno@clisp.org>
5464
5465         regex: Depend on module 'strcase'.
5466         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5467
5468 2011-07-12  Jim Meyering  <meyering@redhat.com>
5469
5470         warn-on-use: fix typo in file name
5471         * modules/snippet/warn-on-use (Files): Correct file name:
5472         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5473
5474 2011-07-12  Bruno Haible  <bruno@clisp.org>
5475
5476         strings: Document module.
5477         * doc/posix-headers/strings.texi: Mention module 'strings'.
5478
5479 2011-07-12  Bruno Haible  <bruno@clisp.org>
5480
5481         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5482         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5483         (Files, Makefile.am): Update.
5484         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5485         * modules/stdlib (Depends-on): Update.
5486
5487 2011-07-12  Bruno Haible  <bruno@clisp.org>
5488
5489         * NEWS: Mention the changes.
5490
5491         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5492         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5493         (Files, Makefile.am): Update.
5494         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5495         * modules/arpa_inet (Depends-on): Update.
5496         * modules/ctype (Depends-on): Update.
5497         * modules/dirent (Depends-on): Update.
5498         * modules/fcntl-h (Depends-on): Update.
5499         * modules/glob (Depends-on): Update.
5500         * modules/iconv-h (Depends-on): Update.
5501         * modules/inttypes-incomplete (Depends-on): Update.
5502         * modules/langinfo (Depends-on): Update.
5503         * modules/locale (Depends-on): Update.
5504         * modules/math (Depends-on): Update.
5505         * modules/netdb (Depends-on): Update.
5506         * modules/poll-h (Depends-on): Update.
5507         * modules/pty (Depends-on): Update.
5508         * modules/search (Depends-on): Update.
5509         * modules/signal (Depends-on): Update.
5510         * modules/spawn (Depends-on): Update.
5511         * modules/stdio (Depends-on): Update.
5512         * modules/stdlib (Depends-on): Update.
5513         * modules/string (Depends-on): Update.
5514         * modules/strings (Depends-on): Update.
5515         * modules/sys_file (Depends-on): Update.
5516         * modules/sys_ioctl (Depends-on): Update.
5517         * modules/sys_select (Depends-on): Update.
5518         * modules/sys_socket (Depends-on): Update.
5519         * modules/sys_stat (Depends-on): Update.
5520         * modules/sys_time (Depends-on): Update.
5521         * modules/sys_times (Depends-on): Update.
5522         * modules/sys_utsname (Depends-on): Update.
5523         * modules/sys_wait (Depends-on): Update.
5524         * modules/termios (Depends-on): Update.
5525         * modules/time (Depends-on): Update.
5526         * modules/unistd (Depends-on): Update.
5527         * modules/wchar (Depends-on): Update.
5528         * modules/wctype-h (Depends-on): Update.
5529         * MODULES.html.sh (Support for building libraries and executables):
5530         Update.
5531
5532         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5533         * modules/snippet/unused-parameter: Renamed from
5534         modules/unused-parameter.
5535         (Files, Makefile.am): Update.
5536         * build-aux/snippet/unused-parameter.h: Renamed from
5537         build-aux/unused-parameter.h.
5538         * modules/selinux-h (Depends-on): Update.
5539         * modules/unistr/base (Depends-on): Update.
5540         * MODULES.html.sh (Core language properties): Update.
5541
5542         Rename module 'link-warning' to 'snippet/link-warning'.
5543         * modules/snippet/link-warning: Renamed from modules/link-warning.
5544         (Files, Makefile.am): Update.
5545         * build-aux/snippet/link-warning.h: Renamed from
5546         build-aux/link-warning.h.
5547         * MODULES.html.sh (Support for building libraries and executables):
5548         Update.
5549
5550         Rename module 'c++defs' to 'snippet/c++defs'.
5551         * modules/snippet/c++defs: Renamed from modules/c++defs.
5552         (Files, Makefile.am): Update.
5553         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5554         * modules/arpa_inet (Depends-on): Update.
5555         * modules/ctype (Depends-on): Update.
5556         * modules/dirent (Depends-on): Update.
5557         * modules/fcntl-h (Depends-on): Update.
5558         * modules/glob (Depends-on): Update.
5559         * modules/iconv-h (Depends-on): Update.
5560         * modules/langinfo (Depends-on): Update.
5561         * modules/locale (Depends-on): Update.
5562         * modules/math (Depends-on): Update.
5563         * modules/netdb (Depends-on): Update.
5564         * modules/poll-h (Depends-on): Update.
5565         * modules/pty (Depends-on): Update.
5566         * modules/search (Depends-on): Update.
5567         * modules/signal (Depends-on): Update.
5568         * modules/spawn (Depends-on): Update.
5569         * modules/stdio (Depends-on): Update.
5570         * modules/stdlib (Depends-on): Update.
5571         * modules/string (Depends-on): Update.
5572         * modules/strings (Depends-on): Update.
5573         * modules/sys_ioctl (Depends-on): Update.
5574         * modules/sys_select (Depends-on): Update.
5575         * modules/sys_socket (Depends-on): Update.
5576         * modules/sys_stat (Depends-on): Update.
5577         * modules/sys_time (Depends-on): Update.
5578         * modules/sys_wait (Depends-on): Update.
5579         * modules/termios (Depends-on): Update.
5580         * modules/time (Depends-on): Update.
5581         * modules/unistd (Depends-on): Update.
5582         * modules/wchar (Depends-on): Update.
5583         * modules/wctype-h (Depends-on): Update.
5584
5585         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5586         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5587         (Files, Makefile.am): Update.
5588         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5589         * modules/argv-iter (Depends-on): Update.
5590         * modules/arpa_inet (Depends-on): Update.
5591         * modules/dirent (Depends-on): Update.
5592         * modules/fcntl-h (Depends-on): Update.
5593         * modules/fnmatch (Depends-on): Update.
5594         * modules/getopt-posix (Depends-on): Update.
5595         * modules/glob (Depends-on): Update.
5596         * modules/iconv-h (Depends-on): Update.
5597         * modules/inttypes-incomplete (Depends-on): Update.
5598         * modules/locale (Depends-on): Update.
5599         * modules/math (Depends-on): Update.
5600         * modules/netdb (Depends-on): Update.
5601         * modules/search (Depends-on): Update.
5602         * modules/signal (Depends-on): Update.
5603         * modules/spawn (Depends-on): Update.
5604         * modules/stdio (Depends-on): Update.
5605         * modules/stdlib (Depends-on): Update.
5606         * modules/string (Depends-on): Update.
5607         * modules/strings (Depends-on): Update.
5608         * modules/sys_socket (Depends-on): Update.
5609         * modules/sys_stat (Depends-on): Update.
5610         * modules/sys_time (Depends-on): Update.
5611         * modules/sys_times (Depends-on): Update.
5612         * modules/sys_utsname (Depends-on): Update.
5613         * modules/time (Depends-on): Update.
5614         * modules/unistd (Depends-on): Update.
5615         * modules/wchar (Depends-on): Update.
5616         * MODULES.html.sh (Support for building libraries and executables):
5617         Update.
5618
5619 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5620
5621         Improvements on _Noreturn and related modules.
5622
5623         modules/_Exit-tests: test _Noreturn too
5624         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5625         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5626         (main): Use them.
5627
5628         stdnoreturn, stdnoreturn-tests: remove modules
5629         They're not needed here and a bit premature for use elsewhere.  See
5630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5631         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5632         * tests/test-stdnoreturn.c: Remove files.
5633         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5634         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5635         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5636         and using noreturn.
5637         * modules/openat, modules/sigpipe-die, modules/xalloc:
5638         * modules/xmemdup0, modules/xstrtol:
5639         Remove dependency on stdnoreturn.
5640
5641         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5642         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5643         Reparenthesize to avoid GCC warning.
5644         Support Microsoft's syntax.
5645         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5646
5647         _Noreturn-tests: remove module
5648         * modules/_Noreturn-tests: Remove.
5649         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5650         * tests/test-_Noreturn.c: Remove.
5651         * tests/test-stdnoreturn.c: Merge from the old
5652         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5653
5654 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5655
5656         _Noreturn, stdnoreturn, and related modules.
5657
5658         * top/maint.mk: Adjust to new noreturn support.
5659         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5660         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5661
5662         xalloc: use stdnoreturn.h
5663         * lib/xalloc.h: Include <stdnoreturn.h>.
5664         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5665         * modules/xalloc (Depends-on): Add stdnoreturn.
5666
5667         xstrtol: use stdnoreturn.h
5668         * lib/xstrtol.h: Include <stdnoreturn.h>.
5669         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5670         * modules/xstrtol (Depends-on): Add stdnoreturn.
5671
5672         xmemdup0: use stdnoreturn.h
5673         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5675         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5676
5677         sigpipe-die: use stdnoreturn.h
5678         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5680         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5681
5682         openat: use stdnoreturn.h
5683         * lib/openat.h: Include <stdnoreturn.h>.
5684         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5685         * modules/openat (Depends-on): Add stdnoreturn.
5686
5687         * lib/openat-die.c (openat_save_fail): Modernize comment.
5688
5689         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5690
5691         * lib/glthread/thread.h: Modernize comment.
5692
5693         obstack: use _Noreturn
5694         * lib/obstack.c (__attribute__): Remove macro.
5695         (print_and_abort): Use _Noreturn.
5696
5697         c-stack: use _Noreturn
5698         * lib/c-stack.c (die, overflow_handler, segv_handler):
5699         Use _Noreturn rather than __attribute__((noreturn)).
5700
5701         argmatch-tests, exclude_tests: use _Noreturn
5702         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5703         Remove.
5704         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5705
5706         stdlib: use _Noreturn
5707         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5708         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5709         * modules/stdlib (Depends-on): Add _Noreturn.
5710         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5711
5712         stdnoreturn-tests: new module
5713         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5714
5715         stdnoreturn: new module
5716         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5717         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5718
5719         _Noreturn-tests: new module
5720         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5721
5722         _Noreturn: new module
5723         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5724         New section, mentioning it.
5725         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5726
5727         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5728
5729 2011-07-11  Eric Blake  <eblake@redhat.com>
5730
5731         ffs: new module
5732         * modules/ffs: New file.
5733         * m4/ffs.m4: Likewise.
5734         * lib/ffs.c: Likewise.
5735         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5736         * modules/strings (Makefile.am): Substitute witness.
5737         (Depends-on): Add c++defs.
5738         * lib/strings.in.h (ffs): Declare.
5739         * modules/ffs-tests: New test file.
5740         * tests/test-ffs.c: Test new module.
5741         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5742         * doc/posix-functions/ffs.texi (ffs): Likewise.
5743
5744         regex: avoid compiler warning
5745         * lib/regex.c (includes): Include <strings.h>, for use of
5746         strcasecmp in regcomp.c.
5747         Reported by Joachim Schmitz.
5748
5749 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         stdint: respect system's intmax_t if INTMAX_MAX
5752         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5753         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5754         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5755         long but int64_t is long long, and where we will clash with the
5756         system intmax_t if we override it.  See
5757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5758         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5759         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5760         similarly for UINTMAX_C.
5761
5762 2011-07-08  Bruno Haible  <bruno@clisp.org>
5763
5764         pthread_sigmask tests: Avoid a compiler warning.
5765         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5766         non-zero.
5767
5768         sigprocmask tests: A better way to avoid a compiler warning.
5769         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5770         (main): Complain if system() returns non-zero.
5771         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5772
5773 2011-07-08  Bruno Haible  <bruno@clisp.org>
5774
5775         pthread_sigmask: Work around IRIX bug.
5776         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5777         bug.
5778         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5779         there may be unblocked pending signals.
5780         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5781
5782 2011-07-08  Bruno Haible  <bruno@clisp.org>
5783
5784         pthread_sigmask: Work around Cygwin bug.
5785         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5786         bug.
5787         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5788         the system's pthread_sigmask function.
5789         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5790
5791 2011-07-08  Bruno Haible  <bruno@clisp.org>
5792
5793         pthread_sigmask: Work around bug in single-threaded implementation.
5794         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5795         FreeBSD, HP-UX, Solaris bug.
5796         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5797         * lib/pthread_sigmask.c: Include <stddef.h>.
5798         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5799         the system's pthread_sigmask function.
5800         * modules/pthread_sigmask (configure.ac): Invoke
5801         gl_PREREQ_PTHREAD_SIGMASK.
5802         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5803         HP-UX, Solaris.
5804
5805 2011-07-08  Eric Blake  <eblake@redhat.com>
5806
5807         test-sigprocmask: avoid compiler warning
5808         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5809         * tests/test-sigprocmask.c (main): Use it to silence warning.
5810         Reported by Jim Meyering.
5811
5812         test-snprintf: avoid compiler warning
5813         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5814         * tests/test-vsnprintf.c (main): Likewise.
5815         Reported by Jim Meyering.
5816
5817 2011-07-08  Bruno Haible  <bruno@clisp.org>
5818
5819         Tests for module 'pthread_sigmask'.
5820         * modules/pthread_sigmask-tests: New file.
5821         * tests/test-pthread_sigmask1.c: New file, based on
5822         tests/test-sigprocmask.c.
5823         * tests/test-pthread_sigmask2.c: New file.
5824
5825 2011-07-08  Jim Meyering  <meyering@redhat.com>
5826
5827         test-getopt.h: avoid warning about an unused variable
5828         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5829
5830 2011-07-07  Jim Meyering  <meyering@redhat.com>
5831
5832         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5833         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5834         now that it no longer contains leading TABs.
5835         Remove unused "url=FIXME" statement.
5836
5837 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5838
5839         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5841         When gl_THREADLIB is not in use, assume that the POSIX sematics
5842         are desired.  This is better for Emacs, which uses POSIX semantics
5843         on GNUish and/or POSIXish platforms, and does not use threads at
5844         all otherwise.
5845
5846         pthread_sigmask: fix typo when testing for libraries
5847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5848         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5849
5850 2011-07-08  Eric Blake  <eblake@redhat.com>
5851
5852         fts: introduce FTS_NOATIME
5853         * lib/fts_.h (FTS_NOATIME): New bit flag.
5854         (FTS_OPTIONMASK): Adjust.
5855         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5856         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5857
5858 2011-07-08  Bruno Haible  <bruno@clisp.org>
5859
5860         Tests for module 'thread'.
5861         * modules/thread-tests: New file.
5862         * tests/test-thread_self.c: New file.
5863         * tests/test-thread_create.cc: New file.
5864
5865 2011-07-08  Bruno Haible  <bruno@clisp.org>
5866
5867         thread: Avoid gcc warnings when using gl_thread_self().
5868         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5869         'void *'.
5870         (gl_thread_self_pointer): Update.
5871
5872 2011-07-07  Bruno Haible  <bruno@clisp.org>
5873
5874         signal-c++-tests: Check declaration of pthread_sigmask.
5875         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5876         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5877         $(LIB_PTHREAD_SIGMASK).
5878
5879 2011-07-07  Bruno Haible  <bruno@clisp.org>
5880
5881         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5882         * lib/signal.in.h (pthread_sigmask): Override if
5883         REPLACE_PTHREAD_SIGMASK is 1.
5884         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5885         REPLACE_PTHREAD_SIGMASK.
5886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5887         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5888         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5889         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5890         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5891
5892 2011-07-07  Bruno Haible  <bruno@clisp.org>
5893
5894         pthread_sigmask: Ensure declaration in <signal.h>.
5895         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5896         include <pthread.h>.
5897         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5898         problem.
5899
5900 2011-07-07  Bruno Haible  <bruno@clisp.org>
5901
5902         pthread_sigmask: Document the module.
5903         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5904
5905 2011-07-07  Bruno Haible  <bruno@clisp.org>
5906
5907         pthread_sigmask: Follow gnulib conventions.
5908         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5909         gl_PTHREAD_SIGMASK.
5910         * modules/pthread_sigmask (configure.ac): Update.
5911
5912 2011-07-07  Bruno Haible  <bruno@clisp.org>
5913
5914         pthread_sigmask: Make declaration C++ safe.
5915         * lib/signal.in.h: In two special conditions, just do an #include_next.
5916         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5917         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5918         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5919         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5920         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5921         not REPLACE_PTHREAD_MASK.
5922         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5923         not REPLACE_PTHREAD_MASK.
5924         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5925
5926 2011-07-07  Bruno Haible  <bruno@clisp.org>
5927
5928         pthread_sigmask: Fix return value.
5929         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5930         * lib/pthread_sigmask.c: New file.
5931         * modules/pthread_sigmask (Files): Add it.
5932         (configure.ac): Invoke AC_LIBOBJ.
5933
5934 2011-07-07  Eric Blake  <eblake@redhat.com>
5935
5936         getopt: more portable argv creation
5937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5938         const, use char arrays rather than strings.
5939         Suggested by Paul Eggert.
5940
5941 2011-07-07  Bruno Haible  <bruno@clisp.org>
5942
5943         Tests for module 'sigprocmask'.
5944         * modules/sigprocmask-tests: New file.
5945         * tests/test-sigprocmask.c: New file.
5946
5947 2011-07-07  Bruno Haible  <bruno@clisp.org>
5948
5949         float tests: Tweak.
5950         * tests/test-float.c (main): Tweak skip message.
5951
5952 2011-07-07  Eric Blake  <eblake@redhat.com>
5953
5954         getopt: avoid compiler warning during configure
5955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5956         assigning string literals to non-const pointer.
5957
5958         getopt-gnu: avoid crash in glibc getopt
5959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5960         * tests/test-getopt.h (test_getopt): Enhance test.
5961         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5962         * doc/posix-functions/getopt.texi (getopt): Document it.
5963         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5964         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5965         Likewise.
5966
5967 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5968
5969         getopt: handle W; without long options in getopt [BZ #12922]
5970         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5971         but no long options are defined, just return 'W'.
5972
5973 2011-07-07  Bruno Haible  <bruno@clisp.org>
5974
5975         Avoid literal tabs.
5976         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5977         variable containing a tab instead of a literal tab.
5978         Reported by Jim Meyering.
5979
5980 2011-07-07  Bruno Haible  <bruno@clisp.org>
5981
5982         Comments.
5983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5984
5985 2011-07-06  Bruno Haible  <bruno@clisp.org>
5986
5987         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5988         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5989         <winsock2.h>.
5990         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5991         lib/sys_socket.in.h.
5992         (close, gethostname): Hide declarations from <winsock2.h>.
5993         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5994         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5995         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5996         (select): Don't override if gnulib's <sys/select.h> was already
5997         included.
5998         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5999         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6000         setsockopt, shutdown, select): Tweak indentation.
6001
6002 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6003
6004         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6005         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6006         in an application that does not use the sys_select module.
6007
6008 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6009
6010         poll: do not return 0 on timeout=-1
6011         * lib/poll.c: Loop with yield if no events occured
6012
6013 2011-07-06  Eric Blake  <eblake@redhat.com>
6014
6015         pthread_sigmask: always replace when not using pthread
6016         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6017         replacement when using some threading other than pthread.  Fix
6018         logic bug.
6019
6020 2011-07-06  Bruno Haible  <bruno@clisp.org>
6021
6022         Comments.
6023         * m4/printf.m4: Update comments about mingw.
6024
6025 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         sys_select: define sigset_t more portably
6028         * lib/sys_select.in.h: Always include <sys/types.h>, since
6029         we now need sigset_t and mingw defines it there.
6030         Include <signal.h> before split inclusion guard, to avoid
6031         mishaps on Solaris, whose <signal.h> eventually includes us.
6032         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6033         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6034         which come from ...
6035         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6036         gl_CHECK_TYPE_SIGSET_T.
6037         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6038         does the real work.
6039         * modules/sys_select (Depends-on): Add 'signal'.
6040
6041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6042         Suggested by Bruno Haible.
6043
6044         pselect: Use pthread_sigmask, not sigprocmask.
6045         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6046         multithreaded apps better than sigprocmask does.
6047         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6048         sigprocmask directly.
6049
6050 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6051
6052         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6053         Don't #undef,  since we don't need any underlying pselect.
6054         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6055         (Depends-on): Add select.
6056         (Link): Add $(LIBSOCKET).
6057         These changes suggested by Bruno Haible.
6058
6059         pselect: document better
6060         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6061         * doc/posix-functions/pselect.texi (pselect): Document new module.
6062
6063         pthread_sigmask: new module
6064         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6065         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6066         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6067         This is done only as a macro; I don't know how well that'll
6068         work for C++.  Move <sys/types.h> include before the include_next,
6069         to avoid mishap on Solaris.
6070         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6071         * modules/signal (Makefile.am): Substitute the check's results.
6072         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6073
6074         test-pselect: new module
6075         * modules/pselect-tests, tests/test-pselect.c: New files.
6076         * tests/test-select.c, tests/test-sys_select-c++.cc:
6077         If TEST_PSELECT is defined, test pselect instead of testing select.
6078
6079         * tests/test-sys_select.c (sigset_t): Test for it, too.
6080         Suggested by Bruno Haible.
6081
6082 2011-07-05  Eric Blake  <eblake@redhat.com>
6083
6084         snprintf: guarantee %1$d, for libintl
6085         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6087         * doc/posix-functions/snprintf.texi (snprintf): Update.
6088         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6089         * tests/test-snprintf.c (main): Enhance test.
6090         * tests/test-vsnprintf.c (main): Likewise.
6091
6092 2011-07-05  Jim Meyering  <meyering@redhat.com>
6093
6094         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6095         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6096         per Bruno's request, to accommodate this idiom (no space after "#")
6097         even when the function is inside an #if block:
6098         char *
6099         gets (char *s)
6100         #undef gets
6101         {
6102           ...
6103         }
6104
6105 2011-07-04  Jim Meyering  <meyering@redhat.com>
6106
6107         maint: indent with spaces, not TABs, and add a rule to check this
6108         * tests/test-userspec.c: Indent with spaces, not TABs.
6109         * tests/test-argp.c: Likewise.
6110         * tests/test-c-stack2.sh: Likewise.
6111         * tests/test-parse-duration.sh: Likewise
6112         * m4/strtod.m4: Likewise.
6113         * m4/alloca.m4: Likewise.
6114         * m4/pselect.m4: Likewise.
6115         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6116
6117 2011-07-03  Jim Meyering  <meyering@redhat.com>
6118
6119         maint.mk: correct omissions in prohibit_argmatch_without_use check
6120         This rule would mistakenly report that argmatch.h is included without
6121         use even when both the argmatch and invalid_arg macro were used.
6122         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6123         of argmatch and invalid_arg.
6124
6125 2011-07-03  Bruno Haible  <bruno@clisp.org>
6126
6127         Comments about EINTR.
6128         * lib/safe-read.h: Explain the purpose of this module.
6129         * lib/safe-write.h: Likewise.
6130         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6131         module.
6132         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6133         module.
6134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6135
6136 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6137
6138         xnanosleep: Rewrite to use new dtotimespec module.
6139         It has the conversion code that used to be in xnanosleep.
6140         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6141         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6142         (TIME_T_MAX): Remove.
6143         (xnanosleep): Rewrite in terms of dtotimespec.
6144         * modules/xnanosleep (Depends-on): Add dtotimespec.
6145         Remove intprops, stdbool.
6146
6147         timespec-add, timespec-sub: new modules
6148         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6149         * lib/timespec-add.c, lib/timespec-sub.c:
6150         * modules/timespec-add, modules/timespec-sub: New files.
6151
6152         dtotimespec: new module
6153         * lib/timespec.h (dtotimespec): New decl.
6154         * lib/dtotimespec.c, modules/dtotimespec: New files.
6155
6156         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6157
6158         pselect: new module
6159         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6160         (pselect): New decls.
6161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6162         since the standard pselect decl uses 'restrict'.
6163         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6164         HAVE_PSELECT, REPLACE_PSELECT.
6165         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6166         HAVE_PSELECT, REPLACE_PSELECT.
6167         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6168
6169         sys_select: don't depend on sys_socket
6170         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6172         This fix works on GNU and GNU-like platforms, but has not been tested
6173         on native Windows.
6174         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6176         gl_HEADER_SYS_SOCKET.
6177         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6178         gl_PREREQ_SYS_H_WINSOCK2.
6179
6180 2011-06-29  Eric Blake  <eblake@redhat.com>
6181
6182         pipe2: fix C89 compile problem
6183         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6184         Reported by Bruno Haible.
6185
6186         pipe, pipe2: don't corrupt fd on error
6187         * lib/pipe.c (pipe): Leave fd unchanged on error.
6188         * lib/pipe2.c (pipe2): Likewise.
6189         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6190         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6191
6192 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6193
6194         mmap-anon: do not use regular expressions inadvertently
6195         * m4/mmap-anon.m4: Remove trailing period from strings sought
6196         in the output.
6197
6198 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6199
6200         nanosleep: fix integer overflow problem
6201         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6202         arithmetic wraps around on overflow.
6203
6204         nanosleep: simplify carrying
6205         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6206         first call to the underyling nanosleep, not for the last one.
6207         This doesn't fix any bugs, but it simplifies the computation of
6208         the remaining delay.  Found while auditing integer overflow issues.
6209
6210         dup2: remove test for existence of fcntl
6211         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6212         "#if HAVE_FCNTL", in the configure-time test program.
6213         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6214         and therefore speeds up "configure" a bit.  Found while
6215         adding the dup2 module to Emacs.
6216
6217 2011-06-24  Eric Blake  <eblake@redhat.com>
6218
6219         maint.mk: enhance useless header checks
6220         * top/maint.mk (_sc_header_without_use): Check both include
6221         styles.
6222         (sc_prohibit_assert_without_use)
6223         (sc_prohibit_close_stream_without_use)
6224         (sc_prohibit_getopt_without_use)
6225         (sc_prohibit_quotearg_without_use)
6226         (sc_prohibit_quote_without_use)
6227         (sc_prohibit_long_options_without_use)
6228         (sc_prohibit_inttostr_without_use)
6229         (sc_prohibit_ignore_value_without_use)
6230         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6231         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6232         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6233         (sc_prohibit_hash_pjw_without_use)
6234         (sc_prohibit_safe_read_without_use)
6235         (sc_prohibit_argmatch_without_use)
6236         (sc_prohibit_canonicalize_without_use)
6237         (sc_prohibit_root_dev_ino_without_use)
6238         (sc_prohibit_openat_without_use)
6239         (sc_prohibit_c_ctype_without_use)
6240         (sc_prohibit_signal_without_use)
6241         (sc_prohibit_stdio--_without_use)
6242         (sc_prohibit_stdio-safer_without_use)
6243         (sc_prohibit_strings_without_use)
6244         (sc_prohibit_intprops_without_use)
6245         (sc_prohibit_stddef_without_use)
6246         (sc_prohibit_xfreopen_without_use): Update clients.
6247
6248 2011-06-24  Jim Meyering  <meyering@redhat.com>
6249
6250         syntax-check: keep one maint.mk rule in sync with its header
6251         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6252         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6253         I prefer to avoid temporary files here, so use <(...), but that
6254         is not supported by /bin/sh, so...
6255         (SHELL): Define to /bin/bash.
6256
6257 2011-06-24  Eric Blake  <eblake@redhat.com>
6258
6259         maint.mk: update sc_prohibit_intprops_without_use
6260         * top/maint.mk (_intprops_names): Match recent changes.
6261
6262 2011-06-24  Bruno Haible  <bruno@clisp.org>
6263
6264         strerror-override: No-op tweak.
6265         * lib/strerror-override.h (strerror_override): Reorder conditions,
6266         for consistency with lib/strerror-override.c.
6267
6268 2011-06-23  Eric Blake  <eblake@redhat.com>
6269
6270         maint.mk: test further PATH_MAX issues
6271         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6272         (sc_prohibit_path_max_allocation): ...and also test alloca.
6273         Suggested by Jim Meyering.
6274
6275 2011-06-22  Eric Blake  <eblake@redhat.com>
6276
6277         maint.mk: add syntax-check to avoid char[PATH_MAX]
6278         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6279
6280         stat: be robust to PATH_MAX definition
6281         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6282         * modules/stat (Depends-on): Add verify.
6283
6284         link: work around IRIX bug
6285         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6286         * lib/link.c (rpl_link): Work around it.
6287         * tests/test-link.h (test_link): Enhance test.
6288         * doc/posix-functions/link.texi (link): Document the bug.
6289
6290         getopt: silence clang warning
6291         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6292         dereference.
6293         Reported by Gustavo Martin Domato.
6294
6295 2011-06-22  Jim Meyering  <meyering@redhat.com>
6296
6297         bootstrap: do not insert a blank line into each .gitignore file
6298         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6299
6300 2011-06-21  Eric Blake  <eblake@redhat.com>
6301
6302         perror: test for output mismatch
6303         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6304         perror on IRIX.
6305
6306         strerror_r: fix OpenBSD behavior on out-of-range
6307         * lib/strerror_r.c (strerror_r): Always use maximal string.
6308         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6309
6310         strerror_r: fix OpenBSD behavior on 0
6311         * lib/strerror-override.c (strerror_override): Also override 0
6312         when needed.
6313         * lib/strerror-override.h (strerror_override): Likewise.
6314         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6315         earlier.
6316         * lib/strerror_r.c (strerror_r): Likewise.
6317         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6318         behavior...
6319         (gl_FUNC_STRERROR_0): ...into new macro.
6320         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6321         is overridden.
6322         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6323         * modules/strerror-override (Files): Add strerror.m4.
6324         (configure.ac): Also provide override for 0 when needed.
6325         * doc/posix-functions/strerror.texi (strerror): Document this.
6326         * doc/posix-functions/perror.texi (perror): Likewise.
6327
6328         perror: adjust array size
6329         * modules/perror (Depends-on): Add strerror-override.
6330         * lib/perror.c (perror): Use it to avoid magic number.
6331
6332         strerror-override: reduce size
6333         * lib/strerror-override.c (strerror_override): Use fewer lines.
6334
6335 2011-06-20  Bruno Haible  <bruno@clisp.org>
6336
6337         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6338         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6339
6340 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6341
6342         alloca: port to compilers that can optimize like GCC 4.6.0
6343         * lib/alloca.c (find_stack_direction): New signature, taken from
6344         Autoconf git.  This works with GCC 4.6.0.  This code should never
6345         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6346         be used with other compilers that optimize as well as GCC 4.6.0 does.
6347         (alloca): Adjust to new signature.
6348         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6349         New macro, which patches Autoconf in a similar way.
6350
6351         c-stack: stop worrying about stack direction
6352         * lib/c-stack.c (find_stack_direction): Remove.
6353         (segv_handler): Don't worry about stack direction growth, as it's
6354         too much of a pain to configure this correctly, given how compilers
6355         are optimizing-away our stack-growth detection code.  Instead, assume
6356         that any access to just before or just after the stack is OK.
6357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6358         Don't require AC_FUNC_ALLOCA; no longer needed.
6359
6360 2011-06-20  Eric Blake  <eblake@redhat.com>
6361
6362         test-stat: don't allocate PATH_MAX bytes
6363         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6364         PATH_MAX-sized buffer.
6365         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6366         * modules/stat-tests (Depends-on): Likewise.
6367         * tests/test-fstatat.c (includes): Drop pathmax.h.
6368         * tests/test-stat.c (includes): Likewise.
6369         Reported by Bruno Haible.
6370
6371 2011-06-20  Bruno Haible  <bruno@clisp.org>
6372
6373         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6374         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6375         * lib/float.c: New file.
6376         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6377         REPLACE_FLOAT_LDBL.
6378         * modules/float (Files): Add lib/float.c.
6379         (configure.ac): Invoke AC_LIBOBJ.
6380         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6381
6382 2011-06-20  Bruno Haible  <bruno@clisp.org>
6383
6384         Tests for module 'float'.
6385         * modules/float-tests: New file.
6386         * tests/test-float.c: New file.
6387
6388 2011-06-19  Bruno Haible  <bruno@clisp.org>
6389
6390         isinf: Coding style.
6391         * lib/isinf.c: Use GNU coding style.
6392
6393 2011-06-19  Bruno Haible  <bruno@clisp.org>
6394
6395         linkat test: Avoid test failure on AIX 7.1.
6396         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6397         * tests/test-link.h (test_link): Likewise.
6398
6399 2011-06-19  Bruno Haible  <bruno@clisp.org>
6400
6401         pread test: Avoid test failure on OpenBSD 4.9.
6402         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6403
6404 2011-06-19  Bruno Haible  <bruno@clisp.org>
6405
6406         sprintf-posix: Fix test failure on AIX 7.1.
6407         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6408         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6409         on AIX.
6410         * doc/posix-functions/fprintf.texi: Likewise.
6411         * doc/posix-functions/printf.texi: Likewise.
6412         * doc/posix-functions/snprintf.texi: Likewise.
6413         * doc/posix-functions/sprintf.texi: Likewise.
6414         * doc/posix-functions/vdprintf.texi: Likewise.
6415         * doc/posix-functions/vfprintf.texi: Likewise.
6416         * doc/posix-functions/vprintf.texi: Likewise.
6417         * doc/posix-functions/vsnprintf.texi: Likewise.
6418         * doc/posix-functions/vsprintf.texi: Likewise.
6419
6420 2011-06-19  Bruno Haible  <bruno@clisp.org>
6421
6422         roundl-ieee: Fix test failure on AIX 7.1.
6423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6424         * doc/posix-functions/roundl.texi: Mention problem with negative
6425         arguments.
6426
6427 2011-06-19  Bruno Haible  <bruno@clisp.org>
6428
6429         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6430         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6431         * doc/posix-functions/round.texi: Mention problem with negative
6432         arguments.
6433         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6434
6435 2011-06-19  Bruno Haible  <bruno@clisp.org>
6436
6437         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6439         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6440         * doc/posix-functions/roundf.texi: Mention problem with negative
6441         arguments.
6442         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6443
6444 2011-06-19  Bruno Haible  <bruno@clisp.org>
6445
6446         ceilf-ieee: Work around bug on MacOS X 10.5.
6447         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6448
6449         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6450         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6451         IEEE compliant, avoid compiler optimizations.
6452         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6453         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6454         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6455         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6456         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6457         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6458         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6460         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6462
6463 2011-06-19  Bruno Haible  <bruno@clisp.org>
6464
6465         ceilf-ieee: Work around bug on AIX 7.1.
6466         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6467         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6468
6469 2011-06-19  Bruno Haible  <bruno@clisp.org>
6470
6471         ceil-ieee: Work around bug on AIX 7.1.
6472         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6473         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6474
6475 2011-06-18  Bruno Haible  <bruno@clisp.org>
6476
6477         fsync test: Avoid test failure on MacOS X and AIX.
6478         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6479         EINVAL.
6480
6481 2011-06-18  Bruno Haible  <bruno@clisp.org>
6482
6483         openat, fdopendir tests: Fix link errors.
6484         * modules/openat-tests (Depends-on): Add progname.
6485         * modules/fdopendir-tests (Depends-on): Likewise.
6486         * tests/test-fchownat.c: Include progname.h.
6487         (main): Call set_program_name.
6488         * tests/test-fstatat.c: Include progname.h.
6489         (main): Call set_program_name.
6490         * tests/test-mkdirat.c: Include progname.h.
6491         (main): Call set_program_name.
6492         * tests/test-openat.c: Include progname.h.
6493         (main): Call set_program_name.
6494         * tests/test-unlinkat.c: Include progname.h.
6495         (main): Call set_program_name.
6496         * tests/test-fdopendir.c: Include progname.h.
6497         (main): Call set_program_name.
6498
6499 2011-06-18  Bruno Haible  <bruno@clisp.org>
6500
6501         Doc update.
6502         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6503         HP-UX.
6504         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6505
6506 2011-06-18  Bruno Haible  <bruno@clisp.org>
6507
6508         getcwd tests: Avoid compilation error on HP-UX 11.31.
6509         * modules/getcwd-tests (Depends-on): Add pathmax.
6510         * tests/test-getcwd.c: Include pathmax.h.
6511
6512 2011-06-18  Bruno Haible  <bruno@clisp.org>
6513
6514         isfinite, isinf: Fix link error on AIX 6 and 7.
6515         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6516         needed, also test the macro with a 'float' argument.
6517         * m4/isinf.m4 (gl_ISINF): Likewise.
6518
6519 2011-06-18  Bruno Haible  <bruno@clisp.org>
6520
6521         getloadavg: Don't clobber LIBS. Regression from previous commit.
6522         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6523         AC_CHECK_LIB from here...
6524         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6525         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6526         gl_func_getloadavg_done.
6527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6528
6529 2011-06-18  Bruno Haible  <bruno@clisp.org>
6530
6531         clean-temp: Improve documentation.
6532         * lib/clean-temp.h: Explain better how to use this module.
6533         Reported by John Darrington <john@darrington.wattle.id.au>.
6534
6535 2011-06-17  Bruno Haible  <bruno@clisp.org>
6536
6537         pread, pwrite: Avoid cc warning on AIX.
6538         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6539         (pwrite): Likewise.
6540
6541 2011-06-17  Bruno Haible  <bruno@clisp.org>
6542
6543         spawn-pipe tests: Fix link error.
6544         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6546
6547 2011-06-17  Bruno Haible  <bruno@clisp.org>
6548
6549         Tests: Remove unnecessary dependency.
6550         * modules/canonicalize-tests (Depends-on): Remove progname.
6551         * modules/chown-tests (Depends-on): Likewise.
6552         * modules/dirname-tests (Depends-on): Likewise.
6553         * modules/fdopendir-tests (Depends-on): Likewise.
6554         * modules/fdutimensat-tests (Depends-on): Likewise.
6555         * modules/hash-tests (Depends-on): Likewise.
6556         * modules/lchown-tests (Depends-on): Likewise.
6557         * modules/linkat-tests (Depends-on): Likewise.
6558         * modules/renameat-tests (Depends-on): Likewise.
6559         * modules/spawn-pipe-tests (Depends-on): Likewise.
6560         * modules/utimensat-tests (Depends-on): Likewise.
6561
6562 2011-06-17  Bruno Haible  <bruno@clisp.org>
6563
6564         spawn-pipe tests: Fix link error.
6565         * tests/test-spawn-pipe-child.c: Undefine fflush.
6566
6567 2011-06-17  Bruno Haible  <bruno@clisp.org>
6568
6569         Fix tests link errors.
6570         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6571         * modules/chown-tests (Makefile.am): Don't link test-chown with
6572         LIBINTL.
6573         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6574         LIBINTL.
6575         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6576         LIBINTL.
6577         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6578         LIBINTL.
6579
6580 2011-06-16  Bruno Haible  <bruno@clisp.org>
6581
6582         crypto/gc-sha1: Fix recent regression.
6583         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6584         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6585
6586         crypto/gc-md5: Fix recent regression.
6587         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6588
6589         crypto/gc-md4: Fix recent regression.
6590         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6591         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6592
6593         crypto/gc-arctwo: Fix recent regression.
6594         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6595         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6596
6597         crypto/gc-rijndael: Fix recent regression.
6598         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6599         (configure.ac): Invoke AC_LIBOBJ here.
6600         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6602
6603         crypto/gc-hmac-sha1: Fix recent regression.
6604         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6605         (configure.ac): Invoke AC_LIBOBJ here.
6606         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6608
6609         crypto/gc-hmac-md5: Fix recent regression.
6610         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6611         (configure.ac): Invoke AC_LIBOBJ here.
6612         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6614
6615         crypto/gc-des: Fix recent regression.
6616         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6617         (configure.ac): Invoke AC_LIBOBJ here.
6618         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6620
6621         crypto/gc-arcfour: Fix recent regression.
6622         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6623         (configure.ac): Invoke AC_LIBOBJ here.
6624         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6626
6627 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6628
6629         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6630         After the 2011-05-21 change, this macro requires
6631         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6633
6634 2011-06-16  Bruno Haible  <bruno@clisp.org>
6635
6636         fprintftime: Move AC_LIBOBJ invocations to module description.
6637         * m4/fprintftime.m4: Remove file.
6638         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6639         (configure.ac): Remove gl_FPRINTFTIME call.
6640         (Makefile.am): Augment lib_SOURCES.
6641         Reported by Jim Meyering.
6642
6643 2011-06-16  Bruno Haible  <bruno@clisp.org>
6644
6645         tmpfile-safer: Finish 2011-05-23 commit.
6646         * m4/stdio-safer.m4: Really remove file.
6647         Reported by Jim Meyering.
6648
6649 2011-06-16  Bruno Haible  <bruno@clisp.org>
6650
6651         syntax-check: Fix typo.
6652         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6653         printf-posix.m4.
6654         Reported by Jim Meyering.
6655
6656 2011-06-13  Jim Meyering  <meyering@redhat.com>
6657
6658         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6659         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6660
6661 2011-05-23  Bruno Haible  <bruno@clisp.org>
6662
6663         yesno: Move AC_LIBOBJ invocations to module description.
6664         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6665         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6666
6667 2011-05-23  Bruno Haible  <bruno@clisp.org>
6668
6669         xstrtol: Move AC_LIBOBJ invocations to module description.
6670         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6671         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6672
6673 2011-05-23  Bruno Haible  <bruno@clisp.org>
6674
6675         xstrtold: Move AC_LIBOBJ invocations to module description.
6676         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6677         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6678
6679 2011-05-23  Bruno Haible  <bruno@clisp.org>
6680
6681         xstrtod: Move AC_LIBOBJ invocations to module description.
6682         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6683         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6684
6685 2011-05-23  Bruno Haible  <bruno@clisp.org>
6686
6687         xnanosleep: Move AC_LIBOBJ invocations to module description.
6688         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6689         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6690
6691 2011-05-23  Bruno Haible  <bruno@clisp.org>
6692
6693         xgetcwd: Move AC_LIBOBJ invocations to module description.
6694         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6695         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6696
6697 2011-05-23  Bruno Haible  <bruno@clisp.org>
6698
6699         xalloc: Move AC_LIBOBJ invocations to module description.
6700         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6701         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6702
6703 2011-05-23  Bruno Haible  <bruno@clisp.org>
6704
6705         write-any-file: Move AC_LIBOBJ invocations to module description.
6706         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6707         invocation.
6708         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6709
6710 2011-05-23  Bruno Haible  <bruno@clisp.org>
6711
6712         utimens: Move AC_LIBOBJ invocations to module description.
6713         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6714         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6715
6716 2011-05-23  Bruno Haible  <bruno@clisp.org>
6717
6718         utimecmp: Move AC_LIBOBJ invocations to module description.
6719         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6720         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6721
6722 2011-05-23  Bruno Haible  <bruno@clisp.org>
6723
6724         userspec: Move AC_LIBOBJ invocations to module description.
6725         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6726         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6727
6728 2011-05-23  Bruno Haible  <bruno@clisp.org>
6729
6730         unlinkdir: Move AC_LIBOBJ invocations to module description.
6731         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6732         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6733
6734 2011-05-23  Bruno Haible  <bruno@clisp.org>
6735
6736         unistd-safer: Move AC_LIBOBJ invocations to module description.
6737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6738         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6739
6740 2011-05-23  Bruno Haible  <bruno@clisp.org>
6741
6742         tempname: Move AC_LIBOBJ invocations to module description.
6743         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6744         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6745
6746 2011-05-23  Bruno Haible  <bruno@clisp.org>
6747
6748         strftime: Move AC_LIBOBJ invocations to module description.
6749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6750         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6751
6752 2011-05-23  Bruno Haible  <bruno@clisp.org>
6753
6754         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6755         * m4/stdlib-safer.m4: Remove file.
6756         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6757         (configure.ac): Remove gl_STDLIB_SAFER call.
6758         (Makefile.am): Augment lib_SOURCES.
6759
6760 2011-05-23  Bruno Haible  <bruno@clisp.org>
6761
6762         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6763         * m4/stdio-safer.m4: Remove file.
6764         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6765         (configure.ac): Remove gl_TMPFILE_SAFER call.
6766         (Makefile.am): Augment lib_SOURCES.
6767
6768 2011-05-23  Bruno Haible  <bruno@clisp.org>
6769
6770         popen-safer: Move AC_LIBOBJ invocations to module description.
6771         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6772         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6773         (configure.ac): Remove gl_POPEN_SAFER call.
6774         (Makefile.am): Augment lib_SOURCES.
6775
6776 2011-05-23  Bruno Haible  <bruno@clisp.org>
6777
6778         freopen-safer: Move AC_LIBOBJ invocations to module description.
6779         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6780         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6781         (configure.ac): Remove gl_FREOPEN_SAFER call.
6782         (Makefile.am): Augment lib_SOURCES.
6783
6784 2011-05-23  Bruno Haible  <bruno@clisp.org>
6785
6786         fopen-safer: Move AC_LIBOBJ invocations to module description.
6787         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6788         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6789         (configure.ac): Remove gl_FOPEN_SAFER call.
6790         (Makefile.am): Augment lib_SOURCES.
6791
6792 2011-05-23  Bruno Haible  <bruno@clisp.org>
6793
6794         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6795         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6796         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6797
6798 2011-05-23  Bruno Haible  <bruno@clisp.org>
6799
6800         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6801         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6802         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6803
6804 2011-05-23  Bruno Haible  <bruno@clisp.org>
6805
6806         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6807         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6808         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6809
6810 2011-05-23  Bruno Haible  <bruno@clisp.org>
6811
6812         settime: Move AC_LIBOBJ invocations to module description.
6813         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6814         * modules/settime (Makefile.am): Augment lib_SOURCES.
6815
6816 2011-05-23  Bruno Haible  <bruno@clisp.org>
6817
6818         savedir: Move AC_LIBOBJ invocations to module description.
6819         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6820         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6821
6822 2011-05-23  Bruno Haible  <bruno@clisp.org>
6823
6824         save-cwd: Move AC_LIBOBJ invocations to module description.
6825         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6826         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6827
6828 2011-05-23  Bruno Haible  <bruno@clisp.org>
6829
6830         same: Move AC_LIBOBJ invocations to module description.
6831         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6832         * modules/same (Makefile.am): Augment lib_SOURCES.
6833
6834 2011-05-23  Bruno Haible  <bruno@clisp.org>
6835
6836         safe-write: Move AC_LIBOBJ invocations to module description.
6837         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6838         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6839         instead of gl_SAFE_WRITE.
6840         (Makefile.am): Augment lib_SOURCES.
6841
6842 2011-05-23  Bruno Haible  <bruno@clisp.org>
6843
6844         safe-read: Move AC_LIBOBJ invocations to module description.
6845         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6846         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6847         of gl_SAFE_READ.
6848         (Makefile.am): Augment lib_SOURCES.
6849
6850 2011-05-23  Bruno Haible  <bruno@clisp.org>
6851
6852         safe-alloc: Move AC_LIBOBJ invocations to module description.
6853         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6854         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6855
6856 2011-05-23  Bruno Haible  <bruno@clisp.org>
6857
6858         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6859         * m4/rijndael.m4: Remove file.
6860         * modules/crypto/rijndael (Files): Remove it.
6861         (configure.ac): Remove gl_RIJNDAEL call.
6862         (Makefile.am): Augment lib_SOURCES.
6863
6864 2011-05-23  Bruno Haible  <bruno@clisp.org>
6865
6866         readtokens: Move AC_LIBOBJ invocations to module description.
6867         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6868         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6869
6870 2011-05-23  Bruno Haible  <bruno@clisp.org>
6871
6872         read-file: Move AC_LIBOBJ invocations to module description.
6873         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6874         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6875         of gl_FUNC_READ_FILE.
6876         (Makefile.am): Augment lib_SOURCES.
6877
6878 2011-05-23  Bruno Haible  <bruno@clisp.org>
6879
6880         quotearg: Move AC_LIBOBJ invocations to module description.
6881         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6882         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6883
6884 2011-05-23  Bruno Haible  <bruno@clisp.org>
6885
6886         quote: Move AC_LIBOBJ invocations to module description.
6887         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6888         * modules/quote (Makefile.am): Augment lib_SOURCES.
6889
6890 2011-05-23  Bruno Haible  <bruno@clisp.org>
6891
6892         posixver: Move AC_LIBOBJ invocations to module description.
6893         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6894         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6895
6896 2011-05-23  Bruno Haible  <bruno@clisp.org>
6897
6898         posixtm: Move AC_LIBOBJ invocations to module description.
6899         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6900         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6901
6902 2011-05-23  Bruno Haible  <bruno@clisp.org>
6903
6904         physmem: Move AC_LIBOBJ invocations to module description.
6905         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6906         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6907
6908 2011-05-23  Bruno Haible  <bruno@clisp.org>
6909
6910         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6911         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6912         invocation.
6913         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6914
6915 2011-05-23  Bruno Haible  <bruno@clisp.org>
6916
6917         mpsort: Move AC_LIBOBJ invocations to module description.
6918         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6919         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6920
6921 2011-05-23  Bruno Haible  <bruno@clisp.org>
6922
6923         modechange: Move AC_LIBOBJ invocations to module description.
6924         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6925         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6926
6927 2011-05-23  Bruno Haible  <bruno@clisp.org>
6928
6929         mkdir-p: Move AC_LIBOBJ invocations to module description.
6930         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6931         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6936         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6937         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6938
6939 2011-05-23  Bruno Haible  <bruno@clisp.org>
6940
6941         mgetgroups: Move AC_LIBOBJ invocations to module description.
6942         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6943         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6944
6945 2011-05-23  Bruno Haible  <bruno@clisp.org>
6946
6947         memxor: Move AC_LIBOBJ invocations to module description.
6948         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6949         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6950
6951 2011-05-23  Bruno Haible  <bruno@clisp.org>
6952
6953         memcoll: Move AC_LIBOBJ invocations to module description.
6954         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6955         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6956
6957 2011-05-23  Bruno Haible  <bruno@clisp.org>
6958
6959         memcasecmp: Move AC_LIBOBJ invocations to module description.
6960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6961         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6962
6963 2011-05-23  Bruno Haible  <bruno@clisp.org>
6964
6965         crypto/md5: Move AC_LIBOBJ invocations to module description.
6966         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6967         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6968
6969 2011-05-23  Bruno Haible  <bruno@clisp.org>
6970
6971         crypto/md4: Move AC_LIBOBJ invocations to module description.
6972         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6973         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6974
6975 2011-05-23  Bruno Haible  <bruno@clisp.org>
6976
6977         crypto/md2: Move AC_LIBOBJ invocations to module description.
6978         * m4/md2.m4: Remove file.
6979         * modules/crypto/md2 (Files): Remove it.
6980         (configure.ac): Remove gl_MD2 call.
6981         (Makefile.am): Augment lib_SOURCES.
6982
6983 2011-05-23  Bruno Haible  <bruno@clisp.org>
6984
6985         long-options: Move AC_LIBOBJ invocations to module description.
6986         * m4/long-options.m4: Remove file.
6987         * modules/long-options (Files): Remove it.
6988         (configure.ac): Remove gl_LONG_OPTIONS call.
6989         (Makefile.am): Augment lib_SOURCES.
6990
6991 2011-05-23  Bruno Haible  <bruno@clisp.org>
6992
6993         i-ring: Move AC_LIBOBJ invocations to module description.
6994         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6995         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6996
6997 2011-05-23  Bruno Haible  <bruno@clisp.org>
6998
6999         idcache: Move AC_LIBOBJ invocations to module description.
7000         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7001         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7002
7003 2011-05-23  Bruno Haible  <bruno@clisp.org>
7004
7005         human: Move AC_LIBOBJ invocations to module description.
7006         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7007         * modules/human (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7012         * m4/hmac-sha1.m4: Remove file.
7013         * modules/crypto/hmac-sha1 (Files): Remove it.
7014         (configure.ac): Remove gl_HMAC_SHA1 call.
7015         (Makefile.am): Augment lib_SOURCES.
7016
7017 2011-05-23  Bruno Haible  <bruno@clisp.org>
7018
7019         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7020         * m4/hmac-md5.m4: Remove file.
7021         * modules/crypto/hmac-md5 (Files): Remove it.
7022         (configure.ac): Remove gl_HMAC_MD5 call.
7023         (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         hash: Move AC_LIBOBJ invocations to module description.
7028         * m4/hash.m4: Remove file.
7029         * modules/hash (Files): Remove it.
7030         (configure.ac): Remove gl_HASH call.
7031         (Makefile.am): Augment lib_SOURCES.
7032
7033 2011-05-23  Bruno Haible  <bruno@clisp.org>
7034
7035         hard-locale: Move AC_LIBOBJ invocations to module description.
7036         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7037         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7038
7039 2011-05-23  Bruno Haible  <bruno@clisp.org>
7040
7041         getugroups: Move AC_LIBOBJ invocations to module description.
7042         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7043         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7044
7045 2011-05-23  Bruno Haible  <bruno@clisp.org>
7046
7047         gettime: Move AC_LIBOBJ invocations to module description.
7048         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7049         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7050
7051 2011-05-23  Bruno Haible  <bruno@clisp.org>
7052
7053         getndelim2: Move AC_LIBOBJ invocations to module description.
7054         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7055         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7056
7057 2011-05-23  Bruno Haible  <bruno@clisp.org>
7058
7059         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7060         * m4/gc-pbkdf2-sha1.m4: Remove file.
7061         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7062         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7063         (Makefile.am): Augment lib_SOURCES.
7064
7065 2011-05-23  Bruno Haible  <bruno@clisp.org>
7066
7067         fts: Move AC_LIBOBJ invocations to module description.
7068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7069         * modules/fts (configure.ac): ... to here.
7070
7071 2011-05-23  Bruno Haible  <bruno@clisp.org>
7072
7073         file-type: Move AC_LIBOBJ invocations to module description.
7074         * m4/file-type.m4: Remove file.
7075         * modules/file-type (Files): Remove it.
7076         (configure.ac): Remove gl_FILE_TYPE call.
7077         (Makefile.am): Augment lib_SOURCES.
7078
7079 2011-05-23  Bruno Haible  <bruno@clisp.org>
7080
7081         filenamecat*: Respect rules for use of AC_LIBOBJ.
7082         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7083         Remove AC_LIBOBJ invocation.
7084         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7085         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-23  Bruno Haible  <bruno@clisp.org>
7088
7089         filemode: Move AC_LIBOBJ invocations to module description.
7090         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7091         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7092
7093 2011-05-23  Bruno Haible  <bruno@clisp.org>
7094
7095         openat-safer: Move AC_LIBOBJ invocations to module description.
7096         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7097         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7098
7099 2011-05-23  Bruno Haible  <bruno@clisp.org>
7100
7101         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7103         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         exclude: Move AC_LIBOBJ invocations to module description.
7108         * m4/exclude.m4: Remove file.
7109         * modules/exclude (Files): Remove it.
7110         (configure.ac): Remove gl_EXCLUDE call.
7111         (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         dirname*: Respect rules for use of AC_LIBOBJ.
7116         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7117         invocations.
7118         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7119         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7120
7121 2011-05-23  Bruno Haible  <bruno@clisp.org>
7122
7123         dirent-safer: Move AC_LIBOBJ invocations to module description.
7124         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7125         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         crypto/des: Move AC_LIBOBJ invocations to module description.
7130         * m4/des.m4: Remove file.
7131         * modules/crypto/des (Files): Remove it.
7132         (configure.ac): Remove gl_DES call.
7133         (Makefile.am): Augment lib_SOURCES.
7134
7135 2011-05-23  Bruno Haible  <bruno@clisp.org>
7136
7137         cycle-check: Move AC_LIBOBJ invocations to module description.
7138         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7139         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7140
7141 2011-05-23  Bruno Haible  <bruno@clisp.org>
7142
7143         c-strtold: Move AC_LIBOBJ invocations to module description.
7144         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7145         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7146
7147 2011-05-23  Bruno Haible  <bruno@clisp.org>
7148
7149         c-strtod: Move AC_LIBOBJ invocations to module description.
7150         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7151         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7152
7153 2011-05-23  Bruno Haible  <bruno@clisp.org>
7154
7155         crc: Move AC_LIBOBJ invocations to module description.
7156         * m4/crc.m4: Remove file.
7157         * modules/crc (Files): Remove it.
7158         (configure.ac): Remove gl_CRC call.
7159         (Makefile.am): Augment lib_SOURCES.
7160
7161 2011-05-23  Bruno Haible  <bruno@clisp.org>
7162
7163         close-stream: Move AC_LIBOBJ invocations to module description.
7164         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7165         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7166
7167 2011-05-23  Bruno Haible  <bruno@clisp.org>
7168
7169         closeout: Move AC_LIBOBJ invocations to module description.
7170         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7171         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7172
7173 2011-05-23  Bruno Haible  <bruno@clisp.org>
7174
7175         closein: Move AC_LIBOBJ invocations to module description.
7176         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7177         * modules/closein (Makefile.am): Augment lib_SOURCES.
7178
7179 2011-05-23  Bruno Haible  <bruno@clisp.org>
7180
7181         cloexec: Move AC_LIBOBJ invocations to module description.
7182         * m4/cloexec.m4: Remove file.
7183         * modules/cloexec (Files): Remove it.
7184         (configure.ac): Remove gl_CLOEXEC call.
7185         (Makefile.am): Augment lib_SOURCES.
7186
7187 2011-05-23  Bruno Haible  <bruno@clisp.org>
7188
7189         check-version: Move AC_LIBOBJ invocations to module description.
7190         * m4/check-version.m4: Remove file.
7191         * modules/check-version (Files): Remove it.
7192         (configure.ac): Remove gl_CHECK_VERSION call.
7193         (Makefile.am): Augment lib_SOURCES.
7194
7195 2011-05-23  Bruno Haible  <bruno@clisp.org>
7196
7197         chdir-safer: Move AC_LIBOBJ invocations to module description.
7198         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7199         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7200
7201 2011-05-23  Bruno Haible  <bruno@clisp.org>
7202
7203         canonicalize: Move AC_LIBOBJ invocations to module description.
7204         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7205         AC_LIBOBJ invocation.
7206         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         canon-host: Move AC_LIBOBJ invocations to module description.
7211         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7212         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7213         instead of gl_CANON_HOST.
7214         (Makefile.am): Augment lib_SOURCES.
7215
7216 2011-05-23  Bruno Haible  <bruno@clisp.org>
7217
7218         backupfile: Move AC_LIBOBJ invocations to module description.
7219         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7220         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         argmatch: Move AC_LIBOBJ invocations to module description.
7225         * m4/argmatch.m4: Remove file.
7226         * modules/argmatch (Files): Remove it.
7227         (configure.ac): Remove gl_ARGMATCH call.
7228         (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7233         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7234         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7239         * m4/arcfour.m4: Remove file.
7240         * modules/crypto/arcfour (Files): Remove it.
7241         (configure.ac): Remove gl_ARCFOUR call.
7242         (Makefile.am): Augment lib_SOURCES.
7243
7244 2011-05-22  Bruno Haible  <bruno@clisp.org>
7245
7246         write: Move AC_LIBOBJ invocations to module description.
7247         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7248         * modules/write (configure.ac): ... to here.
7249
7250 2011-05-22  Bruno Haible  <bruno@clisp.org>
7251
7252         wmemset: Move AC_LIBOBJ invocations to module description.
7253         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7254         here...
7255         * modules/wmemset (configure.ac): ... to here.
7256
7257 2011-05-22  Bruno Haible  <bruno@clisp.org>
7258
7259         wmemmove: Move AC_LIBOBJ invocations to module description.
7260         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7261         here...
7262         * modules/wmemmove (configure.ac): ... to here.
7263
7264 2011-05-22  Bruno Haible  <bruno@clisp.org>
7265
7266         wmemcpy: Move AC_LIBOBJ invocations to module description.
7267         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7268         here...
7269         * modules/wmemcpy (configure.ac): ... to here.
7270
7271 2011-05-22  Bruno Haible  <bruno@clisp.org>
7272
7273         wmemcmp: Move AC_LIBOBJ invocations to module description.
7274         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7275         here...
7276         * modules/wmemcmp (configure.ac): ... to here.
7277
7278 2011-05-22  Bruno Haible  <bruno@clisp.org>
7279
7280         wmemchr: Move AC_LIBOBJ invocations to module description.
7281         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7282         here...
7283         * modules/wmemchr (configure.ac): ... to here.
7284
7285 2011-05-22  Bruno Haible  <bruno@clisp.org>
7286
7287         wcswidth: Move AC_LIBOBJ invocations to module description.
7288         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7289         here...
7290         * modules/wcswidth (configure.ac): ... to here.
7291
7292 2011-05-22  Bruno Haible  <bruno@clisp.org>
7293
7294         wcwidth: Respect rules for use of AC_LIBOBJ.
7295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7296         invocation from here...
7297         * modules/wcwidth (configure.ac): ... to here.
7298         (Depends-on): Update conditions.
7299
7300 2011-05-22  Bruno Haible  <bruno@clisp.org>
7301
7302         wctype: Move AC_LIBOBJ invocations to module description.
7303         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7304         invocation from here...
7305         * modules/wctype (configure.ac): ... to here.
7306         (Depends-on): Update conditions.
7307
7308 2011-05-22  Bruno Haible  <bruno@clisp.org>
7309
7310         wctrans: Move AC_LIBOBJ invocations to module description.
7311         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7312         invocation from here...
7313         * modules/wctrans (configure.ac): ... to here.
7314
7315 2011-05-22  Bruno Haible  <bruno@clisp.org>
7316
7317         wctomb: Move AC_LIBOBJ invocations to module description.
7318         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7319         invocations from here...
7320         * modules/wctomb (configure.ac): ... to here.
7321
7322 2011-05-22  Bruno Haible  <bruno@clisp.org>
7323
7324         wctob: Move AC_LIBOBJ invocations to module description.
7325         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7326         gl_PREREQ_WCTOB invocations from here...
7327         * modules/wctob (configure.ac): ... to here.
7328         (Depends-on): Update conditions.
7329
7330 2011-05-22  Bruno Haible  <bruno@clisp.org>
7331
7332         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7333         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7334         here...
7335         * modules/wcsxfrm (configure.ac): ... to here.
7336
7337 2011-05-22  Bruno Haible  <bruno@clisp.org>
7338
7339         wcstok: Move AC_LIBOBJ invocations to module description.
7340         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7341         * modules/wcstok (configure.ac): ... to here.
7342
7343 2011-05-22  Bruno Haible  <bruno@clisp.org>
7344
7345         wcsstr: Move AC_LIBOBJ invocations to module description.
7346         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7347         * modules/wcsstr (configure.ac): ... to here.
7348
7349 2011-05-22  Bruno Haible  <bruno@clisp.org>
7350
7351         wcsspn: Move AC_LIBOBJ invocations to module description.
7352         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7353         * modules/wcsspn (configure.ac): ... to here.
7354
7355 2011-05-22  Bruno Haible  <bruno@clisp.org>
7356
7357         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7358         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7359         gl_PREREQ_WCSRTOMBS invocations from here...
7360         * modules/wcsrtombs (configure.ac): ... to here.
7361
7362 2011-05-22  Bruno Haible  <bruno@clisp.org>
7363
7364         wcsrchr: Move AC_LIBOBJ invocations to module description.
7365         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7366         here...
7367         * modules/wcsrchr (configure.ac): ... to here.
7368
7369 2011-05-22  Bruno Haible  <bruno@clisp.org>
7370
7371         wcspbrk: Move AC_LIBOBJ invocations to module description.
7372         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7373         here...
7374         * modules/wcspbrk (configure.ac): ... to here.
7375
7376 2011-05-22  Bruno Haible  <bruno@clisp.org>
7377
7378         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7379         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7380         gl_PREREQ_WCSNRTOMBS invocations from here...
7381         * modules/wcsnrtombs (configure.ac): ... to here.
7382
7383 2011-05-22  Bruno Haible  <bruno@clisp.org>
7384
7385         wcsnlen: Move AC_LIBOBJ invocations to module description.
7386         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7387         here...
7388         * modules/wcsnlen (configure.ac): ... to here.
7389
7390 2011-05-22  Bruno Haible  <bruno@clisp.org>
7391
7392         wcsncpy: Move AC_LIBOBJ invocations to module description.
7393         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7394         here...
7395         * modules/wcsncpy (configure.ac): ... to here.
7396
7397 2011-05-22  Bruno Haible  <bruno@clisp.org>
7398
7399         wcsncmp: Move AC_LIBOBJ invocations to module description.
7400         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7401         here...
7402         * modules/wcsncmp (configure.ac): ... to here.
7403
7404 2011-05-22  Bruno Haible  <bruno@clisp.org>
7405
7406         wcsncat: Move AC_LIBOBJ invocations to module description.
7407         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7408         here...
7409         * modules/wcsncat (configure.ac): ... to here.
7410
7411 2011-05-22  Bruno Haible  <bruno@clisp.org>
7412
7413         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7414         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7415         from here...
7416         * modules/wcsncasecmp (configure.ac): ... to here.
7417
7418 2011-05-22  Bruno Haible  <bruno@clisp.org>
7419
7420         wcslen: Move AC_LIBOBJ invocations to module description.
7421         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7422         * modules/wcslen (configure.ac): ... to here.
7423
7424 2011-05-22  Bruno Haible  <bruno@clisp.org>
7425
7426         wcsdup: Move AC_LIBOBJ invocations to module description.
7427         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7428         * modules/wcsdup (configure.ac): ... to here.
7429
7430 2011-05-22  Bruno Haible  <bruno@clisp.org>
7431
7432         wcscspn: Move AC_LIBOBJ invocations to module description.
7433         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7434         here...
7435         * modules/wcscspn (configure.ac): ... to here.
7436
7437 2011-05-22  Bruno Haible  <bruno@clisp.org>
7438
7439         wcscpy: Move AC_LIBOBJ invocations to module description.
7440         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7441         * modules/wcscpy (configure.ac): ... to here.
7442
7443 2011-05-22  Bruno Haible  <bruno@clisp.org>
7444
7445         wcscoll: Move AC_LIBOBJ invocations to module description.
7446         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7447         here...
7448         * modules/wcscoll (configure.ac): ... to here.
7449
7450 2011-05-22  Bruno Haible  <bruno@clisp.org>
7451
7452         wcscmp: Move AC_LIBOBJ invocations to module description.
7453         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7454         * modules/wcscmp (configure.ac): ... to here.
7455
7456 2011-05-22  Bruno Haible  <bruno@clisp.org>
7457
7458         wcschr: Move AC_LIBOBJ invocations to module description.
7459         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7460         * modules/wcschr (configure.ac): ... to here.
7461
7462 2011-05-22  Bruno Haible  <bruno@clisp.org>
7463
7464         wcscat: Move AC_LIBOBJ invocations to module description.
7465         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7466         * modules/wcscat (configure.ac): ... to here.
7467
7468 2011-05-22  Bruno Haible  <bruno@clisp.org>
7469
7470         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7471         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7472         here...
7473         * modules/wcscasecmp (configure.ac): ... to here.
7474
7475 2011-05-22  Bruno Haible  <bruno@clisp.org>
7476
7477         wcrtomb: Move AC_LIBOBJ invocations to module description.
7478         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7479         invocations from here...
7480         * modules/wcrtomb (configure.ac): ... to here.
7481
7482 2011-05-22  Bruno Haible  <bruno@clisp.org>
7483
7484         wcpncpy: Move AC_LIBOBJ invocations to module description.
7485         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7486         here...
7487         * modules/wcpncpy (configure.ac): ... to here.
7488
7489 2011-05-22  Bruno Haible  <bruno@clisp.org>
7490
7491         wcpcpy: Move AC_LIBOBJ invocations to module description.
7492         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7493         * modules/wcpcpy (configure.ac): ... to here.
7494
7495 2011-05-22  Bruno Haible  <bruno@clisp.org>
7496
7497         waitpid: Move AC_LIBOBJ invocations to module description.
7498         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7499         invocation from here...
7500         * modules/waitpid (configure.ac): ... to here.
7501
7502 2011-05-22  Bruno Haible  <bruno@clisp.org>
7503
7504         utimensat: Move AC_LIBOBJ invocations to module description.
7505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7506         here...
7507         * modules/utimensat (configure.ac): ... to here.
7508
7509 2011-05-22  Bruno Haible  <bruno@clisp.org>
7510
7511         usleep: Move AC_LIBOBJ invocations to module description.
7512         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7513         here...
7514         * modules/usleep (configure.ac): ... to here.
7515
7516 2011-05-22  Bruno Haible  <bruno@clisp.org>
7517
7518         unlockpt: Move AC_LIBOBJ invocations to module description.
7519         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7520         gl_PREREQ_UNLOCKPT invocations from here...
7521         * modules/unlockpt (configure.ac): ... to here.
7522
7523 2011-05-22  Bruno Haible  <bruno@clisp.org>
7524
7525         unlink: Respect rules for use of AC_LIBOBJ.
7526         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7527         * modules/unlink (configure.ac): ... to here.
7528
7529 2011-05-22  Bruno Haible  <bruno@clisp.org>
7530
7531         uname: Move AC_LIBOBJ invocations to module description.
7532         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7534         here...
7535         * modules/uname (configure.ac): ... to here.
7536
7537 2011-05-22  Bruno Haible  <bruno@clisp.org>
7538
7539         ttyname_r: Move AC_LIBOBJ invocations to module description.
7540         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7541         gl_PREREQ_TTYNAME_R invocations from here...
7542         * modules/ttyname_r (configure.ac): ... to here.
7543
7544 2011-05-22  Bruno Haible  <bruno@clisp.org>
7545
7546         tsearch: Move AC_LIBOBJ invocations to module description.
7547         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7548         invocations from here...
7549         * modules/tsearch (configure.ac): ... to here.
7550
7551 2011-05-22  Bruno Haible  <bruno@clisp.org>
7552
7553         towctrans: Move AC_LIBOBJ invocations to module description.
7554         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7555         AC_LIBOBJ invocation from here...
7556         * modules/towctrans (configure.ac): ... to here.
7557
7558 2011-05-22  Bruno Haible  <bruno@clisp.org>
7559
7560         tmpfile: Move AC_LIBOBJ invocations to module description.
7561         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7562         invocations from here...
7563         * modules/tmpfile (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         times: Move AC_LIBOBJ invocations to module description.
7568         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7569         * modules/times (configure.ac): ... to here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         time_r: Move AC_LIBOBJ invocations to module description.
7574         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7575         invocations from here...
7576         * modules/time_r (configure.ac): ... to here.
7577
7578 2011-05-22  Bruno Haible  <bruno@clisp.org>
7579
7580         timegm: Move AC_LIBOBJ invocations to module description.
7581         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7582         invocations from here...
7583         * modules/timegm (configure.ac): ... to here.
7584
7585 2011-05-22  Bruno Haible  <bruno@clisp.org>
7586
7587         tcgetsid: Move AC_LIBOBJ invocations to module description.
7588         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7589         and gl_PREREQ_TCGETSID invocations from here...
7590         * modules/tcgetsid (configure.ac): ... to here.
7591         (Depends-on): Update conditions.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         symlinkat: Move AC_LIBOBJ invocations to module description.
7596         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7597         here...
7598         * modules/symlinkat (configure.ac): ... to here.
7599
7600 2011-05-22  Bruno Haible  <bruno@clisp.org>
7601
7602         symlink: Move AC_LIBOBJ invocations to module description.
7603         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7604         here...
7605         * modules/symlink (configure.ac): ... to here.
7606
7607 2011-05-22  Bruno Haible  <bruno@clisp.org>
7608
7609         strverscmp: Move AC_LIBOBJ invocations to module description.
7610         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7612         from here...
7613         * modules/strverscmp (configure.ac): ... to here.
7614
7615 2011-05-22  Bruno Haible  <bruno@clisp.org>
7616
7617         strtok_r: Move AC_LIBOBJ invocations to module description.
7618         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7619         and gl_PREREQ_STRTOK_R invocations from here...
7620         * modules/strtok_r (configure.ac): ... to here.
7621         (Depends-on): Update conditions.
7622
7623 2011-05-22  Bruno Haible  <bruno@clisp.org>
7624
7625         strtoumax: Move AC_LIBOBJ invocations to module description.
7626         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7628         from here...
7629         * modules/strtoumax (configure.ac): ... to here.
7630
7631 2011-05-22  Bruno Haible  <bruno@clisp.org>
7632
7633         strtoimax: Move AC_LIBOBJ invocations to module description.
7634         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7636         from here...
7637         * modules/strtoimax (configure.ac): ... to here.
7638
7639 2011-05-22  Bruno Haible  <bruno@clisp.org>
7640
7641         strtoull: Move AC_LIBOBJ invocations to module description.
7642         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7644         from here...
7645         * modules/strtoull (configure.ac): ... to here.
7646
7647 2011-05-22  Bruno Haible  <bruno@clisp.org>
7648
7649         strtoll: Move AC_LIBOBJ invocations to module description.
7650         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7652         here...
7653         * modules/strtoll (configure.ac): ... to here.
7654
7655 2011-05-22  Bruno Haible  <bruno@clisp.org>
7656
7657         strtoul: Move AC_LIBOBJ invocations to module description.
7658         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7659         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7660         * modules/strtoul (configure.ac): ... to here.
7661
7662 2011-05-22  Bruno Haible  <bruno@clisp.org>
7663
7664         strtol: Move AC_LIBOBJ invocations to module description.
7665         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7666         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7667         * modules/strtol (configure.ac): ... to here.
7668
7669 2011-05-22  Bruno Haible  <bruno@clisp.org>
7670
7671         strtod: Move AC_LIBOBJ invocations to module description.
7672         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7673         invocations from here...
7674         * modules/strtod (configure.ac): ... to here.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         strstr*: Move AC_LIBOBJ invocations to module description.
7679         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7680         invocations from here...
7681         * modules/strstr-simple (configure.ac): ... to here.
7682         * modules/strstr (configure.ac): ... and here.
7683
7684 2011-05-22  Bruno Haible  <bruno@clisp.org>
7685
7686         strsignal: Move AC_LIBOBJ invocations to module description.
7687         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7688         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7689         * modules/strsignal (configure.ac): ... to here.
7690         (Depends-on): Update conditions.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         strsep: Move AC_LIBOBJ invocations to module description.
7695         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7697         here...
7698         * modules/strsep (configure.ac): ... to here.
7699
7700 2011-05-22  Bruno Haible  <bruno@clisp.org>
7701
7702         strptime: Move AC_LIBOBJ invocations to module description.
7703         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7704         gl_PREREQ_STRPTIME invocations from here...
7705         * modules/strptime (configure.ac): ... to here.
7706
7707 2011-05-22  Bruno Haible  <bruno@clisp.org>
7708
7709         strpbrk: Move AC_LIBOBJ invocations to module description.
7710         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7712         here...
7713         * modules/strpbrk (configure.ac): ... to here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         strnlen: Move AC_LIBOBJ invocations to module description.
7718         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7719         invocations from here...
7720         * modules/strnlen (configure.ac): ... to here.
7721
7722 2011-05-22  Bruno Haible  <bruno@clisp.org>
7723
7724         strndup: Move AC_LIBOBJ invocations to module description.
7725         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7726         invocations from here...
7727         * modules/strndup (configure.ac): ... to here.
7728         (Depends-on): Update conditions.
7729
7730 2011-05-22  Bruno Haible  <bruno@clisp.org>
7731
7732         strncat: Move AC_LIBOBJ invocations to module description.
7733         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7734         invocations from here...
7735         * modules/strncat (configure.ac): ... to here.
7736
7737 2011-05-22  Bruno Haible  <bruno@clisp.org>
7738
7739         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7740         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7741         invocations from here...
7742         * modules/strdup (configure.ac): ... to here.
7743         * modules/strdup-posix (configure.ac): ... and here.
7744
7745 2011-05-22  Bruno Haible  <bruno@clisp.org>
7746
7747         strcspn: Move AC_LIBOBJ invocations to module description.
7748         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7750         here...
7751         * modules/strcspn (configure.ac): ... to here.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         strchrnul: Move AC_LIBOBJ invocations to module description.
7756         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7757         gl_PREREQ_STRCHRNUL invocations from here...
7758         * modules/strchrnul (configure.ac): ... to here.
7759
7760 2011-05-22  Bruno Haible  <bruno@clisp.org>
7761
7762         strcasestr*: Move AC_LIBOBJ invocations to module description.
7763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7764         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7765         * modules/strcasestr-simple (configure.ac): ... to here.
7766         * modules/strcasestr (configure.ac): ... and here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         strcase: Move AC_LIBOBJ invocations to module description.
7771         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7772         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7773         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7774         gl_PREREQ_STRNCASECMP invocations from here...
7775         * modules/strcase (configure.ac): ... to here.
7776
7777 2011-05-22  Bruno Haible  <bruno@clisp.org>
7778
7779         stpncpy: Move AC_LIBOBJ invocations to module description.
7780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7781         here...
7782         * modules/stpncpy (configure.ac): ... to here.
7783
7784 2011-05-22  Bruno Haible  <bruno@clisp.org>
7785
7786         stpcpy: Move AC_LIBOBJ invocations to module description.
7787         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7789         here...
7790         * modules/stpcpy (configure.ac): ... to here.
7791
7792 2011-05-21  Bruno Haible  <bruno@clisp.org>
7793
7794         stat: Move AC_LIBOBJ invocations to module description.
7795         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7796         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7797         here...
7798         * modules/stat (configure.ac): ... to here.
7799
7800 2011-05-21  Bruno Haible  <bruno@clisp.org>
7801
7802         sleep: Move AC_LIBOBJ invocations to module description.
7803         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7804         * modules/sleep (configure.ac): ... to here.
7805
7806 2011-05-21  Bruno Haible  <bruno@clisp.org>
7807
7808         signbit: Move AC_LIBOBJ invocations to module description.
7809         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7810         * modules/signbit (configure.ac): ... to here.
7811
7812 2011-05-21  Bruno Haible  <bruno@clisp.org>
7813
7814         sigprocmask: Move AC_LIBOBJ invocations to module description.
7815         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7816         gl_PREREQ_SIGPROMASK invocations from here...
7817         * modules/sigprocmask (configure.ac): ... to here.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         sigaction: Move AC_LIBOBJ invocations to module description.
7822         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7823         gl_PREREQ_SIGACTION invocations from here...
7824         * modules/sigaction (configure.ac): ... to here.
7825
7826 2011-05-21  Bruno Haible  <bruno@clisp.org>
7827
7828         sig2str: Move AC_LIBOBJ invocations to module description.
7829         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7831         here...
7832         * modules/sig2str (configure.ac): ... to here.
7833
7834 2011-05-21  Bruno Haible  <bruno@clisp.org>
7835
7836         setlocale: Move AC_LIBOBJ invocations to module description.
7837         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7838         gl_PREREQ_SETLOCALE invocations from here...
7839         * modules/setlocale (configure.ac): ... to here.
7840
7841 2011-05-21  Bruno Haible  <bruno@clisp.org>
7842
7843         unsetenv: Move AC_LIBOBJ invocations to module description.
7844         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7845         and gl_PREREQ_UNSETENV invocations from here...
7846         * modules/unsetenv (configure.ac): ... to here.
7847         (Depends-on): Update.
7848
7849 2011-05-21  Bruno Haible  <bruno@clisp.org>
7850
7851         setenv: Move AC_LIBOBJ invocations to module description.
7852         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7853         here...
7854         * modules/setenv (configure.ac): ... to here.
7855
7856 2011-05-21  Bruno Haible  <bruno@clisp.org>
7857
7858         selinux-h: Move AC_LIBOBJ invocations to module description.
7859         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7860         AC_LIBOBJ invocation from here...
7861         * modules/selinux-h (configure.ac): ... to here.
7862
7863 2011-05-21  Bruno Haible  <bruno@clisp.org>
7864
7865         select: Respect rules for use of AC_LIBOBJ.
7866         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7867         here...
7868         * modules/select (configure.ac): ... to here.
7869
7870 2011-05-21  Bruno Haible  <bruno@clisp.org>
7871
7872         scandir: Move AC_LIBOBJ invocations to module description.
7873         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7874         invocations from here...
7875         * modules/scandir (configure.ac): ... to here.
7876
7877 2011-05-21  Bruno Haible  <bruno@clisp.org>
7878
7879         rpmatch: Move AC_LIBOBJ invocations to module description.
7880         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7882         here...
7883         * modules/rpmatch (configure.ac): ... to here.
7884
7885 2011-05-21  Bruno Haible  <bruno@clisp.org>
7886
7887         rmdir: Respect rules for use of AC_LIBOBJ.
7888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7889         * modules/rmdir (configure.ac): ... to here.
7890
7891 2011-05-21  Bruno Haible  <bruno@clisp.org>
7892
7893         renameat: Move AC_LIBOBJ invocations to module description.
7894         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7895         here...
7896         * modules/renameat (configure.ac): ... to here.
7897
7898 2011-05-21  Bruno Haible  <bruno@clisp.org>
7899
7900         rename: Respect rules for use of AC_LIBOBJ.
7901         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7902         here...
7903         * modules/rename (configure.ac): ... to here.
7904
7905 2011-05-21  Bruno Haible  <bruno@clisp.org>
7906
7907         remove: Move AC_LIBOBJ invocations to module description.
7908         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7909         here...
7910         * modules/remove (configure.ac): ... to here.
7911
7912 2011-05-21  Bruno Haible  <bruno@clisp.org>
7913
7914         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7915         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7916         macro.
7917         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7918         * modules/relocatable-lib (configure.ac): ... to here.
7919         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7920         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7921
7922 2011-05-21  Bruno Haible  <bruno@clisp.org>
7923
7924         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7925         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7926         here...
7927         * modules/relocatable-prog (configure.ac): ... to here.
7928
7929 2011-05-21  Bruno Haible  <bruno@clisp.org>
7930
7931         regex: Move AC_LIBOBJ invocations to module description.
7932         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7933         invocations from here...
7934         * modules/regex (configure.ac): ... to here.
7935
7936 2011-05-21  Bruno Haible  <bruno@clisp.org>
7937
7938         realloc-*: Move AC_LIBOBJ invocations to module description.
7939         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7940         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7941         AC_LIBOBJ invocations from here...
7942         * modules/realloc-gnu (configure.ac): ... to here.
7943         * modules/realloc-posix (configure.ac): ... and here.
7944
7945 2011-05-21  Bruno Haible  <bruno@clisp.org>
7946
7947         readutmp: Move AC_LIBOBJ invocations to module description.
7948         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7949         * modules/readutmp (configure.ac): ... to here.
7950
7951 2011-05-21  Bruno Haible  <bruno@clisp.org>
7952
7953         readlinkat: Move AC_LIBOBJ invocations to module description.
7954         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7955         here...
7956         * modules/readlinkat (configure.ac): ... to here.
7957
7958 2011-05-21  Bruno Haible  <bruno@clisp.org>
7959
7960         readlink: Move AC_LIBOBJ invocations to module description.
7961         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7962         gl_PREREQ_READLINK invocations from here...
7963         * modules/readlink (configure.ac): ... to here.
7964
7965 2011-05-21  Bruno Haible  <bruno@clisp.org>
7966
7967         readline: Move AC_LIBOBJ invocations to module description.
7968         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7969         gl_PREREQ_READLINE invocations from here...
7970         * modules/readline (configure.ac): ... to here.
7971
7972 2011-05-21  Bruno Haible  <bruno@clisp.org>
7973
7974         read: Move AC_LIBOBJ invocations to module description.
7975         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7976         * modules/read (configure.ac): ... to here.
7977
7978 2011-05-21  Bruno Haible  <bruno@clisp.org>
7979
7980         rawmemchr: Move AC_LIBOBJ invocations to module description.
7981         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7983         from here...
7984         * modules/rawmemchr (configure.ac): ... to here.
7985
7986 2011-05-21  Bruno Haible  <bruno@clisp.org>
7987
7988         random_r: Move AC_LIBOBJ invocations to module description.
7989         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7990         gl_PREREQ_RANDOM_R invocations from here...
7991         * modules/random_r (configure.ac): ... to here.
7992
7993 2011-05-21  Bruno Haible  <bruno@clisp.org>
7994
7995         pwrite: Move AC_LIBOBJ invocations to module description.
7996         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7997         * modules/pwrite (configure.ac): ... to here.
7998
7999 2011-05-21  Bruno Haible  <bruno@clisp.org>
8000
8001         putenv: Move AC_LIBOBJ invocations to module description.
8002         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8003         * modules/putenv (configure.ac): ... to here.
8004
8005 2011-05-21  Bruno Haible  <bruno@clisp.org>
8006
8007         login_tty: Move AC_LIBOBJ invocations to module description.
8008         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8009         * modules/login_tty (configure.ac): ... to here.
8010
8011 2011-05-21  Bruno Haible  <bruno@clisp.org>
8012
8013         openpty: Move AC_LIBOBJ invocations to module description.
8014         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8015         * modules/openpty (configure.ac): ... to here.
8016
8017 2011-05-21  Bruno Haible  <bruno@clisp.org>
8018
8019         forkpty: Move AC_LIBOBJ invocations to module description.
8020         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8021         * modules/forkpty (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         ptsname: Move AC_LIBOBJ invocations to module description.
8026         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8027         invocations from here...
8028         * modules/ptsname (configure.ac): ... to here.
8029
8030 2011-05-21  Bruno Haible  <bruno@clisp.org>
8031
8032         pread: Move AC_LIBOBJ invocations to module description.
8033         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8034         * modules/pread (configure.ac): ... to here.
8035
8036 2011-05-21  Bruno Haible  <bruno@clisp.org>
8037
8038         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8039         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8040         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8041         * modules/posix_spawn (configure.ac): ... to here.
8042         * modules/posix_spawnp (configure.ac): ... and here.
8043
8044 2011-05-21  Bruno Haible  <bruno@clisp.org>
8045
8046         popen: Move AC_LIBOBJ invocations to module description.
8047         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8048         invocations from here...
8049         * modules/popen (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         poll: Move AC_LIBOBJ invocations to module description.
8054         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8055         invocations from here...
8056         * modules/poll (configure.ac): ... to here.
8057
8058 2011-05-21  Bruno Haible  <bruno@clisp.org>
8059
8060         pipe-posix: Move AC_LIBOBJ invocations to module description.
8061         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8062         * modules/pipe-posix (configure.ac): ... to here.
8063
8064 2011-05-21  Bruno Haible  <bruno@clisp.org>
8065
8066         openat: Respect rules for use of AC_LIBOBJ.
8067         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8068         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8069         * modules/openat (configure.ac): ... to here.
8070
8071 2011-05-21  Bruno Haible  <bruno@clisp.org>
8072
8073         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8074         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8075         invocation from here...
8076         * modules/obstack-printf (configure.ac): ... to here.
8077         * modules/obstack-printf-posix (configure.ac): ... and here.
8078
8079 2011-05-21  Bruno Haible  <bruno@clisp.org>
8080
8081         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8082         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8083         from here...
8084         * modules/nl_langinfo (configure.ac): ... to here.
8085
8086 2011-05-21  Bruno Haible  <bruno@clisp.org>
8087
8088         nanosleep: Move AC_LIBOBJ invocations to module description.
8089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8090         gl_PREREQ_NANOSLEEP invocations from here...
8091         * modules/nanosleep (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         mountlist: Move AC_LIBOBJ invocations to module description.
8096         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8097         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8098         * modules/mountlist (configure.ac): ... to here.
8099
8100 2011-05-21  Bruno Haible  <bruno@clisp.org>
8101
8102         mktime: Respect rules for use of AC_LIBOBJ.
8103         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8104         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8105         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8106         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8107         * modules/mktime (configure.ac): ... to here.
8108         * modules/mktime-internal (configure.ac): ... and here.
8109         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         mkstemps: Move AC_LIBOBJ invocations to module description.
8114         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8115         here...
8116         * modules/mkstemps (configure.ac): ... to here.
8117
8118 2011-05-21  Bruno Haible  <bruno@clisp.org>
8119
8120         mkstemp: Move AC_LIBOBJ invocations to module description.
8121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8122         gl_PREREQ_MKSTEMP invocations from here...
8123         * modules/mkstemp (configure.ac): ... to here.
8124
8125 2011-05-21  Bruno Haible  <bruno@clisp.org>
8126
8127         mkostemps: Move AC_LIBOBJ invocations to module description.
8128         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8129         here...
8130         * modules/mkostemps (configure.ac): ... to here.
8131
8132 2011-05-21  Bruno Haible  <bruno@clisp.org>
8133
8134         mkostemp: Move AC_LIBOBJ invocations to module description.
8135         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8136         gl_PREREQ_MKOSTEMP invocations from here...
8137         * modules/mkostemp (configure.ac): ... to here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         mknod: Move AC_LIBOBJ invocations to module description.
8142         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8143         * modules/mknod (configure.ac): ... to here.
8144
8145 2011-05-21  Bruno Haible  <bruno@clisp.org>
8146
8147         mkfifoat: Move AC_LIBOBJ invocations to module description.
8148         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8149         here...
8150         * modules/mkfifoat (configure.ac): ... to here.
8151
8152 2011-05-21  Bruno Haible  <bruno@clisp.org>
8153
8154         mkfifo: Respect rules for use of AC_LIBOBJ.
8155         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8156         here...
8157         * modules/mkfifo (configure.ac): ... to here.
8158
8159 2011-05-21  Bruno Haible  <bruno@clisp.org>
8160
8161         mkdtemp: Move AC_LIBOBJ invocations to module description.
8162         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8163         invocations from here...
8164         * modules/mkdtemp (configure.ac): ... to here.
8165
8166 2011-05-21  Bruno Haible  <bruno@clisp.org>
8167
8168         mkdir: Move AC_LIBOBJ invocations to module description.
8169         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8170         * modules/mkdir (configure.ac): ... to here.
8171
8172 2011-05-21  Bruno Haible  <bruno@clisp.org>
8173
8174         memset: Move AC_LIBOBJ invocations to module description.
8175         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8177         here...
8178         * modules/memset (configure.ac): ... to here.
8179
8180 2011-05-21  Bruno Haible  <bruno@clisp.org>
8181
8182         memrchr: Move AC_LIBOBJ invocations to module description.
8183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8185         here...
8186         * modules/memrchr (configure.ac): ... to here.
8187
8188 2011-05-21  Bruno Haible  <bruno@clisp.org>
8189
8190         mempcpy: Move AC_LIBOBJ invocations to module description.
8191         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8193         here...
8194         * modules/mempcpy (configure.ac): ... to here.
8195
8196 2011-05-21  Bruno Haible  <bruno@clisp.org>
8197
8198         memmove: Move AC_LIBOBJ invocations to module description.
8199         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8201         here...
8202         * modules/memmove (configure.ac): ... to here.
8203
8204 2011-05-21  Bruno Haible  <bruno@clisp.org>
8205
8206         memmem*: Move AC_LIBOBJ invocations to module description.
8207         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8208         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8209         here...
8210         (gl_FUNC_MEMMEM): ... and here...
8211         * modules/memmem-simple (configure.ac): ... to here.
8212         * modules/memmem (configure.ac): ... and here.
8213
8214 2011-05-21  Bruno Haible  <bruno@clisp.org>
8215
8216         memcpy: Move AC_LIBOBJ invocations to module description.
8217         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8219         here...
8220         * modules/memcpy (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         memcmp: Simplify autoconf macro.
8225         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8226         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8227         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         memcmp: Move AC_LIBOBJ invocations to module description.
8232         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8233         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8234         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8235         * modules/memcmp (configure.ac): ... to here.
8236         (Depends-on): Update conditions.
8237
8238 2011-05-21  Bruno Haible  <bruno@clisp.org>
8239
8240         memchr: Respect rules for use of AC_LIBOBJ.
8241         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8242         invocations from here...
8243         * modules/memchr (configure.ac): ... to here.
8244
8245 2011-05-21  Bruno Haible  <bruno@clisp.org>
8246
8247         mbtowc: Move AC_LIBOBJ invocations to module description.
8248         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8249         invocations from here...
8250         * modules/mbtowc (configure.ac): ... to here.
8251
8252 2011-05-21  Bruno Haible  <bruno@clisp.org>
8253
8254         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8255         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8256         gl_PREREQ_MBSRTOWCS invocations from here...
8257         * modules/mbsrtowcs (configure.ac): ... to here.
8258
8259 2011-05-21  Bruno Haible  <bruno@clisp.org>
8260
8261         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8262         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8263         gl_PREREQ_MBSNRTOWCS invocations from here...
8264         * modules/mbsnrtowcs (configure.ac): ... to here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         mbsinit: Move AC_LIBOBJ invocations to module description.
8269         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8270         invocations from here...
8271         * modules/mbsinit (configure.ac): ... to here.
8272
8273 2011-05-21  Bruno Haible  <bruno@clisp.org>
8274
8275         mbrlen: Move AC_LIBOBJ invocations to module description.
8276         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8277         invocations from here...
8278         * modules/mbrlen (configure.ac): ... to here.
8279
8280 2011-05-21  Bruno Haible  <bruno@clisp.org>
8281
8282         mbrtowc: Respect rules for use of AC_LIBOBJ.
8283         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8284         invocations from here...
8285         * modules/mbrtowc (configure.ac): ... to here.
8286
8287 2011-05-21  Bruno Haible  <bruno@clisp.org>
8288
8289         malloc-*: Move AC_LIBOBJ invocations to module description.
8290         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8291         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8292         AC_LIBOBJ invocations from here...
8293         * modules/malloc-gnu (configure.ac): ... to here.
8294         * modules/malloc-posix (configure.ac): ... and here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         lstat, openat: Respect rules for use of AC_LIBOBJ.
8299         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8300         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8301         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8302         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8303         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8304         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8305         here.
8306         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         lseek: Move AC_LIBOBJ invocations to module description.
8311         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8312         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8313         * modules/lseek (configure.ac): ... to here.
8314
8315 2011-05-21  Bruno Haible  <bruno@clisp.org>
8316
8317         linkat: Move AC_LIBOBJ invocations to module description.
8318         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8319         here...
8320         * modules/linkat (configure.ac): ... to here.
8321
8322 2011-05-21  Bruno Haible  <bruno@clisp.org>
8323
8324         link: Respect rules for use of AC_LIBOBJ.
8325         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8326         * modules/link (configure.ac): ... to here.
8327
8328 2011-05-21  Bruno Haible  <bruno@clisp.org>
8329
8330         lchown: Move AC_LIBOBJ invocations to module description.
8331         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8332         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8333         * modules/lchown (configure.ac): ... to here.
8334
8335 2011-05-21  Bruno Haible  <bruno@clisp.org>
8336
8337         iswctype: Move AC_LIBOBJ invocations to module description.
8338         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8339         here...
8340         * modules/iswctype (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         iswblank: Move AC_LIBOBJ invocations to module description.
8345         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8346         here...
8347         * modules/iswblank (configure.ac): ... to here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         atanl: Move AC_LIBOBJ invocations to module description.
8352         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8353         * modules/atanl (configure.ac): ... to here.
8354
8355 2011-05-21  Bruno Haible  <bruno@clisp.org>
8356
8357         acosl: Move AC_LIBOBJ invocations to module description.
8358         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8359         * modules/acosl (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         asinl: Respect rules for use of AC_LIBOBJ.
8364         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8365         * modules/asinl (configure.ac): ... to here.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         tanl: Move AC_LIBOBJ invocations to module description.
8370         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8371         * modules/tanl (configure.ac): ... to here.
8372
8373 2011-05-21  Bruno Haible  <bruno@clisp.org>
8374
8375         cosl: Move AC_LIBOBJ invocations to module description.
8376         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8377         * modules/cosl (configure.ac): ... to here.
8378
8379 2011-05-21  Bruno Haible  <bruno@clisp.org>
8380
8381         sinl: Move AC_LIBOBJ invocations to module description.
8382         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8383         * modules/sinl (configure.ac): ... to here.
8384
8385 2011-05-21  Bruno Haible  <bruno@clisp.org>
8386
8387         logl: Move AC_LIBOBJ invocations to module description.
8388         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8389         * modules/logl (configure.ac): ... to here.
8390
8391 2011-05-21  Bruno Haible  <bruno@clisp.org>
8392
8393         expl: Move AC_LIBOBJ invocations to module description.
8394         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8395         * modules/expl (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         roundl: Move AC_LIBOBJ invocations to module description.
8400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8401         * modules/roundl (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         round: Move AC_LIBOBJ invocations to module description.
8406         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8407         * modules/round (configure.ac): ... to here.
8408
8409 2011-05-21  Bruno Haible  <bruno@clisp.org>
8410
8411         roundf: Move AC_LIBOBJ invocations to module description.
8412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8413         * modules/roundf (configure.ac): ... to here.
8414
8415 2011-05-21  Bruno Haible  <bruno@clisp.org>
8416
8417         truncl: Move AC_LIBOBJ invocations to module description.
8418         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8419         * modules/truncl (configure.ac): ... to here.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         trunc: Move AC_LIBOBJ invocations to module description.
8424         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8425         * modules/trunc (configure.ac): ... to here.
8426
8427 2011-05-21  Bruno Haible  <bruno@clisp.org>
8428
8429         truncf: Move AC_LIBOBJ invocations to module description.
8430         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8431         * modules/truncf (configure.ac): ... to here.
8432
8433 2011-05-21  Bruno Haible  <bruno@clisp.org>
8434
8435         ceill: Move AC_LIBOBJ invocations to module description.
8436         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8437         * modules/ceill (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         ceil: Move AC_LIBOBJ invocations to module description.
8442         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8443         * modules/ceil (configure.ac): ... to here.
8444
8445 2011-05-21  Bruno Haible  <bruno@clisp.org>
8446
8447         ceilf: Move AC_LIBOBJ invocations to module description.
8448         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8449         * modules/ceilf (configure.ac): ... to here.
8450
8451 2011-05-21  Bruno Haible  <bruno@clisp.org>
8452
8453         floorl: Respect rules for use of AC_LIBOBJ.
8454         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8455         * modules/floorl (configure.ac): ... to here.
8456
8457 2011-05-21  Bruno Haible  <bruno@clisp.org>
8458
8459         floor: Respect rules for use of AC_LIBOBJ.
8460         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8461         * modules/floor (configure.ac): ... to here.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         floorf: Move AC_LIBOBJ invocations to module description.
8466         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8467         * modules/floorf (configure.ac): ... to here.
8468
8469 2011-05-20  Bruno Haible  <bruno@clisp.org>
8470
8471         sqrtl: Respect rules for use of AC_LIBOBJ.
8472         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8473         * modules/sqrtl (configure.ac): ... to here.
8474
8475 2011-05-20  Bruno Haible  <bruno@clisp.org>
8476
8477         ldexpl: Respect rules for use of AC_LIBOBJ.
8478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8479         * modules/ldexpl (configure.ac): ... to here.
8480
8481 2011-05-20  Bruno Haible  <bruno@clisp.org>
8482
8483         frexpl*: Respect rules for use of AC_LIBOBJ.
8484         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8485         invocation from here...
8486         * modules/frexpl (configure.ac): ... to here.
8487         * modules/frexpl-nolibm (configure.ac): ... and here.
8488
8489 2011-05-20  Bruno Haible  <bruno@clisp.org>
8490
8491         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8492         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8493         invocation from here...
8494         * modules/frexp (configure.ac): ... to here.
8495         * modules/frexp-nolibm (configure.ac): ... and here.
8496
8497 2011-05-20  Bruno Haible  <bruno@clisp.org>
8498
8499         isnan: Respect rules for use of AC_LIBOBJ.
8500         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8501         invocations here.
8502         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8503         REPLACE_ISNAN.
8504         * modules/isnand (configure.ac): Likewise.
8505         * modules/isnanl (configure.ac): Likewise.
8506
8507 2011-05-20  Bruno Haible  <bruno@clisp.org>
8508
8509         isnanl*: Respect rules for use of AC_LIBOBJ.
8510         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8511         invocation from here...
8512         * modules/isnanl (configure.ac): ... to here.
8513         * modules/isnanl-nolibm (configure.ac): ... and here.
8514
8515 2011-05-20  Bruno Haible  <bruno@clisp.org>
8516
8517         isnand*: Move AC_LIBOBJ invocations to module description.
8518         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8519         invocation from here...
8520         * modules/isnand (configure.ac): ... to here.
8521         * modules/isnand-nolibm (configure.ac): ... and here.
8522
8523 2011-05-20  Bruno Haible  <bruno@clisp.org>
8524
8525         isnanf*: Move AC_LIBOBJ invocations to module description.
8526         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8527         invocation from here...
8528         * modules/isnanf (configure.ac): ... to here.
8529         * modules/isnanf-nolibm (configure.ac): ... and here.
8530
8531 2011-05-20  Bruno Haible  <bruno@clisp.org>
8532
8533         isnan*: Separate the AC_LIBOBJ invocations.
8534         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8535         AC_LIBOBJ invocation.
8536         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8537         here.
8538         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8539         AC_LIBOBJ invocation.
8540         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8541         here.
8542         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8543         AC_LIBOBJ invocation.
8544         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8545         here.
8546         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8547
8548 2011-05-08  Bruno Haible  <bruno@clisp.org>
8549
8550         isinf: Move AC_LIBOBJ invocations to module description.
8551         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8552         * modules/isinf (configure.ac): ... to here.
8553
8554 2011-05-08  Bruno Haible  <bruno@clisp.org>
8555
8556         isfinite: Move AC_LIBOBJ invocations to module description.
8557         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8558         * modules/isfinite (configure.ac): ... to here.
8559
8560 2011-05-08  Bruno Haible  <bruno@clisp.org>
8561
8562         isblank: Move AC_LIBOBJ invocations to module description.
8563         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8564         here...
8565         * modules/isblank (configure.ac): ... to here.
8566
8567 2011-05-08  Bruno Haible  <bruno@clisp.org>
8568
8569         isapipe: Move AC_LIBOBJ invocations to module description.
8570         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8571         gl_PREREQ_ISAPIPE invocations from here...
8572         * modules/isapipe (configure.ac): ... to here.
8573         (Depends-on): Update condition.
8574
8575 2011-05-08  Bruno Haible  <bruno@clisp.org>
8576
8577         ioctl: Move AC_LIBOBJ invocations to module description.
8578         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8579         invocations from here...
8580         * modules/ioctl (configure.ac): ... to here.
8581         (Depends-on): Update condition.
8582
8583 2011-05-08  Bruno Haible  <bruno@clisp.org>
8584
8585         imaxdiv: Move AC_LIBOBJ invocations to module description.
8586         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8587         invocations from here...
8588         * modules/imaxdiv (configure.ac): ... to here.
8589
8590 2011-05-08  Bruno Haible  <bruno@clisp.org>
8591
8592         imaxabs: Move AC_LIBOBJ invocations to module description.
8593         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8594         invocations from here...
8595         * modules/imaxabs (configure.ac): ... to here.
8596
8597 2011-05-08  Bruno Haible  <bruno@clisp.org>
8598
8599         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8601         AC_LIBOBJ invocations from here...
8602         * modules/getaddrinfo (configure.ac): ... to here.
8603         (Depends-on): Add conditions.
8604
8605 2011-05-08  Bruno Haible  <bruno@clisp.org>
8606
8607         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8608         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8609         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8610         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8611         (gl_PREREQ_INET_PTON): ... from here.
8612         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8613         gl_PREREQ_INET_PTON here.
8614         (Depends-on): Update condition.
8615
8616 2011-05-08  Bruno Haible  <bruno@clisp.org>
8617
8618         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8619         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8620         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8621         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8622         (gl_PREREQ_INET_NTOP): ... from here.
8623         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8624         gl_PREREQ_INET_NTOP here.
8625         (Depends-on): Update condition.
8626
8627 2011-05-08  Bruno Haible  <bruno@clisp.org>
8628
8629         iconv_open: Move AC_LIBOBJ invocations to module description.
8630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8631         AC_LIBOBJ invocations from here...
8632         * modules/iconv_open (configure.ac): ... to here.
8633
8634 2011-05-08  Bruno Haible  <bruno@clisp.org>
8635
8636         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8637         If module 'iconv_open' is among the main modules and module
8638         'iconv_open-utf' is among the tests dependencies, then
8639         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8640         return the special iconv_t values. Therefore iconv() and iconv_close()
8641         must support these special iconv_t values, already in lib, not only in
8642         tests.
8643         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8644         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8645         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8646         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8647         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8648         (Depends-on): Add the dependencies of iconv_open-utf.
8649         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8650         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8651         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8652
8653 2011-05-08  Bruno Haible  <bruno@clisp.org>
8654
8655         group-member: Move AC_LIBOBJ invocations to module description.
8656         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8657         gl_PREREQ_GROUP_MEMBER invocations from here...
8658         * modules/group-member (configure.ac): ... to here.
8659
8660 2011-05-08  Bruno Haible  <bruno@clisp.org>
8661
8662         grantpt: Move AC_LIBOBJ invocations to module description.
8663         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8664         invocations from here...
8665         * modules/grantpt (configure.ac): ... to here.
8666
8667 2011-05-08  Bruno Haible  <bruno@clisp.org>
8668
8669         glob: Move AC_LIBOBJ invocations to module description.
8670         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8671         from here...
8672         * modules/glob (configure.ac): ... to here.
8673
8674 2011-05-08  Bruno Haible  <bruno@clisp.org>
8675
8676         getusershell: Move AC_LIBOBJ invocations to module description.
8677         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8678         Move AC_LIBOBJ invocation from here...
8679         * modules/getusershell (configure.ac): ... to here.
8680         (Depends-on): Update condition.
8681
8682 2011-05-08  Bruno Haible  <bruno@clisp.org>
8683
8684         gettimeofday: Move AC_LIBOBJ invocations to module description.
8685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8686         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8687         gl_PREREQ_GETTIMEOFDAY invocations from here...
8688         * modules/gettimeofday (configure.ac): ... to here.
8689
8690 2011-05-08  Bruno Haible  <bruno@clisp.org>
8691
8692         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8693         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8694         just gl_FUNC_TZSET.
8695         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8696         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8698         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8699
8700 2011-05-08  Bruno Haible  <bruno@clisp.org>
8701
8702         getsubopt: Move AC_LIBOBJ invocations to module description.
8703         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8704         gl_PREREQ_GETSUBOPT invocations from here...
8705         * modules/getsubopt (configure.ac): ... to here.
8706
8707 2011-05-08  Bruno Haible  <bruno@clisp.org>
8708
8709         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8710         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8711         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8712         * modules/getpass-gnu (configure.ac): ... to here.
8713
8714 2011-05-08  Bruno Haible  <bruno@clisp.org>
8715
8716         getpass: Move AC_LIBOBJ invocations to module description.
8717         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8718         gl_PREREQ_GETPASS invocations from here...
8719         * modules/getpass (configure.ac): ... to here.
8720
8721 2011-05-08  Bruno Haible  <bruno@clisp.org>
8722
8723         getpagesize: Move AC_LIBOBJ invocations to module description.
8724         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8725         from here...
8726         * modules/getpagesize (configure.ac): ... to here.
8727
8728 2011-05-08  Bruno Haible  <bruno@clisp.org>
8729
8730         getopt: Move AC_LIBOBJ invocations to module description.
8731         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8732         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8733         invocations from here...
8734         * modules/getopt-gnu (configure.ac): ... to here.
8735         * modules/getopt-posix (configure.ac): ... and here.
8736         (Depends-on): Update condition.
8737
8738 2011-05-08  Bruno Haible  <bruno@clisp.org>
8739
8740         getopt, argp: Respect rules for use of AC_LIBOBJ.
8741         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8742         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8743         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8744         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8745
8746 2011-05-08  Bruno Haible  <bruno@clisp.org>
8747
8748         getlogin_r: Move AC_LIBOBJ invocations to module description.
8749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8750         gl_PREREQ_GETLOGIN_R invocations from here...
8751         * modules/getlogin_r (configure.ac): ... to here.
8752
8753 2011-05-08  Bruno Haible  <bruno@clisp.org>
8754
8755         getlogin: Move AC_LIBOBJ invocations to module description.
8756         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8757         here...
8758         * modules/getlogin (configure.ac): ... to here.
8759
8760 2011-05-08  Bruno Haible  <bruno@clisp.org>
8761
8762         getloadavg: Move AC_LIBOBJ invocations to module description.
8763         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8764         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8765         * modules/getloadavg (configure.ac): ... to here.
8766
8767 2011-05-08  Bruno Haible  <bruno@clisp.org>
8768
8769         gethrxtime: Move AC_LIBOBJ invocations to module description.
8770         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8771         LIB_GETHRXTIME from here...
8772         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8773         invocations from here...
8774         * modules/gethrxtime (configure.ac): ... to here.
8775
8776 2011-05-08  Bruno Haible  <bruno@clisp.org>
8777
8778         gethostname: Move AC_LIBOBJ invocations to module description.
8779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8780         gl_PREREQ_GETHOSTNAME invocations from here...
8781         * modules/gethostname (configure.ac): ... to here.
8782
8783 2011-05-08  Bruno Haible  <bruno@clisp.org>
8784
8785         getgroups: Move AC_LIBOBJ invocations to module description.
8786         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8787         here...
8788         * modules/getgroups (configure.ac): ... to here.
8789
8790 2011-05-08  Bruno Haible  <bruno@clisp.org>
8791
8792         getdtablesize: Move AC_LIBOBJ invocations to module description.
8793         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8794         invocation from here...
8795         * modules/getdtablesize (configure.ac): ... to here.
8796
8797 2011-05-08  Bruno Haible  <bruno@clisp.org>
8798
8799         getdomainname: Move AC_LIBOBJ invocations to module description.
8800         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8801         gl_PREREQ_GETDOMAINNAME invocations from here...
8802         * modules/getdomainname (configure.ac): ... to here.
8803
8804 2011-05-08  Bruno Haible  <bruno@clisp.org>
8805
8806         getline: Move AC_LIBOBJ invocations to module description.
8807         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8808         invocations from here...
8809         * modules/getline (configure.ac): ... to here.
8810
8811 2011-05-08  Bruno Haible  <bruno@clisp.org>
8812
8813         getline: Simplify.
8814         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8815         It's already handled through the module dependency.
8816
8817 2011-05-08  Bruno Haible  <bruno@clisp.org>
8818
8819         getdelim: Move AC_LIBOBJ invocations to module description.
8820         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8821         and gl_PREREQ_GETDELIM invocations from here...
8822         * modules/getdelim (configure.ac): ... to here.
8823         (Depends-on): Fix condition.
8824
8825 2011-05-08  Bruno Haible  <bruno@clisp.org>
8826
8827         getcwd: Move AC_LIBOBJ invocations to module description.
8828         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8829         invocations from here...
8830         * modules/getcwd (configure.ac): ... to here.
8831
8832 2011-05-08  Bruno Haible  <bruno@clisp.org>
8833
8834         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8835         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8836         here...
8837         * modules/getcwd-lgpl (configure.ac): ... to here.
8838
8839 2011-05-07  Bruno Haible  <bruno@clisp.org>
8840
8841         crypto/gc: Move AC_LIBOBJ invocations to module description.
8842         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8843         * modules/crypto/gc (configure.ac): ... to here.
8844
8845 2011-05-07  Bruno Haible  <bruno@clisp.org>
8846
8847         fwriting: Move AC_LIBOBJ invocations to module description.
8848         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8849         here...
8850         * modules/fwriting (configure.ac): ... to here.
8851
8852 2011-05-07  Bruno Haible  <bruno@clisp.org>
8853
8854         fwritable: Move AC_LIBOBJ invocations to module description.
8855         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8856         here...
8857         * modules/fwritable (configure.ac): ... to here.
8858
8859 2011-05-07  Bruno Haible  <bruno@clisp.org>
8860
8861         futimens: Move AC_LIBOBJ invocations to module description.
8862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8863         here...
8864         * modules/futimens (configure.ac): ... to here.
8865
8866 2011-05-07  Bruno Haible  <bruno@clisp.org>
8867
8868         ftruncate: Move AC_LIBOBJ invocations to module description.
8869         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8870         gl_PREREQ_FTRUNCATE invocations from here...
8871         * modules/ftruncate (configure.ac): ... to here.
8872
8873 2011-05-07  Bruno Haible  <bruno@clisp.org>
8874
8875         fsync: Move AC_LIBOBJ invocations to module description.
8876         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8877         invocations from here...
8878         * modules/fsync (configure.ac): ... to here.
8879
8880 2011-05-07  Bruno Haible  <bruno@clisp.org>
8881
8882         fsusage: Move AC_LIBOBJ invocations to module description.
8883         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8884         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8885         * modules/fsusage (configure.ac): ... to here.
8886
8887 2011-05-07  Bruno Haible  <bruno@clisp.org>
8888
8889         freopen: Move AC_LIBOBJ invocations to module description.
8890         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8891         invocations from here...
8892         * modules/freopen (configure.ac): ... to here.
8893
8894 2011-05-07  Bruno Haible  <bruno@clisp.org>
8895
8896         free: Move AC_LIBOBJ invocations to module description.
8897         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8898         invocations from here...
8899         * modules/free (configure.ac): ... to here.
8900
8901 2011-05-07  Bruno Haible  <bruno@clisp.org>
8902
8903         freadable: Move AC_LIBOBJ invocations to module description.
8904         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8905         here...
8906         * modules/freadable (configure.ac): ... to here.
8907
8908 2011-05-07  Bruno Haible  <bruno@clisp.org>
8909
8910         fpurge: Move AC_LIBOBJ invocations to module description.
8911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8912         invocations from here...
8913         * modules/fpurge (configure.ac): ... to here.
8914
8915 2011-05-07  Bruno Haible  <bruno@clisp.org>
8916
8917         fpending: Move AC_LIBOBJ invocations to module description.
8918         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8919         gl_FUNC_FPENDING.
8920         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8921         invocations from here...
8922         * modules/fpending (configure.ac): ... to here.
8923
8924 2011-05-07  Bruno Haible  <bruno@clisp.org>
8925
8926         fopen: Move AC_LIBOBJ invocations to module description.
8927         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8928         invocations from here...
8929         * modules/fopen (configure.ac): ... to here.
8930
8931 2011-05-07  Bruno Haible  <bruno@clisp.org>
8932
8933         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8934         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8935         gl_FUNC_FNMATCH_POSIX.
8936         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8937         invocations from here...
8938         * modules/fnmatch (configure.ac): ... to here.
8939         * modules/fnmatch-gnu (configure.ac): ... and here.
8940
8941 2011-05-07  Bruno Haible  <bruno@clisp.org>
8942
8943         flock: Move AC_LIBOBJ invocations to module description.
8944         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8945         invocations from here...
8946         * modules/flock (configure.ac): ... to here.
8947
8948 2011-05-07  Bruno Haible  <bruno@clisp.org>
8949
8950         fileblocks: Move AC_LIBOBJ invocations to module description.
8951         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8952         gl_PREREQ_FILEBLOCKS invocations from here...
8953         * modules/fileblocks (configure.ac): ... to here.
8954
8955 2011-05-06  Bruno Haible  <bruno@clisp.org>
8956
8957         fflush: Move AC_LIBOBJ invocations to module description.
8958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8959         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8960         invocations from here...
8961         * modules/fflush (configure.ac): ... to here.
8962
8963 2011-05-06  Bruno Haible  <bruno@clisp.org>
8964
8965         fdopendir: Move AC_LIBOBJ invocations to module description.
8966         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8967         here...
8968         * modules/fdopendir (configure.ac): ... to here.
8969         (Depends-on): Improve conditions.
8970
8971 2011-05-06  Bruno Haible  <bruno@clisp.org>
8972
8973         _Exit: Move AC_LIBOBJ invocations to module description.
8974         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8975         invocations from here...
8976         * modules/_Exit (configure.ac): ... to here.
8977
8978 2011-05-21  Bruno Haible  <bruno@clisp.org>
8979
8980         euidaccess: Respect rules for use of AC_LIBOBJ.
8981         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8983         from here...
8984         * modules/euidaccess (configure.ac): ... to here.
8985
8986 2011-05-06  Bruno Haible  <bruno@clisp.org>
8987
8988         error: Move AC_LIBOBJ invocations to module description.
8989         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8990         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8991         invocations from here...
8992         * modules/error (configure.ac): ... to here.
8993
8994 2011-05-06  Bruno Haible  <bruno@clisp.org>
8995
8996         duplocale: Move AC_LIBOBJ invocations to module description.
8997         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8998         gl_PREREQ_DUPLOCALE invocations from here...
8999         * modules/duplocale (configure.ac): ... to here.
9000
9001 2011-05-05  Bruno Haible  <bruno@clisp.org>
9002
9003         dirfd: Move AC_LIBOBJ invocations to module description.
9004         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9005         gl_FUNC_DIRFD.
9006         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9007         here...
9008         * modules/dirfd (configure.ac): ... to here.
9009         (Depends-on): Fix condition.
9010
9011 2011-05-05  Bruno Haible  <bruno@clisp.org>
9012
9013         chown: Respect rules for use of AC_LIBOBJ.
9014         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9015         * modules/chown (configure.ac): ... to here.
9016
9017 2011-05-05  Bruno Haible  <bruno@clisp.org>
9018
9019         chdir-long: Move AC_LIBOBJ invocations to module description.
9020         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9021         gl_PREREQ_CHDIR_LONG invocations from here...
9022         * modules/chdir-long (configure.ac): ... to here.
9023
9024 2011-05-05  Bruno Haible  <bruno@clisp.org>
9025
9026         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9027         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9028         from here...
9029         * modules/canonicalize-lgpl (configure.ac): ... to here.
9030
9031 2011-05-05  Bruno Haible  <bruno@clisp.org>
9032
9033         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9034         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9035         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9036         REPLACE_CALLOC.
9037         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9038         * modules/calloc-gnu (configure.ac): Likewise.
9039
9040 2011-05-05  Bruno Haible  <bruno@clisp.org>
9041
9042         btowc: Move AC_LIBOBJ invocations to module description.
9043         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9044         invocations from here...
9045         * modules/btowc (configure.ac): ... to here.
9046
9047 2011-05-21  Bruno Haible  <bruno@clisp.org>
9048
9049         atexit: Move AC_LIBOBJ invocations to module description.
9050         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9052         here...
9053         * modules/atexit (configure.ac): ... to here.
9054
9055 2011-05-05  Bruno Haible  <bruno@clisp.org>
9056
9057         atoll: Move AC_LIBOBJ invocations to module description.
9058         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9059         invocations from here...
9060         * modules/atoll (configure.ac): ... to here.
9061
9062 2011-05-05  Bruno Haible  <bruno@clisp.org>
9063
9064         argz: Move AC_LIBOBJ invocations to module description.
9065         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9066         * modules/argz (configure.ac): ... to here.
9067
9068 2011-05-05  Bruno Haible  <bruno@clisp.org>
9069
9070         alphasort: Move AC_LIBOBJ invocations to module description.
9071         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9072         gl_PREREQ_ALPHASORT invocations from here...
9073         * modules/alphasort (configure.ac): ... to here.
9074
9075 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         verify: new macro verify_expr; verify_true deprecated
9078         * NEWS: Mention this.
9079         * doc/verify.texi (Compile-time Assertions): Document this.
9080         * lib/verify.h (verify_true): Deprecate.
9081         (verify_expr): New macro.
9082         * tests/test-verify.c (function): Test verify_expr.
9083
9084 2011-06-14  Jim Meyering  <meyering@redhat.com>
9085
9086         init.sh: give more portable redirection-related advice in a comment
9087         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9088         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9089         for lots of discussion.  Stefano Lattarini suggested the solution
9090         of putting "9>&2" after the command.  Reported by Bruno Haible.
9091
9092 2011-06-13  Bruno Haible  <bruno@clisp.org>
9093
9094         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9096         'none'.
9097
9098 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9099
9100         ftoastr: use strtof only if HAVE_STRTOF
9101         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9103         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9104         * modules/ftoastr (configure.ac): Check for strtof.
9105
9106 2011-06-13  Bruno Haible  <bruno@clisp.org>
9107
9108         gnulib-tool: Addendum to 2011-06-08 commit.
9109         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9110         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9111
9112 2011-06-13  Bruno Haible  <bruno@clisp.org>
9113
9114         fseeko: Provide a non-inline replacement of fseek().
9115         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9116         * modules/fseeko (Depends-on): Add fseek.
9117         * modules/fseek (License): Change to LGPLv2+.
9118
9119 2011-06-13  Bruno Haible  <bruno@clisp.org>
9120
9121         ftello: Provide a non-inline replacement of ftell().
9122         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9123         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9124         not have ftello() (such as on mingw).
9125         * modules/ftello (Depends-on): Add ftell.
9126         * modules/ftell (License): Change to LGPLv2+.
9127
9128 2011-05-07  Bruno Haible  <bruno@clisp.org>
9129
9130         ftell: Move AC_LIBOBJ invocations to module description.
9131         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9132         * modules/ftell (configure.ac): ... to here.
9133
9134 2011-05-07  Bruno Haible  <bruno@clisp.org>
9135
9136         ftello: Respect rules for use of AC_LIBOBJ.
9137         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9138         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9139         here...
9140         * modules/ftello (configure.ac): ... to here.
9141
9142 2011-05-07  Bruno Haible  <bruno@clisp.org>
9143
9144         fseeko: Simplify.
9145         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9146         (gl_FUNC_FSEEKO): Inline it here.
9147
9148 2011-05-07  Bruno Haible  <bruno@clisp.org>
9149
9150         fseek: Move AC_LIBOBJ invocations to module description.
9151         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9152         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9153         * modules/fseek (configure.ac): ... to here.
9154
9155 2011-05-07  Bruno Haible  <bruno@clisp.org>
9156
9157         fseek: Respect rules for use of AC_LIBOBJ.
9158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9159         here...
9160         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9161
9162 2011-05-07  Bruno Haible  <bruno@clisp.org>
9163
9164         fseeko: Respect rules for use of AC_LIBOBJ.
9165         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9166         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9167         here...
9168         * modules/fseeko (configure.ac): ... to here.
9169
9170 2011-06-13  Bruno Haible  <bruno@clisp.org>
9171
9172         gnulib-tool: Allow comments in the 'Depends-on' section.
9173         * doc/gnulib.texi (Module description): Mention comment syntax in the
9174         Depends-on section.
9175         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9176
9177 2011-06-13  Bruno Haible  <bruno@clisp.org>
9178
9179         file-set.h: guard __attibute__ use, now that it's not always defined
9180         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9181         versions that support it.  This fixes a coreutils build failure with
9182         the vendor cc on HP-UX 11.31.
9183
9184 2011-06-12  Bruno Haible  <bruno@clisp.org>
9185
9186         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9187         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9188         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9189         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9190         (acl, aclsort): New declarations.
9191         (aclv_nontrivial): New declaration.
9192         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9193         (file_has_acl): Read also the second kind of HP-UX ACLs.
9194         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9195         kind of HP-UX ACLs if the first kind fails.
9196         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9197         second kind of HP-UX ACLs.
9198         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9199         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9200         agree.
9201         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9202         hpuxjfs.
9203         Handle hpuxjfs.
9204         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9205         hpuxjfs.
9206         Handle hpuxjfs.
9207         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9208         (func_test_same_acls): Use both lsacl and getacl.
9209         Handle hpuxjfs.
9210         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9211         (func_test_same_acls): Use both lsacl and getacl.
9212         Handle hpuxjfs.
9213
9214 2011-06-12  Bruno Haible  <bruno@clisp.org>
9215
9216         acl: Complete the 2010-08-10 fix.
9217         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9218         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9219         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9220         explicitly.
9221         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9222         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9223
9224 2011-06-12  Bruno Haible  <bruno@clisp.org>
9225
9226         spawn-pipe tests: Comments.
9227         * tests/test-spawn-pipe-child.c (main): Update comment.
9228         Reported by James Youngman <jay@gnu.org>.
9229
9230 2011-06-11  James Youngman  <jay@gnu.org>
9231
9232         New module 'stat-size'.
9233         * modules/stat-size: New module.  Provides macros for accessing
9234         file size information in instances of struct stat.  Depends on the
9235         fileblocks module because it calls st_blocks.
9236         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9237         * doc/gnulib.texi: Include stat-size.texi.
9238         * doc/stat-size.texi: Documentation for this module.
9239         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9240         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9241         AC_STRUCT_ST_BLOCKS.
9242
9243 2011-06-09  Bruno Haible  <bruno@clisp.org>
9244
9245         thread: Support pthreads-win32.
9246         * lib/glthread/thread.h (gl_thread_self): Define differently on
9247         pthreads-win32.
9248         (gl_null_thread): New declaration.
9249         (gl_thread_self_pointer): New macro.
9250         * lib/glthread/thread.c (gl_null_thread): New constant.
9251         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9252         gl_thread_self.
9253         * tests/test-tls.c: Likewise.
9254         Suggested by Paul Eggert. Reported by Eric Blake.
9255
9256 2011-06-09  Bruno Haible  <bruno@clisp.org>
9257
9258         thread: Fix confusion between NULL and 0.
9259         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9260         Reported by Paul Eggert.
9261
9262 2011-06-09  Bruno Haible  <bruno@clisp.org>
9263
9264         spawn-pipe tests: Avoid test failure on HP-UX 11.
9265         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9266         is closed.
9267
9268 2011-06-09  Bruno Haible  <bruno@clisp.org>
9269
9270         acl tests: Fix compilation error on HP-UX 11.
9271         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9272
9273 2011-06-09  Bruno Haible  <bruno@clisp.org>
9274
9275         rmdir: Avoid test failure on HP-UX 10.20.
9276         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9277         EEXIST.
9278
9279 2011-06-08  Eric Blake  <eblake@redhat.com>
9280
9281         perror: fix test on mingw
9282         * modules/perror-tests (Depends-on): Add dup2.
9283
9284         strerror_r-posix: fix on MacOS
9285         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9287         logic bug.
9288         * lib/strerror_r.c (strerror_r): Fix the bug.
9289         * lib/strerror.c (strerror): Likewise.
9290         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9291         problem.
9292         * doc/posix-functions/strerror.texi (strerror): Likewise.
9293         * doc/posix-functions/perror.texi (perror): Likewise.
9294         * tests/test-strerror.c (main): Enhance test.
9295         * tests/test-strerror_r.c (main): Likewise.
9296
9297 2011-06-08  Bruno Haible  <bruno@clisp.org>
9298
9299         gnulib-tool: Better isolation between different gnulib-tool invocations.
9300         * gnulib-tool: New option --witness-c-macro.
9301         (witness_c_macro): New variable.
9302         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9303         AM_CPPFLAGS define it as a C macro.
9304         (func_emit_tests_Makefile_am): Likewise.
9305         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9306         read it from there.
9307         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9308         m4_define, not AC_DEFUN.
9309         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9310         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9311         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9312         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9313         s|...|...|, to substitute the values of the GNULIB_* module indicator
9314         variables.
9315         * modules/dirent (Makefile.am): Likewise.
9316         * modules/fcntl-h (Makefile.am): Likewise.
9317         * modules/iconv-h (Makefile.am): Likewise.
9318         * modules/langinfo (Makefile.am): Likewise.
9319         * modules/locale (Makefile.am): Likewise.
9320         * modules/math (Makefile.am): Likewise.
9321         * modules/netdb (Makefile.am): Likewise.
9322         * modules/poll-h (Makefile.am): Likewise.
9323         * modules/pty (Makefile.am): Likewise.
9324         * modules/search (Makefile.am): Likewise.
9325         * modules/signal (Makefile.am): Likewise.
9326         * modules/spawn (Makefile.am): Likewise.
9327         * modules/stdio (Makefile.am): Likewise.
9328         * modules/stdlib (Makefile.am): Likewise.
9329         * modules/string (Makefile.am): Likewise.
9330         * modules/sys_ioctl (Makefile.am): Likewise.
9331         * modules/sys_select (Makefile.am): Likewise.
9332         * modules/sys_socket (Makefile.am): Likewise.
9333         * modules/sys_stat (Makefile.am): Likewise.
9334         * modules/sys_times (Makefile.am): Likewise.
9335         * modules/sys_utsname (Makefile.am): Likewise.
9336         * modules/sys_wait (Makefile.am): Likewise.
9337         * modules/termios (Makefile.am): Likewise.
9338         * modules/time (Makefile.am): Likewise.
9339         * modules/unistd (Makefile.am): Likewise.
9340         * modules/wchar (Makefile.am): Likewise.
9341
9342 2011-06-08  Eric Blake  <eblake@redhat.com>
9343
9344         strerror: simplify replacement
9345         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9346         * modules/strerror (configure.ac): No prereqs needed here...
9347         * modules/strerror-override (configure.ac): ...but this needs it.
9348         (Files): Add file for needed prereq macro.
9349
9350 2011-06-08  Bruno Haible  <bruno@clisp.org>
9351
9352         strerror_r-posix: Tweaks.
9353         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9354         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9356         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9357         (gl_FUNC_STRERROR_R): ... to here.
9358         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9359
9360 2011-06-07  Eric Blake  <eblake@redhat.com>
9361
9362         perror: document fixed bugs
9363         * doc/posix-functions/perror.texi (perror): Document recent
9364         patches.
9365
9366 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9367
9368         stat-time: get_stat_birthtime failure is better-defined
9369         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9370         return a timestamp whose tv_sec and tv_nsec values are both -1.
9371         Previously, the spec said only that the tv_nsec value was negative.
9372         This upward-compatible change simplifies GNU tar a bit.
9373
9374 2011-06-07  Eric Blake  <eblake@redhat.com>
9375
9376         strerror_r-posix: work around cygwin 1.7.9
9377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9378         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9379         bug without replacing strerror_r.
9380         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9381         strerror_r is buggy, but without requiring strerror_r compilation.
9382         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9383
9384         test-perror: relax test to ignore cygwin bug
9385         * tests/test-perror2.c (main): Relax test on requiring detection
9386         of stream errors, and use unbuffered stream.
9387         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9388         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9389         * doc/posix-functions/fputc.texi (fputc): Likewise.
9390         * doc/posix-functions/fputs.texi (fputs): Likewise.
9391         * doc/posix-functions/fputws.texi (fputws): Likewise.
9392         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9393         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9394         * doc/posix-functions/getopt.texi (getopt): Likewise.
9395         * doc/posix-functions/perror.texi (perror): Likewise.
9396         * doc/posix-functions/printf.texi (printf): Likewise.
9397         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9398         * doc/posix-functions/psignal.texi (psignal): Likewise.
9399         * doc/posix-functions/putc.texi (putc): Likewise.
9400         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9401         Likewise.
9402         * doc/posix-functions/putchar.texi (putchar): Likewise.
9403         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9404         Likewise.
9405         * doc/posix-functions/puts.texi (puts): Likewise.
9406         * doc/posix-functions/putwc.texi (putwc): Likewise.
9407         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9408         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9409         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9410         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9411         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9412         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9413         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9414         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9415
9416 2011-05-22  Bruno Haible  <bruno@clisp.org>
9417
9418         strerror: Move AC_LIBOBJ invocations to module description.
9419         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9420         gl_PREREQ_STRERROR invocations from here...
9421         * modules/strerror (configure.ac): ... to here.
9422
9423 2011-05-21  Bruno Haible  <bruno@clisp.org>
9424
9425         perror: Use common idiom.
9426         * modules/perror (configure.ac): Reorder statements.
9427
9428 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9429
9430         tests: fix usage message in 'mktempd_'
9431         * tests/init.sh (mktempd_): In the usage message, use literal
9432         'mktempd_', not '$ME' (which is even undefined), as the name of
9433         the subroutine.
9434
9435 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9436
9437         tests init: new function 'fatal_', for hard errors
9438         Before this patch, the only way offered by tests/init.sh to
9439         properly signal a hard error was the `framework_failure_'
9440         function.  But the error message issued by that function,
9441         as its name would suggest, refers to a set-up failure in the
9442         testsuite, while hard errors can obviously also be due to
9443         other reasons.  The best way to fix this inconsistency is to
9444         introduce a new function with a more general error message.
9445         * tests/init.sh (fatal_): New function.
9446
9447 2011-06-06  Eric Blake  <eblake@redhat.com>
9448
9449         canonicalize-lgpl: use common idiom
9450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9451         over newer POSIX -Rf.
9452         Reported by Bruno Haible.
9453
9454         canonicalize-lgpl: work around AIX realpath bug
9455         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9456         * doc/posix-functions/realpath.texi (realpath): Document it.
9457         Reported by Bruno Haible.
9458
9459         strerror: work around FreeBSD bug
9460         * lib/strerror.c (strerror): Special case 0.
9461         Reported by Bruno Haible.
9462
9463         strerror-override: avoid bloating errno module
9464         * modules/errno (Files, configure.ac): Move replacement strings...
9465         * modules/strerror-override: ...to new module.
9466         * modules/strerror (Depends-on): Add strerror-override.
9467         * modules/strerror_r-posix (Depends-on): Likewise.
9468         * MODULES.html.sh: Document new module.
9469         Reported by Bruno Haible.
9470
9471 2011-06-06  Bruno Haible  <bruno@clisp.org>
9472
9473         spawn-pipe tests: Rename program.
9474         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9475         * tests/test-spawn-pipe-child.c: Update comment.
9476         * tests/test-spawn-pipe.sh: Update.
9477         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9478
9479         spawn-pipe tests: Link the child program only against libc.
9480         * tests/test-spawn-pipe-child.c: New file, extracted from
9481         tests/test-spawn-pipe.c.
9482         (main): Expect only one argument.
9483         (is_open): New function, copied from tests/test-pipe.c.
9484         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9485         (child_main): Remove function.
9486         (test_pipe): Pass only one argument to the child program.
9487         (main): Remove child process code. Expect the child program's name as
9488         first argument.
9489         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9490         argument.
9491         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9492         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9493         test-spawn-pipe-child against no libraries.
9494
9495 2011-06-06  Bruno Haible  <bruno@clisp.org>
9496
9497         careadlinkat: Avoid mismatch between ssize_t and int.
9498         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9499         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9500
9501 2011-06-06  Jim Meyering  <meyering@redhat.com>
9502
9503         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9504         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9505         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9506
9507 2011-06-05  Bruno Haible  <bruno@clisp.org>
9508
9509         ansi-c++-opt: Interoperability with libtool.
9510         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9511         set the variable to "no", not to ":".
9512         * NEWS: Mention the change.
9513
9514 2011-06-05  Bruno Haible  <bruno@clisp.org>
9515
9516         acl: Fix test failure on AIX 7.
9517         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9518         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9519
9520 2011-06-05  Bruno Haible  <bruno@clisp.org>
9521
9522         pipe-filter-ii: Fix test failure on AIX and IRIX.
9523         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9524         with EAGAIN, retry with a smaller buffer size.
9525
9526 2011-06-05  Bruno Haible  <bruno@clisp.org>
9527
9528         localename: Fix link dependencies.
9529         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9530         * modules/localename-tests (Makefile.am): Link test-localename with
9531         $(LIBTHREAD).
9532
9533 2011-06-05  Bruno Haible  <bruno@clisp.org>
9534
9535         error: Avoid gcc warning.
9536         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9537
9538 2011-06-05  Bruno Haible  <bruno@clisp.org>
9539
9540         unsetenv: Avoid gcc warning.
9541         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9542
9543 2011-06-05  Bruno Haible  <bruno@clisp.org>
9544
9545         setenv: Avoid gcc warning.
9546         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9547
9548 2011-06-05  Bruno Haible  <bruno@clisp.org>
9549
9550         sys_select: Ensure memset is declared also on AIX 7.
9551         * lib/sys_select.in.h: Include <string.h> also on AIX.
9552         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9553         self-contained also on AIX 7.1.
9554
9555 2011-06-04  Jim Meyering  <meyering@redhat.com>
9556
9557         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9558         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9559         function name, "error".
9560         (_gl_translatable_diag_func_re): New configurable variable.
9561
9562 2011-06-04  Bruno Haible  <bruno@clisp.org>
9563
9564         getopt: Avoid gcc warning.
9565         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9566
9567 2011-06-04  Bruno Haible  <bruno@clisp.org>
9568
9569         strerror_r: Fix comments.
9570         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9571         commit.
9572
9573 2011-06-04  Bruno Haible  <bruno@clisp.org>
9574
9575         perror: Fix compilation error.
9576         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9577         Undefine fprintf, not sprintf.
9578         * modules/perror (Depends-on): Remove intprops, verify.
9579
9580 2011-06-04  Bruno Haible  <bruno@clisp.org>
9581
9582         setlocale: Enable replacement on Cygwin 1.5.
9583         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9584         Cygwin 1.5.x.
9585         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9586         LC_CTYPE category also exists on Cygwin 1.5.x.
9587
9588 2011-06-04  Bruno Haible  <bruno@clisp.org>
9589
9590         strerror-override: Don't disable symbol renamings.
9591         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9592         * lib/strerror-override.c: Include config.h.
9593         (strerror_override): Don't undefine.
9594
9595 2011-06-03  Bruno Haible  <bruno@clisp.org>
9596
9597         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9598         * lib/localename.h: Update copyright header.
9599         * lib/localename.c: Likewise.
9600         * lib/relocatable.h: Likewise.
9601         * lib/relocatable.c: Likewise.
9602
9603 2011-06-02  Bruno Haible  <bruno@clisp.org>
9604
9605         doc: Fix a module name.
9606         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9607
9608 2011-06-02  Bruno Haible  <bruno@clisp.org>
9609
9610         pipe2: Remove dependency on 'nonblocking' module.
9611         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9612         O_NONBLOCK is defined by gnulib.
9613         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9614         is zero.
9615         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9616         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9617         defined by gnulib.
9618         (get_nonblocking_flag): New function.
9619         (main): Test O_NONBLOCK flag only if it is nonzero.
9620         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9621
9622 2011-06-03  Jim Meyering  <meyering@redhat.com>
9623
9624         maint: three new prohibit-header-without-use rules
9625         Prohibit use of cloexec.h, posixver.h, same.h without use.
9626         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9627         (sc_prohibit_posixver_without_use): Likewise.
9628         (sc_prohibit_same_without_use): Likewise.
9629
9630 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         allocator: 'die' routine is now given requested size
9633         * lib/allocator.h (struct allocator.die): New size arg.
9634         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9635         If the actual problem is an ssize_t limitation, not a size_t or
9636         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9637
9638 2011-06-01  Eric Blake  <eblake@redhat.com>
9639
9640         strerror: drop strerror_r dependency
9641         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9642         * lib/strerror-override.c (strerror_override): ...to new file.
9643         * lib/strerror-override.h: Add prototype.
9644         * lib/strerror-impl.h: Delete.
9645         * lib/strerror.c (strerror): New implementation.
9646         * modules/errno (Files): Add new files.
9647         (configure.ac): Compile new file as appropriate.
9648         * modules/strerror (Files): Drop unused file.
9649         (Depends-on): Drop strerror_r-posix.
9650         * MODULES.html.sh: Document strerror_r-posix.
9651         Requested by Sam Steingold.
9652
9653         perror: call strerror_r directly
9654         * modules/perror (Files): Drop strerror-impl.h.
9655         * lib/perror.c (perror): Use our own stack buffer, rather than
9656         calling a wrapper that uses static storage.
9657         * doc/posix-functions/perror.texi (perror): Document a limitation
9658         of our replacement.
9659
9660         strerror_r: fix includes for FreeBSD
9661         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9662         since we use abort on some platforms.
9663         Reported by Matthias Bolte.
9664
9665 2011-05-31  Bruno Haible  <bruno@clisp.org>
9666
9667         Fix link errors in tests: openat-die uses gettext-h.
9668         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9669         against $(LIBINTL).
9670         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9671         against $(LIBINTL).
9672         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9673         $(LIBINTL).
9674         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9675         against $(LIBINTL).
9676         * modules/linkat-tests (Makefile.am): Link test-linkat against
9677         $(LIBINTL).
9678         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9679         $(LIBINTL).
9680         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9681         against $(LIBINTL).
9682         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9683         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9684         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9685         $(LIBINTL).
9686         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9687         $(LIBINTL).
9688         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9689         $(LIBINTL).
9690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9691
9692 2011-05-31  Bruno Haible  <bruno@clisp.org>
9693
9694         Fix link errors in tests: wait-process uses gettext-h.
9695         * modules/nonblocking-pipe-tests (Makefile.am): Set
9696         test_nonblocking_pipe_main_LDADD.
9697         * modules/nonblocking-socket-tests (Makefile.am): Link
9698         test-nonblocking-socket-main against $(LIBINTL).
9699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9700
9701 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9702
9703         assert-h: work around 'verify' incompatibility
9704         * lib/verify.h: Use @...@ directives, not ifdef.
9705         * modules/assert-h (assert.h): Implement the directives.
9706         (assert.h): Substitute the symbol-prefix more consistently.
9707
9708 2011-05-29  Jim Meyering  <meyering@redhat.com>
9709
9710         trim: remove three superfluous assignments
9711         * lib/trim.c (trim2): Remove three superfluous assignments
9712         and correct brace positioning.
9713
9714 2011-05-29  Bruno Haible  <bruno@clisp.org>
9715
9716         wctype-h: Avoid namespace pollution on Solaris 2.6.
9717         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9718         identifiers.
9719         * doc/posix-headers/wctype.texi: Mention the problem.
9720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9721
9722 2011-05-28  Jim Meyering  <meyering@redhat.com>
9723
9724         parse-datetime.y: accommodate -Wstrict-overflow
9725         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9726         placate -Wstrict-overflow.
9727
9728         trim: avoid a warning from -O2 -Wstrict-overflow
9729         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9730
9731 2011-05-29  Bruno Haible  <bruno@clisp.org>
9732
9733         gnulib-tool: Fix bug in yesterday's commit.
9734         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9735         twice.
9736
9737 2011-05-29  Bruno Haible  <bruno@clisp.org>
9738
9739         Allow multiple gnulib generated include files to be combined.
9740         * gnulib-tool (func_compute_include_guard_prefix): New function.
9741         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9742         ${gl_include_guard_prefix} references.
9743         (func_import, func_create_testdir): Invoke
9744         func_compute_include_guard_prefix.
9745         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9746         * lib/ctype.in.h: Likewise.
9747         * lib/dirent.in.h: Likewise.
9748         * lib/errno.in.h: Likewise.
9749         * lib/fcntl.in.h: Likewise.
9750         * lib/float.in.h: Likewise.
9751         * lib/getopt.in.h: Likewise.
9752         * lib/iconv.in.h: Likewise.
9753         * lib/langinfo.in.h: Likewise.
9754         * lib/locale.in.h: Likewise.
9755         * lib/math.in.h: Likewise.
9756         * lib/netdb.in.h: Likewise.
9757         * lib/netinet_in.in.h: Likewise.
9758         * lib/poll.in.h: Likewise.
9759         * lib/pthread.in.h: Likewise.
9760         * lib/pty.in.h: Likewise.
9761         * lib/sched.in.h: Likewise.
9762         * lib/se-selinux.in.h: Likewise.
9763         * lib/search.in.h: Likewise.
9764         * lib/signal.in.h: Likewise.
9765         * lib/spawn.in.h: Likewise.
9766         * lib/stdarg.in.h: Likewise.
9767         * lib/stddef.in.h: Likewise.
9768         * lib/stdint.in.h: Likewise.
9769         * lib/stdio.in.h: Likewise.
9770         * lib/stdlib.in.h: Likewise.
9771         * lib/string.in.h: Likewise.
9772         * lib/strings.in.h: Likewise.
9773         * lib/sys_file.in.h: Likewise.
9774         * lib/sys_ioctl.in.h: Likewise.
9775         * lib/sys_select.in.h: Likewise.
9776         * lib/sys_socket.in.h: Likewise.
9777         * lib/sys_stat.in.h: Likewise.
9778         * lib/sys_time.in.h: Likewise.
9779         * lib/sys_times.in.h: Likewise.
9780         * lib/sys_uio.in.h: Likewise.
9781         * lib/sys_utsname.in.h: Likewise.
9782         * lib/sys_wait.in.h: Likewise.
9783         * lib/sysexits.in.h: Likewise.
9784         * lib/termios.in.h: Likewise.
9785         * lib/time.in.h: Likewise.
9786         * lib/unistd.in.h: Likewise.
9787         * lib/wchar.in.h: Likewise.
9788         * lib/wctype.in.h: Likewise.
9789         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9790         * modules/ctype (Makefile.am): Likewise.
9791         * modules/dirent (Makefile.am): Likewise.
9792         * modules/errno (Makefile.am): Likewise.
9793         * modules/fcntl-h (Makefile.am): Likewise.
9794         * modules/float (Makefile.am): Likewise.
9795         * modules/getopt-posix (Makefile.am): Likewise.
9796         * modules/iconv-h (Makefile.am): Likewise.
9797         * modules/langinfo (Makefile.am): Likewise.
9798         * modules/locale (Makefile.am): Likewise.
9799         * modules/math (Makefile.am): Likewise.
9800         * modules/netdb (Makefile.am): Likewise.
9801         * modules/netinet_in (Makefile.am): Likewise.
9802         * modules/poll-h (Makefile.am): Likewise.
9803         * modules/pthread (Makefile.am): Likewise.
9804         * modules/pty (Makefile.am): Likewise.
9805         * modules/sched (Makefile.am): Likewise.
9806         * modules/search (Makefile.am): Likewise.
9807         * modules/selinux-h (Makefile.am): Likewise.
9808         * modules/signal (Makefile.am): Likewise.
9809         * modules/spawn (Makefile.am): Likewise.
9810         * modules/stdarg (Makefile.am): Likewise.
9811         * modules/stddef (Makefile.am): Likewise.
9812         * modules/stdint (Makefile.am): Likewise.
9813         * modules/stdio (Makefile.am): Likewise.
9814         * modules/stdlib (Makefile.am): Likewise.
9815         * modules/string (Makefile.am): Likewise.
9816         * modules/strings (Makefile.am): Likewise.
9817         * modules/sys_file (Makefile.am): Likewise.
9818         * modules/sys_ioctl (Makefile.am): Likewise.
9819         * modules/sys_select (Makefile.am): Likewise.
9820         * modules/sys_socket (Makefile.am): Likewise.
9821         * modules/sys_stat (Makefile.am): Likewise.
9822         * modules/sys_time (Makefile.am): Likewise.
9823         * modules/sys_times (Makefile.am): Likewise.
9824         * modules/sys_uio (Makefile.am): Likewise.
9825         * modules/sys_utsname (Makefile.am): Likewise.
9826         * modules/sys_wait (Makefile.am): Likewise.
9827         * modules/sysexits (Makefile.am): Likewise.
9828         * modules/termios (Makefile.am): Likewise.
9829         * modules/time (Makefile.am): Likewise.
9830         * modules/unistd (Makefile.am): Likewise.
9831         * modules/wchar (Makefile.am): Likewise.
9832         * modules/wctype-h (Makefile.am): Likewise.
9833         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9834
9835 2011-05-29  Bruno Haible  <bruno@clisp.org>
9836
9837         assert-h: Allow multiple gnulib generated replacements to coexist.
9838         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9839
9840 2011-05-29  Bruno Haible  <bruno@clisp.org>
9841
9842         argp: Allow coexistence with strerror_r-posix module.
9843         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9844         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9845         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9846         not the glibc signature.
9847
9848 2011-05-28  Bruno Haible  <bruno@clisp.org>
9849
9850         gnulib-tool: Alternative structure of testdirs, similar to --import.
9851         * gnulib-tool: New option --single-configure.
9852         (func_usage): Document it.
9853         (single_configure): New variable.
9854         (func_modules_transitive_closure_separately,
9855         func_modules_transitive_closure_separately,
9856         func_determine_use_libtests, func_modules_add_dummy_separately,
9857         func_modules_to_filelist_separately): New functions, extracted from
9858         func_import.
9859         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9860         (func_import): Use the new functions.
9861         (func_create_testdir): Set final_modules. Handle $single_configure =
9862         true case.
9863
9864 2011-05-28  Bruno Haible  <bruno@clisp.org>
9865
9866         getloadavg: Remove an unreliable safety check.
9867         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9868         getloadavg.c is in place.
9869         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9870         Reported by Sam Steingold <sds@gnu.org>.
9871
9872 2011-05-28  Bruno Haible  <bruno@clisp.org>
9873
9874         doc: Cleanup yet another file produced by texinfo.tex.
9875         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9876
9877 2011-05-28  Bruno Haible  <bruno@clisp.org>
9878
9879         Finish the conditional dependencies mechanism.
9880         * gnulib-tool: New option --no-conditional-dependencies.
9881         (func_usage): Document it. Don't mark --conditional-dependencies as
9882         experimental.
9883         (cond_dependencies): The possible values can now be true, false, empty.
9884         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9885         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9886         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9887
9888 2011-05-28  Bruno Haible  <bruno@clisp.org>
9889
9890         doc: Use a recent texinfo.tex.
9891         * doc/Makefile (tex_opts): New variable.
9892         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9893
9894 2011-05-28  Jim Meyering  <meyering@redhat.com>
9895
9896         intprops.h: adjust comment to match code change
9897         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9898         only once, it *may* have side effects.  Also fix an unrelated typo.
9899         (_GL_INT_SIGNED): Likewise.
9900
9901 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9902
9903         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9904
9905 2011-05-26  Bruno Haible  <bruno@clisp.org>
9906
9907         mbsrchr: Avoid collision with system function on Interix.
9908         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9909         Reported by Markus Duft <mduft@gentoo.org>.
9910
9911 2011-05-15  James Youngman  <jay@gnu.org>
9912
9913         getopt: for ambiguous options, enumerate the possibilities.
9914         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9915         the ambiguous options when an ambiguous prefix is given. This was
9916         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9917         glibc change was
9918         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9919
9920 2011-05-25  Eric Blake  <eblake@redhat.com>
9921
9922         getcwd: work around mingw bug
9923         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9924         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9925         Reported by Matthias Bolte.
9926
9927 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         test-intprops: disable -Wtype-limits diagnostics
9930         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9931         diagnostics.  Otherwise, the integer overflow macros generate many
9932         diagnostics.  Reported by Jim Meyering in
9933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9934
9935         intprops: shorten, to pacify gcc -Woverlength-strings
9936         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9937         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9938         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9939         likely to run afoul of C compiler limits for string constant lengths.
9940         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9941
9942 2011-05-24  Eric Blake  <eblake@redhat.com>
9943
9944         docs: document recently fixed glibc printf bug
9945         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9946         * doc/posix-functions/printf.texi (printf): Likewise.
9947         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9948         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9949
9950         closein-tests: convert to init.sh
9951         * modules/closein-tests (Files): Add init.sh
9952         * tests/test-closein.sh Use it.
9953
9954         yesno-tests: convert to init.sh
9955         * modules/yesno-tests (Files): Add init.sh.
9956         * tests/test-yesno.sh: Use it.
9957
9958         atexit-tests: ensure reliable exit status
9959         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9960         Reported by Bruno Haible.
9961
9962 2011-05-24  Bruno Haible  <bruno@clisp.org>
9963
9964         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9966         gl_PREREQ_STRERROR_R invocations from here...
9967         * modules/strerror_r-posix (configure.ac): ... to here.
9968
9969 2011-05-24  Eric Blake  <eblake@redhat.com>
9970
9971         strerror_r: fix missing header
9972         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9973
9974         strerror_r: fix AIX test failures
9975         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9976         ERANGE failure.
9977
9978         strerror_r: fix Solaris test failures
9979         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9980         failures.
9981         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9982
9983         strerror_r: enforce POSIX recommendations
9984         * lib/strerror_r.c (safe_copy): New helper method.
9985         (strerror_r): Guarantee a non-empty string.
9986         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9987         recent POSIX rulings and to match our strerror guarantees.
9988         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9989
9990 2011-05-24  Jim Meyering  <meyering@redhat.com>
9991
9992         test-perror2.c: avoid warning about unused variable
9993         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9994
9995 2011-05-24  Eric Blake  <eblake@redhat.com>
9996
9997         perror: avoid spurious test failure on HP-UX
9998         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9999
10000         tests: fix logic bug in init.sh
10001         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10002         shell.
10003
10004 2011-05-24  Jim Meyering  <meyering@redhat.com>
10005
10006         utimensat: do not reference an out-of-scope buffer
10007         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10008         declared in an inner scope, yet "times" would be dereferenced outside
10009         the scope in which "ts" was valid.
10010         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10011         of ts[2] "out/up", so that the use of aliased "times" (via
10012         "times = ts;") does not end up referencing an out-of-scope "ts"
10013
10014         opendir-safer.c: don't clobber errno; don't close negative FD
10015         * lib/opendir-safer.c (opendir_safer):
10016         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10017         file descriptor, and more importantly, don't clobber the
10018         offending errno value with EINVAL.  Before, upon failure
10019         of dup_safer, we would pass the negative file descriptor to
10020         fdopendir, which would clobber errno.
10021
10022 2011-05-23  Bruno Haible  <bruno@clisp.org>
10023
10024         idcache: Fix module description.
10025         * modules/idcache (Include): Set to "idcache.h".
10026
10027 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         gnulib-tool: fix portability problem with MacOS sed
10030         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10031         before the "}".  Problem reported by Leo in
10032         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10033         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10034         sed_extract_condition1, sed_extract_condition2.
10035
10036 2011-05-23  Bruno Haible  <bruno@clisp.org>
10037
10038         hash: Simplify autoconf macro.
10039         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10040
10041 2011-05-23  Bruno Haible  <bruno@clisp.org>
10042
10043         getugroups: Fix module description.
10044         * modules/getugroups (Include): Set to "getugroups.h".
10045
10046 2011-05-23  Bruno Haible  <bruno@clisp.org>
10047
10048         linkat: Simplify autoconf macro.
10049         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10050
10051 2011-05-23  Bruno Haible  <bruno@clisp.org>
10052             Eric Blake  <eblake@redhat.com>
10053
10054         linkat, renameat: Update dependencies.
10055         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10056         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10057         symlinkat.
10058
10059 2011-05-23  Jim Meyering  <meyering@redhat.com>
10060
10061         maint.mk: more tight_scope improvements
10062         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10063         (_gl_TS_headers): Define only in if-0'd block.
10064         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10065         sometimes we must *not* use it.  Adjust uses accordingly.
10066         (sc_tight_scope): Use much simpler grep-based test to determine
10067         whether we skip this rule.
10068
10069         maint.mk: generalize/improve the tight-scope rule
10070         * top/maint.mk: Emit a warning when the test is skipped.
10071         (_gl_TS_dir): Add $(srcdir)/ prefix.
10072         (_gl_TS_function_match): Simplify, rather than trying
10073         to enumerate common types.  Otherwise, it would fail to match an
10074         "extern unsigned char const *" declaration in idutils.
10075         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10076         a way to support use of that type of macro.
10077         (_gl_TS_var_match): Simplify regexp.
10078         (_gl_TS_obj_files): New configurable variable.
10079         (_gl_TS_headers): Likewise.
10080
10081 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10082
10083         verify: fix bug when gnulib <assert.h> is also included
10084         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10085         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10086         Perhaps there's a better way, but this fixes the immediate problem.
10087         Problem reported by Bruno Haible in
10088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10089
10090 2011-05-22  Bruno Haible  <bruno@clisp.org>
10091
10092         xgetcwd: Simplify autoconf macro.
10093         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10094
10095 2011-05-22  Bruno Haible  <bruno@clisp.org>
10096
10097         New module 'mktime-internal'.
10098         * modules/mktime-internal: New file.
10099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10100         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10101         mktime_internal as a C macro if libc has __mktime_internal.
10102         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10103         conditions.
10104         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10105
10106 2011-05-22  Bruno Haible  <bruno@clisp.org>
10107
10108         timegm: Correct mktime replacement statements.
10109         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10110         defining mktime as a C macro. This completes a 2009-07-28 commit.
10111
10112 2011-05-22  Bruno Haible  <bruno@clisp.org>
10113
10114         timegm: Simplify autoconf macro.
10115         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10116
10117 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10118
10119         clock-time: change to LGPLv2+.
10120         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10121         BSD-like but we have no mark for that; this is good enough for now.
10122
10123 2011-05-21  Bruno Haible  <bruno@clisp.org>
10124
10125         strerror_r: Fix comments.
10126         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10127
10128 2011-05-21  Bruno Haible  <bruno@clisp.org>
10129
10130         relocatable-prog-wrapper: Fix possible link error.
10131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10132         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10133         (gl_FUNC_SETENV): ... to here.
10134         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10135         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10136
10137 2011-05-21  Bruno Haible  <bruno@clisp.org>
10138
10139         relocatable-prog-wrapper: Assume strerror() exists.
10140         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10141         m4/strerror.m4.
10142         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10143         * lib/relocwrapper.c: Remove mention of strerror module.
10144         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10146         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10147         C macro.
10148
10149 2011-05-21  Bruno Haible  <bruno@clisp.org>
10150
10151         select: Simplify replacement idiom.
10152         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10153         Win32 platforms.
10154         * lib/sys_select.in.h (select): Simplify accordingly.
10155         * modules/select (Depends-on): Likewise.
10156
10157 2011-05-21  Bruno Haible  <bruno@clisp.org>
10158
10159         mkdir-p: Simplify autoconf macro.
10160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10161         gl_FUNC_LCHOWN.
10162
10163 2011-05-21  Eric Blake  <eblake@redhat.com>
10164
10165         strerror_r: avoid clobbering strerror on cygwin
10166         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10167         fall back instead to sys_errlist.
10168         * modules/strerror (configure.ac): Add witness.
10169         * tests/test-strerror_r.c (main): Enhance test.
10170         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10171         * tests/test-perror2.c (main): Free memory before exit.
10172
10173 2011-05-21  Bruno Haible  <bruno@clisp.org>
10174
10175         mkdtemp: Use gnulib naming conventions.
10176         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10177         * modules/mkdtemp (configure.ac): Update.
10178
10179 2011-05-20  Eric Blake  <eblake@redhat.com>
10180
10181         strerror_r: avoid corrupting errno on Solaris
10182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10183         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10184
10185         strerror_r: avoid compiler warning
10186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10187
10188         strerror_r: simplify AIX code
10189         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10190
10191         test-perror: avoid spurious failure on FreeBSD
10192         * modules/perror-tests (Depends-on): Add strerror, now that
10193         strerror_r no longer pulls it in.
10194
10195 2011-05-20  Bruno Haible  <bruno@clisp.org>
10196
10197         strerror_r-posix: Remove unused dependencies.
10198         * modules/strerror_r-posix (Depends-on): Remove strerror.
10199         Reported by Eric Blake.
10200
10201 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10202
10203         intprops: remove assumption about A|B representation
10204         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10205         is a valid integer if both A and B are.  Although this is true for
10206         all known practical hosts, the C standard doesn't guarantee it,
10207         and the code need not assume it.  Also, this change may work around
10208         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10210
10211 2011-05-20  Eric Blake  <eblake@redhat.com>
10212
10213         perror: work around FreeBSD bug
10214         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10215         is broken.  Move AC_LIBOBJ...
10216         * modules/perror (configure.ac): Here.
10217         * doc/posix-functions/perror.texi (perror): Document this.
10218         * tests/test-perror2.c (main): Enhance test.
10219
10220         test-perror: check for strerror interactions
10221         * tests/macros.h (STREQ): Add macro.
10222         * modules/perror-tests (Files): Add second test.
10223         * tests/test-perror2.c (main): New file.
10224         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10225
10226         test-perror: rewrite to use init script
10227         * modules/perror-tests (Files): Add init.sh.
10228         * tests/test-perror.sh: Use temporary directory.
10229
10230 2011-05-20  Jim Meyering  <meyering@redhat.com>
10231
10232         maint: replace misused "a" with "an"
10233         * doc/intprops.texi: "a integer"
10234         * doc/regex.texi: "a explanation"
10235         * lib/alignof.h: "a object"
10236         * lib/argmatch.h: "a explanation"
10237         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10238         * lib/stdint.in.h: "a integer"
10239         * lib/userspec.c: "a owner"
10240         * doc/gnulib.texi: Fix "a idea", and reword.
10241
10242 2011-05-19  Jim Meyering  <meyering@redhat.com>
10243
10244         maint: correct misuse of "a" and "an"
10245         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10246         * lib/argp-help.c: "an docum...": s/an/a/
10247         * lib/argp-parse.c: "An vector": s/An/A/
10248         * lib/execute.c: "an native": s/an/a/
10249         * lib/spawn-pipe.c: Likewise.
10250         * lib/gc.h: "an Gc_rc": s/an/a/
10251         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10252         * lib/fts.c: "an stat.st_dev": s/an/a/
10253
10254 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         intprops-tests: work around HP-UX 11.23 cc bug with constants
10257         * tests/test-intprops.c (VERIFY): New macro.
10258         (main): Use it, instead of verify, to work around the compiler bug; see
10259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10260
10261         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10262         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10263         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10264         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10265         (_GL_REMAINDER_OVERFLOW): Use it.
10266
10267         intprops-tests: revert unsigned part of previous change
10268         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10269         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10270         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10272
10273 2011-05-19  Bruno Haible  <bruno@clisp.org>
10274
10275         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10276         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10277         strerror_r() returned without filling the buffer.
10278         Reported by Eric Blake.
10279
10280 2011-05-19  Eric Blake  <eblake@redhat.com>
10281
10282         strerror_r: guarantee unchanged errno
10283         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10284         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10285         failure.
10286         * tests/test-strerror_r.c (main): Enhance test.
10287
10288 2011-05-19  Bruno Haible  <bruno@clisp.org>
10289
10290         strerror_r: Reorder #if blocks.
10291         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10292         for consistency with the previous commit.
10293
10294 2011-05-19  Bruno Haible  <bruno@clisp.org>
10295
10296         perror: Avoid clobbering the strerror buffer when possible.
10297         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10298         * lib/strerror.c: Include it.
10299         * modules/strerror (Files): Add lib/strerror-impl.h.
10300         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10301         (my_strerror): New function, defined through lib/strerror-impl.h.
10302         (perror): Use it instead of strerror.
10303         * modules/perror (Files): Add lib/strerror-impl.h.
10304         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10305
10306 2011-05-19  Eric Blake  <eblake@redhat.com>
10307
10308         strerror_r: fix on newer cygwin
10309         * lib/strerror_r.c (strerror_r): Cygwin now has
10310         __xpg_strerror_r, use it.
10311
10312 2011-05-19  Bruno Haible  <bruno@clisp.org>
10313
10314         strerror_r: Avoid clobbering the strerror buffer when possible.
10315         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10316         (sys_nerr, sys_errlist): New declarations.
10317         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10318         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10319         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10320
10321 2011-05-19  Bruno Haible  <bruno@clisp.org>
10322
10323         strerror_r: Fix test failure on mingw.
10324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10325         EXTEND_STRERROR_R.
10326         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10327         macros from errno.in.h instead.
10328
10329 2011-05-19  Eric Blake  <eblake@redhat.com>
10330
10331         strerror: relax test for Solaris
10332         * tests/test-strerror.c (main): Permit Solaris behavior.
10333         * tests/test-strerror_r.c (main): Likewise.
10334
10335         strerror: enforce POSIX ruling on strerror(0)
10336         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10338         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10339         * doc/posix-functions/strerror.texi (strerror): Document it.
10340         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10341         * tests/test-strerror.c (main): Strengthen test.
10342         * tests/test-strerror_r.c (main): Likewise.
10343
10344 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         intprop-tests: port to older and more-pedantic compilers
10347         * modules/intprops-tests (Files): Add tests/macros.h.
10348         * tests/test-intprops.c: Include macros.h.
10349         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10350         it's no longer documented to expand to an integer constant expression.
10351         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10352         argument is floating point, as it's no longer documented to expand
10353         to an integer constant expression in that case.
10354         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10355         compiler bugs reported by Bruno Haible.  See
10356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10357         (U0, U1): New constants, to work around the same bugs.  Also,
10358         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10359
10360         intprops: work around C compiler bugs
10361         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10362         bug in Sun C 5.11 2010/08/13 and other compilers; see
10363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10364
10365         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10366         * doc/intprops.texi (Integer Type Determination): Fix
10367         documentation for TYPE_IS_INTEGER: it returns an constant
10368         expression, not an integer constant expression.  Fix doc for
10369         TYPE_SIGNED: it returns an integer constant expression only if its
10370         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10371         hardly worth documented that way....)
10372
10373 2011-05-18  Bruno Haible  <bruno@clisp.org>
10374
10375         strerror_r: Avoid clobbering the strerror buffer when possible.
10376         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10377         Handle gnulib defined errno values here. When strerror() returns NULL
10378         or an empty string, return EINVAL.
10379         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10380         gnulib defined errno values here.
10381         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10382
10383 2011-05-18  Eric Blake  <eblake@redhat.com>
10384
10385         fnmatch: avoid compiler warning
10386         * lib/fnmatch_loop.c (FCT): Use correct type.
10387         Reported by Matthias Bolte.
10388
10389 2011-05-13  Jim Meyering  <meyering@redhat.com>
10390
10391         maint.mk: three new prohibit_<HDR>_without_use rules
10392         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10393         (sc_prohibit_stdio-safer_without_use): Likewise.
10394         (sc_prohibit_xfreopen_without_use): Likewise.
10395
10396 2011-05-17  Jim Meyering  <meyering@redhat.com>
10397
10398         announce-gen: fail if the NEWS delta is empty
10399         If there's nothing noteworthy in NEWS, then either you forgot
10400         or you shouldn't be releasing.
10401         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10402
10403 2011-05-17  Pádraig Brady <P@draigBrady.com>
10404
10405         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10406         reserved symbols starting with double underscore from the check.
10407
10408 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10409
10410         intprops: add doc
10411         * doc/intprops.texi: New file, documenting intprops.
10412         * doc/gnulib.texi (Particular Modules): Include it.
10413
10414         verify: add doc to gnulib manual and fix example
10415         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10416         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10417         (Compile-time Assertions): Fix example so it can't overflow.
10418
10419 2011-05-17  Jim Meyering  <meyering@redhat.com>
10420
10421         warnings.m4: don't usurp save_CPPFLAGS variable name
10422         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10423
10424         doc: fix typo
10425         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10426
10427 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10428             Bruno Haible  <bruno@clisp.org>
10429
10430         doc: Tweak recent change.
10431         * README (Portability guidelines): Tweak new text.
10432         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10433         Interix 6.1.
10434
10435 2011-05-16  Eric Blake  <eblake@redhat.com>
10436
10437         inttypes: avoid autoconf warning
10438         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10439         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10440
10441 2011-05-16  Sam Steingold <sds@gnu.org>
10442         and Eric Blake  <eblake@redhat.com>
10443
10444         vc-list-files: accept multiple directory operands
10445         * build-aux/vc-list-files: Iterate over all remaining operands.
10446
10447 2011-05-16  Bruno Haible  <bruno@clisp.org>
10448
10449         Fix confusion regarding deprecated modules.
10450         * modules/calloc (Status, Notice): Mark module as deprecated, not
10451         obsolete.
10452         * modules/fnmatch-posix (Status, Notice): Likewise.
10453         * modules/getdate (Status, Notice): Likewise.
10454         * modules/getopt (Status, Notice): Likewise.
10455         * modules/malloc (Status, Notice): Likewise.
10456         * modules/pipe (Status, Notice): Likewise.
10457         * modules/realloc (Status, Notice): Likewise.
10458         * modules/rename-dest-slash (Status, Notice): Likewise.
10459         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10460         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10461         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10462         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10463         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10464
10465 2011-05-16  Bruno Haible  <bruno@clisp.org>
10466
10467         doc: List the target platforms.
10468         * doc/gnulib-intro.texi (Target Platforms): New section.
10469         * doc/gnulib.texi (Introduction): Update menu.
10470         * README (Portability guidelines): Refer to the new section. Update
10471         statement about oldest supported environment. Remove rationale why
10472         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10473         unportable C89 function.
10474         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10475         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10476
10477 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10478
10479         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10480
10481 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         intprops-tests: new module
10484         * modules/intprops-tests, tests/test-intprops.c: New files.
10485
10486         intprops: add safe, portable integer overflow checking
10487         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10488         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10489         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10490         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10491         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10492         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10493         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10494         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10495         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10496         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10497         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10498
10499 2011-05-12  James Youngman  <jay@gnu.org>
10500
10501         Add a test for glibc's Bugzilla bug #12378.
10502         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10503         doesn't allow the literal matching of a lone "[" (which is
10504         required by POSIX).
10505         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10506
10507 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10508
10509         Sync glibc change fixing Bugzilla bug #12378.
10510         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10511         beginning and fall back to matching as normal character if the
10512         string ends before the matching ']' is found.  This is what POSIX
10513         requires.
10514
10515 2011-05-13  Eric Blake  <eblake@redhat.com>
10516
10517         getcwd-lgpl: relax test for FreeBSD
10518         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10519         issue.
10520         * tests/test-getcwd-lgpl.c (main): Relax test.
10521         Reported by Matthias Bolte.
10522
10523 2011-05-11  Eric Blake  <eblake@redhat.com>
10524
10525         test-fflush: silence compiler warning
10526         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10527
10528 2011-05-11  Bruno Haible  <bruno@clisp.org>
10529
10530         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10532         * modules/canonicalize (Depends-on): Add 'nocrash'.
10533         * modules/canonicalize-lgpl (Depends-on): Likewise.
10534         * doc/posix-functions/realpath.texi: Update platforms list.
10535         Reported by Ryan Schmidt <ryandesign@macports.org>.
10536
10537 2011-05-11  Bruno Haible  <bruno@clisp.org>
10538
10539         group-member: Declare function in <unistd.h>.
10540         * lib/unistd.in.h (group_member): New declaration.
10541         * lib/group-member.h: Remove file.
10542         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10543         * tests/test-unistd-c++.cc: Check signature of group_member.
10544         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10545         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10546         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10547         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10548         HAVE_GROUP_MEMBER.
10549         * modules/group-member (Files): Remove lib/group-member.h.
10550         (Depends-on): Add unistd. Specify conditions.
10551         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10552         (Include): Change to <unistd.h>.
10553         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10554         HAVE_GROUP_MEMBER.
10555         * NEWS: Mention the change.
10556         * lib/euidaccess.c: Don't include group-member.h.
10557
10558 2011-05-11  Bruno Haible  <bruno@clisp.org>
10559
10560         group-member: Document module.
10561         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10562         module.
10563
10564 2011-05-11  Bruno Haible  <bruno@clisp.org>
10565
10566         fclose: Fix mistake earlier today.
10567         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10568
10569 2011-05-11  Eric Blake  <eblake@redhat.com>
10570
10571         fclose: preserve fflush errors
10572         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10573         Reported by Jim Meyering.
10574
10575         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10576         * build-aux/bootstrap (check_versions): When no specific version
10577         is required, merely check that the app produces an exit status
10578         that indicates its existence.
10579
10580         maint.mk: drop redundant check
10581         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10582         the same but better.
10583
10584 2011-05-11  Bruno Haible  <bruno@clisp.org>
10585
10586         fclose: Fix possible link error.
10587         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10588         unregister_shadow_fd. Improve comments.
10589         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10590         Eric Blake.
10591
10592 2011-05-11  Jim Meyering  <meyering@redhat.com>
10593
10594         maint.mk: improve "can not" detection and generalize rule name
10595         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10596         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10597         Use the same technique as in sc_prohibit_doubled_word, so that
10598         we recognize "can not" also when the words are separated by a newline.
10599         Suggested by Eric Blake.
10600         (perl_filename_lineno_text_): Define.  Factored out of...
10601         (prohibit_doubled_word_): ...here.  Use the new definition.
10602         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10603         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10604         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10605
10606 2011-05-10  Eric Blake  <eblake@redhat.com>
10607
10608         fclose: avoid double close race when possible
10609         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10610         all but WINDOWS_SOCKETS.
10611
10612 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10613
10614         openat: correct new comment
10615         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10616
10617 2011-05-10  Jim Meyering  <meyering@redhat.com>
10618
10619         openat: add comments
10620         * lib/openat-proc.c (openat_proc_name): Add comments,
10621         mostly from Eric Blake.
10622
10623 2011-05-09  Eric Blake  <eblake@redhat.com>
10624
10625         openat: reduce syscalls in first probe of /proc
10626         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10627         be a directory.  Simplify the probe for .. bugs.
10628         * modules/openat (Depends-on): Drop same-inode.
10629         Reported by Bastien ROUCARIES.
10630
10631 2011-05-09  Jim Meyering  <meyering@redhat.com>
10632
10633         maint.mk: change semantics/name of tight_scope variables
10634         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10635         Rename variables to align with semantics that make them more useful.
10636
10637         maint.mk: tweak new rule's name not to impinge
10638         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10639         (sc_tight_scope): Use new rule name rather than $@-0.
10640
10641         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10642         * top/maint.mk (sc_tight_scope): New rule.
10643         (sc_tight_scope-0): New rule, ifdef'd out.
10644         (_gl_TS_dir): Default.
10645         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10646         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10647
10648 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10649
10650         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10651         Haible <bruno@clisp.org>.
10652
10653 2011-05-08  Bruno Haible  <bruno@clisp.org>
10654
10655         Comments.
10656         * m4/isnanf.m4: Add comment.
10657         * m4/isnanl.m4: Likewise.
10658
10659 2011-05-08  Bruno Haible  <bruno@clisp.org>
10660
10661         glob: Remove obsolete macro.
10662         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10663
10664 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         intprops: Sun C 5.11 supports __typeof__
10667         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10668         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10669         which is new.
10670         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10671
10672         intprops: switch to usual gnulib indenting and naming
10673         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10674         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10675
10676         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10677
10678 2011-05-08  Jim Meyering  <meyering@redhat.com>
10679
10680         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10681         * top/maint.mk (release-prep): Use make's --no-print-directory
10682         option when generating the announcement.  This eliminates the
10683         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10684         generated announcement template.
10685
10686 2011-05-08  Bruno Haible  <bruno@clisp.org>
10687
10688         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10689         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10690         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10691
10692 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10693
10694         ignore-value, verify: Omit include files from lib_SOURCES.
10695         * modules/ignore-value, modules/verify (Makefile.am):
10696         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10697         that leads Automake to duplicate use of am__objects_... variables
10698         in Makefile.in.  See
10699         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10700
10701 2011-05-07  Bruno Haible  <bruno@clisp.org>
10702
10703         fclose: Simplify autoconf macro.
10704         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10705         defined.
10706
10707 2011-05-07  Bruno Haible  <bruno@clisp.org>
10708
10709         canonicalize-lgpl: Fix autoconf macro ordering bug.
10710         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10711         gl_STDLIB_H_DEFAULTS.
10712
10713 2011-05-06  Eric Blake  <eblake@redhat.com>
10714
10715         maintainer-makefile: make sc_po_check easier to tune
10716         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10717         to probe for strings, such as an alternate location for gnulib.
10718
10719         fclose: guarantee behavior on seekable stdin
10720         * modules/fclose (Depends-on): Add fflush.
10721         * doc/posix-functions/fclose.texi (fclose): Document this.
10722         * tests/test-fclose.c (main): Make test for this unconditional.
10723
10724 2011-05-06  Bruno Haible  <bruno@clisp.org>
10725
10726         fflush, fpurge: Relicense under LGPLv2+.
10727         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10728         * modules/fpurge (License): Likewise.
10729         With permission from Eric Blake and Jim Meyering.
10730         Suggested by Eric Blake.
10731
10732 2011-05-06  Karl Berry  <karl@gnu.org>
10733
10734         * MODULES.html.sh (func_all_modules): remove exit.
10735
10736 2011-05-06  Jim Meyering  <meyering@redhat.com>
10737
10738         maint.mk: use info-gnu@ as the default only for a stable release
10739         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10740         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10741         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10743
10744 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10745
10746         assert-h: new module, which supports C1X-style static_assert
10747         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10748         * lib/verify.h: Revamp so that this can be copied into assert.h,
10749         while retaining the ability to use it standalone as before.
10750         Rename private identifiers so as not to encroach on the
10751         standard C namespace, since this is now used by assert.h.
10752         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10753         the old verify_true.
10754         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10755         the old verify_true.  Use _GL_VERIFY_TYPE.
10756         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10757         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10758         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10759         defined when this file is copied into the replacement assert.h.
10760         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10761         and _Static_assert is not built in.
10762         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10763         defined, and use the new macros mentioned above.
10764         * doc/posix-headers/assert.texi: Document this.
10765
10766 2011-05-05  Bruno Haible  <bruno@clisp.org>
10767
10768         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10769         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10770         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10771         gl_REPLACE_FCLOSE here.
10772         * modules/fflush (Depends-on): Remove fclose.
10773         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10774         combination with module 'fclose'.
10775
10776 2011-05-05  Bruno Haible  <bruno@clisp.org>
10777
10778         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10779         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10780         gl_FUNC_FFLUSH.
10781         (gl_FUNC_FFLUSH): Use it.
10782         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10784         gl_REPLACE_FSEEKO here.
10785
10786 2011-05-05  Bruno Haible  <bruno@clisp.org>
10787
10788         tzset: Relicense under LGPL.
10789         * modules/tzset (License): Change to LGPL.
10790         No agreement needed; it's a no-op.
10791
10792         strtoimax, strtoumax: Relicense under LGPL.
10793         * modules/strtoimax (License): Change to LGPL.
10794         * modules/strtoumax (License): Likewise.
10795         With permission from Jim Meyering, Paul Eggert:
10796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10798
10799         getgroups: Relicense under LGPL.
10800         * modules/getgroups (License): Change to LGPL.
10801         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10805
10806         nanosleep: Relicense under LGPL.
10807         * modules/nanosleep (License): Change to LGPL.
10808         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10809         Haible:
10810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10814
10815         futimens: Relicense under LGPL.
10816         * modules/futimens (License): Change to LGPL.
10817         With permission from Eric Blake:
10818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10819
10820         fflush: Relicense under LGPL.
10821         * modules/fflush (License): Change to LGPL.
10822         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10826
10827         tmpfile: Relicense under LGPL.
10828         * modules/tmpfile (License): Change to LGPL.
10829         With permission from Ben Pfaff:
10830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10831
10832         isfinite: Relicense under LGPL.
10833         * modules/isfinite (License): Change to LGPL.
10834         With permission from Ben Pfaff, Bruno Haible:
10835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10837
10838         acosl..tanl: Relicense under LGPL.
10839         * modules/acosl (License): Change to LGPL.
10840         * modules/asinl (License): Likewise.
10841         * modules/atanl (License): Likewise.
10842         * modules/cosl (License): Likewise.
10843         * modules/expl (License): Likewise.
10844         * modules/logl (License): Likewise.
10845         * modules/sinl (License): Likewise.
10846         * modules/sqrtl (License): Likewise.
10847         * modules/tanl (License): Likewise.
10848         Source code originally from glibc and Paolo Bonzini. Agreements:
10849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10851
10852 2011-05-05  Bruno Haible  <bruno@clisp.org>
10853
10854         signal: Define sighandler_t.
10855         * lib/signal.in.h (sighandler_t): New type.
10856         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10857         whether sighandler_t is defined.
10858         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10859         * modules/signal (Depends-on): Add extensions.
10860         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10861         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10862         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10863
10864 2011-05-05  Eric Blake  <eblake@redhat.com>
10865
10866         maint: remove useless REPLACE_*_H macros
10867         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10868         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10869         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10870         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10871         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10872         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10873         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10874         * m4/btowc.m4: Update callers.
10875         * m4/dirfd.m4: Likewise.
10876         * m4/duplocale.m4: Likewise.
10877         * m4/fchdir.m4: Likewise.
10878         * m4/fdopendir.m4: Likewise.
10879         * m4/inet_ntop.m4: Likewise.
10880         * m4/inet_pton.m4: Likewise.
10881         * m4/ioctl.m4: Likewise.
10882         * m4/mbrlen.m4: Likewise.
10883         * m4/mbrtowc.m4: Likewise.
10884         * m4/mbsinit.m4: Likewise.
10885         * m4/mbsnrtowcs.m4: Likewise.
10886         * m4/mbsrtowcs.m4: Likewise.
10887         * m4/poll.m4: Likewise.
10888         * m4/setlocale.m4: Likewise.
10889         * m4/wcrtomb.m4: Likewise.
10890         * m4/wcsnrtombs.m4: Likewise.
10891         * m4/wcsrtombs.m4: Likewise.
10892         * m4/wctob.m4: Likewise.
10893         * m4/wcwidth.m4: Likewise.
10894         * modules/posix_spawn: Likewise.
10895         * modules/posix_spawn_file_actions_addclose: Likewise.
10896         * modules/posix_spawn_file_actions_adddup2: Likewise.
10897         * modules/posix_spawn_file_actions_addopen: Likewise.
10898         * modules/posix_spawn_file_actions_destroy: Likewise.
10899         * modules/posix_spawn_file_actions_init: Likewise.
10900         * modules/posix_spawnattr_destroy: Likewise.
10901         * modules/posix_spawnattr_getflags: Likewise.
10902         * modules/posix_spawnattr_getpgroup: Likewise.
10903         * modules/posix_spawnattr_getschedparam: Likewise.
10904         * modules/posix_spawnattr_getschedpolicy: Likewise.
10905         * modules/posix_spawnattr_getsigdefault: Likewise.
10906         * modules/posix_spawnattr_getsigmask: Likewise.
10907         * modules/posix_spawnattr_init: Likewise.
10908         * modules/posix_spawnattr_setflags: Likewise.
10909         * modules/posix_spawnattr_setpgroup: Likewise.
10910         * modules/posix_spawnattr_setschedparam: Likewise.
10911         * modules/posix_spawnattr_setschedpolicy: Likewise.
10912         * modules/posix_spawnattr_setsigdefault: Likewise.
10913         * modules/posix_spawnattr_setsigmask: Likewise.
10914         * modules/posix_spawnp: Likewise.
10915
10916 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10917
10918         Add option to do-release-commit-and-tag to specify branch.
10919         * build-aux/do-release-commit-and-tag: Add --branch.
10920
10921 2011-05-03  Bruno Haible  <bruno@clisp.org>
10922
10923         Avoid unnecessary compilation units, through conditional dependencies.
10924         * modules/accept (Depends-on): Add conditions to the dependencies.
10925         * modules/acosl (Depends-on): Likewise.
10926         * modules/argz (Depends-on): Likewise.
10927         * modules/asinl (Depends-on): Likewise.
10928         * modules/atanl (Depends-on): Likewise.
10929         * modules/atoll (Depends-on): Likewise.
10930         * modules/bind (Depends-on): Likewise.
10931         * modules/btowc (Depends-on): Likewise.
10932         * modules/canonicalize-lgpl (Depends-on): Likewise.
10933         * modules/ceil (Depends-on): Likewise.
10934         * modules/ceilf (Depends-on): Likewise.
10935         * modules/ceill (Depends-on): Likewise.
10936         * modules/chdir-long (Depends-on): Likewise.
10937         * modules/chown (Depends-on): Likewise.
10938         * modules/close (Depends-on): Likewise.
10939         * modules/connect (Depends-on): Likewise.
10940         * modules/cosl (Depends-on): Likewise.
10941         * modules/dirfd (Depends-on): Likewise.
10942         * modules/dprintf (Depends-on): Likewise.
10943         * modules/dprintf-posix (Depends-on): Likewise.
10944         * modules/error (Depends-on): Likewise.
10945         * modules/euidaccess (Depends-on): Likewise.
10946         * modules/expl (Depends-on): Likewise.
10947         * modules/faccessat (Depends-on): Likewise.
10948         * modules/fchdir (Depends-on): Likewise.
10949         * modules/fclose (Depends-on): Likewise.
10950         * modules/fcntl (Depends-on): Likewise.
10951         * modules/fdopendir (Depends-on): Likewise.
10952         * modules/fflush (Depends-on): Likewise.
10953         * modules/floor (Depends-on): Likewise.
10954         * modules/floorf (Depends-on): Likewise.
10955         * modules/floorl (Depends-on): Likewise.
10956         * modules/fnmatch (Depends-on): Likewise.
10957         * modules/fopen (Depends-on): Likewise.
10958         * modules/fprintf-posix (Depends-on): Likewise.
10959         * modules/frexp (Depends-on): Likewise.
10960         * modules/frexp-nolibm (Depends-on): Likewise.
10961         * modules/frexpl (Depends-on): Likewise.
10962         * modules/frexpl-nolibm (Depends-on): Likewise.
10963         * modules/fseek (Depends-on): Likewise.
10964         * modules/fsusage (Depends-on): Likewise.
10965         * modules/ftell (Depends-on): Likewise.
10966         * modules/ftello (Depends-on): Likewise.
10967         * modules/futimens (Depends-on): Likewise.
10968         * modules/getcwd (Depends-on): Likewise.
10969         * modules/getcwd-lgpl (Depends-on): Likewise.
10970         * modules/getdelim (Depends-on): Likewise.
10971         * modules/getdomainname (Depends-on): Likewise.
10972         * modules/getgroups (Depends-on): Likewise.
10973         * modules/gethostname (Depends-on): Likewise.
10974         * modules/getline (Depends-on): Likewise.
10975         * modules/getlogin_r (Depends-on): Likewise.
10976         * modules/getopt-posix (Depends-on): Likewise.
10977         * modules/getpeername (Depends-on): Likewise.
10978         * modules/getsockname (Depends-on): Likewise.
10979         * modules/getsockopt (Depends-on): Likewise.
10980         * modules/getsubopt (Depends-on): Likewise.
10981         * modules/getusershell (Depends-on): Likewise.
10982         * modules/glob (Depends-on): Likewise.
10983         * modules/grantpt (Depends-on): Likewise.
10984         * modules/iconv_open (Depends-on): Likewise.
10985         * modules/iconv_open-utf (Depends-on): Likewise.
10986         * modules/inet_ntop (Depends-on): Likewise.
10987         * modules/inet_pton (Depends-on): Likewise.
10988         * modules/ioctl (Depends-on): Likewise.
10989         * modules/isapipe (Depends-on): Likewise.
10990         * modules/isfinite (Depends-on): Likewise.
10991         * modules/isinf (Depends-on): Likewise.
10992         * modules/lchown (Depends-on): Likewise.
10993         * modules/ldexpl (Depends-on): Likewise.
10994         * modules/link (Depends-on): Likewise.
10995         * modules/linkat (Depends-on): Likewise.
10996         * modules/listen (Depends-on): Likewise.
10997         * modules/logl (Depends-on): Likewise.
10998         * modules/lstat (Depends-on): Likewise.
10999         * modules/mbrlen (Depends-on): Likewise.
11000         * modules/mbrtowc (Depends-on): Likewise.
11001         * modules/mbsinit (Depends-on): Likewise.
11002         * modules/mbsnrtowcs (Depends-on): Likewise.
11003         * modules/mbsrtowcs (Depends-on): Likewise.
11004         * modules/mbtowc (Depends-on): Likewise.
11005         * modules/memcmp (Depends-on): Likewise.
11006         * modules/mkdir (Depends-on): Likewise.
11007         * modules/mkdtemp (Depends-on): Likewise.
11008         * modules/mkfifo (Depends-on): Likewise.
11009         * modules/mkfifoat (Depends-on): Likewise.
11010         * modules/mknod (Depends-on): Likewise.
11011         * modules/mkostemp (Depends-on): Likewise.
11012         * modules/mkostemps (Depends-on): Likewise.
11013         * modules/mkstemp (Depends-on): Likewise.
11014         * modules/mkstemps (Depends-on): Likewise.
11015         * modules/mktime (Depends-on): Likewise.
11016         * modules/nanosleep (Depends-on): Likewise.
11017         * modules/open (Depends-on): Likewise.
11018         * modules/openat (Depends-on): Likewise.
11019         * modules/perror (Depends-on): Likewise.
11020         * modules/poll (Depends-on): Likewise.
11021         * modules/popen (Depends-on): Likewise.
11022         * modules/posix_spawn (Depends-on): Likewise.
11023         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11024         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11025         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11026         * modules/posix_spawnp (Depends-on): Likewise.
11027         * modules/pread (Depends-on): Likewise.
11028         * modules/printf-posix (Depends-on): Likewise.
11029         * modules/ptsname (Depends-on): Likewise.
11030         * modules/putenv (Depends-on): Likewise.
11031         * modules/pwrite (Depends-on): Likewise.
11032         * modules/readline (Depends-on): Likewise.
11033         * modules/readlink (Depends-on): Likewise.
11034         * modules/readlinkat (Depends-on): Likewise.
11035         * modules/recv (Depends-on): Likewise.
11036         * modules/recvfrom (Depends-on): Likewise.
11037         * modules/regex (Depends-on): Likewise.
11038         * modules/remove (Depends-on): Likewise.
11039         * modules/rename (Depends-on): Likewise.
11040         * modules/renameat (Depends-on): Likewise.
11041         * modules/rmdir (Depends-on): Likewise.
11042         * modules/round (Depends-on): Likewise.
11043         * modules/roundf (Depends-on): Likewise.
11044         * modules/roundl (Depends-on): Likewise.
11045         * modules/rpmatch (Depends-on): Likewise.
11046         * modules/select (Depends-on): Likewise.
11047         * modules/send (Depends-on): Likewise.
11048         * modules/sendto (Depends-on): Likewise.
11049         * modules/setenv (Depends-on): Likewise.
11050         * modules/setlocale (Depends-on): Likewise.
11051         * modules/setsockopt (Depends-on): Likewise.
11052         * modules/shutdown (Depends-on): Likewise.
11053         * modules/sigaction (Depends-on): Likewise.
11054         * modules/signbit (Depends-on): Likewise.
11055         * modules/sigprocmask (Depends-on): Likewise.
11056         * modules/sinl (Depends-on): Likewise.
11057         * modules/sleep (Depends-on): Likewise.
11058         * modules/snprintf (Depends-on): Likewise.
11059         * modules/snprintf-posix (Depends-on): Likewise.
11060         * modules/socket (Depends-on): Likewise.
11061         * modules/sprintf-posix (Depends-on): Likewise.
11062         * modules/sqrtl (Depends-on): Likewise.
11063         * modules/stat (Depends-on): Likewise.
11064         * modules/strchrnul (Depends-on): Likewise.
11065         * modules/strdup-posix (Depends-on): Likewise.
11066         * modules/strerror (Depends-on): Likewise.
11067         * modules/strerror_r-posix (Depends-on): Likewise.
11068         * modules/strndup (Depends-on): Likewise.
11069         * modules/strnlen (Depends-on): Likewise.
11070         * modules/strptime (Depends-on): Likewise.
11071         * modules/strsep (Depends-on): Likewise.
11072         * modules/strsignal (Depends-on): Likewise.
11073         * modules/strstr-simple (Depends-on): Likewise.
11074         * modules/strtod (Depends-on): Likewise.
11075         * modules/strtoimax (Depends-on): Likewise.
11076         * modules/strtok_r (Depends-on): Likewise.
11077         * modules/strtoumax (Depends-on): Likewise.
11078         * modules/symlink (Depends-on): Likewise.
11079         * modules/symlinkat (Depends-on): Likewise.
11080         * modules/tanl (Depends-on): Likewise.
11081         * modules/tcgetsid (Depends-on): Likewise.
11082         * modules/tmpfile (Depends-on): Likewise.
11083         * modules/trunc (Depends-on): Likewise.
11084         * modules/truncf (Depends-on): Likewise.
11085         * modules/truncl (Depends-on): Likewise.
11086         * modules/uname (Depends-on): Likewise.
11087         * modules/unlink (Depends-on): Likewise.
11088         * modules/unlockpt (Depends-on): Likewise.
11089         * modules/unsetenv (Depends-on): Likewise.
11090         * modules/usleep (Depends-on): Likewise.
11091         * modules/utimensat (Depends-on): Likewise.
11092         * modules/vasprintf (Depends-on): Likewise.
11093         * modules/vdprintf (Depends-on): Likewise.
11094         * modules/vdprintf-posix (Depends-on): Likewise.
11095         * modules/vfprintf-posix (Depends-on): Likewise.
11096         * modules/vprintf-posix (Depends-on): Likewise.
11097         * modules/vsnprintf (Depends-on): Likewise.
11098         * modules/vsnprintf-posix (Depends-on): Likewise.
11099         * modules/vsprintf-posix (Depends-on): Likewise.
11100         * modules/wcrtomb (Depends-on): Likewise.
11101         * modules/wcscasecmp (Depends-on): Likewise.
11102         * modules/wcscspn (Depends-on): Likewise.
11103         * modules/wcsdup (Depends-on): Likewise.
11104         * modules/wcsncasecmp (Depends-on): Likewise.
11105         * modules/wcsnrtombs (Depends-on): Likewise.
11106         * modules/wcspbrk (Depends-on): Likewise.
11107         * modules/wcsrtombs (Depends-on): Likewise.
11108         * modules/wcsspn (Depends-on): Likewise.
11109         * modules/wcsstr (Depends-on): Likewise.
11110         * modules/wcstok (Depends-on): Likewise.
11111         * modules/wcswidth (Depends-on): Likewise.
11112         * modules/wctob (Depends-on): Likewise.
11113         * modules/wctomb (Depends-on): Likewise.
11114         * modules/wctype (Depends-on): Likewise.
11115         * modules/wcwidth (Depends-on): Likewise.
11116         * modules/write (Depends-on): Likewise.
11117
11118 2011-05-03  Bruno Haible  <bruno@clisp.org>
11119
11120         Support for conditional dependencies.
11121         * doc/gnulib.texi (Module description): Document the syntax of
11122         conditional dependencies.
11123         * gnulib-tool: New option --conditional-dependencies.
11124         (func_usage): Document it.
11125         (cond_dependencies): New variable.
11126         (func_get_automake_snippet_conditional,
11127         func_get_automake_snippet_unconditional): New functions, extracted from
11128         func_get_automake_snippet.
11129         (func_get_automake_snippet): Use them.
11130         (sed_first_32_chars): New variable.
11131         (func_module_shellfunc_name): New function.
11132         (func_module_shellvar_name): New function.
11133         (func_module_conditional_name): New function.
11134         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11135         func_cond_module_condition): New functions.
11136         (func_modules_transitive_closure): Add support for conditional
11137         dependencies.
11138         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11139         conditional automake snippet in an automake conditional.
11140         (func_emit_autoconf_snippets): Emit shell functions that contain the
11141         code for conditional modules.
11142         (func_import, func_create_testdir): Update specification.
11143
11144 2011-05-03  Eric Blake  <eblake@redhat.com>
11145
11146         test-getaddrinfo: report error information
11147         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11148
11149 2011-05-03  Jim Meyering  <meyering@redhat.com>
11150
11151         bootstrap: avoid build failure when $GZIP is set
11152         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11153         program name.  If defined at all, it is supposed to list gzip options.
11154         Reported by Alan Curry in http://debbugs.gnu.org/8609
11155
11156 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11157
11158         readme-release: new module with release instructions
11159         * modules/readme-release: New module.
11160         * top/README-release: New file, from coreutils, grep, diffutils.
11161         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11162
11163 2011-05-02  Eric Blake  <eblake@redhat.com>
11164
11165         fflush: also replace fclose when fixing fflush
11166         * modules/fflush (Depends-on): Add fclose.
11167         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11168         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11169         memstreams with no backing fd.
11170         * doc/posix-functions/fclose.texi (fclose): Document the use of
11171         fflush module to fix the bug.
11172         * tests/test-fclose.c (main): Relax test when fclose is used in
11173         isolation.
11174
11175         fclose: add some tests
11176         * modules/fclose-tests: New test module.
11177         * tests/test-fclose.c: New file.
11178         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11179
11180         fclose: reduced dependencies
11181         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11182         simpler lseek.
11183         * lib/fclose.c (rpl_fclose): Likewise.
11184         Reported by Simon Josefsson.
11185
11186         exit: drop remaining clients
11187         * modules/argmatch (Depends-on): Replace exit with stdlib.
11188         * modules/copy-file (Depends-on): Likewise.
11189         * modules/execute (Depends-on): Likewise.
11190         * modules/exitfail (Depends-on): Likewise.
11191         * modules/obstack (Depends-on): Likewise.
11192         * modules/pagealign_alloc (Depends-on): Likewise.
11193         * modules/pipe-filter-gi (Depends-on): Likewise.
11194         * modules/pipe-filter-ii (Depends-on): Likewise.
11195         * modules/savewd (Depends-on): Likewise.
11196         * modules/spawn-pipe (Depends-on): Likewise.
11197         * modules/wait-process (Depends-on): Likewise.
11198         * modules/xsetenv (Depends-on): Likewise.
11199         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11200         * modules/git-merge-changelog (Depends-on): Likewise.
11201         * modules/long-options (Depends-on): Likewise.
11202         * modules/pt_chown (Depends-on): Likewise.
11203         * modules/sysexits (Depends-on): Likewise.
11204
11205         freading: relax license from LGPLv3+ to LGPLv2+
11206         * modules/freading (License): Relax LGPL version.
11207
11208 2011-05-02  Bruno Haible  <bruno@clisp.org>
11209
11210         fchdir: Remove unused dependencies.
11211         * modules/fchdir (Depends-on): Remove include_next.
11212
11213 2011-05-02  Bruno Haible  <bruno@clisp.org>
11214
11215         gnulib-tool: Refactor.
11216         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11217         from func_emit_autoconf_snippets.
11218         (func_emit_autoconf_snippets): Use it.
11219
11220 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11221
11222         * NEWS: Document removal of 'exit'.
11223         * modules/exit: Remove file.
11224
11225 2011-05-01  Bruno Haible  <bruno@clisp.org>
11226
11227         Update DEPENDENCIES.
11228         * DEPENDENCIES (gettext): Recommend the newest release.
11229         Reported by Simon Josefsson.
11230
11231 2011-05-01  Bruno Haible  <bruno@clisp.org>
11232
11233         gnulib-tool: Reduce code duplication.
11234         * gnulib-tool (func_emit_autoconf_snippets): New function.
11235         (func_import, func_create_testdir): Use it.
11236
11237 2011-04-30  Eric Blake  <eblake@redhat.com>
11238
11239         fclose: don't fail on non-seekable input stream
11240         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11241         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11242         since fflush is allowed to fail in that case.
11243
11244 2011-04-30  Bruno Haible  <bruno@clisp.org>
11245
11246         dup3: cleanup
11247         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11248
11249 2011-04-30  Bruno Haible  <bruno@clisp.org>
11250
11251         netdb: Make it work in C++ mode.
11252         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11253         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11254         module.
11255         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11256         gl_MODULE_INDICATOR_FOR_TESTS.
11257         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11258         * modules/netdb-c++-tests: New file.
11259         * tests/test-netdb-c++.cc: New file.
11260
11261 2011-04-30  Bruno Haible  <bruno@clisp.org>
11262
11263         New modules 'vfscanf', 'vscanf'.
11264         * modules/vfscanf: New file.
11265         * modules/vscanf: New file.
11266         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11267         here.
11268         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11269         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11270
11271 2011-04-30  Bruno Haible  <bruno@clisp.org>
11272
11273         passfd: Add comments.
11274         * lib/passfd.c: Add comments about platforms.
11275
11276 2011-04-30  Bruno Haible  <bruno@clisp.org>
11277
11278         sys_uio: Make <sys/uio.h> self-contained.
11279         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11280         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11281
11282 2011-04-30  Bruno Haible  <bruno@clisp.org>
11283
11284         sys_socket: Ensure 'struct iovec' definition.
11285         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11286         <sys/socket.h>.
11287         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11288
11289 2011-04-30  Bruno Haible  <bruno@clisp.org>
11290
11291         sys_uio: Protect definition of 'struct iovec'.
11292         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11293         it as a C struct.
11294
11295 2011-04-30  Bruno Haible  <bruno@clisp.org>
11296
11297         manywarnings: fix indentation
11298         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11299
11300 2011-04-30  Pádraig Brady <P@draigBrady.com>
11301
11302         manywarnings: add -Wno-missing-field-initializers if needed.
11303         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11304         option if it's needed to allow initialization with { 0, }
11305
11306 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11307
11308         announce-gen: cosmetic improvement
11309         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11310
11311 2011-04-29  Jim Meyering  <meyering@redhat.com>
11312
11313         vc-list-files: indent with spaces, not TABs
11314         * build-aux/vc-list-files: Convert leading TABs to spaces,
11315         to match the style of most other files in gnulib.
11316
11317         announce-gen: indent with spaces, not TABs
11318         * build-aux/announce-gen: Convert all TABs to spaces, to match
11319         the style of most other files in gnulib.
11320
11321 2011-04-29  Eric Blake  <eblake@redhat.com>
11322
11323         quotearg: avoid uninitialized variable use
11324         * lib/quotearg.c (quoting_options_from_style): Initialize
11325         remaining fields, and ensure that custom styles are only used via
11326         quoting_options rather than quoting_style.
11327
11328 2011-04-29  Jim Meyering  <meyering@redhat.com>
11329
11330         maint.mk: remove unused VC-tag variable
11331         * top/maint.mk (VC-tag): Remove unused variable.
11332
11333 2011-04-29  Bruno Haible  <bruno@clisp.org>
11334
11335         netdb: fix gai_strerror replacements
11336         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11337         * modules/netdb: Substitute it.
11338
11339 2011-04-29  Jim Meyering  <meyering@redhat.com>
11340
11341         test-getcwd.c: avoid new set-but-not-used warning
11342         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11343         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11344         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11345         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11346
11347         test-hash.c: avoid a new shadowing warning
11348         * tests/test-hash.c (main): Don't shadow "dup".
11349
11350 2011-04-28  Eric Blake  <eblake@redhat.com>
11351
11352         getaddrinfo: fix gai_strerror signature
11353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11354         and work around mingw with UNICODE defined.
11355         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11356         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11357         * modules/netdb (Makefile.am): Substitute it.
11358         * lib/netdb.in.h (gai_strerror): Declare replacement.
11359         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11360         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11361         the fix.
11362
11363         getsockopt: avoid compiler warning
11364         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11365         Reported by Matthias Bolte.
11366
11367         tests: drop unused link dependency
11368         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11369         * modules/dirent-safer-tests (Makefile.am): Likewise.
11370         * modules/fdopendir-tests (Makefile.am): Likewise.
11371         * modules/mkfifoat-tests (Makefile.am): Likewise.
11372         * modules/openat-safer-tests (Makefile.am): Likewise.
11373         * modules/openat-tests (Makefile.am): Likewise.
11374         * modules/readlinkat-tests (Makefile.am): Likewise.
11375         * modules/symlinkat-tests (Makefile.am): Likewise.
11376         * modules/linkat-tests (Makefile.am): Likewise.
11377         (Depends-on): Switch to filenamecat-lgpl.
11378         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11379         LIBINTL.
11380         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11381         * tests/test-linkat.c (main): Don't require xalloc.
11382
11383         hash, mgetgroups: drop xalloc dependency
11384         * lib/hash.c (includes): Adjust includes.
11385         * lib/mgetgroups.c (includes): Likewise.
11386         (xgetgroups): Move...
11387         * lib/xgetgroups.c: ...to new file.
11388         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11389         * modules/xgetgroups: New file, split from...
11390         * modules/mgetgroups: ...here.
11391         (Depends-on): Add xalloc-oversized.
11392         * modules/hash (Depends-on): Likewise.
11393         * modules/hash-tests (Depends-on): Drop xalloc.
11394         (test_hash_LDADD): Drop unused library.
11395         * tests/test-hash.c (main): Break xalloc dependency.
11396         (includes): Drop unused include.
11397
11398         xalloc-oversized: new module
11399         * modules/xalloc-oversized: New module.
11400         * modules/xalloc (Depends-on): Add it.
11401         * lib/xalloc.h (xalloc_oversized): Move...
11402         * lib/xalloc-oversized.h: ...into new file.
11403
11404         utimecmp: drop dependency on xmalloc
11405         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11406         due to memory pressure.
11407         * modules/utimecmp (Depends-on): Drop xalloc.
11408
11409 2011-04-27  Eric Blake  <eblake@redhat.com>
11410
11411         getcwd: fix mingw bugs
11412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11413         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11414         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11415
11416 2011-04-27  Bruno Haible  <bruno@clisp.org>
11417
11418         mkstemps: Ensure declaration on MacOS X 10.5.
11419         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11420         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11421         MacOS X.
11422
11423 2011-04-27  Bruno Haible  <bruno@clisp.org>
11424
11425         mkstemp: More documentation.
11426         * doc/posix-functions/mkstemp.texi: Document header file problem on
11427         MacOS X.
11428
11429 2011-04-27  Bruno Haible  <bruno@clisp.org>
11430
11431         mkstemp: Tweak configure message when cross-compiling.
11432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11433         result as a guess.
11434
11435 2011-04-27  Bruno Haible  <bruno@clisp.org>
11436
11437         clean-temp: Clarify what it does.
11438         * lib/clean-temp.h: Add more comments.
11439         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11440         module.
11441         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11442         * doc/glibc-functions/mkstemps.texi: Likewise.
11443         * doc/glibc-functions/mkostemps.texi: Likewise.
11444
11445 2011-04-27  Eric Blake  <eblake@redhat.com>
11446
11447         fchdir: avoid extra chdir and fix test
11448         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11449         getcwd-lgpl.
11450         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11451         have to be canonical.
11452         (canonicalize_file_name): Drop unused macro.
11453         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11454
11455         filenamecat-lgpl: fix licence
11456         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11457         when it was first created.
11458
11459         linkat, renameat: add missing dependency
11460         * modules/linkat (Depends-on): Require getcwd-lgpl.
11461         * modules/renameat (Depends-on): Likewise.
11462
11463         tests: reduce dependencies
11464         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11465         * tests/test-renameat.c (main): Likewise.
11466         * modules/linkat-tests (Depends-on): Relax dependency.
11467         * modules/renameat-tests (Depends-on): Likewise.
11468         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11469         dependency explicit.
11470
11471         save-cwd: reduce default dependency
11472         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11473         * lib/save-cwd.c: Update comments.
11474         * NEWS: Document the semantic change.
11475
11476         getcwd: enhance tests
11477         * tests/test-getcwd-lgpl.c: New file, taken from...
11478         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11479         repeat long path stress tests from m4 probe.
11480         * modules/getcwd-lgpl-tests: New module.
11481         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11482         * m4/getcwd-abort-bug.m4: Update comment.
11483         * m4/getcwd-path-max.m4: Likewise.
11484
11485         getcwd-lgpl: new module
11486         * modules/getcwd-lgpl: New module.
11487         * lib/getcwd-lgpl.c: New file.
11488         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11489         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11490         * modules/getcwd (configure.ac): Set C witness.
11491         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11492
11493         getcwd: tweak comments
11494         * m4/getcwd-abort-bug.m4: Fix comments.
11495         * m4/getcwd-path-max.m4: Likewise.
11496         * m4/getcwd.m4: Likewise.
11497
11498 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11499         and Eric Blake  <eblake@redhat.com>
11500
11501         mkstemp: replace if system version uses wrong permissions
11502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11503         read/write mode bits set in file created by mkstemp.
11504         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11505
11506 2011-04-27  Eric Blake  <eblake@redhat.com>
11507
11508         passfd: avoid compiler warning
11509         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11510         Reported by Laine Stump.
11511
11512 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11513
11514         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11515         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11516
11517 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11518         and Eric Blake  <eblake@redhat.com>
11519
11520         mkstemp: mention clean-temp module
11521         * lib/mkstemp.c: Add comment.
11522         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11523
11524 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         inttypes: also provide default values for 32-bit tests
11527         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11528         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11529
11530 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11531
11532         strtoumax: remove dependency on strtoimax
11533         This is like the strtoull change of yesterday.
11534         * modules/strtoumax (Files): Add lib/strtoimax.c.
11535         (Depends-on): Remove strtoimax and add verify.
11536
11537         inttypes-incomplete: new module
11538         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11539         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11540         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11541         of gl_INTTYPES_H.
11542         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11543         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11544         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11545         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11546         * modules/strtoumax, modules/xstrtol (Depends-on):
11547         Depend on inttypes-incomplete, not inttypes.
11548         * modules/inttypes-incomplete: New module, containing the contents
11549         of the old modules/inttypes module, except that the Files: section
11550         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11551         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11552         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11553         (Depends-on): Depend only on inttypes-incomplete.
11554         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11555
11556         inttypes: omit now-redundant strtoimax and strtoumax work
11557         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11558         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11559
11560         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11561         This supports apps that need pointers to strtoimax and strtoumax,
11562         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11563         nonexistent functions.  See
11564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11565         et seq.
11566         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11568         a macro.
11569         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11570
11571 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11572
11573         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11574
11575 2011-04-25  Bruno Haible  <bruno@clisp.org>
11576
11577         strtol, strtoul: Mark modules as obsolete.
11578         * modules/strtol (Status, Notice): New sections.
11579         * modules/strtoul (Status, Notice): New sections.
11580
11581 2011-04-25  Bruno Haible  <bruno@clisp.org>
11582
11583         strtod: Remove check for strtod, unless supporting old platforms.
11584         * modules/strtod-obsolete: New file.
11585         * m4/strtod-obsolete.m4: New file.
11586         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11587         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11588         * modules/strtod (Depends-on): Add strtod-obsolete.
11589         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11590
11591 2011-04-25  Bruno Haible  <bruno@clisp.org>
11592
11593         strcase: Make module obsolete.
11594         * modules/strcase (Status, Notice): New sections.
11595
11596 2011-04-25  Bruno Haible  <bruno@clisp.org>
11597
11598         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11599         * modules/dup2-obsolete: New file.
11600         * m4/dup2-obsolete.m4: New file.
11601         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11602         gl_FUNC_DUP2_OBSOLETE is not also defined.
11603         * modules/dup2 (Depends-on): Add dup2-obsolete.
11604         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11605
11606 2011-04-25  Bruno Haible  <bruno@clisp.org>
11607
11608         strnlen: Avoid memchr related link error on old obsolete platforms.
11609         * modules/memchr-obsolete: New file.
11610         * m4/memchr-obsolete.m4: New file.
11611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11612         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11613         * modules/memchr (Depends-on): Add memchr-obsolete.
11614         * modules/strnlen (Depends-on): Likewise.
11615         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11616
11617 2011-04-25  Jim Meyering  <meyering@redhat.com>
11618
11619         maint.mk: makefile_at_at_check extend and clean up
11620         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11621         in addition to */Makefile.am.
11622         Exempt legitimate uses of @VAR@ notation, e.g.,
11623         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11624         Remove obsolete coreutils-specific comment.
11625         Prompted by discussion here:
11626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11627
11628 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11629
11630         strtoul: remove dependency on strtol
11631         This is so that 'configure' need not check for strtol merely because
11632         the application needs strtoul.
11633         * modules/strtoul (Files): Add lib/strtol.c.
11634         (Depends-on): Remove strtol.
11635
11636         strtoull: remove dependency on strtoul
11637         This is like the strtoll change.
11638         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11639         (Depends-on): Remove strtoul.
11640
11641         strtoll: remove dependency on strtol
11642         This is so that 'configure' need not check for strtol merely because
11643         the application needs strtoll.
11644         * modules/strtoll (Files): Add lib/strtol.c.
11645         (Depends-on): Remove strtol.
11646
11647 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         inttypes: Move some configure check to module 'imaxdiv'.
11650         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11651         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11652         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11653
11654 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11655
11656         inttypes: Move some configure check to module 'imaxabs'.
11657         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11658         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11659         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11660
11661 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         inttypes: Remove configure tests that are not needed since 2009-12-31.
11664         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11665         gl_cv_header_working_inttypes_h.
11666
11667 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11668
11669         * modules/strnlen (Depends-on): Remove memchr.
11670         The strnlen implementation doesn't need the memchr module's fixes; see
11671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11672
11673         strtol: remove dependency on wchar
11674         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11675         * modules/strtol (Depends-on): Remove wchar.
11676
11677 2011-04-21  Eric Blake  <eblake@redhat.com>
11678
11679         passfd: fix test regression on Linux
11680         * modules/passfd-tests (configure.ac): Correct socketpair check.
11681
11682         passfd: speed up configure and drop unused code
11683         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11684         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11685         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11686         Instead of probing at configure for unix_scm_rights_bsd44_way,
11687         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11688         check to a struct member probe.
11689         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11690         (sendfd, recvfd): Update preprocessor checks.
11691         * modules/passfd (Files): Reflect rename, and drop unused file.
11692         (Depends-on): Drop unused dependency.
11693
11694         passfd: allow compilation on mingw
11695         * modules/sys_socket (Depends-on): Add sys_uio.
11696         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11697         iovec and a minimal struct msghdr.
11698         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11699         * tests/test-sys_socket.c (main): Enhance test.
11700         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11701         guaranteed to provide what we need.
11702         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11703         * modules/passfd-tests (Depends-on): Add sys_wait.
11704         * tests/test-passfd.c (main): Skip test on mingw, for now.
11705         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11706         partial 'struct msghdr' implementation.
11707
11708         sys_uio: new module
11709         * modules/sys_uio: New module.
11710         * modules/sys_uio-tests: Likewise.
11711         * lib/sys_uio.in.h: New file.
11712         * m4/sys_uio_h.m4: Likewise.
11713         * tests/test-sys_uio.c: Likewise.
11714         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11715         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11716
11717 2011-04-20  Jim Meyering  <meyering@redhat.com>
11718
11719         useless-if-before-free: avoid false-positive
11720         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11721         disjunct so that it too requires a terminating ";".  Without that,
11722         this script would identify as useless one statement from gcc that
11723         was not:
11724           if (aligned_ptr)
11725             free (((void **) aligned_ptr) [-1]);
11726
11727 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11728
11729         doc: update users.txt.
11730         * users.txt: Add barcode.
11731
11732 2011-04-19  Bruno Haible  <bruno@clisp.org>
11733
11734         ioctl: Remove link dependency on native Windows.
11735         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11736         (gl_close_fn, gl_ioctl_fn): New types.
11737         (struct fd_hook): Renamed from struct close_hook. Change type of
11738         private_close_fn field. Add private_ioctl_fn field.
11739         (close_hook_fn): Add parameter for primary close method.
11740         (execute_close_hooks, execute_all_close_hooks): Likewise.
11741         (ioctl_hook_fn): New type.
11742         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11743         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11744         argument.
11745         (unregister_fd_hook): Renamed from unregister_close_hook.
11746         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11747         Don't include <unistd.h>.
11748         (close): Remove undef.
11749         (anchor): Update.
11750         (execute_close_hooks): Add argument for primary close method.
11751         (execute_all_close_hooks): Likewise.
11752         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11753         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11754         argument. Allow each argument to be NULL.
11755         (unregister_fd_hook): Renamed from unregister_close_hook.
11756         * lib/close.c (rpl_close): Pass 'close' function pointer to
11757         execute_all_close_hooks.
11758         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11759         (primary_ioctl): New function.
11760         (ioctl): Don't call ioctlsocket here. Instead, call
11761         execute_all_ioctl_hooks.
11762         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11763         close method.
11764         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11765         (fd_sockets_hook): Renamed from close_sockets_hook.
11766         (gl_sockets_startup, gl_sockets_cleanup): Update.
11767         * modules/fd-hook: Renamed from modules/close-hook. Update.
11768         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11769         * modules/sockets (Depends-on): Likewise.
11770         * modules/ioctl (Depends-on): Add fd-hook.
11771         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11772         GNULIB_SOCKET.
11773
11774 2011-04-19  Bruno Haible  <bruno@clisp.org>
11775
11776         Move the support of O_NONBLOCK in open() to the 'open' module.
11777         * modules/nonblocking (Depends-on): Remove 'open'.
11778         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11779         gl_cv_have_open_O_NONBLOCK.
11780         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11781         O_NONBLOCK support.
11782         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11783
11784 2011-04-17  Bruno Haible  <bruno@clisp.org>
11785
11786         pipe2: Simplify code.
11787         * lib/pipe2.c (pipe2): Reduce code duplication.
11788
11789 2011-04-17  Bruno Haible  <bruno@clisp.org>
11790
11791         nonblocking: Add comment.
11792         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11793
11794 2011-04-17  Bruno Haible  <bruno@clisp.org>
11795
11796         nonblocking: Add tests for sockets.
11797         * tests/test-nonblocking-socket.sh: New file.
11798         * tests/test-nonblocking-socket-main.c: New file.
11799         * tests/test-nonblocking-socket-child.c: New file.
11800         * tests/test-nonblocking-socket.h: New file.
11801         * tests/socket-server.h: New file.
11802         * tests/socket-client.h: New file.
11803         * modules/nonblocking-socket-tests: New file.
11804         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11805
11806 2011-04-17  Bruno Haible  <bruno@clisp.org>
11807
11808         nonblocking: Add tests for pipes.
11809         * tests/test-nonblocking-pipe.sh: New file.
11810         * tests/test-nonblocking-pipe-main.c: New file.
11811         * tests/test-nonblocking-pipe-child.c: New file.
11812         * tests/test-nonblocking-pipe.h: New file.
11813         * tests/test-nonblocking-writer.h: New file.
11814         * tests/test-nonblocking-reader.h: New file.
11815         * tests/test-nonblocking-misc.h: New file.
11816         * modules/nonblocking-pipe-tests: New file.
11817         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11818
11819 2011-04-16  Bruno Haible  <bruno@clisp.org>
11820
11821         gettext: Clarify the needed programmer actions.
11822         * modules/gettext (Notice): New field.
11823         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11824
11825 2011-04-16  Bruno Haible  <bruno@clisp.org>
11826
11827         strchrnul: Tweak last commit.
11828         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11829         bug.
11830         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11831         as in _GL_FUNCDECL_SYS.
11832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11833         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11834
11835 2011-04-15  Eric Blake  <eblake@redhat.com>
11836
11837         strchrnul: work around cygwin bug
11838         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11839         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11841         * modules/string (Makefile.am): Substitute it.
11842         * lib/string.in.h (strchrnul): Use it.
11843
11844 2011-04-15  Bruno Haible  <bruno@clisp.org>
11845
11846         Don't require lib/stdio-write.c when only module 'stdio' is used.
11847         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11848         invocation.
11849         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11850
11851 2011-04-14  Bruno Haible  <bruno@clisp.org>
11852
11853         Support non-blocking pipe I/O in read() on native Windows.
11854         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11855         (read): New declaration.
11856         * lib/read.c: New file.
11857         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11858         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11859         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11860         vscanf): New declarations.
11861         * lib/stdio-read.c: New file.
11862         * m4/read.m4: New file.
11863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11864         REPLACE_READ.
11865         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11866         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11867         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11868         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11869         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11870         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11871         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11872         * modules/read: New file.
11873         * modules/nonblocking (Files): Add lib/stdio-read.c.
11874         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11875         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11876         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11877         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11878         * modules/pread (Depends-on): Add read.
11879         * modules/safe-read (Depends-on): Likewise.
11880         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11881         gets, scanf, vfscanf, vscanf): Verify signatures.
11882         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11883         problem with non-blocking pipes.
11884         * doc/posix-functions/fgetc.texi: Likewise.
11885         * doc/posix-functions/fgets.texi: Likewise.
11886         * doc/posix-functions/fread.texi: Likewise.
11887         * doc/posix-functions/fscanf.texi: Likewise.
11888         * doc/posix-functions/getc.texi: Likewise.
11889         * doc/posix-functions/getchar.texi: Likewise.
11890         * doc/posix-functions/gets.texi: Likewise.
11891         * doc/posix-functions/scanf.texi: Likewise.
11892         * doc/posix-functions/vfscanf.texi: Likewise.
11893         * doc/posix-functions/vscanf.texi: Likewise.
11894
11895 2011-04-14  Bruno Haible  <bruno@clisp.org>
11896
11897         Support non-blocking pipe I/O in write() on native Windows.
11898         * lib/write.c (rpl_write): Split a write request that failed merely
11899         because the byte count was larger than the pipe buffer's size.
11900         * doc/posix-functions/write.texi: Mention the problem with large byte
11901         counts.
11902
11903 2011-04-14  Bruno Haible  <bruno@clisp.org>
11904
11905         wchar: Ensure that wchar_t gets defined on uClibc.
11906         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11907         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11908
11909 2011-04-13  Bruno Haible  <bruno@clisp.org>
11910
11911         safe-write, full-read: Avoid unnecessary compilation units.
11912         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11913         (Depends-on): Remove safe-read. Add ssize_t.
11914         * modules/full-read (Files): Add lib/full-write.c.
11915         (Depends-on): Add full-write.
11916
11917 2011-04-13  Bruno Haible  <bruno@clisp.org>
11918
11919         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11920         * modules/pwrite (Depends-on): Add 'write'.
11921
11922 2011-04-13  Bruno Haible  <bruno@clisp.org>
11923
11924         Support non-blocking pipe I/O in write() on native Windows.
11925         * lib/unistd.in.h (write): Enable replacement also if
11926         GNULIB_UNISTD_H_NONBLOCKING is 1.
11927         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11928         (rpl_write): When failing to write on a non-blocking pipe, change
11929         errno from ENOSPC to EAGAIN.
11930         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11931         putchar, puts, vfprintf, vprintf): Enable replacement also if
11932         GNULIB_STDIO_H_NONBLOCKING is 1.
11933         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11934         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11935         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11936         CALL_WITH_SIGPIPE_EMULATION.
11937         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11938         * m4/nonblocking.m4: New file.
11939         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11940         for non-blocking I/O support.
11941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11942         GNULIB_UNISTD_H_NONBLOCKING.
11943         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11944         required for non-blocking I/O support.
11945         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11946         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11947         lib/stdio-write.c, m4/asm-underscore.m4.
11948         (Depends-on): Add stdio, unistd.
11949         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11950         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11951         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11952         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11953         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11954         problem with non-blocking pipes.
11955         * doc/posix-functions/fputc.texi: Likewise.
11956         * doc/posix-functions/fputs.texi: Likewise.
11957         * doc/posix-functions/fwrite.texi: Likewise.
11958         * doc/posix-functions/printf.texi: Likewise.
11959         * doc/posix-functions/putc.texi: Likewise.
11960         * doc/posix-functions/putchar.texi: Likewise.
11961         * doc/posix-functions/puts.texi: Likewise.
11962         * doc/posix-functions/vfprintf.texi: Likewise.
11963         * doc/posix-functions/vprintf.texi: Likewise.
11964         * doc/posix-functions/write.texi: Likewise.
11965
11966 2011-04-10  Jim Meyering  <meyering@redhat.com>
11967
11968         maint.mk: prohibit doubled words
11969         Detect them also when they're separated by a newline.
11970         There are 3 ways to customize it:
11971           - disable the test on a per file basis, as usual with rules using
11972             $(VC_LIST_EXCEPT)
11973           - replace the default doubled-word-selecting regexp (affects all files)
11974           - ignore a particular file-vs-doubled-word match
11975         I nearly used that last one to ignore the "is is" match in
11976         coreutils' NEWS file, since the text was "ls -is is ..."
11977         To do that, I would have added this line to cfg.mk:
11978           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11979         but it would have ignored any "is is" match in NEWS.
11980         Low probability, but still...
11981         Instead, I changed the text, slightly:
11982           -  ls -is is now consistent with ls -lis in ignoring values returned
11983           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11984         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11985         (prohibit_doubled_word_): Define.
11986         (sc_prohibit_doubled_word): New rule.
11987         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11988
11989 2011-04-10  Jim Meyering  <meyering@redhat.com>
11990
11991         maint: fix doubled-word typo in comment
11992         * m4/gethostname.m4: s/is is/it is/
11993         * m4/getdomainname.m4: Likewise.
11994
11995 2011-04-10  Jim Meyering  <meyering@redhat.com>
11996
11997         maint: remove doubled word: s/it it/it/
11998         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11999
12000 2011-04-10  Jim Meyering  <meyering@redhat.com>
12001
12002         maint.mk: remove useless semicolon and backslash
12003         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12004         semicolon and backslash.
12005
12006 2011-04-10  Bruno Haible  <bruno@clisp.org>
12007
12008         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12009         * modules/stdint-tests (Depends-on): Add wchar.
12010
12011 2011-04-10  Jim Meyering  <meyering@redhat.com>
12012
12013         maint: remove doubled words in comments, e.g., s/a a/a/
12014         * lib/strptime.c (day_of_the_week): s/the the/the/
12015         * tests/test-chown.h (test_chown): s/a a/a/
12016
12017         test-chown.h: correct a cast
12018         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12019         when the destination is a stat.st_gid.
12020
12021 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12022
12023         getaddrinfo: Fix test for sa_len member.
12024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12025         include <sys/types.h> before <sys/socket.h>.
12026
12027 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12028
12029         maint: change "can not" to "cannot"
12030         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12031         boundaries.
12032
12033 2011-04-09  Jim Meyering  <meyering@redhat.com>
12034
12035         maint: change "a a" to "a"
12036         * tests/test-lchown.h (test_lchown): s/a a/a/
12037
12038         maint.mk: prohibit \<the the\>
12039         * top/maint.mk (sc_prohibit_the_the): New rule.
12040
12041         maint: fix "the the" in comment
12042         * lib/count-one-bits.h: s/the the/the/
12043
12044         maint: change "can not" to "cannot"
12045         But do not change the occurrences in maintain.texi or in
12046         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12047         * doc/gnulib-tool.texi: s/can not/cannot/
12048         * doc/posix-functions/accept.texi (accept): Likewise.
12049         * doc/posix-functions/socket.texi (socket): Likewise.
12050         * lib/mbrtowc.c: Likewise.
12051
12052         maint.mk: prohibit use of "can not"
12053         * top/maint.mk (sc_prohibit_can_not): New rule.
12054         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12055
12056 2011-04-09  Bruno Haible  <bruno@clisp.org>
12057
12058         careadlinkat: Guard against misuse of careadlinkatcwd.
12059         * lib/careadlinkat.c: Include <stdlib.h>.
12060         (careadlinkatcwd): Check that the fd argument is as expected.
12061
12062 2011-04-09  Bruno Haible  <bruno@clisp.org>
12063
12064         careadlinkat: Use common coding style.
12065         * lib/careadlinkat.c: Move gnulib includes after system includes.
12066
12067 2011-04-09  Bruno Haible  <bruno@clisp.org>
12068
12069         careadlinkat: Clarify specification.
12070         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12071         (careadlinkatcwd): Add comment.
12072         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12073
12074 2011-04-09  Bruno Haible  <bruno@clisp.org>
12075
12076         areadlinkat: Avoid link error on many platforms.
12077         * modules/areadlinkat (Depends-on): Add areadlink.
12078
12079 2011-04-09  Bruno Haible  <bruno@clisp.org>
12080
12081         allocator, careadlinkat: Fix double-inclusion guard.
12082         * lib/allocator.h: Fix double-inclusion guard.
12083         * lib/careadlinkat.h: Likewise.
12084
12085 2011-04-09  Bruno Haible  <bruno@clisp.org>
12086
12087         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12088         * lib/relocwrapper.c: Update dependencies hierarchy.
12089         * build-aux/install-reloc: Update list of files to be compiled.
12090         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12091         lib/allocator.[hc].
12092
12093 2011-04-08  Eric Blake  <eblake@redhat.com>
12094
12095         strftime: silence gnulib-tool warning
12096         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12097
12098 2011-04-08  Bruno Haible  <bruno@clisp.org>
12099
12100         verify: Fix syntax error with GCC 4.6 in C++ mode.
12101         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12102         (HAVE_STATIC_ASSERT): New macro.
12103         (verify_true, verify): Use 'static_assert' if it is supported and
12104         '_Static_assert' is not supported.
12105
12106 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12107
12108         allocator: New module.
12109         * modules/allocator, lib/allocator.c: New files.
12110         * lib/allocator.h (stdlib_allocator): New decl.
12111         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12112         Remove.  Do not include <stdlib.h>.
12113         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12114         * modules/careadlinkat (Files): Remove lib/allocator.h.
12115         (Depends-on): Add allocator.
12116
12117         stdlib: let modules use system malloc, realloc
12118         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12119         if !_GL_USE_STDLIB_ALLOC.
12120         (malloc, realloc): Limit this change to a smaller scope.
12121
12122         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12123         (malloc, realloc): Don't #undef; no longer needed.
12124         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12125         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12126         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12127         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12128         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12129         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12130         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12131         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12132
12133         careadlinkat: rename members to avoid problem
12134         * lib/allocator.h (struct allocator): Rename members from
12135         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12136         and realloc are #define'd.  Reported by Eric Blake in
12137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12138         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12139
12140 2011-04-08  Eric Blake  <eblake@redhat.com>
12141
12142         nonblocking: reduce dependency
12143         * tests/test-nonblocking.c: Only test sockets when in use.
12144         * modules/nonblocking-tests (Depends-on): Drop socket.
12145         (Makefile.am): Link even if sockets are not present.
12146         * modules/pipe2-tests (Makefile.am): Likewise.
12147         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12148
12149         pipe2: fix O_NONBLOCK support on mingw
12150         * modules/pipe2 (Depends-on): Add nonblocking.
12151         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12152         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12153         * tests/test-nonblocking.c (main): Likewise.
12154         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12155
12156         fcntl-h: fix O_ACCMODE on cygwin
12157         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12158         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12159
12160         pipe-filter: drop O_NONBLOCK workarounds
12161         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12162         * modules/pipe-filter-ii (Depends-on): Likewise.
12163         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12164
12165         nonblocking: provide O_NONBLOCK for mingw
12166         * modules/nonblocking (Depends-on): Add open.
12167         (configure.ac): Set new witness macro.
12168         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12169         * modules/fcntl-h (Makefile.am): Substitute it.
12170         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12171         nonblocking module is in use.
12172         * lib/nonblocking.c: Adjust portability test.
12173         * lib/open.c (open): Don't let native open see gnulib flag.
12174         * tests/test-fcntl-h.c (main): Enhance test.
12175         * tests/test-open.h (test_open): Likewise.
12176         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12177
12178         careadlinkat: fix compilation error on mingw
12179         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12180         within struct allocator.
12181
12182 2011-04-06  Eric Blake  <eblake@redhat.com>
12183
12184         binary-io: relicense under LGPLv2+
12185         * modules/binary-io (License): Relax to LGPLv2+.
12186         Requested for libvirt, and required by pipe2.
12187
12188 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12189
12190         verify: use _Static_assert if available
12191         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12192         (verify_true, verify): Use it if available.  This generates better
12193         diagnostics with GCC 4.6.0 and later.
12194
12195 2011-04-05  Bruno Haible  <bruno@clisp.org>
12196
12197         Remove leftover generated .h files after config.status changed.
12198
12199         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12200         GL_GENERATE_ALLOCA_H.
12201         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12202         GL_GENERATE_ALLOCA_H evaluates to false.
12203
12204         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12205         GL_GENERATE_ARGZ_H.
12206         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12207         evaluates to false.
12208
12209         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12210         GL_GENERATE_BYTESWAP_H.
12211         * modules/byteswap (Makefile.am): Remove byteswap.h if
12212         GL_GENERATE_BYTESWAP_H evaluates to false.
12213
12214         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12215         GL_GENERATE_ERRNO_H.
12216         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12217         evaluates to false.
12218
12219         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12220         GL_GENERATE_FLOAT_H.
12221         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12222         evaluates to false.
12223
12224         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12225         GL_GENERATE_FNMATCH_H.
12226         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12227         GL_GENERATE_FNMATCH_H evaluates to false.
12228
12229         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12230         GL_GENERATE_GLOB_H.
12231         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12232         evaluates to false.
12233
12234         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12235         automake conditional GL_GENERATE_ICONV_H.
12236         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12237         evaluates to false.
12238
12239         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12240         GL_GENERATE_NETINET_IN_H.
12241         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12242         GL_GENERATE_NETINET_IN_H evaluates to false.
12243
12244         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12245         conditional GL_GENERATE_PTHREAD_H.
12246         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12247         * modules/pthread (Makefile.am): Remove pthread.h if
12248         GL_GENERATE_PTHREAD_H evaluates to false.
12249
12250         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12251         GL_GENERATE_SCHED_H.
12252         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12253         evaluates to false.
12254
12255         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12256         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12257         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12258         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12259
12260         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12261         GL_GENERATE_STDARG_H.
12262         * modules/stdarg (Makefile.am): Remove stdarg.h if
12263         GL_GENERATE_STDARG_H evaluates to false.
12264
12265         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12266         GL_GENERATE_STDBOOL_H.
12267         * modules/stdbool (Makefile.am): Remove stdbool.h if
12268         GL_GENERATE_STDBOOL_H evaluates to false.
12269
12270         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12271         conditional GL_GENERATE_STDDEF_H.
12272         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12273         * modules/stddef (Makefile.am): Remove stddef.h if
12274         GL_GENERATE_STDDEF_H evaluates to false.
12275
12276         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12277         GL_GENERATE_STDINT_H.
12278         * modules/stdint (Makefile.am): Remove stdint.h if
12279         GL_GENERATE_STDINT_H evaluates to false.
12280
12281         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12282         GL_GENERATE_SYSEXITS_H.
12283         * modules/sysexits (Makefile.am): Remove sysexits.h if
12284         GL_GENERATE_SYSEXITS_H evaluates to false.
12285
12286         Reported by Karl Berry and Ralf Wildenhues.
12287
12288 2011-04-05  Bruno Haible  <bruno@clisp.org>
12289
12290         Ensure to rebuild generated .h files when config.status has changed.
12291         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12292         config.status.
12293         * modules/ctype (Makefile.am): Likewise.
12294         * modules/dirent (Makefile.am): Likewise.
12295         * modules/errno (Makefile.am): Likewise.
12296         * modules/fcntl-h (Makefile.am): Likewise.
12297         * modules/float (Makefile.am): Likewise.
12298         * modules/getopt-posix (Makefile.am): Likewise.
12299         * modules/glob (Makefile.am): Likewise.
12300         * modules/iconv-h (Makefile.am): Likewise.
12301         * modules/inttypes (Makefile.am): Likewise.
12302         * modules/langinfo (Makefile.am): Likewise.
12303         * modules/locale (Makefile.am): Likewise.
12304         * modules/math (Makefile.am): Likewise.
12305         * modules/netdb (Makefile.am): Likewise.
12306         * modules/netinet_in (Makefile.am): Likewise.
12307         * modules/poll-h (Makefile.am): Likewise.
12308         * modules/pthread (Makefile.am): Likewise.
12309         * modules/pty (Makefile.am): Likewise.
12310         * modules/sched (Makefile.am): Likewise.
12311         * modules/search (Makefile.am): Likewise.
12312         * modules/selinux-h (Makefile.am): Likewise.
12313         * modules/signal (Makefile.am): Likewise.
12314         * modules/spawn (Makefile.am): Likewise.
12315         * modules/stdarg (Makefile.am): Likewise.
12316         * modules/stdbool (Makefile.am): Likewise.
12317         * modules/stddef (Makefile.am): Likewise.
12318         * modules/stdint (Makefile.am): Likewise.
12319         * modules/stdio (Makefile.am): Likewise.
12320         * modules/stdlib (Makefile.am): Likewise.
12321         * modules/string (Makefile.am): Likewise.
12322         * modules/strings (Makefile.am): Likewise.
12323         * modules/sys_file (Makefile.am): Likewise.
12324         * modules/sys_ioctl (Makefile.am): Likewise.
12325         * modules/sys_select (Makefile.am): Likewise.
12326         * modules/sys_socket (Makefile.am): Likewise.
12327         * modules/sys_stat (Makefile.am): Likewise.
12328         * modules/sys_time (Makefile.am): Likewise.
12329         * modules/sys_times (Makefile.am): Likewise.
12330         * modules/sys_utsname (Makefile.am): Likewise.
12331         * modules/sys_wait (Makefile.am): Likewise.
12332         * modules/sysexits (Makefile.am): Likewise.
12333         * modules/termios (Makefile.am): Likewise.
12334         * modules/time (Makefile.am): Likewise.
12335         * modules/unistd (Makefile.am): Likewise.
12336         * modules/wchar (Makefile.am): Likewise.
12337         * modules/wctype-h (Makefile.am): Likewise.
12338         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12339
12340 2011-04-05  Bruno Haible  <bruno@clisp.org>
12341
12342         pipe2: Relicense under LGPLv2+.
12343         * modules/pipe2 (License): Change to LGPLv2+.
12344         Requested by Eric Blake, for libvirt.
12345
12346 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12347
12348         bootstrap: compute gnulib_extra_files after updating build_aux
12349         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12350         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12351
12352 2011-04-05  Eric Blake  <eblake@redhat.com>
12353
12354         bootstrap: preserve git whitelist item sorting
12355         * build-aux/bootstrap (sort_patterns): New function.
12356         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12357
12358 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12359
12360         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12361         sc_space_tab check.
12362
12363 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12364
12365         areadlink, areadlinkat: rewrite in terms of careadlinkat
12366         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12367         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12368         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12369         (malloc, realloc): Remove #undefs.
12370         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12371         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12372         readlink, ssize_t, stdint, unistd.
12373         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12374         areadlink, stdint.
12375
12376         careadlinkat: new module
12377         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12378         * modules/careadlinkat: New files, written by me with
12379         a review and feedback from Ben Pfaff in
12380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12381
12382 2011-04-01  Bruno Haible  <bruno@clisp.org>
12383
12384         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12385         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12386         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12387         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12388         Reported by Bruce Korb <bruce.korb@gmail.com>.
12389
12390 2011-04-01  Bruno Haible  <bruno@clisp.org>
12391
12392         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12393         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12394         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12395         * modules/wcpcpy (Depends-on): Add extensions.
12396         * modules/wcpncpy (Depends-on): Likewise.
12397         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12398         systems.
12399         * doc/posix-functions/wcpncpy.texi: Likewise.
12400         * doc/posix-functions/wcwidth.texi: Likewise.
12401
12402 2011-03-31  Eric Blake  <eblake@redhat.com>
12403
12404         nonblocking: fix mingw test failures
12405         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12406         non-blocking flag on regular file.
12407         (get_nonblocking_flag): Set errno on invalid fd.
12408         * tests/test-nonblocking.c (main): Avoid test failure on
12409         directories if fchdir is not active.
12410         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12411
12412 2011-03-31  Bruno Haible  <bruno@clisp.org>
12413
12414         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12415         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12416         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12417         Reported by Simon Josefsson <simon@josefsson.org>.
12418
12419 2011-03-31  Bruno Haible  <bruno@clisp.org>
12420         and Eric Blake  <eblake@redhat.com>
12421
12422         nonblocking: new module
12423         * modules/nonblocking: New module.
12424         * modules/nonblocking-tests: Likewise.
12425         * lib/nonblocking.h: New file.
12426         * lib/nonblocking.c: Likewise.
12427         * tests/test-nonblocking.c: New test.
12428         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12429
12430 2011-03-30  Bruno Haible  <bruno@clisp.org>
12431
12432         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12433         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12434         instead of 'printf' format for GCC >= 4.4.
12435         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12436         (fprintf, printf, vfprintf, vprintf): Declare with
12437         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12438         the system's vfprintf() function.
12439         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12440
12441 2011-03-30  Eric Blake  <eblake@redhat.com>
12442
12443         passfd: fix scoping bug
12444         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12445         before sendmsg/recvmsg.
12446
12447         passfd: standardize coding conventions
12448         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12449         can be learned at compile time.
12450         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12451         ifdefs.
12452         (sendfd, recvfd): Follow gnulib code conventions.
12453
12454         passfd: fix incorrect sendmsg arguments
12455         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12456         incorrect msg_controllen value.
12457         * modules/passfd-tests (Depends-on): Check for alarm.
12458         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12459         Reported by Bastien ROUCARIES.
12460
12461 2011-03-30  Bruno Haible  <bruno@clisp.org>
12462
12463         c-strcasestr: Relicense under LGPLv2+.
12464         * modules/c-strcasestr (License): Change to LGPLv2+.
12465         Requested by Eric Blake, for libvirt.
12466
12467 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12468
12469         * users.txt: Add libidn2.  Fix libtasn1 link.
12470
12471 2011-03-30  Jim Meyering  <meyering@redhat.com>
12472
12473         tests: readlink* ("",... fails with EINVAL on newer kernels
12474         readlink and readlinkat have typically failed with ENOENT for
12475         the invalid, empty file name,  "".  However, with the advent
12476         of linux-2.6.39, they fail with EINVAL.
12477         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12478         when operating on the empty file name.
12479         * tests/test-readlink.h (test_readlink): Likewise.
12480
12481 2011-03-29  Bruno Haible  <bruno@clisp.org>
12482
12483         Relicense some modules under LGPLv2+, for libidn2.
12484         * modules/array-mergesort (License): Change to LGPLv2+.
12485         * modules/c-strcaseeq (License): Likewise.
12486         * modules/striconveh (License): Likewise.
12487         * modules/striconveha (License): Likewise.
12488         * modules/uniconv/base (License): Likewise.
12489         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12490         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12491         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12492         * modules/unictype/base (License): Likewise.
12493         * modules/unictype/bidiclass-of (License): Likewise.
12494         * modules/unictype/category-M (License): Likewise.
12495         * modules/unictype/category-none (License): Likewise.
12496         * modules/unictype/category-of (License): Likewise.
12497         * modules/unictype/category-test (License): Likewise.
12498         * modules/unictype/category-test-withtable (License): Likewise.
12499         * modules/unictype/combining-class (License): Likewise.
12500         * modules/unictype/joiningtype-of (License): Likewise.
12501         * modules/unictype/scripts (License): Likewise.
12502         * modules/uninorm/base (License): Likewise.
12503         * modules/uninorm/canonical-decomposition (License): Likewise.
12504         * modules/uninorm/composition (License): Likewise.
12505         * modules/uninorm/decompose-internal (License): Likewise.
12506         * modules/uninorm/decomposition-table (License): Likewise.
12507         * modules/uninorm/nfc (License): Likewise.
12508         * modules/uninorm/nfd (License): Likewise.
12509         * modules/uninorm/u32-normalize (License): Likewise.
12510         * modules/unistr/base (License): Likewise.
12511         * modules/unistr/u32-cpy (License): Likewise.
12512         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12513         * modules/unistr/u32-to-u8 (License): Likewise.
12514         * modules/unistr/u32-uctomb (License): Likewise.
12515         * modules/unistr/u8-check (License): Likewise.
12516         * modules/unistr/u8-mblen (License): Likewise.
12517         * modules/unistr/u8-mbtouc (License): Likewise.
12518         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12519         * modules/unistr/u8-mbtoucr (License): Likewise.
12520         * modules/unistr/u8-prev (License): Likewise.
12521         * modules/unistr/u8-strlen (License): Likewise.
12522         * modules/unistr/u8-to-u32 (License): Likewise.
12523         * modules/unistr/u8-uctomb (License): Likewise.
12524         * modules/unitypes (License): Likewise.
12525         Requested by Simon Josefsson.
12526
12527 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12528
12529         lib-symbol-visibility: Add a notice.
12530         * modules/lib-symbol-visibility (Notice): New field.
12531
12532 2011-03-29  Bruno Haible  <bruno@clisp.org>
12533
12534         getaddrinfo: Doc fix.
12535         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12536         section "fixed in Gnulib".
12537
12538 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12539
12540         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12541         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12542
12543 2011-03-26  Bruno Haible  <bruno@clisp.org>
12544
12545         unictype/property-byname: Reduce the number of load-time relocations.
12546         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12547         (UC_PROPERTY_INDEX_*): New enumeration values.
12548         (uc_property_byname): Convert an index from the lookup table to an
12549         uc_property_t.
12550         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12551         values.
12552
12553 2011-03-26  Bruno Haible  <bruno@clisp.org>
12554
12555         unictype/property-byname: Allow omitted word separators and aliases.
12556         * lib/unictype/pr_byname.gperf: Add property names without word
12557         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12558         for 'space'.
12559
12560 2011-03-26  Bruno Haible  <bruno@clisp.org>
12561
12562         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12563         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12564         also hyphens to space.
12565         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12566         without spaces.
12567         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12568
12569 2011-03-26  Bruno Haible  <bruno@clisp.org>
12570
12571         unictype/joiningtype-byname: Recognize long names as well.
12572         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12573         a long name.
12574         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12575         unictype/joiningtype_byname.h.
12576         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12577         * lib/unictype/joiningtype_byname.gperf: New file.
12578         * modules/unictype/joiningtype-byname (Files): Add
12579         lib/unictype/joiningtype_byname.gperf.
12580         (Depends-on): Add gperf.
12581         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12582         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12583         long names.
12584
12585         Tests for module 'unictype/joiningtype-longname'.
12586         * modules/unictype/joiningtype-longname-tests: New file.
12587         * tests/unictype/test-joiningtype_longname.c: New file.
12588
12589         New module 'unictype/joiningtype-longname'.
12590         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12591         * lib/unictype/joiningtype_longname.c: New file.
12592         * modules/unictype/joiningtype-longname: New file.
12593         * modules/unictype/joiningtype-all (Depends-on): Add
12594         unictype/joiningtype-longname.
12595
12596 2011-03-26  Bruno Haible  <bruno@clisp.org>
12597
12598         unictype/bidiclass-byname: Recognize long names as well.
12599         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12600         name.
12601         * lib/unictype/bidi_byname.c: Include <string.h>,
12602         unictype/bidi_byname.h.
12603         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12604         * lib/unictype/bidi_byname.gperf: New file.
12605         * modules/unictype/bidiclass-byname (Files): Add
12606         lib/unictype/bidi_byname.gperf.
12607         (Depends-on): Add gperf.
12608         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12609         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12610         long names.
12611
12612         Tests for module 'unictype/bidiclass-longname'.
12613         * modules/unictype/bidiclass-longname-tests: New file.
12614         * tests/unictype/test-bidi_longname.c: New file.
12615
12616         New module 'unictype/bidiclass-longname'.
12617         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12618         * lib/unictype/bidi_longname.c: New file.
12619         * modules/unictype/bidiclass-longname: New file.
12620         * modules/unictype/bidiclass-all (Depends-on): Add
12621         unictype/bidiclass-longname.
12622
12623 2011-03-26  Bruno Haible  <bruno@clisp.org>
12624
12625         unictype/bidi*: Rename modules.
12626         * modules/unictype/bidiclass-all: Renamed from
12627         modules/unictype/bidicategory-all.
12628         * modules/unictype/bidiclass-name: Renamed from
12629         modules/unictype/bidiclass-name.
12630         (Description): Update.
12631         * modules/unictype/bidiclass-name-tests: Renamed from
12632         modules/unictype/bidicategory-name-tests.
12633         * modules/unictype/bidiclass-byname: Renamed from
12634         modules/unictype/bidicategory-byname.
12635         (Description): Update.
12636         * modules/unictype/bidiclass-byname-tests: Renamed from
12637         modules/unictype/bidicategory-byname-tests.
12638         * modules/unictype/bidiclass-of: Renamed from
12639         modules/unictype/bidicategory-of.
12640         (Description): Update.
12641         * modules/unictype/bidiclass-of-tests: Renamed from
12642         modules/unictype/bidicategory-of-tests.
12643         * modules/unictype/bidiclass-test: Renamed from
12644         modules/unictype/bidicategory-test.
12645         (Description): Update.
12646         * modules/unictype/bidiclass-test-tests: Renamed from
12647         modules/unictype/bidicategory-test-tests.
12648         * modules/unictype/bidicategory-all: New file, a simple redirection.
12649         * modules/unictype/bidicategory-name: Likewise.
12650         * modules/unictype/bidicategory-byname: Likewise.
12651         * modules/unictype/bidicategory-of: Likewise.
12652         * modules/unictype/bidicategory-test: Likewise.
12653         * modules/unictype/property-bidi-* (Dependencies): Update.
12654         * lib/unictype/bidi_*.c: Update comment.
12655
12656 2011-03-26  Bruno Haible  <bruno@clisp.org>
12657
12658         unictype/bidi*: Rename functions, part 2.
12659         * modules/unictype/bidicategory-name (configure.ac): Update required
12660         libunistring version.
12661         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12662
12663 2011-03-25  Bruno Haible  <bruno@clisp.org>
12664
12665         New module 'unictype/combining-class-all'.
12666         * modules/unictype/combining-class-all: New file.
12667
12668         Tests for module 'unictype/combining-class-byname'.
12669         * modules/unictype/combining-class-byname-tests: New file.
12670         * tests/unictype/test-combiningclass_byname.c: New file.
12671
12672         New module 'unictype/combining-class-byname'.
12673         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12674         * lib/unictype/combiningclass_byname.c: New file.
12675         * lib/unictype/combiningclass_byname.gperf: New file.
12676         * modules/unictype/combining-class-byname: New file.
12677
12678         Tests for module 'unictype/combining-class-longname'.
12679         * modules/unictype/combining-class-longname-tests: New file.
12680         * tests/unictype/test-combiningclass_longname.c: New file.
12681
12682         New module 'unictype/combining-class-longname'.
12683         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12684         * lib/unictype/combiningclass_longname.c: New file.
12685         * modules/unictype/combining-class-longname: New file.
12686
12687         Tests for module 'unictype/combining-class-name'.
12688         * modules/unictype/combining-class-name-tests: New file.
12689         * tests/unictype/test-combiningclass_name.c: New file.
12690
12691         New module 'unictype/combining-class-name'.
12692         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12693         * lib/unictype/combiningclass_name.c: New file.
12694         * modules/unictype/combining-class-name: New file.
12695
12696 2011-03-25  Bruno Haible  <bruno@clisp.org>
12697
12698         unictype/combining-class: Rename source files.
12699         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12700         of unictype/combining.h.
12701         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12702         Update.
12703         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12704         * modules/unictype/combining-class (Description): Fix.
12705         (Files, Makefile.am): Update.
12706         * tests/unictype/test-combiningclass.c: Renamed from
12707         tests/unictype/test-combining.c.
12708         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12709
12710 2011-03-25  Bruno Haible  <bruno@clisp.org>
12711
12712         unictype: Update list of canonical combining classes.
12713         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12714
12715 2011-03-25  Bruno Haible  <bruno@clisp.org>
12716
12717         unictype/category-byname: Recognize long names as well.
12718         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12719         a long name.
12720         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12721         unictype/categ_byname.h.
12722         (UC_CATEGORY_INDEX_*): New enumeration values.
12723         (uc_general_category_byname): Use uc_general_category_lookup and
12724         convert from index to value.
12725         * lib/unictype/categ_byname.gperf: New file.
12726         * modules/unictype/category-byname (Files): Add
12727         lib/unictype/categ_byname.gperf.
12728         (Depends-on): Add gperf.
12729         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12730         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12731         long names.
12732
12733         Tests for module 'unictype/category-longname'.
12734         * modules/unictype/category-longname-tests: New file.
12735         * tests/unictype/test-categ_longname.c: New file.
12736
12737         New module 'unictype/category-longname'.
12738         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12739         * lib/unictype/categ_longname.c: New file.
12740         * modules/unictype/category-longname: New file.
12741         * modules/unictype/category-all (Depends-on): Add it.
12742
12743 2011-03-25  Bruno Haible  <bruno@clisp.org>
12744
12745         Tests for module 'unictype/category-LC'.
12746         * modules/unictype/category-LC-tests: New file.
12747         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12748
12749         New module 'unictype/category-LC'.
12750         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12751         (UC_CATEGORY_LC): New declaration.
12752         (UC_CASED_LETTER): New macro.
12753         * lib/gen-uni-tables.c (is_category_LC): New function.
12754         (output_categories): Also handle category LC.
12755         (UC_CATEGORY_MASK_LC): New enumeration value.
12756         (general_category_byname): Also handle category LC.
12757         * lib/unictype/categ_LC.c: New file.
12758         * lib/unictype/categ_LC.h: New file, automatically generated.
12759         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12760         category LC.
12761         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12762         * modules/unictype/category-LC: New file.
12763         * modules/unictype/category-byname (Depends-on): Add
12764         unictype/category-LC.
12765         * modules/unictype/category-all (Depends-on): Likewise.
12766
12767 2011-03-25  Eric Blake  <eblake@redhat.com>
12768
12769         xmalloc: revert yesterday's regression
12770         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12771         realloc's underlying behavior (allowing allocation of zero-size
12772         objects, especially if malloc-gnu is also in use).
12773
12774 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12775
12776         maint.mk: add missing version to VC-tag
12777         * top/maint.mk: git tag was missing actual tag name; add it.
12778
12779         valgrind: do leak checking, and exit with code 1 on error (not 0)
12780         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12781         to VALGRIND.
12782
12783 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12784
12785         posix-modules: say what it does.
12786         * posix-modules: Add a line to the --help output saying what it does.
12787
12788 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12789
12790         xmalloc: Do not leak if underlying realloc is C99 compatible.
12791         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12792         This avoids a leak on C99-based systems.  See
12793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12794
12795 2011-03-24  Eric Blake  <eblake@redhat.com>
12796
12797         realloc: document portability problem
12798         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12799         passing 0 size to realloc.
12800
12801 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12802
12803         doc: update users.txt
12804         * users.txt: Add cvsps, tmpwatch
12805
12806 2011-03-23  Matt Rice  <ratmice@gmail.com>
12807
12808         doc: update users.txt
12809         * users.txt: Add gdb.
12810
12811 2011-03-23  Jim Meyering  <meyering@redhat.com>
12812
12813         doc: update users.txt
12814         Looking through matches up to the following URL (there are still
12815         several more pages), I found several projects that use gnulib:
12816         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12817         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12818         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12819
12820 2011-03-22  Bruno Haible  <bruno@clisp.org>
12821
12822         unictype/bidi*: Rename functions.
12823         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12824         uc_bidi_class, uc_is_bidi_class): New declarations.
12825         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12826         uc_bidi_category_byname.
12827         (uc_bidi_category_byname): New function.
12828         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12829         u_bidi_category_name.
12830         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12831         (uc_bidi_category_name): New function.
12832         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12833         uc_bidi_category.
12834         (uc_bidi_category): New function.
12835         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12836         uc_is_bidi_category. Invoke uc_bidi_class.
12837         (uc_is_bidi_category): New function.
12838         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12839         instead of uc_bidi_category_byname.
12840         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12841         instead of uc_bidi_category_name.
12842         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12843         uc_bidi_category.
12844         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12845         instead of uc_is_bidi_category.
12846
12847 2011-03-21  Bruno Haible  <bruno@clisp.org>
12848
12849         New module 'unictype/joininggroup-all'.
12850         * modules/unictype/joininggroup-all: New file.
12851
12852         Tests for module 'unictype/joininggroup-of'.
12853         * modules/unictype/joininggroup-of-tests: New file.
12854         * tests/unictype/test-joininggroup_of.c: New file.
12855         * tests/unictype/test-joininggroup_of.h: New file, automatically
12856         generated by gen-uni-tables.
12857
12858         New module 'unictype/joininggroup-of'.
12859         * modules/unictype/joininggroup-of: New file.
12860         * lib/unictype/joininggroup_of.c: New file.
12861         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12862         gen-uni-tables.
12863
12864         Tests for module 'unictype/joininggroup-byname'.
12865         * modules/unictype/joininggroup-byname-tests: New file.
12866         * tests/unictype/test-joininggroup_byname.c: New file.
12867
12868         New module 'unictype/joininggroup-byname'.
12869         * modules/unictype/joininggroup-byname: New file.
12870         * lib/unictype/joininggroup_byname.c: New file.
12871         * lib/unictype/joininggroup_byname.gperf: New file.
12872
12873         Tests for module 'unictype/joininggroup-name'.
12874         * modules/unictype/joininggroup-name-tests: New file.
12875         * tests/unictype/test-joininggroup_name.c: New file.
12876
12877         New module 'unictype/joininggroup-name'.
12878         * modules/unictype/joininggroup-name: New file.
12879         * lib/unictype/joininggroup_name.c: New file.
12880         * lib/unictype/joininggroup_name.h: New file.
12881
12882         New module 'unictype/joiningtype-all'.
12883         * modules/unictype/joiningtype-all: New file.
12884
12885         Tests for module 'unictype/joiningtype-of'.
12886         * modules/unictype/joiningtype-of-tests: New file.
12887         * tests/unictype/test-joiningtype_of.c: New file.
12888         * tests/unictype/test-joiningtype_of.h: New file, automatically
12889         generated by gen-uni-tables.
12890
12891         New module 'unictype/joiningtype-of'.
12892         * modules/unictype/joiningtype-of: New file.
12893         * lib/unictype/joiningtype_of.c: New file.
12894         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12895         gen-uni-tables.
12896
12897         Tests for module 'unictype/joiningtype-byname'.
12898         * modules/unictype/joiningtype-byname-tests: New file.
12899         * tests/unictype/test-joiningtype_byname.c: New file.
12900
12901         New module 'unictype/joiningtype-byname'.
12902         * modules/unictype/joiningtype-byname: New file.
12903         * lib/unictype/joiningtype_byname.c: New file.
12904
12905         Tests for module 'unictype/joiningtype-name'.
12906         * modules/unictype/joiningtype-name-tests: New file.
12907         * tests/unictype/test-joiningtype_name.c: New file.
12908
12909         New module 'unictype/joiningtype-name'.
12910         * modules/unictype/joiningtype-name: New file.
12911         * lib/unictype/joiningtype_name.c: New file.
12912
12913         unictype: Add support for Arabic shaping properties.
12914         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12915         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12916         declarations.
12917         (UC_JOINING_GROUP_*): New enumeration values.
12918         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12919         declarations.
12920         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12921         (unicode_joining_type): New variable.
12922         (UC_JOINING_GROUP_*): New enumeration values.
12923         (unicode_joining_group): New variable.
12924         (fill_arabicshaping, joining_type_as_c_identifier,
12925         output_joining_type_test, output_joining_type,
12926         joining_group_as_c_identifier, output_joining_group_test,
12927         output_joining_group): New functions.
12928         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12929         fill_arabicshaping and output_joining_type_test, output_joining_type,
12930         output_joining_group_test, output_joining_group.
12931         Reported by Simon Josefsson.
12932
12933 2011-03-21  Jim Meyering  <meyering@redhat.com>
12934
12935         strftime: fix a bug in yesterday's change
12936         * lib/strftime.c (add): Accommodate width's initial value of -1.
12937         Otherwise, nstrftime would copy uninitialized data into
12938         the result buffer.
12939
12940 2011-03-21  Jim Meyering  <meyering@redhat.com>
12941
12942         tests: add strftime-tests module
12943         * tests/test-strftime.c: New file.
12944         * modules/strftime-tests: New module.
12945
12946 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12947
12948         strftime: don't assume a byte count fits in 'int'
12949         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12950         found this problem by static analysis, using gcc -Wstrict-overflow
12951         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12952         on an integer overflow having undefined behavior, but it turns out
12953         that the argument is a size, which might not fit in 'int' anyway,
12954
12955 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12956
12957         stdio: don't require ignore_value around fwrite
12958
12959         This patch works around libc bug 11959
12960         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12961         Without this patch, applications must often write
12962         ignore_value (fwrite (...)) even though the ignore_value is
12963         not helpful here.  It's common to write many objects, using
12964         fwrite/printf/etc., and then use ferror to detect output error.
12965
12966         I considered making this patch optional, but decided against it,
12967         because libc is obviously being inconsistent here: there is no
12968         reason libc should insist that user code must inspect fwrite
12969         return's value without also insisting that it inspect printf's,
12970         putchar's, etc.  If user code wants to have a strict style where
12971         all these functions' values are checked (so that ferror need not
12972         be checked), we could add support for that style in a new gnulib
12973         module, but in the meantime it's better to be consistent and to
12974         support common usage.
12975
12976         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12977         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12978         that we are compiling in checking mode, and if not C++, and
12979         if not already wrapping fwrite for some other reason.
12980         (fwrite): #define to rpl_fwrite if the latter is defined.
12981
12982 2011-03-20  Bruno Haible  <bruno@clisp.org>
12983
12984         verror: Fix compilation error introduced on 2011-02-13.
12985         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12986         instead of __attribute__.
12987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12988
12989 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12990             Bruno Haible  <bruno@clisp.org>
12991
12992         socklen: do not depend on sys_socket
12993         While trying to modify Emacs to use gnulib's socklen module,
12994         I discovered a circular dependency: socklen depends on sys_socket
12995         and vice versa.  Emacs can use socklen, but it does not need
12996         sys_socket because it has its own substitute for sys/socket.h.
12997         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12998         gl_TYPE_SOCKLEN_T.
12999         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13000         gl_PREREQ_SYS_H_SOCKET.
13001         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13002         gl_PREREQ_SYS_H_SOCKET.
13003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13004         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13005         * modules/socklen (Depends-on): Do not depend on sys_socket.
13006         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13007
13008 2011-03-20  Jim Meyering  <meyering@redhat.com>
13009
13010         maint.mk: sort file names *after* new transformation
13011         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13012         prefix would have led to an unwarranted failure in GNU parted.
13013         Sort after that transformation.
13014
13015 2011-03-19  Jim Meyering  <meyering@redhat.com>
13016
13017         maint.mk: fix po-file syntax-check rule
13018         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13019         Patch by Bruno Haible.
13020
13021 2011-03-19  Bruno Haible  <bruno@clisp.org>
13022
13023         socklen: Update comment.
13024         * m4/socklen.m4: Update comment about platforms.
13025
13026 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13027             Bruno Haible  <bruno@clisp.org>
13028
13029         inet_ntop, inet_pton: Simplify.
13030         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13031         documented to provide socklen_t and we already depend on sys_socket.
13032         * modules/inet_pton (Depends-on): Likewise.
13033         * lib/arpa_inet.in.h: Adjust comment.
13034
13035 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13036             Bruno Haible  <bruno@clisp.org>
13037
13038         netdb: Simplify.
13039         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13040         documented to provide socklen_t and we already depend on sys_socket.
13041         * lib/netdb.in.h: Adjust comment.
13042
13043 2011-03-19  Bruno Haible  <bruno@clisp.org>
13044
13045         sys_socket, netdb: Document problem with socklen_t.
13046         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13047         platforms.
13048         * doc/posix-headers/netdb.texi: Likewise.
13049
13050 2011-03-18  Eric Blake  <eblake@redhat.com>
13051
13052         maint.mk: let po check work in VPATH build
13053         * top/maint.mk (po_file): Allow cfg.mk override.
13054         (sc_po_check): Allow VPATH use.
13055         Reported by Jiri Denemark.
13056
13057 2011-03-16  Jim Meyering  <meyering@redhat.com>
13058
13059         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13060         Before, you would have had to create one .x-sc_ file per rule in order
13061         to exempt offending files.  Now, you may instead use a Make variable --
13062         usually defined in cfg.mk -- whose name identifies the affected rule.
13063         * top/maint.mk (_sc_excl): Define.
13064         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13065         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13066
13067 2011-03-13  Bruno Haible  <bruno@clisp.org>
13068
13069         ignore-value tests: Avoid warnings.
13070         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13071         empty for gcc < 3.4.
13072
13073 2011-03-13  Bruno Haible  <bruno@clisp.org>
13074
13075         passfd: Fix link error on Solaris.
13076         * modules/passfd (Description): Correct.
13077         (Depends-on): Add socketlib.
13078         (Link): New section.
13079         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13080
13081 2011-03-13  Bruno Haible  <bruno@clisp.org>
13082
13083         passfd: Fix link error on AIX 5.2.
13084         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13085
13086 2011-03-13  Bruno Haible  <bruno@clisp.org>
13087
13088         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13089         * lib/sys_socket.in.h: Include <stddef.h>.
13090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13091         CMSG_FIRSTHDR. Remove unused variable.
13092
13093 2011-03-13  Bruno Haible  <bruno@clisp.org>
13094
13095         passfd: Fix compilation error on OpenBSD.
13096         * lib/passfd.c: Include <sys/uio.h>.
13097
13098 2011-03-13  Bruno Haible  <bruno@clisp.org>
13099
13100         passfd test: Fix warnings.
13101         * tests/test-passfd.c: Include <sys/wait.h>.
13102         (main): Fix typo.
13103
13104 2011-03-13  Bruno Haible  <bruno@clisp.org>
13105
13106         passfd module, part 4, tweaks.
13107         * tests/test-passfd.c: Reorder includes.
13108         (main): Fix perror and printf calls.
13109
13110 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13111
13112         passfd module, part 4.
13113         * modules/passfd-tests: New file.
13114         * tests/test-passfd.c: New file.
13115
13116 2011-03-13  Jim Meyering  <meyering@redhat.com>
13117
13118         Makefile: rely on GNU make; derive syntax-check rule names
13119         Rather than requiring that each sc_ rule be listed as a dependent
13120         of "check", use features of GNU make to derive the list.
13121         * Makefile (syntax-check-rules): Define.
13122         (check): Depend on the new variable, not the hard-coded list.
13123
13124 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13125             Bruno Haible  <bruno@clisp.org>
13126
13127         passfd module, part 3.
13128         * lib/passfd.h (recvfd): Add a flags argument.
13129         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13130         (recvfd): Add a flags argument.
13131         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13132         exists.
13133         * modules/passfd (Depends-on): Add cloexec.
13134         Suggested by Eric Blake.
13135
13136 2011-03-13  Bruno Haible  <bruno@clisp.org>
13137
13138         passfd module, part 2, tweaks.
13139         * modules/passfd (Files): Reorder.
13140         (Depends-on): Remove errno.
13141         (Include): Remove <sys/socket.h>, <sys/un.h>.
13142         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13143         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13144         specification header. Include <sys/socket.h> always. Don't include
13145         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13146         (sendfd): Clarify that it sets errno when it fails.
13147         (recvfd): Fix specification.
13148
13149 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13150
13151         passfd module, part 2.
13152         * modules/passfd: New file.
13153         * lib/passfd.h: New file.
13154         * lib/passfd.c: New file.
13155
13156 2011-03-12  Bruno Haible  <bruno@clisp.org>
13157
13158         wcswidth, mbswidth: Avoid integer overflow.
13159         * lib/wcswidth.c: Include <limits.h>.
13160         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13161         * lib/mbswidth.c: Include <limits.h>.
13162         (mbsnwidth): Avoid 'int' overflow.
13163         Reported by Jim Meyering.
13164
13165 2011-03-12  Bruno Haible  <bruno@clisp.org>
13166
13167         futimens, utimensat: Avoid endless recursion on Solaris 10.
13168         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13169         Solaris.
13170         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13171         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13172
13173 2011-03-11  Jim Meyering  <meyering@redhat.com>
13174
13175         maint.mk: relax a regexp to accommodate other formatting styles
13176         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13177         between "ngettext" and the following "(".
13178
13179 2011-03-11  Pádraig Brady <P@draigBrady.com>
13180
13181         maint.mk: suppress a false positive warning
13182         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13183         diagnostics are marked with ngettext.
13184
13185 2011-03-10  Eric Blake  <eblake@redhat.com>
13186
13187         wchar: add explicit dependencies, for Tru64
13188         * modules/mbmemcasecoll (Depends-on): Add wchar.
13189         * modules/mbtowc (Depends-on): Likewise.
13190         * modules/vasnprintf (Depends-on): Likewise.
13191         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13192         * modules/wctomb (Depends-on): Likewise.
13193         Reported by Peter O'Gorman.
13194
13195 2011-03-08  Bruno Haible  <bruno@clisp.org>
13196
13197         passfd module, part 1, tweaks.
13198         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13199         Improve indentation. Improve AC_MSG_CHECKING messages.
13200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13201         gl_SOCKET_FAMILIES.
13202
13203 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13204
13205         passfd module, part 1.
13206         * m4/afunix.m4: New file.
13207         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13208         sockets.
13209
13210 2011-03-08  Bruno Haible  <bruno@clisp.org>
13211
13212         regex-quote: New API.
13213         * lib/regex-quote.h: Include <stdbool.h>.
13214         (struct regex_quote_spec): New type.
13215         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13216         New declarations.
13217         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13218         'const struct regex_quote_spec *' argument.
13219         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13220         (pcre_special): New constant.
13221         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13222         New functions.
13223         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13224         'const struct regex_quote_spec *' argument.
13225         * modules/regex-quote (Depends-on): Add stdbool.
13226         * tests/test-regex-quote.c (check): Update for new API. Add test for
13227         anchored results.
13228         * NEWS: Mention the API change.
13229         Reported by Reuben Thomas and Eric Blake.
13230
13231 2011-03-06  Bruno Haible  <bruno@clisp.org>
13232
13233         regex-quote: Fix creation of POSIX extended regular expressions.
13234         * lib/regex-quote.c (ere_special): Add grouping and alternation
13235         operators.
13236
13237 2011-03-05  Bruno Haible  <bruno@clisp.org>
13238
13239         doc: Improve doc regarding autopoint vs. gnulib.
13240         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13241         disable autopoint while running autoreconf.
13242         Suggested by Ralf Wildenhues.
13243
13244 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13245
13246         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13247         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13248
13249 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13250
13251         parse-duration: remove xalloc.h dependency
13252         * lib/parse-duration.c (parse_period): handle NULL return from
13253         strdup instead of calling xstrdup().
13254         * modules/parse-duration: remove "xalloc" dependency
13255
13256 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13257
13258         bootstrap: honor m4_base when running aclocal
13259         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13260
13261 2011-03-02  Jim Meyering  <meyering@redhat.com>
13262
13263         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13264         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13265         on request from Matt Booth.
13266
13267 2011-03-01  Eric Blake  <eblake@redhat.com>
13268
13269         test-link: work on Hurd
13270         * tests/test-link.h (test_link): Hurd rejects linking directories
13271         with EISDIR instead of the POSIX-mandated EPERM.
13272
13273 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13274
13275         stdio: simplify by moving files to printf-posix, sigpipe
13276         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13277         since this symbol is needed only if printf is replaced.
13278         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13279         Require gl_ASM_SYMBOL_PREFIX.
13280         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13281         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13282         (Depends-on): Add 'raise'.
13283         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13284         * modules/stdio (Files): Remove lib/stdio-write.c,
13285         m4/asm-underscore.m4.
13286         (Depends-on): Remove 'raise'.
13287
13288         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13289         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13290         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13291         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13292
13293 2011-02-28  Bruno Haible  <bruno@clisp.org>
13294
13295         localcharset: Assume ANSI C behaviour of free().
13296         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13297         calling free().
13298         Suggested by Simon Josefsson <simon@josefsson.org>.
13299
13300 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13301             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13302             Bruno Haible  <bruno@clisp.org>  (tiny change)
13303
13304         On Cygwin, use /proc file system instead of win32 API.
13305         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13306         Win32 file names.
13307         (DllMain): Simplify by removing Cygwin specific code.
13308         (find_shared_library_fullname): Use Linux specific implementation also
13309         for Cygwin.
13310         (get_shared_library_fullname): Update accordingly.
13311         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13312         Win32 file names.
13313         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13314         Cygwin specific code.
13315
13316 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13317             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13318
13319         Fix OpenMP flag detection for various Fortran compilers.
13320         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13321         OpenMP-conditional compilation construct, to force compile
13322         failure with missing OpenMP flag.
13323         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13324
13325 2011-02-25  Eric Blake  <eblake@redhat.com>
13326
13327         strstr: expand test coverage
13328         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13329         compilation.
13330         * tests/test-memmem.c (main): Duplicate tests.
13331         * tests/test-strcasestr.c (main): Likewise.
13332         * tests/test-c-strcasestr.c (main): Likewise.
13333
13334 2011-02-25  Jim Meyering  <meyering@redhat.com>
13335
13336         maint.mk: detect missing-NL-at-EOF, too
13337         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13338         it also detects when a file lacks a newline at EOF.
13339         (require_exactly_one_NL_at_EOF_): Renamed from
13340         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13341         since people may well have .x-sc_... file names tied to the
13342         existing name.  Suggested by Eric Blake.
13343
13344 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13345
13346         dirname: move m4/dos.m4 functionality into lib/dosname.h
13347
13348         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13349         extracts symbols from it, puts them into config.h; but it's much
13350         easier to use the symbols directly.  filename.h already does this,
13351         but it disagrees with dos.m4 in some respects.  This patch
13352         introduces a different include file dosname.h that packages up
13353         dos.m4, and then later we can work on merging filename.h and
13354         dosname.h.  Applications that need only the easy-to-configure
13355         symbols should consider including dosname.h rather than dirname.h.
13356         * NEWS: Mention incompatible changes.
13357         * m4/dos.m4: Remove.
13358         * lib/dosname.h, modules/dosname: New files.
13359         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13360         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13361         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13362         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13363         Include dosname.h, not dirname.h.
13364         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13365         Include dosname.h, for definitions of symbols like ISSLASH
13366         that used to be in config.h.
13367         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13369         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13370         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13371         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13372         * modules/rmdir (Files): Likewise.
13373         * modules/stat (Files): Likewise.
13374         * modules/unlink (Files): Likewise.
13375         * modules/dirname-lgpl (Depends-on): Add dosname.
13376         * modules/lstat (Depends-on): Likewise.
13377         * modules/openat (Depends-on): Likewise.
13378         * modules/rmdir (Depends-on): Likewise.
13379         * modules/savewd (Depends-on): Likewise.
13380         * modules/stat (Depends-on): Likewise.
13381         * modules/unlink (Depends-on): Likewise.
13382         * modules/openat (Depends-on): Remove dirname-lgpl.
13383         * modules/savewd (Depends-on): Likewise.
13384         * tests/test-dirname.c: Do not use removed symbols like
13385         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13386         the remaining symbols, e.g., ISSLASH ('\\').
13387
13388 2011-02-25  Eric Blake  <eblake@redhat.com>
13389
13390         strstr: revert patches that introduced bug and pessimization
13391         * lib/str-two-way.h: Add another reference.
13392         (two_way_short_needle, two_way_long_needle): Revert changes from
13393         2011-02-24; they pessimize search speed.
13394         (critical_factorization): Partially revert changes from
13395         2010-06-22; they violate the requirement that the left half of the
13396         needle be smaller than the period of the needle.
13397
13398 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         filenamecat: remove unnecessary dependency on dirname-lgpl
13401         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13402         is no direct dependency, just an indirect one via filenamecat-lgpl.
13403
13404         remove: remove unnecessary use of m4/dos.m4
13405         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13406         * modules/remove (FILES): Remove m4/dos.m4.
13407
13408         * lib/openat-proc.c: Don't include dirname.h; not needed.
13409
13410         backupfile: remove unnecessary use of m4/dos.m4
13411         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13412         of its symbols are used by the backupfile code.  backupfile.c does
13413         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13414         for the rare case of programs that want all their backup file
13415         names to live within 8+3 limits, and dos.m4 doesn't address that.
13416         * modules/backupfile (Files): Remove m4/dos.m4.
13417
13418 2011-02-24  Jim Meyering  <meyering@redhat.com>
13419
13420         strstr: fix a bug whereby strstr would mistakenly return NULL
13421         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13422         in period calculation.
13423         (two_way_long_needle): Likewise.
13424         The original problem was reported by Mike Stump in
13425         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13426         Ralf Wildenhues provided the short needle and haystack.
13427         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13428         Add a more involved test to trigger the bug in two_way_long_needle.
13429
13430 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13431
13432         gnulib-tool: remove use of bold display in help screen
13433         * gnulib-tool (func_usage): Do not use bold display anymore in the
13434         help screen.  That was just meant to be a temporary emphasis for a
13435         backward-incompatible change.
13436
13437 2011-02-23  Bruno Haible  <bruno@clisp.org>
13438
13439         Fix misindentation of preprocessor directives.
13440         * lib/argp-namefrob.h: Reindent preprocessor directives.
13441         * lib/getopt_int.h (struct _getopt_data): Likewise.
13442         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13443         * lib/vasnprintf.c (decode_long_double): Likewise.
13444         * tests/test-argmatch.c: Insert blank lines, for clarity.
13445         * tests/test-exclude.c: Likewise.
13446
13447 2011-02-22  Bruno Haible  <bruno@clisp.org>
13448
13449         ioctl: Fix for MacOS X in 64-bit mode.
13450         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13451         value.
13452         Suggested by Eric Blake.
13453         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13454
13455 2011-02-22  Jim Meyering  <meyering@redhat.com>
13456
13457         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13458         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13459         in lib/.
13460
13461 2011-02-22  Eric Blake  <eblake@redhat.com>
13462
13463         maint: avoid any CDPATH issue
13464         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13465
13466         maint: adjust cpp indentation for my modules, as well
13467         * Makefile (sc_cpp_indent_check): Add my name.
13468         * lib/fbufmode.c: Filter through cppi.
13469         * lib/fpurge.c: Likewise.
13470         * lib/freadable.c: Likewise.
13471         * lib/freading.c: Likewise.
13472         * lib/fwritable.c: Likewise.
13473         * lib/fwriting.c: Likewise.
13474         * lib/sigaction.c: Likewise.
13475
13476 2011-02-22  Jim Meyering  <meyering@redhat.com>
13477
13478         maint: adjust cpp indentation to reflect nesting depth
13479         I.e., in a block of code that begins with an unnested "#if",
13480         put one space between the "#" in column 1 and following token.
13481         For example,
13482         -#include <sys/vfs.h>
13483         +# include <sys/vfs.h>
13484         Do this only in .c files that are part of a module I maintain.
13485         * lib/linkat.c: Filter through cppi.
13486         * lib/nanosleep.c: Likewise.
13487         * lib/openat.c: Likewise.
13488         * lib/openat-die.c: Likewise.
13489         * lib/dup3.c: Likewise.
13490         * lib/fchownat.c: Likewise.
13491         * lib/flock.c: Likewise.
13492         * lib/fsync.c: Likewise.
13493         * lib/fts.c: Likewise.
13494         * lib/getpass.c: Likewise.
13495         * lib/gettimeofday.c: Likewise.
13496         * lib/userspec.c: Likewise.
13497         * Makefile (sc_cpp_indent_check): New rule, to check this.
13498
13499 2011-02-22  Bruno Haible  <bruno@clisp.org>
13500
13501         New module 'wctomb'.
13502         * lib/stdlib.in.h (wctomb): New declaration.
13503         * lib/wctomb.c: New file.
13504         * lib/wctomb-impl.h: New file.
13505         * m4/wctomb.m4: New file.
13506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13507         REPLACE_WCTOMB.
13508         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13509         REPLACE_WCTOMB.
13510         * modules/wctomb: New file.
13511         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13512         * doc/posix-functions/wctomb.texi: Mention the new module.
13513         * modules/wctob (Depends-on): Add wctomb.
13514
13515 2011-02-22  Bruno Haible  <bruno@clisp.org>
13516
13517         New module 'mbtowc'.
13518         * lib/stdlib.in.h (mbtowc): New declaration.
13519         * lib/mbtowc.c: New file.
13520         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13521         * m4/mbtowc.m4: New file.
13522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13523         REPLACE_MBTOWC.
13524         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13525         REPLACE_MBTOWC.
13526         * modules/mbtowc: New file.
13527         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13528         * doc/posix-functions/mbtowc.texi: Mention the new module.
13529         * modules/btowc (Depends-on): Add mbtowc.
13530
13531 2011-02-22  Bruno Haible  <bruno@clisp.org>
13532
13533         wcrtomb: Add more tests for native Windows platforms.
13534         * tests/test-wcrtomb-w32-1.sh: New file.
13535         * tests/test-wcrtomb-w32-2.sh: New file.
13536         * tests/test-wcrtomb-w32-3.sh: New file.
13537         * tests/test-wcrtomb-w32-4.sh: New file.
13538         * tests/test-wcrtomb-w32-5.sh: New file.
13539         * tests/test-wcrtomb-w32.c: New file.
13540         * modules/wcrtomb-tests (Files): Add them.
13541         (Makefile.am): Arrange to run these tests.
13542         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13543         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13544
13545 2011-02-20  Bruno Haible  <bruno@clisp.org>
13546
13547         wcrtomb: Enhance test.
13548         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13549
13550 2011-02-20  Bruno Haible  <bruno@clisp.org>
13551
13552         mbrtowc: Tiny optimization.
13553         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13554
13555 2011-02-20  Jim Meyering  <meyering@redhat.com>
13556
13557         test-exclude.c: remove unmatched #endif
13558         * tests/test-exclude.c: Remove stray #endif, left over from
13559         the change of a week ago.
13560
13561 2011-02-19  Jim Meyering  <meyering@redhat.com>
13562
13563         git-version-gen: skip "-dirty" check when appropriate
13564         * build-aux/git-version-gen: Don't run any git commands when the
13565         version string comes from .tarball-version.  Prior to this, we
13566         would run git update-index --refresh even from a just-unpacked
13567         tarball directory, and that could affect a .git/ directory in a
13568         parent of the build directory.  Reported by Mike Frysinger.
13569
13570 2011-02-19  Bruno Haible  <bruno@clisp.org>
13571
13572         unictype/property-byname: Reduce the size of the 'data' segment.
13573         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13574
13575 2011-02-19  Bruno Haible  <bruno@clisp.org>
13576
13577         unictype/scripts: Reduce the size of the 'data' segment.
13578         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13579         '%pic'.
13580         * lib/unictype/scripts_byname.gperf: Regenerated.
13581
13582 2011-02-19  Bruno Haible  <bruno@clisp.org>
13583
13584         stdint: Update documentation.
13585         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13586
13587 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13588
13589         stdint: omit redundant check for wchar.h
13590         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13591         always tests whether wchar.h exists, so remove the now-redundant test.
13592
13593 2011-02-18  Bruno Haible  <bruno@clisp.org>
13594
13595         stdint: Cut dependency to module 'wchar'.
13596         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13597         include the necessary prerequisites.
13598         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13599         * modules/stdint (Depends-on): Remove wchar.
13600         (Makefile.am): Substitute HAVE_WCHAR_H.
13601         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13602
13603 2011-02-18  Eric Blake  <eblake@redhat.com>
13604
13605         longlong: skip, rather than fail, on cross-compilation
13606         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13607         when cross-compiling; regression from 2011-02-16.
13608
13609 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         * NEWS: Mention 2011-02-08 change to stdlib.
13612
13613 2011-02-17  Bruno Haible  <bruno@clisp.org>
13614
13615         getloadavg: Add comments about platforms.
13616         * m4/getloadavg.m4: Add comment.
13617         * lib/getloadavg.c: Likewise.
13618
13619 2011-02-17  Bruno Haible  <bruno@clisp.org>
13620
13621         getloadavg: Fix link error on Solaris 2.6.
13622         * modules/getloadavg (Link): New section.
13623         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13624         linking test-getloadavg.
13625         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13626         getloadavg.
13627
13628 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13631         It was 'int', but this doesn't match the IRIX 6.5 manual.
13632         Suggested by Bruno Haible in
13633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13634
13635 2011-02-17  Bruno Haible  <bruno@clisp.org>
13636
13637         havelib: Fix comments.
13638         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13639         change.
13640
13641 2011-02-17  Bruno Haible  <bruno@clisp.org>
13642
13643         havelib: Update config.rpath.
13644         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13645
13646 2011-02-17  Bruno Haible  <bruno@clisp.org>
13647
13648         getloadavg test: Add some plausibility checks.
13649         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13650         is improbable.
13651
13652 2011-02-16  Eric Blake  <eblake@redhat.com>
13653
13654         maintainer-makefile: make syntax-check a no-op from tarballs
13655         * top/maint.mk (no-vc-detected): New rule.
13656         (local-checks-available): Use it to avoid hanging if someone tries
13657         'make syntax-check' from a tarball.  Also append to any non-syntax
13658         checks already defined in cfg.mk.
13659
13660 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         longlong: tune, particularly for common case of c99
13663
13664         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13665         or running anything if c99, or if unsigned long long int does not
13666         work.  In either case, we know the answer without further tests.
13667         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13668         it at most once, and use its results for both long long int and
13669         unsigned long long int.  This is more likely to be efficient in
13670         the common case where the program wants to check for both long
13671         long int and unsigned long long int.
13672         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13673         since the answer is already known.
13674
13675 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13676
13677         getloadavg: set errno
13678         * lib/getloadavg.c: Set errno when returning -1.  If no other
13679         error number looks appropriate, set it to ENOSYS if the getloadavg
13680         looks like it can't possibly ever work, ENOTSUP otherwise.
13681         Suggested by Bruno Haible in
13682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13683
13684         getloadavg: trim unused parts and speed up 'configure'
13685         * NEWS: Document this.
13686         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13687         always compiled if getloadavg is absent.
13688         Move test code to ...
13689         * tests/test-getloadavg.c: New file, containing previous
13690         contents of test from lib/getloadavg.c.  It also contains
13691         suggestions by Bruno Haible in
13692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13693         * modules/getloadavg-tests: New file.
13694         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13695         Do tests in the same order as they're needed for getloadavg.c.
13696         Omit setgid-related tests that generate symbols KMEM_GROUP,
13697         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13698         Do only the tests that are needed to see whether the system has
13699         getloadavg, moving the other tests into ...
13700         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13701         NLIST_NAME_UNION; nobody should be using it.  Do not define
13702         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13703         relevant, as the user of this module shouldn't care how getloadavg
13704         is implemented.
13705
13706         getloadavg: omit unused var
13707         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13708
13709 2011-02-15  Jim Meyering  <meyering@redhat.com>
13710
13711         doc: update users.txt
13712         * users.txt: Update iwhd's URL.
13713
13714 2011-02-13  Bruno Haible  <bruno@clisp.org>
13715
13716         Consistent macro naming for macros that use GCC __attribute__.
13717         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13718         _ATTRIBUTE_NONNULL_.
13719         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13720         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13721         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13722         ATTRIBUTE_DEPRECATED.
13723         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13724         ATTRIBUTE_NORETURN.
13725         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13726         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13727         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13728         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13729         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13730         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13731         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13732         ATTRIBUTE_SENTINEL.
13733         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13734         ATTRIBUTE_RETURN_CHECK.
13735         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13736         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13737         ATTRIBUTE_NORETURN.
13738         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13739         Reported by Paul Eggert.
13740
13741 2011-02-13  Bruno Haible  <bruno@clisp.org>
13742
13743         Don't interfere with a program's definition of __attribute__.
13744         * lib/argp.h (__attribute__): Remove definition.
13745         (_GL_ATTRIBUTE_FORMAT): New macro.
13746         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13747         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13748         (_GL_ATTRIBUTE_FORMAT): New macro.
13749         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13750         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13751         GCC 3 or newer.
13752         * lib/error.h (__attribute__): Remove definition.
13753         (_GL_ATTRIBUTE_FORMAT): New macro.
13754         (error, error_at_line): Use it.
13755         * lib/hash.h (__attribute__): Remove definition.
13756         (ATTRIBUTE_WUR): Update definition. Define always.
13757         * lib/openat.h (__attribute__): Remove definition.
13758         (ATTRIBUTE_NORETURN): Update definition. Define always.
13759         * lib/sigpipe-die.h (__attribute__): Remove definition.
13760         (ATTRIBUTE_NORETURN): Update definition. Define always.
13761         * lib/vasnprintf.h (__attribute__): Remove definition.
13762         (_GL_ATTRIBUTE_FORMAT): New macro.
13763         (asnprintf, vasnprintf): Use it.
13764         * lib/xalloc.h (__attribute__): Remove definition.
13765         (ATTRIBUTE_NORETURN): Update definition. Define always.
13766         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13767         * lib/xmemdup0.h (__attribute__): Remove definition.
13768         (ATTRIBUTE_NORETURN): Update definition. Define always.
13769         * lib/xprintf.h (__attribute__): Remove definition.
13770         (_GL_ATTRIBUTE_FORMAT): New macro.
13771         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13772         * lib/xstrtol.h (__attribute__): Remove definition.
13773         (ATTRIBUTE_NORETURN): Update definition. Define always.
13774         * lib/xvasprintf.h (__attribute__): Remove definition.
13775         (_GL_ATTRIBUTE_FORMAT): New macro.
13776         (xasprintf, xvasprintf): Use it.
13777         * tests/test-argmatch.c (__attribute__): Remove definition.
13778         (ATTRIBUTE_NORETURN): Update definition. Define always.
13779         * tests/test-exclude.c (__attribute__): Remove definition.
13780         (ATTRIBUTE_NORETURN): Update definition. Define always.
13781         Reported by Paul Eggert.
13782
13783 2011-02-13  Bruno Haible  <bruno@clisp.org>
13784
13785         mbrtowc: Add more tests for native Windows platforms.
13786         * tests/test-mbrtowc-w32-1.sh: New file.
13787         * tests/test-mbrtowc-w32-2.sh: New file.
13788         * tests/test-mbrtowc-w32-3.sh: New file.
13789         * tests/test-mbrtowc-w32-4.sh: New file.
13790         * tests/test-mbrtowc-w32-5.sh: New file.
13791         * tests/test-mbrtowc-w32.c: New file.
13792         * modules/mbrtowc-tests (Files): Add them.
13793         (Makefile.am): Arrange to run these tests.
13794         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13795         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13796
13797 2011-02-13  Bruno Haible  <bruno@clisp.org>
13798
13799         mbrtowc: Work around native Windows bug.
13800         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13801         guess when no suitable locale for testing was found.
13802         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13803
13804 2011-02-13  Bruno Haible  <bruno@clisp.org>
13805
13806         mbsinit: Work around mingw bug.
13807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13808         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13809         Windows.
13810         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13811
13812 2011-02-13  Bruno Haible  <bruno@clisp.org>
13813
13814         mbsinit: Don't crash for a NULL argument.
13815         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13816         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13817
13818 2011-02-13  Bruno Haible  <bruno@clisp.org>
13819
13820         Don't interfere with a program's definition of __attribute__.
13821         * lib/stdio.in.h (__attribute__): Remove definition.
13822         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13823         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13824         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13825         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13826         * lib/string.in.h (__attribute__): Remove definition.
13827         Reported by Paul Eggert.
13828
13829 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         stdlib: don't get in the way of non-GCC __attribute__
13832         See thread starting at
13833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13834         Revert previous stdlib change, installing the following instead:
13835         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13836         to get in the way of a non-GCC compiler that supports __attribute__.
13837         (_GL_ATTRIBUTE_RETURN): New macro.
13838         (_Exit): Use it instead of __attribute__.
13839
13840 2011-02-12  Bruno Haible  <bruno@clisp.org>
13841
13842         quotearg test: Avoid test failure on mingw.
13843         * tests/test-quotearg.sh: Convert the locale identifier from native
13844         Windows syntax to Unix syntax.
13845
13846 2011-02-12  Bruno Haible  <bruno@clisp.org>
13847
13848         setlocale: Prefer gnulib's override over libintl's override.
13849         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13850         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13851         GNULIB_defined_setlocale is set.
13852
13853 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13854
13855         stdlib: support non-GCC __attribute__
13856
13857         Fix a serious and tricky problem encountered when attempting to
13858         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13859         5.5, but it crashed due to memory corruption on Solaris 10 with
13860         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13861         bits that are otherwise zero.  This tagging is optional inside
13862         Emacs but is preferred and is used when __attribute__ ((__aligned
13863         (8))) works, as it does with both recent-enough GCC and with Sun C
13864         5.11.  However, Sun C 5.11 is not GCC and does not #define
13865         __GNUC__ and __GNUC_MINOR__.
13866
13867         When I added the getloadavg module to Emacs, it brought in
13868         stdlib.in.h, which contained this fragment:
13869
13870            #ifndef __attribute__
13871            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13872            #  define __attribute__(Spec)   /* empty */
13873            # endif
13874            #endif
13875
13876         When files that include <stdlib.h> were compiled with Sun C 5.11,
13877         the above code disabled __attribute__ ((__aligned (8))), which
13878         caused variables to not be properly aligned, which eventually led
13879         to the pointer corruption mentioned above.  (This was a bit hard
13880         to diagnose, unfortunately.)
13881
13882         Several "#define __attribute__(X) /* empty */" code snippets need
13883         to be eradicated from Gnulib to work with non-GCC compilers that
13884         support __attribute__.  The Autoconf way to do this is to test for
13885         each kind of attribute that we want support for, and selectively
13886         enable that in source code.
13887
13888         Fix this problem just for stdlib.h, by adding a test for the
13889         __noreturn__ attribute, and change stdlib.in.h to use that test
13890         when needed.  This technique can be easily generalized to the
13891         other *.in.h files and attributes, and a similar technique can be
13892         used for *.h and *.c files.  This patch is enough to solve the
13893         problem for Emacs + getloadavg, and I thought I'd publish it for
13894         feedback before undertaking further, similar fixes in other
13895         modules.
13896
13897         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13898         because it's not needed for stdlib.h.  It merely substitutes the
13899         value directly into stdlib.h.  We may well need to #define it, or
13900         similar symbols, for other modules, but it's nice to also have an
13901         option to not #define it for applications like Emacs that do not
13902         need it.
13903
13904         * lib/stdlib.in.h (__attribute__): Do not #define.
13905         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13906         be defined only if the _Exit module is also used.
13907         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13909         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13910         platforms.
13911         * modules/_Exit (Files): Add m4/attribute.m4.
13912         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13913         * m4/attribute.m4: New file.
13914
13915 2011-02-12  Bruno Haible  <bruno@clisp.org>
13916
13917         wcsrtombs: Work around bug on native Windows.
13918         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13919         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13920         instead of len.
13921         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13922
13923 2011-02-12  Bruno Haible  <bruno@clisp.org>
13924
13925         mbsrtowcs: Work around bug on native Windows.
13926         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13927         against mingw bug.
13928         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13929
13930 2011-02-12  Bruno Haible  <bruno@clisp.org>
13931
13932         Avoid setlocale bugs in tests.
13933         * modules/btowc (Dependencies): Add setlocale.
13934         * modules/c-strcase (Dependencies): Likewise.
13935         * modules/mbmemcasecmp (Dependencies): Likewise.
13936         * modules/mbmemcasecoll (Dependencies): Likewise.
13937         * modules/mbrtowc (Dependencies): Likewise.
13938         * modules/mbscasecmp (Dependencies): Likewise.
13939         * modules/mbscasestr (Dependencies): Likewise.
13940         * modules/mbschr (Dependencies): Likewise.
13941         * modules/mbscspn (Dependencies): Likewise.
13942         * modules/mbsinit (Dependencies): Likewise.
13943         * modules/mbsncasecmp (Dependencies): Likewise.
13944         * modules/mbsnrtowcs (Dependencies): Likewise.
13945         * modules/mbspbrk (Dependencies): Likewise.
13946         * modules/mbspcasecmp (Dependencies): Likewise.
13947         * modules/mbsrchr (Dependencies): Likewise.
13948         * modules/mbsrtowcs (Dependencies): Likewise.
13949         * modules/mbsspn (Dependencies): Likewise.
13950         * modules/mbsstr (Dependencies): Likewise.
13951         * modules/nl_langinfo (Dependencies): Likewise.
13952         * modules/quotearg (Dependencies): Likewise.
13953         * modules/unicase/locale-language (Dependencies): Likewise.
13954         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13955         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13956         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13957         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13958         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13959         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13960         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13961         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13962         * modules/vasnprintf-posix (Dependencies): Likewise.
13963         * modules/wcrtomb (Dependencies): Likewise.
13964         * modules/wcsnrtombs (Dependencies): Likewise.
13965         * modules/wcsrtombs (Dependencies): Likewise.
13966
13967 2011-02-12  Bruno Haible  <bruno@clisp.org>
13968
13969         setlocale: Workaround native Windows bug.
13970         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13971         succeeds but sets LC_CTYPE to "C", report a failure.
13972         * tests/test-setlocale2.sh: New file.
13973         * tests/test-setlocale2.c: New file.
13974         * modules/setlocale-tests (Files): Add the new files.
13975         (Makefile.am): Enable test-setlocale2.sh test.
13976         * doc/posix-functions/setlocale.texi: Mention workaround.
13977
13978 2011-02-11  Bruno Haible  <bruno@clisp.org>
13979
13980         Tests for module 'setlocale'.
13981         * modules/setlocale-tests: New file.
13982         * tests/test-setlocale1.sh: New file.
13983         * tests/test-setlocale1.c: New file.
13984
13985         New module 'setlocale'.
13986         * lib/locale.in.h (setlocale): New declaration.
13987         * lib/setlocale.c: New file, based on
13988         gettext/gettext-runtime/intl/setlocale.c.
13989         * m4/setlocale.m4: New file.
13990         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13991         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13992         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13993         REPLACE_SETLOCALE.
13994         * modules/setlocale: New file.
13995         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13996         * doc/posix-functions/setlocale.texi: Mention the new module.
13997
13998 2011-02-11  Bruno Haible  <bruno@clisp.org>
13999
14000         Prepare for locale dependent tests on mingw.
14001         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14002         because it has the wrong locale encoding.
14003         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14004         French_France.1252 instead of "fr".
14005         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14006         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14007         because it has the wrong locale encoding.
14008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14009         native Windows, try Turkish_Turkey.65001.
14010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14011         Chinese_China.54936.
14012
14013         Prepare for locale dependent tests on mingw.
14014         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14015         differently.
14016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14017         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14018         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14019         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14020
14021 2011-02-11  Eric Blake  <eblake@redhat.com>
14022
14023         strptime: avoid compiler warnings
14024         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14025         compiler warnings about dead code.
14026         Reported by Daniel P. Berrange.
14027
14028 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14029
14030         doc: update users.txt
14031         * users.txt: Add rcs.
14032
14033 2011-02-10  John W. Eaton  <jwe@gnu.org>
14034
14035         doc: update users.txt
14036         * users.txt: Add octave.
14037
14038 2011-02-10  Jim Meyering  <meyering@redhat.com>
14039
14040         doc: update users.txt
14041         * users.txt: Add iwhd.
14042
14043 2011-02-09  Bruno Haible  <bruno@clisp.org>
14044
14045         gnulib-tool: Make copyright notice adjustment more robust.
14046         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14047         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14048         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14049         License".
14050         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14051
14052 2011-02-06  Bruno Haible  <bruno@clisp.org>
14053
14054         New module 'towctrans'.
14055         * modules/towctrans: New file.
14056         * lib/wctype.in.h (towctrans): New declaration.
14057         * lib/towctrans.c: New file.
14058         * lib/towctrans-impl.h: New file.
14059         * m4/towctrans.m4: New file.
14060         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14061         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14062         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14063         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14064         * doc/posix-functions/towctrans.texi: Mention the new module.
14065
14066 2011-02-06  Bruno Haible  <bruno@clisp.org>
14067
14068         New module 'wctrans'.
14069         * modules/wctrans: New file.
14070         * lib/wctype.in.h (wctrans): New declaration.
14071         * lib/wctrans.c: New file.
14072         * lib/wctrans-impl.h: New file.
14073         * m4/wctrans.m4: New file.
14074         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14075         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14076         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14077         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14078         * doc/posix-functions/wctrans.texi: Mention the new module.
14079
14080 2011-02-06  Bruno Haible  <bruno@clisp.org>
14081
14082         New module 'iswctype'.
14083         * modules/iswctype: New file.
14084         * lib/wctype.in.h (iswctype): New declaration.
14085         * lib/iswctype.c: New file.
14086         * lib/iswctype-impl.h: New file.
14087         * m4/iswctype.m4: New file.
14088         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14089         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14090         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14091         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14092         * doc/posix-functions/iswctype.texi: Mention the new module and the
14093         HP-UX 11.00 problem.
14094
14095 2011-02-06  Bruno Haible  <bruno@clisp.org>
14096
14097         New module 'wctype'.
14098         * modules/wctype: Change to represent the wctype() substitute.
14099         * lib/wctype.in.h (wctype): New declaration.
14100         * lib/wctype.c: New file.
14101         * lib/wctype-impl.h: New file.
14102         * m4/wctype.m4: New file.
14103         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14104         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14105         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14106         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14107         * doc/posix-functions/wctype.texi: Mention the new module and the
14108         HP-UX 11.00 problem.
14109
14110 2011-02-06  Bruno Haible  <bruno@clisp.org>
14111
14112         wctype-h: Ensure wctype_t and wctrans_t are defined.
14113         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14114         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14115         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14116         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14117         HAVE_WCTRANS_T.
14118         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14119
14120 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         flock: fix license typo
14123
14124         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14125         omitted.
14126
14127 2011-02-08  Bruno Haible  <bruno@clisp.org>
14128
14129         Split large sed scripts, for HP-UX sed.
14130         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14131         to avoid HP-UX limit of 99 commands, in the near future.
14132         * modules/stdlib (Makefile.am): Likewise.
14133         * modules/unistd (Makefile.am): Likewise.
14134         * modules/wchar (Makefile.am): Likewise.
14135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14136         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14138
14139 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14140             Bruno Haible  <bruno@clisp.org>
14141
14142         stdlib: improve random_r modularization
14143         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14144         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14145         you also need the random_r module to get this material right.
14146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14147         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14148         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14149
14150 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14151
14152         stdlib: don't depend on stdint
14153         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14154         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14155         be independent of whether stdint.h is needed.
14156         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14157         here, instead of ...
14158         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14159         struct random_data should be using the random_r module, not just
14160         the stdlib module (which wouldn't make sense: what package needs
14161         just struct random_data without also needing random_r?).
14162         * modules/stdlib (Depends-on): Remove stdint.
14163
14164         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14165         See the thread rooted at
14166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14167         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14168         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14169         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14170         __VMS)); previously it was always included (via fcntl--.h).
14171         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14172         hand; this is good enough for load averages.  Also, do not use
14173         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14174         flags directly if available and don't bother otherwise.  (Packages
14175         that need the extra reliability should use the modules that define
14176         these flags on older platforms that lack them.)
14177         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14178         fcntl-safer.
14179
14180 2011-02-08  Jim Meyering  <meyering@redhat.com>
14181
14182         di-set.h, ino-map.h: add multiple-inclusion guard
14183         Technically, the guard is required only for ino-map.h, due to its
14184         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14185         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14186         * lib/ino-map.h: Likewise.
14187
14188 2011-02-06  Bruno Haible  <bruno@clisp.org>
14189
14190         iswblank: Ensure declaration on glibc systems.
14191         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14192         * modules/iswblank (Dependencies): Add 'extensions'.
14193         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14194
14195 2011-02-06  Bruno Haible  <bruno@clisp.org>
14196
14197         New module 'iswblank'.
14198         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14199         * modules/iswblank: New file.
14200         * modules/wctype-h (Files): Remove lib/iswblank.c.
14201         (Makefile.am): Substitute GNULIB_ISWBLANK.
14202         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14203         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14204         (gl_WCTYPE_H_DEFAULTS): New macro.
14205         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14206         * modules/iswblank-tests: New file.
14207         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14208         * tests/test-wctype-h.c (main): Remove iswblank tests.
14209         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14210         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14211         of 'wctype-h'.
14212         * NEWS: Mention the change.
14213         * modules/mbchar (Depends-on): Add iswblank.
14214
14215 2011-02-08  Bruno Haible  <bruno@clisp.org>
14216
14217         di-set tests: Refactor.
14218         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14219         unnecessary includes.
14220         (ASSERT): Remove macro.
14221         (main): Make C90 compliant by avoiding variable declaration after
14222         statement.
14223         * modules/di-set-tests (Files): Add tests/macros.h.
14224
14225 2011-02-08  Bruno Haible  <bruno@clisp.org>
14226
14227         ino-map tests: Refactor.
14228         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14229         unnecessary includes.
14230         (ASSERT): Remove macro.
14231         (main): Make C90 compliant by avoiding variable declaration after
14232         statement.
14233         * modules/ino-map-tests (Files): Add tests/macros.h.
14234
14235 2011-02-08  Jim Meyering  <meyering@redhat.com>
14236
14237         di-set: add "const" to a cast
14238         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14239         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14240
14241 2011-02-06  Bruno Haible  <bruno@clisp.org>
14242
14243         Rename module 'wctype' to 'wctype-h'.
14244         * modules/wctype-h: Renamed from modules/wctype.
14245         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14246         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14247         (Files, Depends-on, Makefile.am): Update.
14248         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14249         (Files, Makefile.am): Update.
14250         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14251         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14252         * doc/posix-headers/wctype.texi: Update.
14253         * doc/posix-functions/iswalnum.texi: Update.
14254         * doc/posix-functions/iswalpha.texi: Update.
14255         * doc/posix-functions/iswblank.texi: Update.
14256         * doc/posix-functions/iswcntrl.texi: Update.
14257         * doc/posix-functions/iswdigit.texi: Update.
14258         * doc/posix-functions/iswgraph.texi: Update.
14259         * doc/posix-functions/iswlower.texi: Update.
14260         * doc/posix-functions/iswprint.texi: Update.
14261         * doc/posix-functions/iswpunct.texi: Update.
14262         * doc/posix-functions/iswspace.texi: Update.
14263         * doc/posix-functions/iswupper.texi: Update.
14264         * doc/posix-functions/iswxdigit.texi: Update.
14265         * doc/posix-functions/towlower.texi: Update.
14266         * doc/posix-functions/towupper.texi: Update.
14267         * NEWS: Mention the change.
14268         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14269         * modules/mbchar (Dependencies): Likewise.
14270         * modules/mbswidth (Dependencies): Likewise.
14271         * modules/quotearg (Dependencies): Likewise.
14272         * modules/regex (Dependencies): Likewise.
14273         * modules/wcscasecmp (Dependencies): Likewise.
14274         * modules/wcsncasecmp (Dependencies): Likewise.
14275         * modules/wcwidth (Dependencies): Likewise.
14276
14277 2011-02-06  Bruno Haible  <bruno@clisp.org>
14278
14279         New module 'wcswidth'.
14280         * modules/wcswidth: New file.
14281         * lib/wchar.in.h (wcswidth): New declaration.
14282         * lib/wcswidth.c: New file.
14283         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14284         * m4/wcswidth.m4: New file.
14285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14287         REPLACE_WCSWIDTH.
14288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14289         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14290         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14291         * doc/posix-functions/wcswidth.texi: Mention the new module.
14292
14293 2011-02-06  Bruno Haible  <bruno@clisp.org>
14294
14295         New module 'wcstok'.
14296         * modules/wcstok: New file.
14297         * lib/wchar.in.h (wcstok): New declaration.
14298         * lib/wcstok.c: New file.
14299         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14300         * m4/wcstok.m4: New file.
14301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14304         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14305         * doc/posix-functions/wcstok.texi: Mention the new module.
14306
14307 2011-02-06  Bruno Haible  <bruno@clisp.org>
14308
14309         New module 'wcsstr'.
14310         * modules/wcsstr: New file.
14311         * lib/wchar.in.h (wcsstr): New declaration.
14312         * lib/wcsstr.c: New file.
14313         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14314         * m4/wcsstr.m4: New file.
14315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14318         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14319         * doc/posix-functions/wcsstr.texi: Mention the new module.
14320
14321 2011-02-06  Bruno Haible  <bruno@clisp.org>
14322
14323         New module 'wcspbrk'.
14324         * modules/wcspbrk: New file.
14325         * lib/wchar.in.h (wcspbrk): New declaration.
14326         * lib/wcspbrk.c: New file.
14327         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14328         * m4/wcspbrk.m4: New file.
14329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14332         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14333         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14334
14335 2011-02-06  Bruno Haible  <bruno@clisp.org>
14336
14337         New module 'wcsspn'.
14338         * modules/wcsspn: New file.
14339         * lib/wchar.in.h (wcsspn): New declaration.
14340         * lib/wcsspn.c: New file.
14341         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14342         * m4/wcsspn.m4: New file.
14343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14346         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14347         * doc/posix-functions/wcsspn.texi: Mention the new module.
14348
14349 2011-02-06  Bruno Haible  <bruno@clisp.org>
14350
14351         New module 'wcscspn'.
14352         * modules/wcscspn: New file.
14353         * lib/wchar.in.h (wcscspn): New declaration.
14354         * lib/wcscspn.c: New file.
14355         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14356         * m4/wcscspn.m4: New file.
14357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14360         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14361         * doc/posix-functions/wcscspn.texi: Mention the new module.
14362
14363 2011-02-06  Bruno Haible  <bruno@clisp.org>
14364
14365         New module 'wcsrchr'.
14366         * modules/wcsrchr: New file.
14367         * lib/wchar.in.h (wcsrchr): New declaration.
14368         * lib/wcsrchr.c: New file.
14369         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14370         * m4/wcsrchr.m4: New file.
14371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14374         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14375         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14376
14377 2011-02-06  Bruno Haible  <bruno@clisp.org>
14378
14379         New module 'wcschr'.
14380         * modules/wcschr: New file.
14381         * lib/wchar.in.h (wcschr): New declaration.
14382         * lib/wcschr.c: New file.
14383         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14384         * m4/wcschr.m4: New file.
14385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14388         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14389         * doc/posix-functions/wcschr.texi: Mention the new module.
14390
14391 2011-02-06  Bruno Haible  <bruno@clisp.org>
14392
14393         New module 'wcsdup'.
14394         * modules/wcsdup: New file.
14395         * lib/wchar.in.h (wcsdup): New declaration.
14396         * lib/wcsdup.c: New file.
14397         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14398         * m4/wcsdup.m4: New file.
14399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14402         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14403         * doc/posix-functions/wcsdup.texi: Mention the new module.
14404
14405 2011-02-06  Bruno Haible  <bruno@clisp.org>
14406
14407         New module 'wcsxfrm'.
14408         * modules/wcsxfrm: New file.
14409         * lib/wchar.in.h (wcsxfrm): New declaration.
14410         * lib/wcsxfrm.c: New file.
14411         * lib/wcsxfrm-impl.h: New file.
14412         * m4/wcsxfrm.m4: New file.
14413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14416         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14417         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14418
14419 2011-02-06  Bruno Haible  <bruno@clisp.org>
14420
14421         New module 'wcscoll'.
14422         * modules/wcscoll: New file.
14423         * lib/wchar.in.h (wcscoll): New declaration.
14424         * lib/wcscoll.c: New file.
14425         * lib/wcscoll-impl.h: New file.
14426         * m4/wcscoll.m4: New file.
14427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14430         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14431         * doc/posix-functions/wcscoll.texi: Mention the new module.
14432
14433 2011-02-06  Bruno Haible  <bruno@clisp.org>
14434
14435         New module 'wcsncasecmp'.
14436         * modules/wcsncasecmp: New file.
14437         * lib/wchar.in.h (wcsncasecmp): New declaration.
14438         * lib/wcsncasecmp.c: New file.
14439         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14440         * m4/wcsncasecmp.m4: New file.
14441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14444         HAVE_WCSNCASECMP.
14445         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14446         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14447
14448 2011-02-06  Bruno Haible  <bruno@clisp.org>
14449
14450         New module 'wcscasecmp'.
14451         * modules/wcscasecmp: New file.
14452         * lib/wchar.in.h (wcscasecmp): New declaration.
14453         * lib/wcscasecmp.c: New file.
14454         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14455         * m4/wcscasecmp.m4: New file.
14456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14459         HAVE_WCSCASECMP.
14460         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14461         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14462
14463 2011-02-05  Bruno Haible  <bruno@clisp.org>
14464
14465         New module 'wcsncmp'.
14466         * modules/wcsncmp: New file.
14467         * lib/wchar.in.h (wcsncmp): New declaration.
14468         * lib/wcsncmp.c: New file.
14469         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14470         * m4/wcsncmp.m4: New file.
14471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14474         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14475         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14476
14477 2011-02-05  Bruno Haible  <bruno@clisp.org>
14478
14479         New module 'wcscmp'.
14480         * modules/wcscmp: New file.
14481         * lib/wchar.in.h (wcscmp): New declaration.
14482         * lib/wcscmp.c: New file.
14483         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14484         * m4/wcscmp.m4: New file.
14485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14488         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14489         * doc/posix-functions/wcscmp.texi: Mention the new module.
14490
14491 2011-02-05  Bruno Haible  <bruno@clisp.org>
14492
14493         New module 'wcsncat'.
14494         * modules/wcsncat: New file.
14495         * lib/wchar.in.h (wcsncat): New declaration.
14496         * lib/wcsncat.c: New file.
14497         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14498         * m4/wcsncat.m4: New file.
14499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14502         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14503         * doc/posix-functions/wcsncat.texi: Mention the new module.
14504
14505 2011-02-05  Bruno Haible  <bruno@clisp.org>
14506
14507         New module 'wcscat'.
14508         * modules/wcscat: New file.
14509         * lib/wchar.in.h (wcscat): New declaration.
14510         * lib/wcscat.c: New file.
14511         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14512         * m4/wcscat.m4: New file.
14513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14516         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14517         * doc/posix-functions/wcscat.texi: Mention the new module.
14518
14519 2011-02-05  Bruno Haible  <bruno@clisp.org>
14520
14521         New module 'wcpncpy'.
14522         * modules/wcpncpy: New file.
14523         * lib/wchar.in.h (wcpncpy): New declaration.
14524         * lib/wcpncpy.c: New file.
14525         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14526         * m4/wcpncpy.m4: New file.
14527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14529         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14530         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14531         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14532
14533 2011-02-05  Bruno Haible  <bruno@clisp.org>
14534
14535         New module 'wcsncpy'.
14536         * modules/wcsncpy: New file.
14537         * lib/wchar.in.h (wcsncpy): New declaration.
14538         * lib/wcsncpy.c: New file.
14539         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14540         * m4/wcsncpy.m4: New file.
14541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14544         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14545         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14546
14547 2011-02-05  Bruno Haible  <bruno@clisp.org>
14548
14549         New module 'wcpcpy'.
14550         * modules/wcpcpy: New file.
14551         * lib/wchar.in.h (wcpcpy): New declaration.
14552         * lib/wcpcpy.c: New file.
14553         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14554         * m4/wcpcpy.m4: New file.
14555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14557         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14558         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14559         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14560
14561 2011-02-05  Bruno Haible  <bruno@clisp.org>
14562
14563         New module 'wcscpy'.
14564         * modules/wcscpy: New file.
14565         * lib/wchar.in.h (wcscpy): New declaration.
14566         * lib/wcscpy.c: New file.
14567         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14568         * m4/wcscpy.m4: New file.
14569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14572         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14573         * doc/posix-functions/wcscpy.texi: Mention the new module.
14574
14575 2011-02-05  Bruno Haible  <bruno@clisp.org>
14576
14577         New module 'wcsnlen'.
14578         * modules/wcsnlen: New file.
14579         * lib/wchar.in.h (wcsnlen): New declaration.
14580         * lib/wcsnlen.c: New file.
14581         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14582         * m4/wcsnlen.m4: New file.
14583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14586         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14587         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14588
14589 2011-02-05  Bruno Haible  <bruno@clisp.org>
14590
14591         New module 'wcslen'.
14592         * modules/wcslen: New file.
14593         * lib/wchar.in.h (wcslen): New declaration.
14594         * lib/wcslen.c: New file.
14595         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14596         * m4/wcslen.m4: New file.
14597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14600         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14601         * doc/posix-functions/wcslen.texi: Mention the new module.
14602
14603 2011-02-05  Bruno Haible  <bruno@clisp.org>
14604
14605         New module 'wmemset'.
14606         * modules/wmemset: New file.
14607         * lib/wchar.in.h (wmemset): New declaration.
14608         * lib/wmemset.c: New file.
14609         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14610         * m4/wmemset.m4: New file.
14611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14613         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14614         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14615         * doc/posix-functions/wmemset.texi: Mention the new module.
14616
14617 2011-02-05  Bruno Haible  <bruno@clisp.org>
14618
14619         New module 'wmemmove'.
14620         * modules/wmemmove: New file.
14621         * lib/wchar.in.h (wmemmove): New declaration.
14622         * lib/wmemmove.c: New file.
14623         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14624         * m4/wmemmove.m4: New file.
14625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14627         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14628         HAVE_WMEMMOVE.
14629         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14630         * doc/posix-functions/wmemmove.texi: Mention the new module.
14631
14632 2011-02-05  Bruno Haible  <bruno@clisp.org>
14633
14634         New module 'wmemcpy'.
14635         * modules/wmemcpy: New file.
14636         * lib/wchar.in.h (wmemcpy): New declaration.
14637         * lib/wmemcpy.c: New file.
14638         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14639         * m4/wmemcpy.m4: New file.
14640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14642         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14643         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14644         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14645
14646 2011-02-05  Bruno Haible  <bruno@clisp.org>
14647
14648         New module 'wmemcmp'.
14649         * modules/wmemcmp: New file.
14650         * lib/wchar.in.h (wmemcmp): New declaration.
14651         * lib/wmemcmp.c: New file.
14652         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14653         * m4/wmemcmp.m4: New file.
14654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14656         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14657         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14658         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14659
14660 2011-02-07  Jim Meyering  <meyering@redhat.com>
14661
14662         di-set, ino-map: new modules, from coreutils
14663         * lib/di-set.c: New file.
14664         * lib/di-set.h: Likewise.
14665         * lib/ino-map.c: Likewise.
14666         * lib/ino-map.h: Likewise.
14667         * modules/di-set: Likewise.
14668         * modules/di-set-tests: Likewise.
14669         * modules/ino-map: Likewise.
14670         * modules/ino-map-tests: Likewise.
14671         * tests/test-di-set.c: Likewise.
14672         * tests/test-ino-map.c: Likewise.
14673
14674 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         getloadavg: merge minor changes from Emacs
14677
14678         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14679         (getloadavg): Use memset, not bzero.
14680
14681         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14682         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14683         clash (bug#86).
14684
14685 2010-11-14  Bruno Haible  <bruno@clisp.org>
14686
14687         Allow multiple gnulib generated replacements to coexist.
14688         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14689         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14690         * lib/langinfo.in.h (nl_item): Likewise.
14691         * lib/math.in.h (_NaN, NAN): Likewise.
14692         * lib/netdb.in.h (struct addrinfo): Likewise.
14693         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14694         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14695         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14696         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14697         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14698         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14699         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14700         pthread_mutexattr_init, pthread_mutexattr_settype,
14701         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14702         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14703         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14704         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14705         * lib/sched.in.h (struct sched_param): Likewise.
14706         * lib/se-selinux.in.h (security_class_t, security_context_t,
14707         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14708         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14709         lsetfilecon, fsetfilecon, security_check_context,
14710         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14711         Likewise.
14712         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14713         Likewise.
14714         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14715         _gl_function_taking_int_returning_void_t, union sigval,
14716         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14717         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14718         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14719         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14720         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14721         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14722         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14723         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14724         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14725         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14726         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14727         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14728         socklen_t, rpl_fd_isset): Likewise.
14729         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14730         * lib/sys_time.in.h (struct timeval): Likewise.
14731         * lib/sys_times.in.h (struct tms): Likewise.
14732         * lib/sys_utsname.in.h (struct utsname):
14733         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14734         * lib/unistd.in.h (getpagesize): Likewise.
14735         * lib/wchar.in.h (mbstate_t): Likewise.
14736         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14737         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14738         towlower, towupper): Likewise.
14739         Reported by Sam Steingold <sds@gnu.org>.
14740
14741 2011-02-05  Eric Blake  <eblake@redhat.com>
14742
14743         unsetenv: work around Haiku issues
14744         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14745         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14746
14747 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14748
14749         libposix: avoid calling error() within libposix
14750         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14751         is defined.
14752
14753 2011-02-05  Eric Blake  <eblake@redhat.com>
14754
14755         strerror_r-posix: port to cygwin
14756         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14757         implementation.
14758         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14759         * tests/test-strerror_r.c (main): Fix test.
14760         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14761         issue.
14762
14763 2011-02-05  Bruno Haible  <bruno@clisp.org>
14764
14765         New module 'wmemchr'.
14766         * modules/wmemchr: New file.
14767         * lib/wchar.in.h (wmemchr): New declaration.
14768         * lib/wmemchr.c: New file.
14769         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14770         * m4/wmemchr.m4: New file.
14771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14774         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14775         * doc/posix-functions/wmemchr.texi: Mention the new module.
14776
14777 2011-02-04  Eric Blake  <eblake@redhat.com>
14778
14779         fdopendir: detect FreeBSD bug
14780         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14781         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14782
14783 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         stdbool: do not define HAVE_STDBOOL_H
14786         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14787         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14788         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14789         imported from the latest Autoconf git.  It was motivated by Emacs,
14790         which uses gnulib but does not need HAVE_STDBOOL_H.
14791
14792 2011-02-04  Bruno Haible  <bruno@clisp.org>
14793
14794         wcsnrtombs: Prepare for new module wwcsnrtombs.
14795         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14796         * lib/wcsnrtombs.c: Include it.
14797         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14798
14799         wcsrtombs: Prepare for new module wwcsrtombs.
14800         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14801         * lib/wcsrtombs.c: Include it.
14802         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14803
14804         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14805         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14806         * lib/mbsnrtowcs.c: Include it.
14807         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14808
14809         mbsrtowcs: Prepare for new module mbsrtowwcs.
14810         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14811         * lib/mbsrtowcs.c: Include it.
14812         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14813
14814 2011-02-04  Bruno Haible  <bruno@clisp.org>
14815
14816         vasnprintf: Reduce use of malloc for small format strings.
14817         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14818         (arguments): Add room for the first 7 arguments.
14819         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14820         (char_directives, u8_directives, u16_directives, u32_directives): Add
14821         room for the first 7 directives.
14822         * lib/printf-parse.c: Include <string.h>.
14823         (PRINTF_PARSE): Change memory handling code so that it uses the first
14824         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14825         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14826         Reported by Pádraig Brady <P@draigbrady.com>.
14827
14828 2011-01-31  Eric Blake  <eblake@redhat.com>
14829
14830         dup2: work around Haiku bug
14831         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14832         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14833         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14834         * tests/test-dup2.c (main): Enhance test.
14835
14836 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14837
14838         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14839         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14840         declared by eglibc 2.11.2.
14841         * lib/stdio.in.h: Likewise.
14842
14843 2011-01-31  Eric Blake  <eblake@redhat.com>
14844
14845         ignore-value: add missing test dependency
14846         * tests/test-ignore-value.c: Revert previous change; stdio.h
14847         provides off_t.
14848         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14849
14850 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         mktime: clarify long_int width checking
14853         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14854         the top level, to make it clearer that the assumption about
14855         long_int width is being checked.  See
14856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14857
14858 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14859
14860         ignore-value: Fix self-test.
14861         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14862
14863 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14864
14865         TYPE_MAXIMUM: avoid theoretically undefined behavior
14866         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14867         negative number, which the C Standard says has undefined behavior.
14868         In practice this is not a problem, but might as well do it by the book.
14869         Reported by Rich Felker and Eric Blake; see
14870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14871         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14872         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14874         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14875         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14876         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14877
14878         mktime: #undef mktime before #defining it
14879         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14880
14881         mktime: systematically normalize tm_isdst comparisons
14882         * lib/mktime.c (isdst_differ): New function.
14883         (__mktime_internal): Use it systematically for all isdst comparisons.
14884         This completes the fix for libc BZ #6723, and removes the need for
14885         normalizing tm_isdst.  See
14886         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14887         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14888
14889         mktime: fix some integer overflow issues and sidestep the rest
14890
14891         This was prompted by a bug report by Benjamin Lindner for MinGW
14892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14893         His bug is due to signed integer overflow (0 - INT_MIN), and I
14894         I scanned through mktime.c looking for other integer overflow
14895         problems, fixing all the bugs I found.
14896
14897         Although the C Standard says the resulting code is still not safe
14898         in the presence of integer overflow, in practice it should be good
14899         enough for all real-world two's-complement implementations, except
14900         for debugging environments that deliberately trap on integer
14901         overflow (e.g., gcc -ftrapv).
14902
14903         * lib/mktime.c (WRAPV): New macro.
14904         (SHR): Also check that long_int and time_t shift right in the
14905         usual way, before using the fast-but-unportable method.
14906         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14907         used.  The code already assumed two's complement, so there's
14908         no need to test for alternatives.  All uses removed.
14909         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14910         the C standard.  Problem reported by Rich Felker in
14911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14912         (twos_complement_arithmetic): Also check long_int and time_t.
14913         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14914         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14915         (__mktime_internal): Avoid integer overflow with unary subtraction
14916         in two instances where -1 - X is an adequate replacement for -X,
14917         since the calculations are approximate.
14918
14919 2011-01-29  Eric Blake  <eblake@redhat.com>
14920
14921         mktime: avoid infinite loop
14922         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14923         type; behavior is still undefined but portable to all known targets.
14924         Reported by Rich Felker.
14925
14926 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14927
14928         rename, unlink, same-inode: Relicense.
14929         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14930         * modules/unlink (License): Likewise.
14931         * modules/same-inode (License): Likewise.
14932
14933 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         mktime: avoid problems on NetBSD 5 / i386
14936         * lib/mktime.c (long_int): New type.  This works around a problem
14937         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14938         but time_t is 64 bits, and where I expect the existing code is
14939         wrong in some cases.
14940         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14941         (ydhms_diff): Bring back the compile-time check for wide-enough
14942         year and yday.
14943
14944         mktime: fix misspelling in comment
14945         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14946         This merges all recent glibc changes of importance.
14947
14948 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14949
14950         move-if-change: cope with concurrent mv of identical file.
14951         * build-aux/move-if-change (CMPPROG): Accept environment
14952         variable as an override for `cmp'.
14953         (usage): Document CMPPROG.
14954         Adjust comparison to drop stdout.  Cope with failure of mv if
14955         the target file exists and is identical to the source, for
14956         parallel builds.
14957         Report from H.J. Lu against binutils in PR binutils/12283.
14958
14959 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14960
14961         * users.txt: Mention sharutils.
14962
14963 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14964
14965         * users.txt: Mention OATH Toolkit.
14966
14967 2011-01-27  Bruno Haible  <bruno@clisp.org>
14968
14969         Prepare for supporting FreeBSD 10.
14970         * build-aux/config.libpath: Remove handling of freebsd1*.
14971
14972 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14973
14974         Prepare for supporting FreeBSD 10.
14975         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14976         match FreeBSD 10.0.
14977
14978 2011-01-27  Bruno Haible  <bruno@clisp.org>
14979
14980         vma-iter, get-rusage-as: Add OpenBSD support.
14981         * modules/vma-iter (configure.ac): Test for mquery.
14982         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14983         * lib/vma-iter.c: Include <sys/mman.h>.
14984         (vma_iterate): Add an implementation based on mquery().
14985         * lib/resource-ext.h (get_rusage_as): Update comments.
14986         * lib/get-rusage-as.c: Likewise.
14987         * lib/get-rusage-data.c: Likewise.
14988
14989 2011-01-26  Karl Berry  <karl@gnu.org>
14990
14991         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14992         variables to make it easier to override the makeinfo program used.
14993
14994 2011-01-26  Eric Blake  <eblake@redhat.com>
14995
14996         fcntl: work around Haiku F_DUPFD bugs
14997         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14998         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14999         cloexec bit on duplication.
15000         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15001
15002 2011-01-26  Bruno Haible  <bruno@clisp.org>
15003
15004         Enable memory leak tests on AIX.
15005         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15006         * tests/test-fprintf-posix3.c (main): Likewise.
15007
15008 2011-01-26  Bruno Haible  <bruno@clisp.org>
15009
15010         Tests for module 'get-rusage-data'.
15011         * modules/get-rusage-data-tests: New file.
15012         * tests/test-get-rusage-data.c: New file.
15013
15014         New module 'get-rusage-data'.
15015         * lib/resource-ext.h (get_rusage_data): New declaration.
15016         * lib/get-rusage-data.c: New file.
15017         * modules/get-rusage-data: New file.
15018
15019 2011-01-25  Bruno Haible  <bruno@clisp.org>
15020
15021         get-rusage-as: Allow for easier testing.
15022         * lib/resource-ext.h (get_rusage_as): Add comment.
15023         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15024         (main): New function for interactive testing.
15025
15026 2011-01-25  Bruno Haible  <bruno@clisp.org>
15027
15028         vma-iter: Treat Haiku like BeOS.
15029         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15030         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15031
15032 2011-01-25  Eric Blake  <eblake@redhat.com>
15033
15034         c-stack: fix regression on cygwin when libsigsegv is present
15035         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15036
15037 2011-01-24  Bruno Haible  <bruno@clisp.org>
15038
15039         vma-iter: Avoid empty intervals.
15040         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15041         on an empty interval.
15042
15043 2011-01-24  Jim Meyering  <meyering@redhat.com>
15044
15045         u64: remove unnecessary #include
15046         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15047
15048 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15049
15050         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15051         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15052
15053 2011-01-23  Bruno Haible  <bruno@clisp.org>
15054
15055         New module 'vma-iter'.
15056         * lib/vma-iter.h: New file.
15057         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15058         * modules/vma-iter: New file.
15059         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15060         for get_rusage_as_via_iterator.
15061         (vma_iterate_callback): New function.
15062         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15063         * modules/get-rusage-as (Depends-on): Add vma-iter.
15064
15065 2011-01-23  Bruno Haible  <bruno@clisp.org>
15066
15067         uninorm: Tweak includes.
15068         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15069         Reported by Jim Meyering.
15070
15071 2011-01-23  Bruno Haible  <bruno@clisp.org>
15072
15073         get-rusage-as: Improve on NetBSD.
15074         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15075         /proc, like on FreeBSD.
15076
15077 2011-01-23  Jim Meyering  <meyering@redhat.com>
15078
15079         xreadlink.h: remove unnecessary #include
15080         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15081
15082         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15083         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15084
15085 2011-01-23  Bruno Haible  <bruno@clisp.org>
15086
15087         get-rusage-as: Fix bug.
15088         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15089         original limit when aborting the first loop.
15090
15091 2011-01-23  Bruno Haible  <bruno@clisp.org>
15092
15093         wctype: Ensure valid C syntax.
15094         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15095         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15096
15097 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15101         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15102         as they are needed only for configure's test case.
15103         This removes two unnecessary symbols from config.h.
15104
15105         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15106         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15108         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15109         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15112         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15113         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15114         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15115         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15117         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15119         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15120         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15121         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15122         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15123
15124 2011-01-21  Eric Blake  <eblake@redhat.com>
15125
15126         maintainer-makefile: work with older git for submodule check
15127         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15128         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15129         Reported by Matthias Bolte.
15130
15131         bootstrap: minor portability fixes
15132         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15133         (usage): Omit leading capital and trailing . on help phrases, per
15134         GNU Coding Standards.
15135         (check_versions, top level): Prefix messages with script name.
15136
15137 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15138
15139         bootstrap: support --no-git option
15140         * build-aux/bootstrap: Add --no-git option, to be used when
15141         --gnulib-srcdir points to the exact desired checkout.
15142
15143 2011-01-21  Eric Blake  <eblake@redhat.com>
15144
15145         strerror_r-posix: work with glibc 2.13
15146         * lib/strerror_r.c (strerror_r): Fix return type.
15147
15148 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15149             Bruno Haible  <bruno@clisp.org>
15150
15151         uN_strstr: New unit tests.
15152         * modules/unistr/u8-strstr-tests: New file.
15153         * modules/unistr/u16-strstr-tests: New file.
15154         * modules/unistr/u32-strstr-tests: New file.
15155         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15156         * tests/unistr/test-u8-strstr.c: New file.
15157         * tests/unistr/test-u16-strstr.c: New file.
15158         * tests/unistr/test-u32-strstr.c: New file.
15159
15160 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15161             Bruno Haible  <bruno@clisp.org>
15162
15163         Make uN_strstr functions O(n) worst-case.
15164         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15165         16-bit and 32-bit unit cases, use the unibyte algorithm from
15166         lib/mbsstr.c.
15167         * lib/unistr/u8-strstr.c: Include <string.h>.
15168         (UNIT_IS_UINT8_T): New macro.
15169         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15170         (U_STRLEN, U_STRNLEN): New macros.
15171         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15172         (U_STRLEN, U_STRNLEN): New macros.
15173         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15174         (configure.ac): Update required libunistring version.
15175         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15176         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15177         malloca.
15178         (configure.ac): Update required libunistring version.
15179         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15180         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15181         malloca.
15182         (configure.ac): Update required libunistring version.
15183
15184 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15185             Bruno Haible  <bruno@clisp.org>
15186
15187         Prepare for faster uN_strstr functions.
15188         * lib/str-kmp.h: Support definable UNITs.
15189         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15190         needle_len argument.
15191         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15192         * lib/mbscasestr.c (mbscasestr): Likewise.
15193
15194 2011-01-21  Pádraig Brady <P@draigBrady.com>
15195
15196         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15197         * tests/test-malloca.c (main): Unset the environment variable
15198         to greatly speed up the test.
15199         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15200         * modules/malloca-tests: Depend on unsetenv.
15201
15202 2011-01-21  Pádraig Brady <P@draigBrady.com>
15203
15204         ignore-value: remove stdint dependency
15205         * lib/ignore-value.h: Remove <stdint.h>
15206         * modules/ignore-value: Remove stdint dependency.
15207
15208 2011-01-21  Jim Meyering  <meyering@redhat.com>
15209
15210         maint.mk: adjust variable name to be consistent with other gl_ vars
15211         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15212         to be lower case.
15213
15214 2011-01-20  Jim Meyering  <meyering@redhat.com>
15215
15216         maint.mk: make "check" depend on public-submodule-commit by default
15217         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15218
15219 2011-01-20  Bruno Haible  <bruno@clisp.org>
15220
15221         mbfile, mbiter: Complete change from 2008-12-21.
15222         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15223         * m4/mbiter.m4 (gl_MBITER): Likewise.
15224
15225 2011-01-20  Jim Meyering  <meyering@redhat.com>
15226
15227         init.sh: insert space between each function name and "()"
15228         * tests/init.sh: Make it a little easier to see that a function's
15229         name is "warn_", and not "warn" when looking at the first part of
15230         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15231
15232 2011-01-20  Jim Meyering  <meyering@redhat.com>
15233
15234         mountlist: clean up code formatting
15235         * lib/mountlist.c (read_file_system_list): Split a long line,
15236         correct bracing style, use NULL in place of "(struct statfs *)0",
15237         don't parenthesize return value, add spaces around "=" and after
15238         ";-in-for-stmt".
15239
15240 2011-01-14  Markus Duft <mduft@gentoo.org>
15241
15242         mountlist: add support for Interix
15243         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15244         Apply statvfs to all entries of /dev/fs.
15245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15246         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15247
15248 2011-01-20  Jim Meyering  <meyering@redhat.com>
15249
15250         maint.mk: improve the public-submodule-commit rule
15251         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15252         to suppress printing of its commands... unless V=1.
15253         Add git submodule's --quiet option to suppress printing of e.g.,
15254         "Entering gnulib" output.
15255         "cd" into $(srcdir) before running git submodule.
15256
15257 2011-01-20  Bruno Haible  <bruno@clisp.org>
15258
15259         include_next: Fix bug introduced on 2011-01-18.
15260         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15261         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15262         ac_cv_header_... variable if the second argument is not 'check'.
15263         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15264         gl_NEXT_HEADERS_INTERNAL.
15265
15266 2011-01-20  Bruno Haible  <bruno@clisp.org>
15267
15268         Allow the user to avoid the GNULIB_TEST_* macros.
15269         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15270         Suggested by Paul Eggert.
15271
15272 2011-01-14  Jim Meyering  <meyering@redhat.com>
15273
15274         bootstrap: avoid failure when there is no .gitmodules file
15275         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15276         has been assigned to, even when its value is the empty string.
15277         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15278         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15279         Reported by John W. Eaton <jwe@gnu.org>.
15280
15281 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15282
15283         assume <ctype.h>, ..., <time.h> exist
15284         For years gnulib has been assuming the existence of the headers
15285         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15286         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15287         them, since they don't appear to be needed.
15288         * README (Portability guidelines): Document this.
15289         * lib/flock.c: Assume <fcntl.h> exists.
15290         * lib/regex_internal.h: Assume <locale.h> exists.
15291         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15292         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15293         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15294         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15295         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15296         * m4/regex.m4 (gl_REGEX): Likewise.
15297         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15298         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15299         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15300         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15301         * tests/test-argp.c: Likewise.
15302         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15303
15304         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15305         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15306         AA_APPLE_UNIVERSAL_BUILD.  See
15307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15308         * NEWS: Document this.
15309
15310 2011-01-19  Eric Blake  <eblake@redhat.com>
15311
15312         c-stack: assume stack overflow if SA_SIGINFO unsupported
15313         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15314         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15315         sigaction will work.
15316         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15317         behavior match Linux.
15318         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15319
15320         stdbool-tests: accomodate Haiku
15321         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15322
15323         binary-io: fix O_TEXT on Haiku
15324         * modules/binary-io (Depends-on): Add fcntl-h.
15325         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15326         than blindly undefining O_TEXT.
15327         Reported by Scott McCreary.
15328
15329 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15330
15331         include_next: do not check for standard headers like stddef.h
15332
15333         I found this problem when modifying Emacs to use gnulib.
15334         I noticed that it added HAVE_STDDEF_H to config.h, even though
15335         gnulib always assumes <stddef.h> exists as per README and this
15336         symbol is unnecessary.
15337         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15338         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15339         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15340         faster for headers like stddef.h that are known to exist.
15341         (gl_CHECK_NEXT_HEADERS): Use it.
15342         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15343         rather than gl_CHECK_NEXT_HEADERS.
15344         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15345         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15346
15347 2011-01-18  Eric Blake  <eblake@redhat.com>
15348
15349         ansi-c++-opt: skip C++ dependency style if C++ is unused
15350         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15351         tests when we know C++ compilation is not desired.
15352         Reported by Scott McCreary.
15353
15354 2011-01-18  Bruno Haible  <bruno@clisp.org>
15355
15356         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15357         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15358         (main): Perform test also when getrlimit and setrlimit don't exist or
15359         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15360         limiting the address space size using setrlimit, compare the address
15361         space size before and after the the test.
15362         * tests/test-dprintf-posix2.c: Likewise.
15363         * tests/test-fprintf-posix3.sh: Update skip messages.
15364         * tests/test-dprintf-posix2.sh: Likewise.
15365         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15366         * modules/dprintf-posix-tests (Depends-on): Likewise.
15367         Reported by Bruce Korb <bkorb@gnu.org> and
15368         Gary V. Vaughan <gary@gnu.org>.
15369
15370 2011-01-18  Bruno Haible  <bruno@clisp.org>
15371
15372         get-rusage-as: Improvement for Cygwin.
15373         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15374         areas that are merely reserved.
15375
15376 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15377
15378         strftime: remove dependencies on multibyte modules
15379
15380         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15381         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15382         only if __osf__ is defined, and I suspect OSF doesn't need these
15383         other modules.  If my guess is wrong, we'll need to come up with a
15384         variant of strftime that doesn't need the multibyte modules.
15385
15386         I discovered this problem when attempting modify Emacs to use the
15387         strftime module.  With the previous gnulib, this caused Emacs to
15388         need 31 new files, ranging from lib/config.charset to
15389         m4/wint_t.m4.  This was overkill and I expect would be offputting
15390         to the Emacs maintainers.  After this change, only 6 new files are
15391         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15392         stdbool.m4, and tm_gmtoff.m4.
15393
15394         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15395         Suggested by Bruno Haible in
15396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15397         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15398         and do not check for wchar.h.
15399         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15400         (Depends-on): Remove mbrlen, mbsinit, wchar.
15401
15402 2011-01-18  Bruno Haible  <bruno@clisp.org>
15403
15404         Tests for module 'get-rusage-as'.
15405         * modules/get-rusage-as-tests: New file.
15406         * tests/test-get-rusage-as.c: New file.
15407
15408         New module 'get-rusage-as'.
15409         * modules/get-rusage-as: New file.
15410         * lib/resource-ext.h: New file.
15411         * lib/get-rusage-as.c: New file.
15412
15413 2011-01-17  Eric Blake  <eblake@redhat.com>
15414
15415         sigaction: relax license from LGPLv3+ to LGPLv2+
15416         * modules/sigaction (License): Relax to LGPLv2+.
15417
15418 2011-01-14  Bruno Haible  <bruno@clisp.org>
15419
15420         filemode: Make function declarations usable in C++ mode.
15421         * lib/filemode.h: Enclose function declarations in extern "C" block.
15422         Reported by John W. Eaton <jwe@gnu.org>.
15423
15424 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15425
15426         save-cwd: no longer include "xgetcwd.h"
15427         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15428         This avoids a compilation failure in projects that use save-cwd
15429         without also using the xgetcwd module.
15430
15431 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15432
15433         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15434         This is so that a program like Emacs, which needs only dtoastr,
15435         does not have to bother with distributing and compiling ftoastr
15436         and ldtoastr.
15437         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15438         * modules/dtoastr, modules/ldtoastr: New files.
15439         * modules/ftoastr: Now works just for 'float'.
15440         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15441         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15442         dtoastr.c, ldtoastr.c.
15443
15444 2011-01-11  Jim Meyering  <meyering@redhat.com>
15445
15446         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15447         There is no need to work around the lack of the fchdir function,
15448         since gnulib can now provide a replacement when required.
15449         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15450         * modules/save-cwd (Depends-on): Add fchdir.
15451
15452 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15453
15454         openat, save-cwd: avoid xmalloc
15455
15456         This removes a direct (but undocumented) dependency of openat on
15457         xalloc, along with an indirect dependency via save-cwd.  It also
15458         removes a dependency of save-cwd on xgetcwd, and thereby
15459         indirectly on xalloc.  This change causes the openat substitute
15460         to fall back on save_cwd when memory is tight, and for save_cwd to
15461         fail instead of dying when memory is tight, but that's good enough.
15462         Problem and initial idea for fix reported by Bastien Roucaries in
15463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15464
15465         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15466         xalloc.h (for xmalloc).
15467         (openat_proc_name): Use malloc, not xmalloc.
15468         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15469         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15470
15471         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15472         This avoids heap allocation for file names whose lengths are in
15473         the range 512..1023, with the upper bound increasing to at most
15474         4031 depending on the platform's PATH_MAX.  (We do not want
15475         pathmax.h here as it might supply a non-constant PATH_MAX.)
15476         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15477         Perhaps they should be moved to malloca.h?
15478         (OPENAT_BUFFER_SIZE): Use them.
15479
15480 2011-01-10  Bruno Haible  <bruno@clisp.org>
15481
15482         doc: Update users.txt.
15483         * users.txt: Add recutils.
15484
15485 2011-01-09  Karl Berry  <karl@gnu.org>
15486
15487         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15488
15489         * doc/configmake.texi: New file.
15490         * doc/gnulib.texi: Include it.
15491         * modules/configmake: Move documentation from here.
15492
15493 2011-01-09  Bruno Haible  <bruno@clisp.org>
15494
15495         Update to Unicode 6.0.0.
15496         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15497         (get_lbp): Update for Unicode 6.0.0.
15498         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15499         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15500         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15501         U+11001, U+11038..U+11046. Remove U+06DE.
15502         (uc_width): Fix bounds of planes.
15503         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15504         lib/uniwidth/width.c.
15505         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15506         trailing whitespace removed.
15507         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15508         without comments, but with the original copyright notice.
15509         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15510         * lib/unicase/ignorable.h: Likewise.
15511         * lib/unicase/tocasefold.h: Likewise.
15512         * lib/unicase/tolower.h: Likewise.
15513         * lib/unicase/totitle.h: Likewise.
15514         * lib/unicase/toupper.h: Likewise.
15515         * lib/unictype/bidi_of.h: Likewise.
15516         * lib/unictype/blocks.h: Likewise.
15517         * lib/unictype/categ_C.h: Likewise.
15518         * lib/unictype/categ_Cn.h: Likewise.
15519         * lib/unictype/categ_L.h: Likewise.
15520         * lib/unictype/categ_Ll.h: Likewise.
15521         * lib/unictype/categ_Lm.h: Likewise.
15522         * lib/unictype/categ_Lo.h: Likewise.
15523         * lib/unictype/categ_Lu.h: Likewise.
15524         * lib/unictype/categ_M.h: Likewise.
15525         * lib/unictype/categ_Mc.h: Likewise.
15526         * lib/unictype/categ_Me.h: Likewise.
15527         * lib/unictype/categ_Mn.h: Likewise.
15528         * lib/unictype/categ_N.h: Likewise.
15529         * lib/unictype/categ_Nd.h: Likewise.
15530         * lib/unictype/categ_No.h: Likewise.
15531         * lib/unictype/categ_P.h: Likewise.
15532         * lib/unictype/categ_Po.h: Likewise.
15533         * lib/unictype/categ_S.h: Likewise.
15534         * lib/unictype/categ_Sc.h: Likewise.
15535         * lib/unictype/categ_Sk.h: Likewise.
15536         * lib/unictype/categ_Sm.h: Likewise.
15537         * lib/unictype/categ_So.h: Likewise.
15538         * lib/unictype/categ_of.h: Likewise.
15539         * lib/unictype/combining.h: Likewise.
15540         * lib/unictype/ctype_alnum.h: Likewise.
15541         * lib/unictype/ctype_alpha.h: Likewise.
15542         * lib/unictype/ctype_graph.h: Likewise.
15543         * lib/unictype/ctype_lower.h: Likewise.
15544         * lib/unictype/ctype_print.h: Likewise.
15545         * lib/unictype/ctype_punct.h: Likewise.
15546         * lib/unictype/ctype_upper.h: Likewise.
15547         * lib/unictype/decdigit.h: Likewise.
15548         * lib/unictype/digit.h: Likewise.
15549         * lib/unictype/numeric.h: Likewise.
15550         * lib/unictype/pr_alphabetic.h: Likewise.
15551         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15552         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15553         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15554         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15555         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15556         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15557         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15558         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15559         * lib/unictype/pr_case_ignorable.h: Likewise.
15560         * lib/unictype/pr_cased.h: Likewise.
15561         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15562         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15563         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15564         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15565         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15566         * lib/unictype/pr_combining.h: Likewise.
15567         * lib/unictype/pr_composite.h: Likewise.
15568         * lib/unictype/pr_currency_symbol.h: Likewise.
15569         * lib/unictype/pr_decimal_digit.h: Likewise.
15570         * lib/unictype/pr_deprecated.h: Likewise.
15571         * lib/unictype/pr_format_control.h: Likewise.
15572         * lib/unictype/pr_grapheme_base.h: Likewise.
15573         * lib/unictype/pr_grapheme_extend.h: Likewise.
15574         * lib/unictype/pr_grapheme_link.h: Likewise.
15575         * lib/unictype/pr_id_continue.h: Likewise.
15576         * lib/unictype/pr_id_start.h: Likewise.
15577         * lib/unictype/pr_ideographic.h: Likewise.
15578         * lib/unictype/pr_lowercase.h: Likewise.
15579         * lib/unictype/pr_math.h: Likewise.
15580         * lib/unictype/pr_numeric.h: Likewise.
15581         * lib/unictype/pr_other_alphabetic.h: Likewise.
15582         * lib/unictype/pr_other_id_continue.h: Likewise.
15583         * lib/unictype/pr_other_math.h: Likewise.
15584         * lib/unictype/pr_punctuation.h: Likewise.
15585         * lib/unictype/pr_sentence_terminal.h: Likewise.
15586         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15587         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15588         * lib/unictype/pr_unified_ideograph.h: Likewise.
15589         * lib/unictype/pr_uppercase.h: Likewise.
15590         * lib/unictype/pr_xid_continue.h: Likewise.
15591         * lib/unictype/pr_xid_start.h: Likewise.
15592         * lib/unictype/scripts.h: Likewise.
15593         * lib/unictype/scripts_byname.gperf: Likewise.
15594         * lib/unictype/sy_java_ident.h: Likewise.
15595         * lib/unigbrk/gbrkprop.h: Likewise.
15596         * lib/unilbrk/lbrkprop1.h: Likewise.
15597         * lib/unilbrk/lbrkprop2.h: Likewise.
15598         * lib/uninorm/decomposition-table2.h: Likewise.
15599         * lib/uniwbrk/wbrkprop.h: Likewise.
15600         * tests/unicase/test-cased.c: Likewise.
15601         * tests/unicase/test-ignorable.c: Likewise.
15602         * tests/unicase/test-uc_tolower.c: Likewise.
15603         * tests/unicase/test-uc_totitle.c: Likewise.
15604         * tests/unicase/test-uc_toupper.c: Likewise.
15605         * tests/unictype/test-categ_C.c: Likewise.
15606         * tests/unictype/test-categ_Cn.c: Likewise.
15607         * tests/unictype/test-categ_L.c: Likewise.
15608         * tests/unictype/test-categ_Ll.c: Likewise.
15609         * tests/unictype/test-categ_Lm.c: Likewise.
15610         * tests/unictype/test-categ_Lo.c: Likewise.
15611         * tests/unictype/test-categ_Lu.c: Likewise.
15612         * tests/unictype/test-categ_M.c: Likewise.
15613         * tests/unictype/test-categ_Mc.c: Likewise.
15614         * tests/unictype/test-categ_Me.c: Likewise.
15615         * tests/unictype/test-categ_Mn.c: Likewise.
15616         * tests/unictype/test-categ_N.c: Likewise.
15617         * tests/unictype/test-categ_Nd.c: Likewise.
15618         * tests/unictype/test-categ_No.c: Likewise.
15619         * tests/unictype/test-categ_P.c: Likewise.
15620         * tests/unictype/test-categ_Po.c: Likewise.
15621         * tests/unictype/test-categ_S.c: Likewise.
15622         * tests/unictype/test-categ_Sc.c: Likewise.
15623         * tests/unictype/test-categ_Sk.c: Likewise.
15624         * tests/unictype/test-categ_Sm.c: Likewise.
15625         * tests/unictype/test-categ_So.c: Likewise.
15626         * tests/unictype/test-ctype_alnum.c: Likewise.
15627         * tests/unictype/test-ctype_alpha.c: Likewise.
15628         * tests/unictype/test-ctype_graph.c: Likewise.
15629         * tests/unictype/test-ctype_lower.c: Likewise.
15630         * tests/unictype/test-ctype_print.c: Likewise.
15631         * tests/unictype/test-ctype_punct.c: Likewise.
15632         * tests/unictype/test-ctype_upper.c: Likewise.
15633         * tests/unictype/test-decdigit.h: Likewise.
15634         * tests/unictype/test-digit.h: Likewise.
15635         * tests/unictype/test-numeric.h: Likewise.
15636         * tests/unictype/test-pr_alphabetic.c: Likewise.
15637         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15638         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15639         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15640         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15641         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15642         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15643         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15644         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15645         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15646         * tests/unictype/test-pr_cased.c: Likewise.
15647         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15648         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15649         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15650         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15651         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15652         * tests/unictype/test-pr_combining.c: Likewise.
15653         * tests/unictype/test-pr_composite.c: Likewise.
15654         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15655         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15656         * tests/unictype/test-pr_deprecated.c: Likewise.
15657         * tests/unictype/test-pr_format_control.c: Likewise.
15658         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15659         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15660         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15661         * tests/unictype/test-pr_id_continue.c: Likewise.
15662         * tests/unictype/test-pr_id_start.c: Likewise.
15663         * tests/unictype/test-pr_ideographic.c: Likewise.
15664         * tests/unictype/test-pr_lowercase.c: Likewise.
15665         * tests/unictype/test-pr_math.c: Likewise.
15666         * tests/unictype/test-pr_numeric.c: Likewise.
15667         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15668         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15669         * tests/unictype/test-pr_other_math.c: Likewise.
15670         * tests/unictype/test-pr_punctuation.c: Likewise.
15671         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15672         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15673         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15674         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15675         * tests/unictype/test-pr_uppercase.c: Likewise.
15676         * tests/unictype/test-pr_xid_continue.c: Likewise.
15677         * tests/unictype/test-pr_xid_start.c: Likewise.
15678         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15679         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15680         changes.
15681         * lib/unictype/categ_Cc.h: Likewise.
15682         * lib/unictype/categ_Cf.h: Likewise.
15683         * lib/unictype/categ_Co.h: Likewise.
15684         * lib/unictype/categ_Cs.h: Likewise.
15685         * lib/unictype/categ_Lt.h: Likewise.
15686         * lib/unictype/categ_Nl.h: Likewise.
15687         * lib/unictype/categ_Pc.h: Likewise.
15688         * lib/unictype/categ_Pd.h: Likewise.
15689         * lib/unictype/categ_Pe.h: Likewise.
15690         * lib/unictype/categ_Pf.h: Likewise.
15691         * lib/unictype/categ_Pi.h: Likewise.
15692         * lib/unictype/categ_Ps.h: Likewise.
15693         * lib/unictype/categ_Z.h: Likewise.
15694         * lib/unictype/categ_Zl.h: Likewise.
15695         * lib/unictype/categ_Zp.h: Likewise.
15696         * lib/unictype/categ_Zs.h: Likewise.
15697         * lib/unictype/ctype_blank.h: Likewise.
15698         * lib/unictype/ctype_cntrl.h: Likewise.
15699         * lib/unictype/ctype_digit.h: Likewise.
15700         * lib/unictype/ctype_space.h: Likewise.
15701         * lib/unictype/ctype_xdigit.h: Likewise.
15702         * lib/unictype/mirror.h: Likewise.
15703         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15704         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15705         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15706         * lib/unictype/pr_bidi_control.h: Likewise.
15707         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15708         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15709         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15710         * lib/unictype/pr_bidi_pdf.h: Likewise.
15711         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15712         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15713         * lib/unictype/pr_dash.h: Likewise.
15714         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15715         * lib/unictype/pr_diacritic.h: Likewise.
15716         * lib/unictype/pr_extender.h: Likewise.
15717         * lib/unictype/pr_hex_digit.h: Likewise.
15718         * lib/unictype/pr_hyphen.h: Likewise.
15719         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15720         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15721         * lib/unictype/pr_ignorable_control.h: Likewise.
15722         * lib/unictype/pr_iso_control.h: Likewise.
15723         * lib/unictype/pr_join_control.h: Likewise.
15724         * lib/unictype/pr_left_of_pair.h: Likewise.
15725         * lib/unictype/pr_line_separator.h: Likewise.
15726         * lib/unictype/pr_logical_order_exception.h: Likewise.
15727         * lib/unictype/pr_non_break.h: Likewise.
15728         * lib/unictype/pr_not_a_character.h: Likewise.
15729         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15730         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15731         * lib/unictype/pr_other_id_start.h: Likewise.
15732         * lib/unictype/pr_other_lowercase.h: Likewise.
15733         * lib/unictype/pr_other_uppercase.h: Likewise.
15734         * lib/unictype/pr_paired_punctuation.h: Likewise.
15735         * lib/unictype/pr_paragraph_separator.h: Likewise.
15736         * lib/unictype/pr_pattern_syntax.h: Likewise.
15737         * lib/unictype/pr_pattern_white_space.h: Likewise.
15738         * lib/unictype/pr_private_use.h: Likewise.
15739         * lib/unictype/pr_quotation_mark.h: Likewise.
15740         * lib/unictype/pr_radical.h: Likewise.
15741         * lib/unictype/pr_soft_dotted.h: Likewise.
15742         * lib/unictype/pr_space.h: Likewise.
15743         * lib/unictype/pr_titlecase.h: Likewise.
15744         * lib/unictype/pr_variation_selector.h: Likewise.
15745         * lib/unictype/pr_white_space.h: Likewise.
15746         * lib/unictype/pr_zero_width.h: Likewise.
15747         * lib/unictype/sy_c_ident.h: Likewise.
15748         * lib/unictype/sy_c_whitespace.h: Likewise.
15749         * lib/unictype/sy_java_whitespace.h: Likewise.
15750         * lib/uninorm/composition-table.gperf: Likewise.
15751         * lib/uninorm/decomposition-table1.h: Likewise.
15752         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15753         LB8.
15754         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15755         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15756         * modules/unictype/*: Bump version number of expected libunistring
15757         version.
15758
15759 2011-01-09  Bruno Haible  <bruno@clisp.org>
15760
15761         Update to Unicode 5.2.0.
15762         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15763         trailing whitespace removed.
15764
15765 2011-01-09  Bruno Haible  <bruno@clisp.org>
15766
15767         New Unicode character properties, from Unicode 5.2.0.
15768         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15769         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15770         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15771         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15772         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15773         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15774         uc_is_property_cased, uc_is_property_case_ignorable,
15775         uc_is_property_changes_when_lowercased,
15776         uc_is_property_changes_when_uppercased,
15777         uc_is_property_changes_when_titlecased,
15778         uc_is_property_changes_when_casefolded,
15779         uc_is_property_changes_when_casemapped): New declarations.
15780         * lib/unictype/pr_byname.gperf: Add the new properties.
15781         * modules/unictype/property-byname (Depends-on): Depend on the new
15782         properties modules.
15783         * modules/unictype/property-all (Depends-on): Likewise.
15784         * MODULES.html.sh (Unicode string functions): Add
15785         unictype/property-case-ignorable, unictype/property-cased,
15786         unictype/property-changes-when-casefolded,
15787         unictype/property-changes-when-casemapped,
15788         unictype/property-changes-when-lowercased,
15789         unictype/property-changes-when-titlecased,
15790         unictype/property-changes-when-uppercased.
15791
15792         New module 'unictype/property-changes-when-casemapped'.
15793         * modules/unictype/property-changes-when-casemapped: New file.
15794         * lib/unictype/pr_changes_when_casemapped.c: New file.
15795         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15796         generated by gen-uni-tables.
15797         * modules/unictype/property-changes-when-casemapped-tests: New file.
15798         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15799         automatically generated by gen-uni-tables.
15800
15801         New module 'unictype/property-changes-when-casefolded'.
15802         * modules/unictype/property-changes-when-casefolded: New file.
15803         * lib/unictype/pr_changes_when_casefolded.c: New file.
15804         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15805         generated by gen-uni-tables.
15806         * modules/unictype/property-changes-when-casefolded-tests: New file.
15807         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15808         automatically generated by gen-uni-tables.
15809
15810         New module 'unictype/property-changes-when-titlecased'.
15811         * modules/unictype/property-changes-when-titlecased: New file.
15812         * lib/unictype/pr_changes_when_titlecased.c: New file.
15813         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15814         generated by gen-uni-tables.
15815         * modules/unictype/property-changes-when-titlecased-tests: New file.
15816         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15817         automatically generated by gen-uni-tables.
15818
15819         New module 'unictype/property-changes-when-uppercased'.
15820         * modules/unictype/property-changes-when-uppercased: New file.
15821         * lib/unictype/pr_changes_when_uppercased.c: New file.
15822         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15823         generated by gen-uni-tables.
15824         * modules/unictype/property-changes-when-uppercased-tests: New file.
15825         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15826         automatically generated by gen-uni-tables.
15827
15828         New module 'unictype/property-changes-when-lowercased'.
15829         * modules/unictype/property-changes-when-lowercased: New file.
15830         * lib/unictype/pr_changes_when_lowercased.c: New file.
15831         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15832         generated by gen-uni-tables.
15833         * modules/unictype/property-changes-when-lowercased-tests: New file.
15834         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15835         automatically generated by gen-uni-tables.
15836
15837         New module 'unictype/property-case-ignorable'.
15838         * modules/unictype/property-case-ignorable: New file.
15839         * lib/unictype/pr_case_ignorable.c: New file.
15840         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15841         by gen-uni-tables.
15842         * modules/unictype/property-case-ignorable-tests: New file.
15843         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15844         generated by gen-uni-tables.
15845
15846         New module 'unictype/property-cased'.
15847         * modules/unictype/property-cased: New file.
15848         * lib/unictype/pr_cased.c: New file.
15849         * lib/unictype/pr_cased.h: New file, automatically generated by
15850         gen-uni-tables.
15851         * modules/unictype/property-cased-tests: New file.
15852         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15853         gen-uni-tables.
15854
15855 2011-01-09  Bruno Haible  <bruno@clisp.org>
15856
15857         Update to Unicode 5.2.0.
15858         * lib/gen-uni-tables.c (output_predicate, output_category,
15859         output_combclass, output_bidi_category, output_decimal_digit_test,
15860         output_decimal_digit, output_digit_test, output_digit,
15861         output_numeric_test, output_numeric, output_mirror, output_scripts,
15862         output_scripts_byname, output_blocks, output_ident_category): Fix
15863         comment header.
15864         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15865         get_wbp.
15866         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15867         items.
15868         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15869         Changes_When_Lowercased, Changes_When_Uppercased,
15870         Changes_When_Titlecased, Changes_When_Casefolded,
15871         Changes_When_Casemapped.
15872         (is_property_alphabetic, is_property_default_ignorable_code_point):
15873         Update for Unicode 5.2.0.
15874         (is_property_cased, is_property_case_ignorable,
15875         is_property_changes_when_lowercased,
15876         is_property_changes_when_uppercased,
15877         is_property_changes_when_titlecased,
15878         is_property_changes_when_casefolded,
15879         is_property_changes_when_casemapped): New functions.
15880         (output_properties): Output also the properties cased, case_ignorable,
15881         changes_when_lowercased, changes_when_uppercased,
15882         changes_when_titlecased, changes_when_casefolded,
15883         changes_when_casemapped.
15884         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15885         Unicode TR#11 revision 17 -> 19.
15886         (LBP_CP): New enumeration value.
15887         (LBP_*): Adjust values accordingly.
15888         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15889         TR#14 revision 22 -> 24.
15890         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15891         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15892         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15893         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15894         is_WBP_MIDLETTER.
15895         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15896         the code1 and code2 of each composition rule.
15897         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15898         * lib/unicase/ignorable.h: Likewise.
15899         * lib/unicase/tocasefold.h: Likewise.
15900         * lib/unicase/tolower.h: Likewise.
15901         * lib/unicase/totitle.h: Likewise.
15902         * lib/unicase/toupper.h: Likewise.
15903         * lib/unictype/bidi_of.h: Likewise.
15904         * lib/unictype/blocks.h: Likewise.
15905         * lib/unictype/categ_C.h: Likewise.
15906         * lib/unictype/categ_Cf.h: Likewise.
15907         * lib/unictype/categ_Cn.h: Likewise.
15908         * lib/unictype/categ_L.h: Likewise.
15909         * lib/unictype/categ_Ll.h: Likewise.
15910         * lib/unictype/categ_Lm.h: Likewise.
15911         * lib/unictype/categ_Lo.h: Likewise.
15912         * lib/unictype/categ_Lu.h: Likewise.
15913         * lib/unictype/categ_M.h: Likewise.
15914         * lib/unictype/categ_Mc.h: Likewise.
15915         * lib/unictype/categ_Mn.h: Likewise.
15916         * lib/unictype/categ_N.h: Likewise.
15917         * lib/unictype/categ_Nd.h: Likewise.
15918         * lib/unictype/categ_Nl.h: Likewise.
15919         * lib/unictype/categ_No.h: Likewise.
15920         * lib/unictype/categ_P.h: Likewise.
15921         * lib/unictype/categ_Pd.h: Likewise.
15922         * lib/unictype/categ_Po.h: Likewise.
15923         * lib/unictype/categ_S.h: Likewise.
15924         * lib/unictype/categ_Sc.h: Likewise.
15925         * lib/unictype/categ_So.h: Likewise.
15926         * lib/unictype/categ_of.h: Likewise.
15927         * lib/unictype/combining.h: Likewise.
15928         * lib/unictype/ctype_alnum.h: Likewise.
15929         * lib/unictype/ctype_alpha.h: Likewise.
15930         * lib/unictype/ctype_graph.h: Likewise.
15931         * lib/unictype/ctype_lower.h: Likewise.
15932         * lib/unictype/ctype_print.h: Likewise.
15933         * lib/unictype/ctype_punct.h: Likewise.
15934         * lib/unictype/ctype_upper.h: Likewise.
15935         * lib/unictype/decdigit.h: Likewise.
15936         * lib/unictype/digit.h: Likewise.
15937         * lib/unictype/numeric.h: Likewise.
15938         * lib/unictype/pr_alphabetic.h: Likewise.
15939         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15941         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15942         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15943         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15944         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15945         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15946         * lib/unictype/pr_combining.h: Likewise.
15947         * lib/unictype/pr_composite.h: Likewise.
15948         * lib/unictype/pr_currency_symbol.h: Likewise.
15949         * lib/unictype/pr_dash.h: Likewise.
15950         * lib/unictype/pr_decimal_digit.h: Likewise.
15951         * lib/unictype/pr_deprecated.h: Likewise.
15952         * lib/unictype/pr_diacritic.h: Likewise.
15953         * lib/unictype/pr_extender.h: Likewise.
15954         * lib/unictype/pr_grapheme_base.h: Likewise.
15955         * lib/unictype/pr_grapheme_extend.h: Likewise.
15956         * lib/unictype/pr_grapheme_link.h: Likewise.
15957         * lib/unictype/pr_id_continue.h: Likewise.
15958         * lib/unictype/pr_id_start.h: Likewise.
15959         * lib/unictype/pr_ideographic.h: Likewise.
15960         * lib/unictype/pr_ignorable_control.h: Likewise.
15961         * lib/unictype/pr_logical_order_exception.h: Likewise.
15962         * lib/unictype/pr_lowercase.h: Likewise.
15963         * lib/unictype/pr_numeric.h: Likewise.
15964         * lib/unictype/pr_other_alphabetic.h: Likewise.
15965         * lib/unictype/pr_punctuation.h: Likewise.
15966         * lib/unictype/pr_sentence_terminal.h: Likewise.
15967         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15968         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15969         * lib/unictype/pr_unified_ideograph.h: Likewise.
15970         * lib/unictype/pr_uppercase.h: Likewise.
15971         * lib/unictype/pr_xid_continue.h: Likewise.
15972         * lib/unictype/pr_xid_start.h: Likewise.
15973         * lib/unictype/pr_zero_width.h: Likewise.
15974         * lib/unictype/scripts.h: Likewise.
15975         * lib/unictype/scripts_byname.gperf: Likewise.
15976         * lib/unictype/sy_java_ident.h: Likewise.
15977         * lib/unigbrk/gbrkprop.h: Likewise.
15978         * lib/unilbrk/lbrkprop1.h: Likewise.
15979         * lib/unilbrk/lbrkprop2.h: Likewise.
15980         * lib/unilbrk/lbrktables.h: Likewise.
15981         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15982         LBP_CP. Implement rule LB30.
15983         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15984         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15985         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15986         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15987         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15988         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15989         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15990         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15991         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15992         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15993         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15994         bits instead of 16 bits in the code1 and code2 of each composition
15995         rule.
15996         (uc_composition): Update for Unicode 5.2.0.
15997         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15998         * lib/uninorm/decomposition-table2.h: Likewise.
15999         * lib/uniwbrk/wbrkprop.h: Likewise.
16000         * tests/unicase/test-cased.c: Likewise.
16001         * tests/unicase/test-ignorable.c: Likewise.
16002         * tests/unicase/test-uc_tolower.c: Likewise.
16003         * tests/unicase/test-uc_totitle.c: Likewise.
16004         * tests/unicase/test-uc_toupper.c: Likewise.
16005         * tests/unictype/test-categ_C.c: Likewise.
16006         * tests/unictype/test-categ_Cf.c: Likewise.
16007         * tests/unictype/test-categ_Cn.c: Likewise.
16008         * tests/unictype/test-categ_L.c: Likewise.
16009         * tests/unictype/test-categ_Ll.c: Likewise.
16010         * tests/unictype/test-categ_Lm.c: Likewise.
16011         * tests/unictype/test-categ_Lo.c: Likewise.
16012         * tests/unictype/test-categ_Lu.c: Likewise.
16013         * tests/unictype/test-categ_M.c: Likewise.
16014         * tests/unictype/test-categ_Mc.c: Likewise.
16015         * tests/unictype/test-categ_Mn.c: Likewise.
16016         * tests/unictype/test-categ_N.c: Likewise.
16017         * tests/unictype/test-categ_Nd.c: Likewise.
16018         * tests/unictype/test-categ_Nl.c: Likewise.
16019         * tests/unictype/test-categ_No.c: Likewise.
16020         * tests/unictype/test-categ_P.c: Likewise.
16021         * tests/unictype/test-categ_Pd.c: Likewise.
16022         * tests/unictype/test-categ_Po.c: Likewise.
16023         * tests/unictype/test-categ_S.c: Likewise.
16024         * tests/unictype/test-categ_Sc.c: Likewise.
16025         * tests/unictype/test-categ_So.c: Likewise.
16026         * tests/unictype/test-ctype_alnum.c: Likewise.
16027         * tests/unictype/test-ctype_alpha.c: Likewise.
16028         * tests/unictype/test-ctype_graph.c: Likewise.
16029         * tests/unictype/test-ctype_lower.c: Likewise.
16030         * tests/unictype/test-ctype_print.c: Likewise.
16031         * tests/unictype/test-ctype_punct.c: Likewise.
16032         * tests/unictype/test-ctype_upper.c: Likewise.
16033         * tests/unictype/test-decdigit.h: Likewise.
16034         * tests/unictype/test-digit.h: Likewise.
16035         * tests/unictype/test-numeric.h: Likewise.
16036         * tests/unictype/test-pr_alphabetic.c: Likewise.
16037         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16038         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16039         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16040         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16041         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16042         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16043         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16044         * tests/unictype/test-pr_combining.c: Likewise.
16045         * tests/unictype/test-pr_composite.c: Likewise.
16046         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16047         * tests/unictype/test-pr_dash.c: Likewise.
16048         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16049         * tests/unictype/test-pr_deprecated.c: Likewise.
16050         * tests/unictype/test-pr_diacritic.c: Likewise.
16051         * tests/unictype/test-pr_extender.c: Likewise.
16052         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16053         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16054         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16055         * tests/unictype/test-pr_id_continue.c: Likewise.
16056         * tests/unictype/test-pr_id_start.c: Likewise.
16057         * tests/unictype/test-pr_ideographic.c: Likewise.
16058         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16059         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16060         * tests/unictype/test-pr_lowercase.c: Likewise.
16061         * tests/unictype/test-pr_numeric.c: Likewise.
16062         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16063         * tests/unictype/test-pr_punctuation.c: Likewise.
16064         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16065         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16066         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16067         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16068         * tests/unictype/test-pr_uppercase.c: Likewise.
16069         * tests/unictype/test-pr_xid_continue.c: Likewise.
16070         * tests/unictype/test-pr_xid_start.c: Likewise.
16071         * tests/unictype/test-pr_zero_width.c: Likewise.
16072         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16073         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16074         changed behaviour: line breaking is now disallowed between a letter
16075         or '=' and '('.
16076         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16077         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16078         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16079         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16080         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16081         lib/uniwidth/width.c.
16082         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16083         without comments, but with the original copyright notice.
16084         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16085         changes.
16086         * lib/unictype/categ_Cc.h: Likewise.
16087         * lib/unictype/categ_Co.h: Likewise.
16088         * lib/unictype/categ_Cs.h: Likewise.
16089         * lib/unictype/categ_Lt.h: Likewise.
16090         * lib/unictype/categ_Me.h: Likewise.
16091         * lib/unictype/categ_Pc.h: Likewise.
16092         * lib/unictype/categ_Pe.h: Likewise.
16093         * lib/unictype/categ_Pf.h: Likewise.
16094         * lib/unictype/categ_Pi.h: Likewise.
16095         * lib/unictype/categ_Ps.h: Likewise.
16096         * lib/unictype/categ_Sk.h: Likewise.
16097         * lib/unictype/categ_Sm.h: Likewise.
16098         * lib/unictype/categ_Z.h: Likewise.
16099         * lib/unictype/categ_Zl.h: Likewise.
16100         * lib/unictype/categ_Zp.h: Likewise.
16101         * lib/unictype/categ_Zs.h: Likewise.
16102         * lib/unictype/ctype_blank.h: Likewise.
16103         * lib/unictype/ctype_cntrl.h: Likewise.
16104         * lib/unictype/ctype_digit.h: Likewise.
16105         * lib/unictype/ctype_space.h: Likewise.
16106         * lib/unictype/ctype_xdigit.h: Likewise.
16107         * lib/unictype/mirror.h: Likewise.
16108         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16109         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16110         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16111         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16112         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16113         * lib/unictype/pr_bidi_control.h: Likewise.
16114         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16115         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16116         * lib/unictype/pr_bidi_pdf.h: Likewise.
16117         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16118         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16119         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16120         * lib/unictype/pr_format_control.h: Likewise.
16121         * lib/unictype/pr_hex_digit.h: Likewise.
16122         * lib/unictype/pr_hyphen.h: Likewise.
16123         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16124         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16125         * lib/unictype/pr_iso_control.h: Likewise.
16126         * lib/unictype/pr_join_control.h: Likewise.
16127         * lib/unictype/pr_left_of_pair.h: Likewise.
16128         * lib/unictype/pr_line_separator.h: Likewise.
16129         * lib/unictype/pr_math.h: Likewise.
16130         * lib/unictype/pr_non_break.h: Likewise.
16131         * lib/unictype/pr_not_a_character.h: Likewise.
16132         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16133         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16134         * lib/unictype/pr_other_id_continue.h: Likewise.
16135         * lib/unictype/pr_other_id_start.h: Likewise.
16136         * lib/unictype/pr_other_lowercase.h: Likewise.
16137         * lib/unictype/pr_other_math.h: Likewise.
16138         * lib/unictype/pr_other_uppercase.h: Likewise.
16139         * lib/unictype/pr_paired_punctuation.h: Likewise.
16140         * lib/unictype/pr_paragraph_separator.h: Likewise.
16141         * lib/unictype/pr_pattern_syntax.h: Likewise.
16142         * lib/unictype/pr_pattern_white_space.h: Likewise.
16143         * lib/unictype/pr_private_use.h: Likewise.
16144         * lib/unictype/pr_quotation_mark.h: Likewise.
16145         * lib/unictype/pr_radical.h: Likewise.
16146         * lib/unictype/pr_soft_dotted.h: Likewise.
16147         * lib/unictype/pr_space.h: Likewise.
16148         * lib/unictype/pr_titlecase.h: Likewise.
16149         * lib/unictype/pr_variation_selector.h: Likewise.
16150         * lib/unictype/pr_white_space.h: Likewise.
16151         * lib/unictype/sy_c_ident.h: Likewise.
16152         * lib/unictype/sy_c_whitespace.h: Likewise.
16153         * lib/unictype/sy_java_whitespace.h: Likewise.
16154         * modules/uni*/*: Bump version number of expected libunistring version.
16155         Reported by Simon Josefsson.
16156
16157 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16158
16159         useless-if-before-free: fix typo in --help and make the internal,
16160         automatic version date update process work once again.
16161         --help output contained a NUL character instead of the
16162         backslash-zero that was intended.  Also, the "must lie within
16163         the first 8 lines" line is on line 9, and hence not getting
16164         automatically updated.
16165         * build-aux/useless-if-before-free: Fix the former by adding a
16166         backslash, and the latter by condensing the three lines of what-it-does
16167         to a single line, leaving one line of slack for the future.
16168
16169 2011-01-09  Bruno Haible  <bruno@clisp.org>
16170
16171         uniwidth/width: Fix width of U+1D173..U+1D17A.
16172         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16173         symbolic_width, output_width_property_test): New functions.
16174         (main): Invoke output_nonspacing_property, output_width_property_test.
16175         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16176         U+1D173..U+1D17A.
16177         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16178         1.
16179         * modules/uniwidth/*: Bump version number of expected libunistring
16180         version.
16181         * modules/unilbrk/*: Likewise.
16182
16183 2011-01-08  Bruno Haible  <bruno@clisp.org>
16184
16185         uninorm tests: Preserve copyright of Unicode data file.
16186         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16187         Mention modifications.
16188
16189 2011-01-08  Bruno Haible  <bruno@clisp.org>
16190
16191         gen-uni-tables: Prepare for Unicode 5.2.0.
16192         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16193         (debug_output_lbp, output_lbp): Update.
16194
16195 2011-01-08  Bruno Haible  <bruno@clisp.org>
16196
16197         unilbrk: Clarify gen-uni-tables.c code.
16198         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16199         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16200         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16201
16202 2011-01-07  Bruno Haible  <bruno@clisp.org>
16203
16204         strtod: Restore errno when successfully parsing Infinity or NaN.
16205         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16206         restore the original errno.
16207
16208 2011-01-07  Bruno Haible  <bruno@clisp.org>
16209
16210         remove test: Avoid failure on HP-UX 11.
16211         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16212
16213 2011-01-07  Bruno Haible  <bruno@clisp.org>
16214
16215         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16216         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16217         error code.
16218
16219 2011-01-07  Pádraig Brady <P@draigBrady.com>
16220
16221         ignore-value: fixup comments, and add Eric Blake
16222         as an author since he rewrote the macros.
16223         * lib/ignore-value.h (ignore_value):  State that
16224         we now support aggregates.  Also specify exactly
16225         when the GCC warn_unused_result feature was added.
16226
16227 2011-01-06  Eric Blake  <eblake@redhat.com>
16228
16229         ignore-value: support aggregate types
16230         * lib/ignore-value.h (ignore_value): Provide separate gcc
16231         definition.
16232         * modules/ignore-value-tests: New test module.
16233         * tests/test-ignore-value.c: New test.
16234
16235         maint.mk: improve sc_prohibit_strcmp regex
16236         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16237         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16238         definition of STRNEQ.
16239
16240         signal: work around Haiku issue with SIGBUS
16241         * lib/siglist.h: Add comment.
16242         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16243         strsignal's favoring of SIGSEGV.
16244         * tests/test-signal.c (main): Avoid test failure.
16245         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16246         Reported by Scott McCreary.
16247
16248         maint.mk: add pre-release check to ensure submodule commits are public
16249         * top/maint.mk (public-submodule-commit): New rule.
16250         (submodule-checks): New variable.
16251         (alpha beta stable): Depend on the variable.
16252
16253 2011-01-05  Pádraig Brady <P@draigBrady.com>
16254         and Jim Meyering  <meyering@redhat.com>
16255
16256         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16257         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16258         (ATTRIBUTE_DEPRECATED): Define.
16259         (_ignore_case): New function.
16260         (ignore_value): New macro, to replace the old function.
16261         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16262         * modules/ignore-value (Depends-on): Add stdint.
16263
16264 2011-01-04  Eric Blake  <eblake@redhat.com>
16265
16266         doc: regenerate INSTALL
16267         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16268         @firstparagraphindent support, now that autoconf dropped it.
16269         (INSTALL_PRELUDE): Reinstate old macro.
16270         * doc/install.texi: Resync from autoconf.
16271         * doc/INSTALL: Reflect recent autoconf update.
16272         * doc/INSTALL.ISO: Likewise.
16273         * doc/INSTALL.UTF-8: Likewise.
16274         Reported by Karl Berry.
16275
16276 2011-01-04  Bruce Korb  <address@hidden>
16277
16278         git-version-gen: avoid a sub-shell
16279         * build-aux/git-version-gen: Redirect stderr in `...` via
16280         "exec 2>...", rather than via an added sub-shell.
16281
16282 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16283
16284         git-version-gen: use (...) rather than sh -c '...'
16285         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16286         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16287
16288 2011-01-03  Jim Meyering  <meyering@redhat.com>
16289
16290         git-version-gen: convert leading TABs to spaces
16291         * build-aux/git-version-gen: Expand leading TABs.
16292
16293         git-version-gen: handle failed "git rev-list"
16294         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16295         from git and proceeding as if it had succeeded but printed no SHA1
16296         checksums, suppress the diagnostic and handle the failure.
16297         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16298
16299         git-version-gen: include command name in one more diagnostic
16300         * build-aux/git-version-gen: When the required .tarball-version file
16301         was missing or unreadable, you might see the diagnostic from "cat",
16302         but no trace of the name of the invoking script.  Now, you still see
16303         the diagnostic from cat, but also get one from "git-version-gen: ".
16304         Inspired by a patch from Bruce Korb.
16305
16306         update-copyright: adjust test to match changed code
16307         * tests/test-update-copyright.sh: Change test's expected output
16308         to match new actual output.
16309
16310 2011-01-02  Bruno Haible  <bruno@clisp.org>
16311
16312         getlogin_r: Avoid test failure on HP-UX 11.
16313         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16314         ERANGE when the second argument is zero.
16315         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16316         portability problem.
16317
16318 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16319
16320         * build-aux/update-copyright: doc Simon's changes
16321
16322 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16323
16324         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16325         environment variable.
16326
16327 2011-01-02  Bruno Haible  <bruno@clisp.org>
16328
16329         unigbrk: Avoid gcc warnings.
16330         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16331         unused variable.
16332         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16333         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16334         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16335         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16336         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16337         Change type of first argument to 'const char *'.
16338         (main): Remove unused variable.
16339         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16340         type of first argument to 'const char *'.
16341         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16342         Likewise.
16343         (main): Change type of variable 's'.
16344         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16345         to 'int'.
16346
16347 2011-01-02  Bruno Haible  <bruno@clisp.org>
16348
16349         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16350         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16351         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16352         bug.
16353         * lib/pwrite.c: Undo 2010-12-31 patch.
16354         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16355
16356 2011-01-02  Bruno Haible  <bruno@clisp.org>
16357
16358         pread: Fix test whether it works.
16359         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16360
16361 2011-01-02  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16364         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16365         ends in "6". Don't require a specific month name. Try also the locale
16366         names found on HP-UX 11 and Solaris 7.
16367
16368 2011-01-02  Bruno Haible  <bruno@clisp.org>
16369
16370         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16371         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16372         C linkage.
16373         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16374
16375 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16376
16377         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16378         for consistency, since the "cluster" term is not used elsewhere.
16379         * lib/unigbrk.in.h: Update name.
16380         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16381         * lib/unigbrk/u16-grapheme-next.c: Update name.
16382         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16383         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16384         * lib/unigbrk/u32-grapheme-next.c: Update name.
16385         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16386         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16387         * lib/unigbrk/u8-grapheme-next.c: Update name.
16388         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16389         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16390         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16391         Suggested by Bruno Haible.
16392
16393 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16394
16395         Remove module 'u8-grapheme-len' as too redundant with
16396         'u8-grapheme-next'.
16397         * modules/unigbrk/u8-grapheme-len: Delete file.
16398         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16399         * lib/unigbrk.in.h: Remove prototype for deleted function.
16400         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16401         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16402
16403         Remove module 'u16-grapheme-len' as too redundant with
16404         'u16-grapheme-next'.
16405         * modules/unigbrk/u16-grapheme-len: Delete file.
16406         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16407         * lib/unigbrk.in.h: Remove prototype for deleted function.
16408         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16409         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16410
16411         Remove module 'u32-grapheme-len' as too redundant with
16412         'u32-grapheme-next'.
16413         * modules/unigbrk/u32-grapheme-len: Delete file.
16414         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16415         * lib/unigbrk.in.h: Remove prototype for deleted function.
16416         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16417         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16418
16419         Suggested by Bruno Haible.
16420
16421 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16422
16423         * unigbrk.in.h: Fix typo: "ben" => "been".
16424         Reported by Bruno Haible.
16425
16426 2011-01-01  Jim Meyering  <meyering@redhat.com>
16427
16428         maint: update almost all copyright ranges to include 2011
16429         Run the new "make update-copyright" rule.
16430
16431 2011-01-01  Jim Meyering  <meyering@redhat.com>
16432
16433         maint: update-copyright: exempt doc/INSTALL*
16434         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16435         since they are generated.  Suggested by Bruno Haible.
16436
16437 2011-01-01  Jim Meyering  <meyering@redhat.com>
16438
16439         maint: refine the update-copyright rule
16440         * Makefile (update-copyright): Also exclude any file that includes
16441         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16442         code that merely generates the comment.
16443
16444 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16445
16446         New module 'u8-grapheme-len'.
16447         * modules/unigbrk/u8-grapheme-len: New file.
16448         * modules/unigbrk/u8-grapheme-len-tests: New file.
16449         * lib/unigbrk.in.h: Add prototype for new function.
16450         * lib/unigbrk/u8-grapheme-len.c: New file.
16451         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16452
16453         New module 'u16-grapheme-len'.
16454         * modules/unigbrk/u16-grapheme-len: New file.
16455         * modules/unigbrk/u16-grapheme-len-tests: New file.
16456         * lib/unigbrk.in.h: Add prototype for new function.
16457         * lib/unigbrk/u16-grapheme-len.c: New file.
16458         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16459
16460         New module 'u32-grapheme-len'.
16461         * modules/unigbrk/u32-grapheme-len: New file.
16462         * modules/unigbrk/u32-grapheme-len-tests: New file.
16463         * lib/unigbrk.in.h: Add prototype for new function.
16464         * lib/unigbrk/u32-grapheme-len.c: New file.
16465         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16466
16467         New module 'u8-grapheme-next'.
16468         * modules/unigbrk/u8-grapheme-next: New file.
16469         * modules/unigbrk/u8-grapheme-next-tests: New file.
16470         * lib/unigbrk.in.h: Add prototype for new function.
16471         * lib/unigbrk/u8-grapheme-next.c: New file.
16472         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16473
16474         New module 'u16-grapheme-next'.
16475         * modules/unigbrk/u16-grapheme-next: New file.
16476         * modules/unigbrk/u16-grapheme-next-tests: New file.
16477         * lib/unigbrk.in.h: Add prototype for new function.
16478         * lib/unigbrk/u16-grapheme-next.c: New file.
16479         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16480
16481         New module 'u32-grapheme-next'.
16482         * modules/unigbrk/u32-grapheme-next: New file.
16483         * modules/unigbrk/u32-grapheme-next-tests: New file.
16484         * lib/unigbrk.in.h: Add prototype for new function.
16485         * lib/unigbrk/u32-grapheme-next.c: New file.
16486         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16487
16488         New module 'u8-grapheme-prev'.
16489         * modules/unigbrk/u8-grapheme-prev: New file.
16490         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16491         * lib/unigbrk.in.h: Add prototype for new function.
16492         * lib/unigbrk/u8-grapheme-prev.c: New file.
16493         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16494
16495         New module 'u16-grapheme-prev'.
16496         * modules/unigbrk/u16-grapheme-prev: New file.
16497         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16498         * lib/unigbrk.in.h: Add prototype for new function.
16499         * lib/unigbrk/u16-grapheme-prev.c: New file.
16500         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16501
16502         New module 'u32-grapheme-prev'.
16503         * modules/unigbrk/u32-grapheme-prev: New file.
16504         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16505         * lib/unigbrk.in.h: Add prototype for new function.
16506         * lib/unigbrk/u32-grapheme-prev.c: New file.
16507         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16508
16509         New module 'u8-grapheme-breaks'.
16510         * modules/unigbrk/u8-grapheme-breaks: New file.
16511         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16512         * lib/unigbrk.in.h: Add prototype for new function.
16513         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16514         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16515
16516         New module 'u16-grapheme-breaks'.
16517         * modules/unigbrk/u16-grapheme-breaks: New file.
16518         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16519         * lib/unigbrk.in.h: Add prototype for new function.
16520         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16521         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16522
16523         New module 'u32-grapheme-breaks'.
16524         * modules/unigbrk/u32-grapheme-breaks: New file.
16525         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16526         * lib/unigbrk.in.h: Add prototype for new function.
16527         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16528         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16529
16530         New module 'ulc-grapheme-breaks'.
16531         * modules/unigbrk/ulc-grapheme-breaks: New file.
16532         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16533         * m4/locale-ar.m4: New file.
16534         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16535         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16536         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16537
16538 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16539
16540         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16541         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16542         modified how this file was generated before I initially submitted
16543         the module, but failed to regenerate it.  This meant that several
16544         of the level2 entries were wrong.
16545         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16546         Remove the division-by-2 that is folded into the table now that
16547         gbrkprop.h has been regenerated properly.  Now -1 entries are
16548         handled correctly.
16549
16550         New module 'unigbrk/uc-gbrk-prop-tests'.
16551         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16552         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16553         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16554         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16555
16556 2011-01-01  Bruno Haible  <bruno@clisp.org>
16557
16558         Avoid use of hexadecimal escapes.
16559         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16560         instead of hexadecimal escapes.
16561
16562 2011-01-01  Jim Meyering  <meyering@redhat.com>
16563
16564         maint: new rule to update copyright year ranges
16565         * Makefile (update-copyright): New rule.
16566
16567         maint: indent with TABs in Makefile
16568         * Makefile: Expand leading sequences of spaces to TABs
16569
16570         version-etc: update the copyright year it reports
16571         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16572
16573 2010-12-31  Bruno Haible  <bruno@clisp.org>
16574
16575         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16576         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16577         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16578         zero.
16579
16580 2010-12-31  Bruno Haible  <bruno@clisp.org>
16581
16582         pwrite: Work around HP-UX 11.11 bug.
16583         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16584         works and set REPLACE_PWRITE if not.
16585         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16586         function.
16587         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16588
16589 2010-12-31  Bruno Haible  <bruno@clisp.org>
16590
16591         pread: Work around HP-UX 11 bugs.
16592         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16593         and set REPLACE_PREAD if not.
16594         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16595
16596 2010-12-31  Eric Blake  <eblake@redhat.com>
16597
16598         nl_langinfo: fix YESEXPR on Irix 6.5
16599         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16600         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16601         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16602         it.
16603
16604 2010-12-31  Bruno Haible  <bruno@clisp.org>
16605
16606         iconv: Document HP-UX 11 bug.
16607         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16608
16609 2010-12-31  Bruno Haible  <bruno@clisp.org>
16610
16611         ldexpl: Fix link error on HP-UX 11.
16612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16613         LDEXPL_LIBM, using $ISNANL_LIBM.
16614
16615 2010-12-31  Eric Blake  <eblake@redhat.com>
16616
16617         ftello: avoid compilation failure with SunStudio c89
16618         * lib/ftello.c (ftello): Use lseek, not llseek.
16619
16620         tests: avoid failing coreutils tests on cygwin
16621         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16622         (create_exe_shims_): Return 0 when skipping.
16623
16624 2010-12-31  Bruno Haible  <bruno@clisp.org>
16625
16626         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16627         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16628
16629 2010-12-31  Bruno Haible  <bruno@clisp.org>
16630
16631         waitpid: Fix link error in C++ mode.
16632         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16633
16634 2010-12-31  Bruno Haible  <bruno@clisp.org>
16635
16636         isnan: Use GCC built-ins when possible.
16637         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16638         __builtin_isnan.
16639         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16640         (isnan): Define using GCC built-ins for GCC >= 4.0.
16641
16642 2010-12-31  Bruno Haible  <bruno@clisp.org>
16643
16644         isnand: Fix mistake.
16645         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16646         __builtin_isnand.
16647
16648 2010-12-31  Bruno Haible  <bruno@clisp.org>
16649
16650         open: Avoid C++ error on HP-UX 11.
16651         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16652
16653 2010-12-31  Bruno Haible  <bruno@clisp.org>
16654
16655         time_r: Add missing declarations on HP-UX 11.
16656         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16657         instead of HAVE_LOCALTIME_R.
16658         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16659         HAVE_LOCALTIME_R always.
16660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16661         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16662         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16663         HAVE_LOCALTIME_R.
16664         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16665         * doc/posix-functions/localtime_r.texi: Likewise.
16666
16667 2010-12-29  Eric Blake  <eblake@redhat.com>
16668
16669         mountlist: tweak previous commit
16670         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16671         Reported by Paul Eggert.
16672
16673         mountlist: fix local drive detection on cygwin
16674         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16675         that works for cygwin.
16676
16677 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16678
16679         ftoastr, snprintf: ftoastr + snprintf module
16680         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16681         since the snprintf module now should be good enough here.
16682         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16683         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16684         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16685         GNULIB_SNPRINTF only for the test directory, and the latter
16686         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16687         seems to suffice by itself.
16688
16689 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         alloca: one step towards thread-safety
16692         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16693         need for a static variable.  All callers changed.  This does not
16694         make the alloca replacement thread-safe, but it's one step.
16695
16696         tests: minor indenting change
16697         * tests/init.sh: Sync from coreutils housekeeping patch
16698         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16699         to keep lines within 80 columns.
16700
16701 2010-12-28  Jim Meyering  <meyering@redhat.com>
16702
16703         regex: don't infloop on persistent failing calloc
16704         * lib/regexec.c (build_trtable): Return failure indication upon
16705         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16706         In glibc, this was fixed for version 2.13:
16707         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16708
16709 2010-12-28  Bruno Haible  <bruno@clisp.org>
16710             Paul Eggert <eggert@cs.ucla.edu>
16711
16712         linkat: Make implementation robust against system behaviour variations.
16713         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16714         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16715         way, and to -2 if it needs a generic runtime test.
16716         * lib/linkat.c (solaris_optimized_link_immediate,
16717         solaris_optimized_link_follow): New functions.
16718         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16719         (check_same_link): Use it.
16720
16721 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16722
16723         New module 'unigbrk/base'.
16724         * modules/unigbrk/base: New file.
16725         * lib/unigbrk.in.h: New file.
16726
16727         New module 'unigbrk/uc-gbrk-prop'.
16728         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16729         * modules/unigbrk/uc-gbrk-prop: New file.
16730         * lib/unigbrk/gbrkprop.h: New file.
16731         * lib/unigbrk/uc-gbrk-prop.c: New file.
16732
16733         New module 'unigbrk/uc-is-grapheme-break'.
16734         * modules/unigbrk/uc-is-grapheme-break: New file.
16735         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16736         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16737         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16738         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16739         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16740
16741         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16742
16743 2010-12-27  Bruno Haible  <bruno@clisp.org>
16744
16745         linkat test: Avoid failure on Solaris 11 2010-11.
16746         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16747
16748 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16749
16750         utimens: work around glibc rounding bug on more platforms
16751         * lib/utimens.c (fdutimens): Work around rounding bug even if
16752         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16754
16755 2010-12-27  Bruno Haible  <bruno@clisp.org>
16756
16757         select tests: Improve comments.
16758         * tests/test-select.c (do_select): Add comments.
16759
16760 2010-12-27  Bruno Haible  <bruno@clisp.org>
16761
16762         select tests: Safer way of handling timeout.
16763         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16764         at every invocation.
16765
16766 2010-12-27  Bruno Haible  <bruno@clisp.org>
16767
16768         select tests: Use 'bool' where appropriate.
16769         * tests/test-select.c (connect_to_socket): Change argument type to
16770         'bool'.
16771
16772 2010-12-27  Bruno Haible  <bruno@clisp.org>
16773
16774         select tests: Use existing modules.
16775         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16776         (configure.ac): Don't test for unistd.h.
16777         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16778         declared in <unistd.h>.
16779
16780 2010-12-27  Bruno Haible  <bruno@clisp.org>
16781
16782         mbrtowc: Work around a Solaris 7 bug.
16783         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16784         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16785         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16786         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16787         MBRTOWC_NULL_ARG1_BUG.
16788         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16789         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16790         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16791         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16792
16793 2010-12-27  Jim Meyering  <meyering@redhat.com>
16794
16795         read-file.c: tweak syntax
16796         * lib/read-file.c (fread_file): Remove space after "*" in function
16797         definitions.
16798
16799 2010-12-27  Bruno Haible  <bruno@clisp.org>
16800
16801         times test: Avoid gcc warnings on OSF/1.
16802         * tests/test-times.c (main): Cast printf arguments from clock_t to
16803         'long int'.
16804
16805 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         utimens: work around glibc rounding bug on older Linux kernels
16808         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16809         on Linux with a glibc whose utimes might not work, then work
16810         around a longstanding glibc bug involving rounding rather than
16811         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16813
16814 2010-12-26  Bruno Haible  <bruno@clisp.org>
16815
16816         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16817         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16818         _GL_CXXALIAS_SYS.
16819         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16820
16821 2010-12-26  Bruno Haible  <bruno@clisp.org>
16822
16823         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16824         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16826         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16827         looking for the declaration.
16828         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16829         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16830         problem.
16831         * doc/posix-functions/inet_pton.texi: Likewise.
16832
16833 2010-12-26  Bruno Haible  <bruno@clisp.org>
16834
16835         arpa_inet: Use the common idioms with C++ support.
16836         * lib/arpa_inet.in.h: Include c++defs.h.
16837         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16838         support.
16839         * modules/arpa_inet (Depends-on): Add c++defs.
16840         (Makefile.am): Substitute the contents of c++defs.h.
16841         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16842         * modules/arpa_inet-c++-tests: New file.
16843         * tests/test-arpa_inet-c++.cc: New file.
16844
16845 2010-12-25  Bruno Haible  <bruno@clisp.org>
16846
16847         Fix more C++ link errors on Solaris 8.
16848         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16849         $(LIB_EACCESS).
16850         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16851         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16852         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16853         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16854         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16855
16856 2010-12-25  Bruno Haible  <bruno@clisp.org>
16857
16858         printf-posix: Fix link error when a non-GCC compiler is used.
16859         * lib/stdio.in.h (printf): When not using GCC, override printf
16860         correctly.
16861         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16862
16863 2010-12-25  Bruno Haible  <bruno@clisp.org>
16864
16865         strerror_r-posix: Update doc.
16866         * doc/posix-functions/strerror_r.texi: Update doc about the return
16867         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16868
16869 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16870
16871         utimens: simplify the logic of the previous change
16872         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16873         This should not affect whether the test succeeds or fails.
16874
16875         utimens: configure better on hosts with NFS clock skew
16876         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16877         uses the clock of the local host.  It might use the clock of the
16878         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16880
16881 2010-12-25  Bruno Haible  <bruno@clisp.org>
16882
16883         ptsname test: Avoid failure on Solaris.
16884         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16885         open a pseudo-terminal; don't use BSD-style ptys.
16886         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16887
16888 2010-12-25  Bruno Haible  <bruno@clisp.org>
16889
16890         ptsname: Avoid ERANGE failure on some systems.
16891         * lib/ptsname.c (buffer): Increase size.
16892
16893 2010-12-25  Bruno Haible  <bruno@clisp.org>
16894
16895         rename, renameat: Avoid test failures at NFS mounted locations.
16896         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16897         so that subsequent mkdir calls succeed.
16898
16899 2010-12-25  Bruno Haible  <bruno@clisp.org>
16900
16901         iswblank: Fix C++ link error on Solaris 8.
16902         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16903         _GL_FUNCDECL_SYS.
16904
16905 2010-12-25  Bruno Haible  <bruno@clisp.org>
16906
16907         unistd: Fix C++ link error on Solaris 8.
16908         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16909
16910 2010-12-25  Bruno Haible  <bruno@clisp.org>
16911
16912         readlink doc: Mention an old glibc bug.
16913         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16914
16915 2010-12-25  Bruno Haible  <bruno@clisp.org>
16916
16917         fcntl-h: Fix for use of C++ on glibc systems.
16918         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16919         also on glibc systems in C++ mode.
16920         Reported by Gary V. Vaughan <gary@gnu.org>.
16921
16922 2010-12-25  Bruno Haible  <bruno@clisp.org>
16923
16924         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16925         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16926
16927 2010-12-25  Bruno Haible  <bruno@clisp.org>
16928
16929         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16930         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16931         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16932         test whether truncl works according to ISO C 99 with IEC 60559.
16933         * m4/truncl-ieee.m4: New file.
16934         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16935         m4/signbit.m4.
16936         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16937
16938 2010-12-25  Bruno Haible  <bruno@clisp.org>
16939
16940         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16941         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16942         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16943         test whether ceill works according to ISO C 99 with IEC 60559.
16944         * m4/ceill-ieee.m4: New file.
16945         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16946         m4/signbit.m4.
16947         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16948
16949 2010-12-25  Bruno Haible  <bruno@clisp.org>
16950
16951         Ensure all prerequisites of <wchar.h> are included.
16952         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16953         before <wchar.h>.
16954         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16955         gl_MBRLEN_NUL_RETVAL): Likewise.
16956         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16957         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16958         AC_FUNC_MBRTOWC): Likewise.
16959         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16960         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16961         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16962         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16963         Likewise.
16964         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16965         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16966         (gl_WCHAR_H): Improve comments.
16967         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16968
16969 2010-12-25  Bruno Haible  <bruno@clisp.org>
16970
16971         strtok_r: Fix C syntax error in autoconf macro.
16972         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16973         characters in test program.
16974
16975 2010-12-24  Bruno Haible  <bruno@clisp.org>
16976
16977         ceil, trunc, round: Fix gcc warnings.
16978         * lib/ceil.c (MIN): Undefine before redefining.
16979         * lib/trunc.c (MIN): Likewise.
16980         * lib/round.c (MIN): Likewise.
16981         Include <math.h> first.
16982
16983 2010-12-24  Bruno Haible  <bruno@clisp.org>
16984
16985         select tests: Avoid failures on OSF/1 5.1.
16986         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16987         failure of closing the last socket; it may fail with ECONNRESET.
16988
16989 2010-12-24  Eric Blake  <eblake@redhat.com>
16990
16991         stdint: avoid HP-UX 10.20 preprocessor bug
16992         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16993         than #if.
16994         * tests/test-floor2.c (main): Likewise.
16995         Reported by Peter O'Gorman.
16996
16997         pipe: make obsoletion transition easier
16998         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16999         * modules/pipe (Files): Include revived file.
17000         (Include): Drop reference, to mirror getdate's behavior.
17001
17002 2010-12-24  Bruno Haible  <bruno@clisp.org>
17003
17004         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17005         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17006         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17008
17009 2010-12-24  Bruno Haible  <bruno@clisp.org>
17010
17011         gethostname: Ensure declaration on NonStop Kernel.
17012         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17014
17015 2010-12-24  Bruno Haible  <bruno@clisp.org>
17016
17017         sys_select: Ensure all necessary types on NonStop Kernel.
17018         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17019         include <sys/time.h>.
17020         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17021         NonStop Kernel.
17022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17023
17024 2010-12-24  Bruno Haible  <bruno@clisp.org>
17025
17026         sys_select: Remove unneeded include.
17027         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17028         have <sys/select.h>.
17029
17030 2010-12-24  Bruno Haible  <bruno@clisp.org>
17031
17032         gethostname: Provide a fallback for HOST_NAME_MAX.
17033         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17034         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17035         instead.
17036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17037
17038 2010-12-24  Bruno Haible  <bruno@clisp.org>
17039
17040         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17041         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17042         (SA_RESTART): Likewise.
17043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17044
17045 2010-12-24  Bruno Haible  <bruno@clisp.org>
17046
17047         signal: Define NSIG.
17048         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17049         * tests/test-signal.c (nsig): New variable.
17050         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17051
17052 2010-12-24  Bruno Haible  <bruno@clisp.org>
17053
17054         rename, renameat: Avoid test failures on OSF/1 5.1.
17055         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17056         alternative error codes.
17057         * tests/test-renameat.c (main): Likewise.
17058
17059 2010-12-24  Bruno Haible  <bruno@clisp.org>
17060
17061         *printf: Detect large precisions bug on Solaris 10/SPARC.
17062         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17063         by Paul Eggert.
17064         * tests/test-snprintf-posix.h (test_function): Add this test code here
17065         too.
17066         * tests/test-sprintf-posix.h (test_function): Likewise.
17067         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17068         * tests/test-vasprintf-posix.c (test_function): Likewise.
17069         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17070         around by gnulib.
17071         * doc/posix-functions/printf.texi: Likewise.
17072         * doc/posix-functions/snprintf.texi: Likewise.
17073         * doc/posix-functions/sprintf.texi: Likewise.
17074         * doc/posix-functions/vfprintf.texi: Likewise.
17075         * doc/posix-functions/vprintf.texi: Likewise.
17076         * doc/posix-functions/vsnprintf.texi: Likewise.
17077         * doc/posix-functions/vsprintf.texi: Likewise.
17078         * doc/posix-functions/dprintf.texi: Undo last commit.
17079         * doc/posix-functions/vdprintf.texi: Likewise.
17080
17081 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17082
17083         tests: port test-fdutimensat.c to Solaris 8
17084         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17085         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17086         On Solaris 8, it fails with errno == ENOSYS, because there is no
17087         futimens (so it can't use the fd), and there is no lutimens (so it
17088         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17089
17090         vsnprintf: make more consistent with snprintf; doc fixes
17091
17092         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17093         the byte count return problem was promoted from the snprintf-posix
17094         to the snprintf module.
17095         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17096         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17097         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17098         * tests/test-snprintf.c (main): Check the byte count returned.
17099         * tests/test-vsnprintf.c (main): Likewise.
17100
17101 2010-12-23  Eric Blake  <eblake@redhat.com>
17102
17103         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17104         * modules/sigpipe (License): Relax license.
17105
17106 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         doc: document Solaris printf bug with large float precisions
17109         * doc/posix-functions/dprintf.texi (dprintf):
17110         * doc/posix-functions/fprintf.texi (fprintf):
17111         * doc/posix-functions/printf.texi (printf):
17112         * doc/posix-functions/snprintf.texi (snprintf):
17113         * doc/posix-functions/sprintf.texi (sprintf):
17114         * doc/posix-functions/vdprintf.texi (vdprintf):
17115         * doc/posix-functions/vfprintf.texi (vfprintf):
17116         * doc/posix-functions/vprintf.texi (vprintf):
17117         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17118         * doc/posix-functions/vsprintf.texi (vsprintf):
17119         Mention that these functions mishandle large floating point
17120         precisions on Solaris 10.  The same bug is also present in Solaris
17121         8, and I assume earlier.  This causes "cd gnulib-tests; make
17122         check" to fail on Solaris 8 (and I assume, later) when building
17123         the latest coreutils, in test-vasprintf-posix's call to
17124         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17125         the wide flavors (e.g., wprintf) so this patch just updates the
17126         documentation for the narrow ones.
17127
17128         test-posixtm.c: add two tests
17129         * tests/test-posixtm.c: Add two tests, to highlight the
17130         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17131         around this bug; this is merely to document it.
17132
17133 2010-12-22  Bruno Haible  <bruno@clisp.org>
17134
17135         getlogin_r: Work around portability problem on OSF/1.
17136         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17137         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17138         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17139         test for a truncated result.
17140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17141         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17142         * modules/getlogin_r (Depends-on): Add memchr.
17143         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17144
17145 2010-12-22  Bruno Haible  <bruno@clisp.org>
17146
17147         ptsname: Avoid test failure on OSF/1 5.1.
17148         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17149         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17150         (same_slave): New function.
17151         (main): Use it to compare ptsname's result with the expected file name.
17152
17153 2010-12-22  Bruno Haible  <bruno@clisp.org>
17154
17155         Port extended stdio modules to HP NonStop Kernel.
17156         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17157         macros.
17158         * lib/fbufmode.c: Update comments.
17159         * lib/fflush.c: Likewise.
17160         * lib/fpurge.c: Likewise.
17161         * lib/freadable.c: Likewise.
17162         * lib/freadahead.c: Likewise.
17163         * lib/freading.c: Likewise.
17164         * lib/freadptr.c: Likewise.
17165         * lib/freadseek.c: Likewise.
17166         * lib/fseeko.c: Likewise.
17167         * lib/fseterr.c: Likewise.
17168         * lib/fwritable.c: Likewise.
17169         * lib/fwriting.c: Likewise.
17170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17171
17172 2010-12-22  Bruno Haible  <bruno@clisp.org>
17173
17174         ttyname_r: Work around bug on OSF/1 5.1.
17175         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17176         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17177         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17178         present.
17179         * lib/ttyname_r.c (ttyname_r): Update comments.
17180
17181 2010-12-22  Bruno Haible  <bruno@clisp.org>
17182
17183         round: Implement result sign according to IEEE 754.
17184         * lib/round.c (MIN, MINUS_ZERO): New macros.
17185         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17186         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17187         * tests/test-round-ieee.c (main): Likewise.
17188         * tests/test-roundl-ieee.c (main): Likewise.
17189
17190         trunc: Implement result sign according to IEEE 754.
17191         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17192         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17193         * tests/test-trunc2.c: Include minus-zero.h.
17194         (MINUS_ZERO): New macro.
17195         (trunc_reference): Keep in sync with lib/trunc.c.
17196         * tests/test-truncf2.c: Include minus-zero.h.
17197         (MINUS_ZERO): New macro.
17198         (truncf_reference): Keep in sync with lib/trunc.c.
17199         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17200         * tests/test-trunc-ieee.c (main): Likewise.
17201         * tests/test-truncl-ieee.c (main): Likewise.
17202
17203         ceil: Implement result sign according to IEEE 754.
17204         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17205         (FUNC): Return -0.0 for -1 < x < 0.
17206         * tests/test-ceil2.c: Include minus-zero.h.
17207         (MINUS_ZERO): New macro.
17208         (ceil_reference): Keep in sync with lib/ceil.c.
17209         * tests/test-ceilf2.c: Include minus-zero.h.
17210         (MINUS_ZERO): New macro.
17211         (ceilf_reference): Keep in sync with lib/ceil.c.
17212         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17213         * tests/test-ceil-ieee.c (main): Likewise.
17214         * tests/test-ceill-ieee.c (main): Likewise.
17215
17216         floor: Implement result sign according to IEEE 754.
17217         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17218         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17219         * tests/test-floorf2.c (floorf_reference): Likewise.
17220         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17221         * tests/test-floor-ieee.c (main): Likewise.
17222         * tests/test-floorl-ieee.c (main): Likewise.
17223
17224 2010-12-22  Bruno Haible  <bruno@clisp.org>
17225
17226         getaddrinfo: Update doc.
17227         * doc/posix-functions/gai_strerror.texi: Return type is also different
17228         on AIX and HP-UX.
17229
17230 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17231
17232         getaddrinfo, inet_ntop: Update doc for Solaris.
17233         * doc/posix-functions/gai_strerror.texi: Return type is also an
17234         issue on Solaris 9 and earlier.
17235         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17236         on Solaris 10 and earlier.
17237
17238 2010-12-21  Bruno Haible  <bruno@clisp.org>
17239
17240         New module 'roundl-ieee'.
17241         * modules/roundl-ieee: New file.
17242         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17243         test whether roundl works according to ISO C 99 with IEC 60559.
17244         * m4/roundl-ieee.m4: New file.
17245         * modules/roundl-ieee-tests: New file.
17246         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17247         * tests/test-roundl.c (main): Remove signbit tests.
17248         * modules/roundl-tests (Depends-on): Remove signbit.
17249         * doc/posix-functions/roundl.texi: Mention the new module.
17250
17251 2010-12-21  Bruno Haible  <bruno@clisp.org>
17252
17253         New module 'truncl-ieee'.
17254         * modules/truncl-ieee: New file.
17255         * modules/truncl-ieee-tests: New file.
17256         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17257         * tests/test-truncl.c (main): Remove signbit tests.
17258         * modules/truncl-tests (Depends-on): Remove signbit.
17259         * doc/posix-functions/truncl.texi: Mention the new module.
17260
17261 2010-12-21  Bruno Haible  <bruno@clisp.org>
17262
17263         New module 'ceill-ieee'.
17264         * modules/ceill-ieee: New file.
17265         * modules/ceill-ieee-tests: New file.
17266         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17267         * tests/test-ceill.c (main): Remove signbit tests.
17268         * modules/ceill-tests (Depends-on): Remove signbit.
17269         * doc/posix-functions/ceill.texi: Mention the new module.
17270
17271 2010-12-21  Bruno Haible  <bruno@clisp.org>
17272
17273         New module 'floorl-ieee'.
17274         * modules/floorl-ieee: New file.
17275         * modules/floorl-ieee-tests: New file.
17276         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17277         * tests/test-floorl.c (main): Remove signbit tests.
17278         * modules/floorl-tests (Depends-on): Remove signbit.
17279         * doc/posix-functions/floorl.texi: Mention the new module.
17280
17281 2010-12-21  Bruno Haible  <bruno@clisp.org>
17282
17283         New module 'round-ieee'.
17284         * modules/round-ieee: New file.
17285         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17286         whether round works according to ISO C 99 with IEC 60559.
17287         * m4/round-ieee.m4: New file.
17288         * modules/round-ieee-tests: New file.
17289         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17290         * tests/test-round1.c (main): Remove signbit tests.
17291         * modules/round-tests (Depends-on): Remove 'signbit'.
17292         * doc/posix-functions/round.texi: Mention the new module.
17293
17294 2010-12-21  Bruno Haible  <bruno@clisp.org>
17295
17296         New module 'trunc-ieee'.
17297         * modules/trunc-ieee: New file.
17298         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17299         whether trunc works according to ISO C 99 with IEC 60559.
17300         * m4/trunc-ieee.m4: New file.
17301         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17303         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17304         * modules/trunc-ieee-tests: New file.
17305         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17306         * tests/test-trunc1.c (main): Remove signbit tests.
17307         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17308         * doc/posix-functions/trunc.texi: Mention the new module.
17309
17310 2010-12-21  Bruno Haible  <bruno@clisp.org>
17311
17312         New module 'ceil-ieee'.
17313         * modules/ceil-ieee: New file.
17314         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17315         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17316         ISO C 99 with IEC 60559.
17317         * m4/ceil-ieee.m4: New file.
17318         * modules/ceil (Files): Add lib/ceil.c.
17319         (Depends-on): Add 'float'.
17320         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17321         * lib/math.in.h (ceil): New declaration.
17322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17323         REPLACE_CEIL.
17324         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17325         * modules/ceil-ieee-tests: New file.
17326         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17327         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17328         * doc/posix-functions/ceil.texi: Mention the new module.
17329
17330 2010-12-21  Bruno Haible  <bruno@clisp.org>
17331
17332         New module 'floor-ieee'.
17333         * modules/floor-ieee: New file.
17334         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17335         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17336         ISO C 99 with IEC 60559.
17337         * m4/floor-ieee.m4: New file.
17338         * modules/floor (Files): Add lib/floor.c.
17339         (Depends-on): Add 'float'.
17340         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17341         * lib/math.in.h (floor): New declaration.
17342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17343         REPLACE_FLOOR.
17344         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17345         * modules/floor-ieee-tests: New file.
17346         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17347         * tests/test-math-c++.cc: Check the signature of 'floor'.
17348         * doc/posix-functions/floor.texi: Mention the new module.
17349
17350 2010-12-21  Bruno Haible  <bruno@clisp.org>
17351
17352         New module 'roundf-ieee'.
17353         * modules/roundf-ieee: New file.
17354         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17355         test whether roundf works according to ISO C 99 with IEC 60559.
17356         * m4/roundf-ieee.m4: New file.
17357         * modules/roundf-ieee-tests: New file.
17358         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17359         * tests/test-roundf1.c (main): Remove signbit tests.
17360         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17361         * doc/posix-functions/roundf.texi: Mention the new module.
17362
17363 2010-12-21  Bruno Haible  <bruno@clisp.org>
17364
17365         New module 'truncf-ieee'.
17366         * modules/truncf-ieee: New file.
17367         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17368         test whether truncf works according to ISO C 99 with IEC 60559.
17369         * m4/truncf-ieee.m4: New file.
17370         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17372         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17373         * modules/truncf-ieee-tests: New file.
17374         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17375         * tests/test-truncf1.c (main): Remove signbit tests.
17376         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17377         * doc/posix-functions/truncf.texi: Mention the new module.
17378
17379 2010-12-21  Bruno Haible  <bruno@clisp.org>
17380
17381         New module 'ceilf-ieee'.
17382         * modules/ceilf-ieee: New file.
17383         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17384         test whether ceilf works according to ISO C 99 with IEC 60559.
17385         * m4/ceilf-ieee.m4: New file.
17386         * modules/ceilf-ieee-tests: New file.
17387         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17388         * tests/test-ceilf1.c (main): Remove signbit tests.
17389         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17390         * doc/posix-functions/ceilf.texi: Mention the new module.
17391
17392 2010-12-21  Bruno Haible  <bruno@clisp.org>
17393
17394         New module 'floorf-ieee'.
17395         * modules/floorf-ieee: New file.
17396         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17397         test whether floorf works according to ISO C 99 with IEC 60559.
17398         * m4/floorf-ieee.m4: New file.
17399         * modules/floorf-ieee-tests: New file.
17400         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17401         * tests/test-floorf1.c (main): Remove signbit tests.
17402         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17403         * doc/posix-functions/floorf.texi: Mention the new module.
17404
17405 2010-12-21  Bruno Haible  <bruno@clisp.org>
17406
17407         Support for minus zero in autoconf macros.
17408         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17409         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17410         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17411         * tests/minus-zero.h: Update comments.
17412
17413 2010-12-21  Bruno Haible  <bruno@clisp.org>
17414
17415         Tests for module 'ceil'.
17416         * modules/ceil-tests: New file.
17417         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17418         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17419
17420 2010-12-21  Bruno Haible  <bruno@clisp.org>
17421
17422         Tests for module 'floor'.
17423         * modules/floor-tests: New file.
17424         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17425         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17426
17427 2010-12-21  Bruno Haible  <bruno@clisp.org>
17428
17429         math: Fix indentation.
17430         * lib/math.in.h (floorf): Fix indentation.
17431
17432 2010-12-21  Bruno Haible  <bruno@clisp.org>
17433
17434         Fix cross-compilation guesses on Solaris.
17435         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17436         not match "solaris2.10".
17437         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17438         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17439         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17440
17441 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17444         This fixes a problem observed with the latest coreutils snapshot
17445         that caused a test to fail on Solaris 8.  src/csplit.c's call
17446         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17447         earlier, instead of returning the number of bytes that would have
17448         been generated; this causes csplit to incorrectly report memory
17449         exhaustion.
17450         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17451         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17452         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17453         comments to match.
17454         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17455         Fix typo in matching older versions of Solaris: "solaris2.10"
17456         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17457         only for guessing while cross-compiling.
17458         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17459
17460 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17461
17462         ftoastr: fix comment again
17463         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17465         Also, simplify example a bit by using flags = 0.
17466
17467 2010-12-20  Bruno Haible  <bruno@clisp.org>
17468
17469         round*, trunc*: Update documentation regarding glibc.
17470         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17471         * doc/posix-functions/round.texi: Likewise.
17472         * doc/posix-functions/roundl.texi: Likewise.
17473         * doc/posix-functions/truncf.texi: Likewise.
17474         * doc/posix-functions/trunc.texi: Likewise.
17475         * doc/posix-functions/truncl.texi: Likewise.
17476
17477 2010-12-20  Bruno Haible  <bruno@clisp.org>
17478
17479         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17480         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17481         * doc/posix-functions/round.texi: Likewise.
17482         * doc/posix-functions/roundl.texi: Likewise.
17483
17484 2010-12-20  Bruno Haible  <bruno@clisp.org>
17485
17486         ttyname_r: Add missing declaration on HP-UX 11.
17487         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17488         HAVE_TTYNAME_R.
17489         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17490         declared. Set HAVE_TTYNAME_R always.
17491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17492         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17493         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17494         HAVE_TTYNAME_R.
17495         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17496
17497 2010-12-20  Bruno Haible  <bruno@clisp.org>
17498
17499         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17500         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17501         * doc/posix-functions/getlogin_r.texi: Likewise.
17502         * tests/test-getlogin.c: Include <errno.h>.
17503         (main): Avoid test failure on HP-UX 11.11.
17504         * tests/test-getlogin_r.c (main): Likewise.
17505
17506 2010-12-20  Bruno Haible  <bruno@clisp.org>
17507
17508         getlogin_r: Add missing declaration on HP-UX 11.
17509         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17510         declared also when it exists as a function.
17511         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17512
17513 2010-12-20  Bruno Haible  <bruno@clisp.org>
17514
17515         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17516         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17517         through wcrtomb.
17518
17519 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17520
17521         ftoastr: fix comment
17522         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17524
17525 2010-12-19  Bruno Haible  <bruno@clisp.org>
17526
17527         isnan: Ensure it is a macro.
17528         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17529         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17530         Solaris.
17531
17532 2010-12-19  Bruno Haible  <bruno@clisp.org>
17533
17534         ldexpl test: Fix link error on OSF/1 5.1.
17535         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17536
17537 2010-12-19  Bruno Haible  <bruno@clisp.org>
17538
17539         wctype: Make it work in C++ mode on OSF/1 5.1.
17540         * lib/wctype.in.h (iswblank): Declare but not define here.
17541         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17542         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17543         * modules/wctype (Files): Add lib/iswblank.c.
17544
17545 2010-12-19  Bruno Haible  <bruno@clisp.org>
17546
17547         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17548         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17549         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17550
17551 2010-12-19  Bruno Haible  <bruno@clisp.org>
17552
17553         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17555         _POSIX_PII_SOCKET.
17556         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17557         * doc/posix-functions/recvfrom.texi: Likewise.
17558         * doc/posix-functions/send.texi: Likewise.
17559         * doc/posix-functions/sendto.texi: Likewise.
17560
17561 2010-12-19  Bruno Haible  <bruno@clisp.org>
17562
17563         tcgetsid: Add missing declaration on OSF/1 5.1.
17564         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17565         HAVE_TCGETSID.
17566         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17567         Don't set HAVE_TCGETSID.
17568         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17569         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17570         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17571         HAVE_TCGETSID.
17572         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17573
17574 2010-12-19  Bruno Haible  <bruno@clisp.org>
17575
17576         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17577         * lib/stdio.in.h: During the include_next statement, let recursive
17578         includes of this file include only the system header file.
17579
17580 2010-12-19  Bruno Haible  <bruno@clisp.org>
17581
17582         iconv_open: Fix regression from 2010-12-04.
17583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17584         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17585
17586 2010-12-19  Bruno Haible  <bruno@clisp.org>
17587
17588         stdbool test: Avoid a gcc warning.
17589         * tests/test-stdbool.c (main): Fail if e1 is false.
17590         Reported by Jim Meyering.
17591
17592 2010-12-19  Jim Meyering  <meyering@redhat.com>
17593
17594         setenv: restore to working order
17595         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17596         mistakenly removed.
17597         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17598         HAVE_SETENV.
17599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17600         HAVE_SETENV.
17601
17602 2010-12-19  Bruno Haible  <bruno@clisp.org>
17603
17604         Document some different function declarations on OSF/1 5.1.
17605         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17606         * doc/posix-functions/inet_ntop.texi: Likewise.
17607         * doc/posix-functions/gethostname.texi: Likewise.
17608         * lib/unistd.in.h (gethostname): Update comment.
17609
17610 2010-12-19  Bruno Haible  <bruno@clisp.org>
17611
17612         doc: Mention vasprintf-posix module.
17613         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17614         the 'vasprintf-posix' module.
17615         * doc/glibc-functions/vasprintf.texi: Likewise.
17616
17617 2010-12-19  Bruno Haible  <bruno@clisp.org>
17618
17619         unsetenv: Add missing declaration on OSF/1 5.1.
17620         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17621         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17622         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17624         not HAVE_UNSETENV.
17625         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17626         HAVE_UNSETENV.
17627         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17628
17629 2010-12-19  Bruno Haible  <bruno@clisp.org>
17630
17631         setenv: Add missing declaration on OSF/1 5.1.
17632         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17634         declared. Don't set HAVE_SETENV.
17635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17636         not HAVE_SETENV.
17637         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17638         HAVE_SETENV.
17639         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17640
17641 2010-12-19  Bruno Haible  <bruno@clisp.org>
17642
17643         nl_langinfo tests: Avoid gcc warning.
17644         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17645
17646 2010-12-19  Bruno Haible  <bruno@clisp.org>
17647
17648         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17649         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17650         _GL_CXXALIAS_SYS.
17651
17652 2010-12-19  Bruno Haible  <bruno@clisp.org>
17653
17654         stdbool: Relax test.
17655         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17656         address to 'bool' work in static initializer, for compilers other than
17657         GCC.
17658
17659 2010-12-19  Bruno Haible  <bruno@clisp.org>
17660
17661         ftello: Add missing declaration on OSF/1 5.1.
17662         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17663         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17665         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17666         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17667
17668 2010-12-19  Bruno Haible  <bruno@clisp.org>
17669
17670         fseeko: Add missing declaration on OSF/1 5.1.
17671         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17672         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17674         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17675         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17676
17677 2010-12-19  Bruno Haible  <bruno@clisp.org>
17678
17679         fchdir: Add missing declaration on OSF/1 5.1.
17680         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17684         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17685
17686 2010-12-19  Bruno Haible  <bruno@clisp.org>
17687
17688         relocatable-prog-wrapper: Separate from relocatable-prog.
17689         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17690         uninstall-relocwrapper rule here.
17691         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17692         Reported by Ian Beckwith <ianb@erislabs.net>.
17693
17694 2010-12-19  Bruno Haible  <bruno@clisp.org>
17695
17696         unistr/u8-mbsnlen: Add missing dependency.
17697         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17698         Reported by Ian Beckwith <ianb@erislabs.net>.
17699
17700 2010-12-19  Bruno Haible  <bruno@clisp.org>
17701
17702         iconv: Make it possible again to use this module without 'iconv-h'.
17703         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17704         if it is not defined.
17705         Reported by Ian Beckwith <ianb@erislabs.net>.
17706
17707 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17708
17709         acl: port to Solaris 8 when copying from tmpfs to ufs
17710         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17711         error number.  Problem observed on Solaris 8 with latest
17712         coreutils, with "mv A B", where A is on a tmpfs file system and B
17713         is on a ufs file system.  This caused coreutils' mv/part-symlink
17714         test to fail.
17715
17716         tests: set fail=0 at start
17717         * tests/init.sh (setup_): Move fail=0 initialization here ...
17718         (mktempd_): ... from here, so that tests can rely on fail being
17719         set to 0 initially.  This fixes a problem in coreutils; see:
17720         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17721
17722 2010-12-18  Bruno Haible  <bruno@clisp.org>
17723
17724         memmem-simple: Stylistic changes.
17725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17726         Fix preprocessor directive indentation.
17727
17728 2010-12-15  Pádraig Brady <P@draigBrady.com>
17729
17730         memmem, memmem-simple: reorganize and expand empty needle check
17731         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17732         functional checks to memmem-simple so that one has a fully functional
17733         memmem by using just this module.
17734         Restrict the performance only check to the memmem module.
17735         Also expand the empty needle check to ensure the correct
17736         pointer is returned, not just a non NULL pointer.
17737         * doc/glibc-functions/memmem.texi: Rearrange the portability
17738         documentation to correlate with the rearranged checks.
17739         Clarify exactly how the memmem and memmem-simple modules
17740         relate to each other.
17741
17742 2010-12-15  Pádraig Brady <P@draigBrady.com>
17743             Bruno Haible  <bruno@clisp.org>
17744
17745         Improve cross-compilation guesses for uClibc.
17746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17747         that uClibc does not have the glibc bug.
17748         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17750
17751 2010-12-14  Eric Blake  <eblake@redhat.com>
17752
17753         configmake: provide fallbacks for oldest supported autotools
17754         * m4/configmake.m4: New file.
17755         * modules/configmake (Files): Ship it.
17756         (configure.ac): Use it to guarantee fallbacks.
17757
17758 2010-12-13  Pádraig Brady <P@draigBrady.com>
17759
17760         read-file: Improve handling of large files
17761         * lib/read-file.c (fread_file): Minimize realloc()s
17762         for regular files, and better manage sizes around SIZE_MAX.
17763
17764 2010-12-13  Eric Blake  <eblake@redhat.com>
17765
17766         cloexec, fcntl: relax license
17767         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17768         consent from all contributors.
17769         * modules/fcntl (License): Likewise.
17770
17771 2010-12-10  Bruno Haible  <bruno@clisp.org>
17772
17773         Tests for module 'pipe-posix'.
17774         * modules/pipe-posix-tests: New file.
17775         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17776
17777 2010-12-10  Bruno Haible  <bruno@clisp.org>
17778
17779         pipe-posix: Make it work in C++ mode.
17780         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17781         (pipe): Use common idiom, not a macro definition.
17782         * lib/pipe.c: New file.
17783         * m4/pipe.m4: New file.
17784         * modules/pipe-posix (Description): Enhance.
17785         (Files): Add lib/pipe.c, m4/pipe.m4.
17786         (configure.ac): Invoke gl_FUNC_PIPE.
17787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17788         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17789         * tests/test-unistd-c++.cc: Check the signature of pipe.
17790
17791 2010-12-10  Bruno Haible  <bruno@clisp.org>
17792
17793         Rename module 'pipe' to 'spawn-pipe'.
17794         * modules/spawn-pipe: New file, renamed from modules/pipe.
17795         (Files, configure.ac, Makefile.am): Update.
17796         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17797         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17798         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17799         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17800         "spawn-pipe.h" instead of "pipe.h".
17801         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17802         to gl_SPAWN_PIPE.
17803         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17804         (Files, Makefile.am): Update.
17805         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17806         Update.
17807         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17808         Include "spawn-pipe.h" instead of "pipe.h".
17809         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17810         * lib/javacomp.c: Likewise.
17811         * lib/javaversion.c: Likewise.
17812         * lib/pipe-filter-gi.c: Likewise.
17813         * lib/pipe-filter-ii.c: Likewise.
17814         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17815         * modules/javacomp (Depends-on): Likewise.
17816         * modules/javaversion (Depends-on): Likewise.
17817         * modules/pipe-filter-gi (Depends-on): Likewise.
17818         * modules/pipe-filter-ii (Depends-on): Likewise.
17819         * MODULES.html.sh (Executing programs): Update.
17820         * NEWS: Mention the change.
17821
17822 2010-12-10  Eric Blake  <eblake@redhat.com>
17823
17824         pipe-posix: new module
17825         * modules/pipe-posix: New file.
17826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17827         (gl_UNISTD_H): Check for declaration.
17828         * modules/unistd (Makefile.am): Substitute it.
17829         * lib/unistd.in.h (pipe): Provide it for mingw.
17830         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17831         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17832
17833 2010-12-07  Bruno Haible  <bruno@clisp.org>
17834
17835         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17836         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17837         u8_strcmp_gnu.
17838         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17839
17840 2010-12-06  Bruno Haible  <bruno@clisp.org>
17841
17842         Update internal documentation.
17843         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17844
17845 2010-12-04  Bruno Haible  <bruno@clisp.org>
17846
17847         Put more information about failed tests into the test return codes.
17848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17849         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17852         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17853         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17854         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17855         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17856         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17859         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17860         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17861         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17862         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17863         returns a bit mask.
17864         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17865         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17866         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17867         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17868         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17869         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17872         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17873         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17875         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17878         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17879         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17880         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17881         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17882         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17885         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17887         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17888         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17889         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17890         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17891         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17892         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17893         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17894         gl_PRINTF_PRECISION): Likewise.
17895         * m4/regex.m4 (gl_REGEX): Likewise.
17896         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17899         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17902         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17903         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17904         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17905         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17906         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17907         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17908         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17909         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17910         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17911         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17912         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17915         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17916         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17917         enumerated value.
17918         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17919
17920 2010-12-04  Bruno Haible  <bruno@clisp.org>
17921
17922         Update for Solaris 11 2010-11.
17923         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17924         Express, released in November 2010.
17925
17926 2010-12-04  Bruno Haible  <bruno@clisp.org>
17927
17928         nproc: Relax license.
17929         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17930         and Paul Eggert.
17931         Requested by Ludovic Courtès <ludo@gnu.org>.
17932
17933 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17934
17935         utimecmp: fine-grained src to nearby coarse-grained dest
17936
17937         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17938         and the source is on a file system with higher-resolution time
17939         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17940         not work, and the time stamps are close together, the algorithm to
17941         determine the exact resolution from the read-back mtime was buggy:
17942         it had a "!=" where it should have had an "==".  This bug has been
17943         in the code ever since it was introduced to gnulib.
17944         Problem reported by Dan Jacobson in
17945         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17946
17947 2010-11-30  Bruno Haible  <bruno@clisp.org>
17948
17949         strerror_r-posix: Fix autoconf test.
17950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17951
17952 2010-11-28  Bruno Haible  <bruno@clisp.org>
17953             Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         Tests for module 'getdomainname'.
17956         * modules/getdomainname-tests: New file.
17957         * tests/test-getdomainname.c: New file, based on
17958         tests/test-gethostname.c.
17959
17960 2010-11-28  Bruno Haible  <bruno@clisp.org>
17961             Paul Eggert  <eggert@cs.ucla.edu>
17962
17963         getdomainname: Use the system function when possible.
17964         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17965         (getdomainname): Replace if needed. Provide the declaration if it is
17966         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17967         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17968         (getdomainname): When the system has getdomainname, call the system
17969         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17970         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17971         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17972         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17973         the function if its second argument is of type 'int' or if it is found
17974         in libnsl.
17975         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17976         <sys/systeminfo.h> and sysinfo().
17977         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17979         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17980         HAVE_GETDOMAINNAME.
17981         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17982         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17983         * doc/glibc-functions/getdomainname.texi: Document the problems with
17984         the getdomainname declaration.
17985
17986 2010-11-28  Bruno Haible  <bruno@clisp.org>
17987
17988         sys_socket: Ensure ss_family field on AIX.
17989         * lib/sys_socket.in.h (ss_family): New macro definition.
17990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17991         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17992         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17993         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17994         * modules/sys_socket (Makefile.am): Substitute
17995         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17996         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17997
17998 2010-11-27  Bruno Haible  <bruno@clisp.org>
17999
18000         readline: Improve configure output.
18001         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18002         "checking for readline..." result understandable.
18003
18004 2010-11-27  Bruno Haible  <bruno@clisp.org>
18005
18006         *printf-posix: Detect a bug on Solaris 10/x86.
18007         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18008         for floating-point output.
18009         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18010         directive.
18011         * tests/test-snprintf-posix.h (test_function): Likewise.
18012         * tests/test-sprintf-posix.h (test_function): Likewise.
18013         * tests/test-vasprintf-posix.c (test_function): Likewise.
18014         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18015         * doc/posix-functions/printf.texi: Likewise.
18016         * doc/posix-functions/snprintf.texi: Likewise.
18017         * doc/posix-functions/sprintf.texi: Likewise.
18018         * doc/posix-functions/vfprintf.texi: Likewise.
18019         * doc/posix-functions/vprintf.texi: Likewise.
18020         * doc/posix-functions/vsnprintf.texi: Likewise.
18021         * doc/posix-functions/vsprintf.texi: Likewise.
18022         * doc/glibc-functions/obstack_printf.texi: Likewise.
18023         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18024
18025 2010-11-27  Bruno Haible  <bruno@clisp.org>
18026
18027         Fix link error when module libunistring-optional is in use.
18028         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18029         * modules/striconveha-tests (Makefile.am): Likewise.
18030
18031 2010-11-27  Bruno Haible  <bruno@clisp.org>
18032
18033         regex: Mention link dependencies.
18034         * modules/regex (Link): New section.
18035         * modules/rpmatch (Link): Likewise.
18036         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18037
18038 2010-11-27  Bruno Haible  <bruno@clisp.org>
18039
18040         ftoastr: Fix compilation error on Solaris.
18041         * lib/ftoastr.c: Include <config.h>.
18042
18043 2010-11-27  Bruno Haible  <bruno@clisp.org>
18044
18045         getloadavg: Update documentation.
18046         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18047
18048 2010-11-27  Bruno Haible  <bruno@clisp.org>
18049
18050         sys_socket: Fix test whether the functions are declared.
18051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18052         not <sys/select.h>.
18053
18054 2010-11-27  Bruno Haible  <bruno@clisp.org>
18055
18056         getpass: Make sure to get system declaration on some platforms.
18057         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18058         gl_USE_SYSTEM_EXTENSIONS.
18059         * modules/getpass (Depends-on): Add extensions.
18060
18061 2010-11-26  Bruno Haible  <bruno@clisp.org>
18062
18063         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18064         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18065         'iconv' module is present.
18066         (ICONV_CONST): New macro.
18067         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18068         ICONV_CONST.
18069         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18070         set ICONV_CONST.
18071         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18072         here.
18073         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18074         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18075         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18076         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18077         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18078         present.
18079
18080 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18081
18082         ftoastr: comment fix
18083         * lib/ftoastr.c: "little" -> "little or no" in comment
18084
18085 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18086
18087         stdint: port to GCC 4.3 + OSX + Octave
18088         On this platform, stdint.h is buggy and defines int64_t to long
18089         long int.  The replacement defined it to long int, causing
18090         problems with C++ style name mangling.  Instead, trust the system
18091         definition if INT64_MAX is defined, and likewise for the unsigned
18092         variant.   Problem reported by Jarno Rajahalme in
18093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18094         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18095         and don't mess with int64_t and INT64_MAX in this case.
18096         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18097
18098 2010-11-24  Bruno Haible  <bruno@clisp.org>
18099
18100         doc: Corrections regarding MacOS X 10.4 and 10.5.
18101         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18102         MacOS X.
18103         Reported by Simon Josefsson.
18104
18105 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18106
18107         Uninstall ".bin" files installed by relocwrapper.
18108         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18109         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18110         unless it is already there.
18111
18112 2010-11-21  Bruno Haible  <bruno@clisp.org>
18113
18114         Update for NetBSD 5.0.
18115         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18116         NetBSD; the test fails on NetBSD 5.0.
18117         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18118         about NetBSD.
18119
18120 2010-11-21  Bruno Haible  <bruno@clisp.org>
18121
18122         Update for HP-UX 11.23 and HP-UX 11.31.
18123         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18124         HP-UX.
18125
18126 2010-11-21  Bruno Haible  <bruno@clisp.org>
18127
18128         Update for MacOS X 10.5.
18129         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18130         MacOS X; the test fails on MacOS X 10.5.8.
18131         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18132         about MacOS X.
18133
18134 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18135
18136         bootstrap: add bootstrap_sync option.
18137         See discussion at
18138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18140         * build-aux/bootstrap: Accept --bootstrap-sync to update
18141         bootstrap if it is not identical to the local gnulib's
18142         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18143         enable this by default.  Accept --no-bootstrap-sync to disable
18144         it.
18145
18146 2010-11-20  Bruno Haible  <bruno@clisp.org>
18147
18148         Ensure that <features.h> is included before __GLIBC__ is tested.
18149         * lib/printf-parse.h: Include <features.h>.
18150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18151         Reported by Mike Frysinger <vapier@gentoo.org>.
18152
18153         Ensure that <features.h> is included before __GLIBC__ is tested.
18154         * lib/wchar.in.h: Include <features.h>.
18155         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18156         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18157         Reported by Mike Frysinger <vapier@gentoo.org>.
18158
18159         Ensure that <features.h> is included before __GLIBC__ is tested.
18160         * lib/arpa_inet.in.h: Include <features.h>.
18161         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18162         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18163         Reported by Mike Frysinger <vapier@gentoo.org>.
18164
18165         Ensure that <features.h> is included before __GLIBC__ is tested.
18166         * build-aux/link-warning.h: Include <features.h>.
18167         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18168         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18169         Reported by Mike Frysinger <vapier@gentoo.org>.
18170
18171         Ensure that <features.h> is included before __GLIBC__ is tested.
18172         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18173         Reported by Mike Frysinger <vapier@gentoo.org>.
18174
18175 2010-11-20  Bruno Haible  <bruno@clisp.org>
18176
18177         memmem: Fix autoconf test.
18178         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18179
18180 2010-11-20  Bruno Haible  <bruno@clisp.org>
18181
18182         Port to uClibc.
18183         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18184         * lib/fcntl.in.h: Likewise.
18185         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18186         * lib/mbrtowc.c (mbrtowc): Likewise.
18187         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18188         * lib/strerror_r.c: Likewise.
18189         * lib/unistr/u8-strnlen.c: Likewise.
18190         * lib/vasnprintf.c (decimal_point_char): Likewise.
18191         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18192         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18194         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18195         * tests/test-sigaction.c (handler, main): Likewise.
18196         * lib/freading.h: Treat uClibc like a non-glibc platform.
18197         * lib/freading.c: Likewise.
18198         * lib/gettext.h: Likewise.
18199         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18200         Likewise.
18201         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18202         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18203         * lib/propername.c (proper_name_utf8): Likewise.
18204         * lib/spawn.in.h: Likewise.
18205         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18206         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18207         mem_cd_iconveh_internal): Likewise.
18208         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18209         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18210         strstr, strcasestr): Likewise.
18211         * lib/unicodeio.c (unicode_to_mb): Likewise.
18212         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18213         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18214         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18215         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18216         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18217         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18218         * lib/unistr/u8-stpncpy.c: Likewise.
18219         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18220         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18223         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18228         Likewise.
18229         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18230         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18234         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18235         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18236         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18237         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18238         * tests/test-striconveha.c (main): Likewise.
18239         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18240         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18241         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18242         * doc/posix-functions/getline.texi: Likewise.
18243         Reported by Mike Frysinger <vapier@gentoo.org>.
18244
18245 2010-11-20  Bruno Haible  <bruno@clisp.org>
18246
18247         nproc: Fix condition.
18248         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18249         HAVE_PTHREAD_AFFINITY_NP.
18250
18251 2010-11-20  Bruno Haible  <bruno@clisp.org>
18252
18253         Fix a comment.
18254         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18255
18256 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18257
18258         ftoastr: don't assume snprintf
18259         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18260         Implement a subset of snprintf here, by using sprintf safely.
18261         * modules/ftoastr (Depends-on): Remove snprintf.
18262
18263 2010-11-19  Jim Meyering  <meyering@redhat.com>
18264
18265         test-rename.h: fix compilation failure
18266         * tests/test-rename.h (test_rename): Add omitted "}".
18267
18268 2010-11-17  Jim Meyering  <meyering@redhat.com>
18269
18270         maint.mk: add a URL discussing the no-@acronym policy
18271         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18272
18273 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18274
18275         ftoastr: depend on snprintf, improve comments
18276         * lib/ftoastr.c: Also mention Loitsch's draft.
18277         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18278         needed in the current implementation, but it might simplify
18279         speeding up the code later.
18280         * modules/ftoastr: Depend on snprintf; this improves portability.
18281         Suggested by Bruno Haible in the same email.
18282
18283         ftoastr: port to hosts lacking strtof and strtold
18284         Problem reported by Bruno Haible in
18285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18286         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18287         environment and strtold (and presumably strtof) are not available.
18288         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18289         (configure.ac): Require gl_C99_STRTOLD.
18290
18291 2010-11-18  Bruno Haible  <bruno@clisp.org>
18292
18293         c-strtold: Avoid link error on AIX 7.
18294         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18295         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18296         (gl_C_STRTOLD): Test whether strtold_l exists.
18297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18298
18299 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18300
18301         intprops: new macro INT_BITS_STRLEN_BOUND
18302         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18303         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18304         not exposed.  Also, it uses a slightly tighter bound than before;
18305         though this makes no practical difference, we might as well be as
18306         tight as we easily can.
18307
18308         ftoastr: new module, for lossless conversion of floats to short strings
18309         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18310         * modules/ftoastr: New files.
18311
18312 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18313
18314         bootstrap: port to Solaris sed
18315         * build-aux/bootstrap (get_version): Port to Solaris sed.
18316         See Ralf Wildenhues's note in
18317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18318
18319 2010-11-14  Jim Meyering  <meyering@redhat.com>
18320
18321         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18322         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18323         and move definition closer to sole use.
18324
18325 2010-11-13  Jim Meyering  <meyering@redhat.com>
18326
18327         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18328         Now we require at least autoconf-2.59, which means the work-around
18329         is no longer needed.
18330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18331         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18332         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18334         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18335
18336 2010-11-13  Bruno Haible  <bruno@clisp.org>
18337
18338         rename, renameat: Avoid test failures at NFS mounted locations.
18339         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18340         functions.
18341         (test_rename): Use assert_nonexistent.
18342         * tests/test-rename.c: Include <dirent.h>.
18343         * tests/test-renameat.c: Likewise.
18344         Reported by Gary V. Vaughan <gary@gnu.org>.
18345
18346         rename, renameat: Document Linux bug with NFS
18347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18348         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18349         * doc/posix-functions/renameat.texi: Likewise.
18350         Suggested by Eric Blake.
18351
18352 2010-11-13  Bruno Haible  <bruno@clisp.org>
18353
18354         rename test: Add comments.
18355         * tests/test-rename.h (test_rename): Add structure and comments.
18356
18357 2010-11-13  Eric Blake  <eblake@redhat.com>
18358
18359         maintainer-makefile: cover a few more files
18360         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18361         scripts generated within C files, for libvirt.
18362
18363 2010-11-13  Bruno Haible  <bruno@clisp.org>
18364
18365         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18366         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18367         character, return the number of bytes that belong together, not always
18368         1.
18369         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18370         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18371         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18372         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18373         number of bytes of an invalid character.
18374         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18375         (main): Invoke it.
18376         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18377         results.
18378         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18379         malformed byte sequences.
18380         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18381         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18382         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18383         Reported by Ben Pfaff and Paolo Bonzini.
18384
18385 2010-11-13  Bruno Haible  <bruno@clisp.org>
18386
18387         openat: Work around glibc bug with fchownat() and empty file names.
18388         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18389         (gl_FUNC_FCHOWNAT): Invoke it.
18390         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18391         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18392         Reported by Gary V. Vaughan <gary@gnu.org>.
18393
18394 2010-11-13  Bruno Haible  <bruno@clisp.org>
18395
18396         openat: Ensure autoconf macro ordering.
18397         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18398         gl_USE_SYSTEM_EXTENSIONS.
18399         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18400
18401 2010-11-13  Bruno Haible  <bruno@clisp.org>
18402
18403         Update comments.
18404         * lib/unistr/u8-check.c: Update file name in comments.
18405         * lib/unistr/u8-mblen.c: Likewise.
18406         * lib/unistr/u8-prev.c: Likewise.
18407         * lib/unistr/u8-strmblen.c: Likewise.
18408         * lib/unistr/u8-strmbtouc.c: Likewise.
18409
18410 2010-11-13  Jim Meyering  <meyering@redhat.com>
18411
18412         tests: avoid test failure on Solaris 10 due to lack of PATH export
18413         * tests/test-update-copyright.sh: Don't forget to export PATH.
18414
18415         init.sh: ensure that IFS is defined, just in case...
18416         * tests/init.sh (setup_): Ensure that IFS is defined,
18417         so that saving and restoring it works as expected.  This
18418         appears to be useful at least for an old version of dash
18419         from a long time ago (RH 6).  See here for details:
18420         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18421
18422         maint.mk: tighten "test a == b" check
18423         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18424         test to files that contain something like #!/bin/sh.
18425         Without this, coreutils would get two false positives in
18426         the comments of C source files.
18427
18428 2010-11-12  Eric Blake  <eblake@redhat.com>
18429
18430         bootstrap: fix typo in previous attempt
18431         * build-aux/bootstrap (buildreq): Correct the grouping.
18432         Reported by Paul Eggert.
18433
18434         maintainer-makefile: prohibit test x == x
18435         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18436         Based on a report by Matthias Bolte.
18437
18438         bootstrap: allow FreeBSD gzip
18439         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18440         which has no '.' and goes to stderr.
18441         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18442         Reported by Matthias Bolte.
18443
18444         maintainer-makefile: check for i18n setup
18445         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18446         will likely work.
18447
18448 2010-11-12  Bruno Haible  <bruno@clisp.org>
18449
18450         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18451         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18452         * lib/nanosleep.c (nanosleep): Likewise.
18453
18454 2010-11-11  Bruno Haible  <bruno@clisp.org>
18455
18456         fcntl-h: Fix for use of C++ on glibc systems.
18457         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18458         also on glibc systems in C++ mode.
18459         Reported by Gary V. Vaughan <gary@gnu.org>.
18460
18461 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18462
18463         mknod: avoid false failure with dash
18464         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18465
18466 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18467
18468         unlink: Fix "is it should" typo in diagnostic.
18469         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18471
18472 2010-11-11  Bruno Haible  <bruno@clisp.org>
18473
18474         Tests for module 'strerror_r-posix'.
18475         * modules/strerror_r-posix-tests: New file.
18476         * tests/test-strerror_r.c: New file.
18477         * tests/test-string-c++.cc: Check the signature of strerror_r.
18478
18479         New module 'strerror_r-posix'.
18480         * lib/string.in.h (strerror_r): New declaration.
18481         * lib/strerror_r.c: New file.
18482         * m4/strerror_r.m4: New file.
18483         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18484         of strerror_r.
18485         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18486         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18487         * modules/strerror_r-posix: New file.
18488         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18489         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18490         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18491         portability problems.
18492
18493 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18494
18495         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18496         line is also considered for output. Quoted function name in shell
18497         command, so temporary files for functions like MyClass::operator()
18498         are removed correctly without errors.
18499
18500 2010-11-09  Bruno Haible  <bruno@clisp.org>
18501
18502         * doc/posix-functions/strerror.texi: List more failing platforms.
18503
18504         * doc/posix-functions/strerror.texi: Add a comment.
18505
18506 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18507
18508         fdopendir: fix bug on MacOS X when low on file descriptors
18509
18510         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18511         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18512         All callers changed.
18513         (fdopendir): Invoke save_cwd at the top level, not after using
18514         multiple dup() calls to use up file descriptors.  Then retry
18515         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18516         less than the maximum number of open file descriptors, because
18517         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18518         on Mac OS X 10.6.4 for tar 1.24
18519         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18520         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18521         and for tar 1.25
18522         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18523
18524 2010-11-07  Bruno Haible  <bruno@clisp.org>
18525
18526         vasnprintf: Support I flag on glibc systems.
18527         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18528         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18529         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18530         snprintf function.
18531         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18532         glibc systems.
18533         * tests/test-vasnprintf-posix3.c: New file.
18534         * modules/vasnprintf-posix-tests (Files): Add it.
18535         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18536
18537 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18538
18539         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18540         * MODULES.html.sh: For compiler warnings, use name
18541         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18542
18543 2010-11-05  Eric Blake  <eblake@redhat.com>
18544
18545         ceil, floor: avoid spurious failure with icc
18546         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18547         [denormals-as-zero] when optimizing without -mieee-fp option.
18548         * tests/test-floorf2.c (floorf_reference): Likewise.
18549         * tests/test-ceilf1.c (dummy): New function.
18550         (main): Use it to outsmart icc's optimization.
18551         * tests/test-floorf1.c (dummy, main): Likewise.
18552
18553         tests: require working signbit
18554         * modules/ceilf-tests (Depends-on): Add signbit.
18555         * modules/ceill-tests (Depends-on): Likewise.
18556         * modules/floorf-tests (Depends-on): Likewise.
18557         * modules/floorl-tests (Depends-on): Likewise.
18558         * modules/round-tests (Depends-on): Likewise.
18559         * modules/roundf-tests (Depends-on): Likewise.
18560         * modules/roundl-tests (Depends-on): Likewise.
18561         * modules/trunc-tests (Depends-on): Likewise.
18562         * modules/truncf-tests (Depends-on): Likewise.
18563         * modules/truncl-tests (Depends-on): Likewise.
18564
18565         strtod: work around icc bug
18566         * lib/strtod.c (minus_zero): Define to working value.
18567         (strtod): Use it to avoid icc bug.
18568
18569         copysign: enhance tests
18570         * modules/copysign-tests (Files): Add minus-zero.h.
18571         * tests/test-copysign.c (main): Also test zeros.
18572
18573 2010-11-04  Eric Blake  <eblake@redhat.com>
18574
18575         ceil, floor, round, trunc: enhance tests of -0
18576         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18577         * tests/test-ceill.c (main): Likewise.
18578         * tests/test-floorf1.c (main): Likewise.
18579         * tests/test-floorl.c (main): Likewise.
18580         * tests/test-round1.c (main): Likewise.
18581         * tests/test-roundf1.c (main): Likewise.
18582         * tests/test-roundl.c (main): Likewise.
18583         * tests/test-trunc1.c (main): Likewise.
18584         * tests/test-truncf1.c (main): Likewise.
18585         * tests/test-truncl.c (main): Likewise.
18586
18587 2010-11-04  Eric Blake  <eblake@redhat.com>
18588
18589         frexp, tests: work around ICC bug with -zero
18590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18591         works with more compilers.
18592         * tests/minus-zero.h: New file.
18593         * modules/ceilf-tests (Files): Include it.
18594         * modules/ceill-tests (Files): Likewise.
18595         * modules/floorf-tests (Files): Likewise.
18596         * modules/floorl-tests (Files): Likewise.
18597         * modules/frexp-nolibm-tests (Files): Likewise.
18598         * modules/frexp-tests (Files): Likewise.
18599         * modules/frexpl-nolibm-tests (Files): Likewise.
18600         * modules/frexpl-tests (Files): Likewise.
18601         * modules/isnan-tests (Files): Likewise.
18602         * modules/isnand-nolibm-tests (Files): Likewise.
18603         * modules/isnand-tests (Files): Likewise.
18604         * modules/isnanf-nolibm-tests (Files): Likewise.
18605         * modules/isnanf-tests (Files): Likewise.
18606         * modules/isnanl-nolibm-tests (Files): Likewise.
18607         * modules/isnanl-tests (Files): Likewise.
18608         * modules/round-tests (Files): Likewise.
18609         * modules/roundf-tests (Files): Likewise.
18610         * modules/roundl-tests (Files): Likewise.
18611         * modules/ldexpl-tests (Files): Likewise.
18612         * modules/signbit-tests (Files): Likewise.
18613         * modules/snprintf-posix-tests (Files): Likewise.
18614         * modules/sprintf-posix-tests (Files): Likewise.
18615         * modules/strtod-tests (Files): Likewise.
18616         * modules/trunc-tests (Files): Likewise.
18617         * modules/truncf-tests (Files): Likewise.
18618         * modules/truncl-tests (Files): Likewise.
18619         * modules/vsnprintf-posix-tests (Files): Likewise.
18620         * modules/vsprintf-posix-tests (Files): Likewise.
18621         * modules/vasnprintf-posix-tests (Files): Likewise.
18622         * modules/vasprintf-posix-tests (Files): Likewise.
18623         * tests/test-ceilf1.c (main): Use it.
18624         * tests/test-ceill.c (main): Likewise.
18625         * tests/test-floorf1.c (main): Likewise.
18626         * tests/test-floorl.c (main): Likewise.
18627         * tests/test-frexp.c (main): Likewise.
18628         * tests/test-frexpl.c (main): Likewise.
18629         * tests/test-isnan.c (main): Likewise.
18630         * tests/test-isnand.h (main): Likewise.
18631         * tests/test-isnanf.h (main): Likewise.
18632         * tests/test-isnanl.h (main): Likewise.
18633         * tests/test-ldexpl.c (main): Likewise.
18634         * tests/test-round.c (main): Likewise.
18635         * tests/test-roundf.c (main): Likewise.
18636         * tests/test-roundl.c (main): Likewise.
18637         * tests/test-signbit.c (test_signbitf, test_signbitd)
18638         (test_signbitl): Likewise.
18639         * tests/test-snprintf-posix.h (test_function): Likewise.
18640         * tests/test-sprintf-posix.h (test_function): Likewise.
18641         * tests/test-strtod.c (main): Likewise.
18642         * tests/test-trunc1.c (main): Likewise.
18643         * tests/test-truncf1.c (main): Likewise.
18644         * tests/test-truncl.c (main): Likewise.
18645
18646         isnanl: work around icc bug
18647         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18648
18649 2010-11-03  Eric Blake  <eblake@redhat.com>
18650
18651         tests: fix compiler warnings
18652         * tests/test-getopt.h (test_getopt): Fix condition.
18653         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18654         * tests/test-pipe2.c (main): Likewise.
18655         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18656
18657         utimens: fix broken m4 test
18658         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18659
18660 2010-10-28  Bruno Haible  <bruno@clisp.org>
18661
18662         posix_spawn*, getdtablesize: Relax license.
18663         * modules/posix_spawn (License): Change to LGPLv2+.
18664         * modules/posix_spawnp (License): Likewise.
18665         * modules/posix_spawn-internal (License): Likewise.
18666         * modules/posix_spawnattr_init (License): Likewise.
18667         * modules/posix_spawnattr_getflags (License): Likewise.
18668         * modules/posix_spawnattr_setflags (License): Likewise.
18669         * modules/posix_spawnattr_getpgroup (License): Likewise.
18670         * modules/posix_spawnattr_setpgroup (License): Likewise.
18671         * modules/posix_spawnattr_getschedparam (License): Likewise.
18672         * modules/posix_spawnattr_setschedparam (License): Likewise.
18673         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18674         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18675         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18676         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18677         * modules/posix_spawnattr_getsigmask (License): Likewise.
18678         * modules/posix_spawnattr_setsigmask (License): Likewise.
18679         * modules/posix_spawnattr_destroy (License): Likewise.
18680         * modules/posix_spawn_file_actions_init (License): Likewise.
18681         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18682         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18683         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18684         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18685         * modules/getdtablesize (License): Likewise.
18686         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18687
18688 2010-10-26  Bruno Haible  <bruno@clisp.org>
18689
18690         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18691         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18692         Cygwin and mingw.
18693         Suggested by Eric Blake.
18694
18695 2010-10-26  Bruno Haible  <bruno@clisp.org>
18696
18697         stdio: Work around compilation error due to renameat() on Solaris 10.
18698         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18699         * lib/renameat.c: Don't include <unistd.h> here.
18700         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18701         Reported by Paul Eggert and Eric Blake.
18702
18703 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18704
18705         renameat: port to Solaris 10, which declares renameat in unistd.h
18706
18707         * lib/renameat.c: Include unistd.h before stdio.h, because
18708         Solaris 10 declares renameat in unistd.h.  Problem encountered
18709         when building GNU tar 1.24 on Solaris 10.
18710
18711 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18712
18713         fdopendir: fix C89 compilation
18714         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18715         compilers.
18716
18717 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         inttostr: simplify by removing unnecessary redundancy
18720         * lib/anytostr.c: Don't include verify.h.
18721         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18722         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18723         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18724         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18725         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18726         Likewise.
18727         * modules/inttostr (Depends-on): Remove 'verify'.
18728
18729 2010-10-23  Bruno Haible  <bruno@clisp.org>
18730
18731         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18732         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18733         Reported by Eric Blake.
18734
18735 2010-10-23  Bruno Haible  <bruno@clisp.org>
18736
18737         Tests: Fix LOCALE_JA on MirBSD 10.
18738         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18739         to an UTF-8 locale.
18740         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18742         Reported by Eric Blake.
18743
18744 2010-10-21  Bruno Haible  <bruno@clisp.org>
18745
18746         nl_langinfo test: Avoid test failure on NetBSD 5.
18747         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18748         Reported by Eric Blake.
18749
18750 2010-10-21  Eric Blake  <eblake@redhat.com>
18751
18752         c-stack: work around libsigsegv 2.8 bug
18753         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18754         overflow on at least PowerPC64.
18755
18756 2010-10-17  Bruno Haible  <bruno@clisp.org>
18757
18758         userspec: Drop redundant file.
18759         * modules/userspec (Files): Remove lib/inttostr.h.
18760
18761 2010-10-17  Bruno Haible  <bruno@clisp.org>
18762
18763         nl_langinfo tests: Silence some warnings.
18764         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18765         Reported by Jim Meyering.
18766
18767 2010-10-17  Bruno Haible  <bruno@clisp.org>
18768
18769         Make use of GCC's attribute __alloc_size__.
18770         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18771         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18772         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18773         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18774         __alloc_size__.
18775         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18776         Suggested by Jim Meyering.
18777
18778 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18779
18780         bootstrap: anchor .gitignore entries.
18781         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18782         with...
18783         (insert_vc_ignore): ... this new function, which prepends `/' to
18784         all .gitignore entries before passing them to
18785         insert_sorted_if_absent.
18786
18787 2010-10-16  Bruno Haible  <bruno@clisp.org>
18788
18789         nextafter: Fix configure check.
18790         * modules/nextafter (configure.ac): Correct expected prototype.
18791
18792 2010-10-16  Bruno Haible  <bruno@clisp.org>
18793
18794         termios: Update documentation.
18795         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18796
18797 2010-10-16  Bruno Haible  <bruno@clisp.org>
18798
18799         tests: Make them compile with TinyCC.
18800         * tests/test-strstr.c (main): Remove parentheses around array
18801         initializer.
18802
18803 2010-10-15  Eric Blake  <eblake@redhat.com>
18804
18805         ignore-value: make header idempotent
18806         * lib/ignore-value.h: Add double-inclusion guards.
18807         Reported by Stefan Berger.
18808
18809 2010-10-15  Jim Meyering  <meyering@redhat.com>
18810
18811         GNUmakefile: handle "stable" target, not "major"
18812         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18813         lists in maint.mk and announce-gen.  Without this, "make stable"
18814         would fail to ensure that $(VERSION) is up to date.
18815
18816 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18817
18818         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18819         & co.
18820
18821 2010-10-14  Bruno Haible  <bruno@clisp.org>
18822
18823         vasnprintf: Don't set errno to 0.
18824         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18825         block that sets it to 0.
18826         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18827
18828 2010-10-14  Bruno Haible  <bruno@clisp.org>
18829
18830         socketlib: Fix.
18831         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18832         gl_PREREQ_SYS_H_WINSOCK2.
18833         Reported by Ian Beckwith <ianb@erislabs.net>.
18834
18835 2010-10-13  Jim Meyering  <meyering@redhat.com>
18836
18837         test-select-stdin.c: avoid warn_unused_result warnings
18838         * tests/test-select-stdin.c: Include "macros.h".
18839         ASSERT that read and fflush succeed.
18840
18841 2010-10-13  Jim Meyering  <meyering@redhat.com>
18842
18843         git-version-gen: do require git-VC'd files in cwd
18844         * build-aux/git-version-gen: Reject a git version string
18845         if there are no commits associated with the current directory.
18846         This avoids an unlikely false-positive (unrelated dir whose parent
18847         repository also contains a tag matching v*), as pointed out
18848         by Giuseppe Scrivano in
18849         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18850
18851 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18852
18853         argv-iter: omit nonconforming declaration
18854         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18855         enum arg_iter_err declaration, which doesn't conform to C99.
18856         Solaris 10 cc warns about this.
18857
18858 2010-10-13  Eric Blake  <eblake@redhat.com>
18859
18860         termios: fix compilation on mingw
18861         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18862         (gl_TERMIOS_H): Adjust it on mingw.
18863         * modules/termios (Makefile.am): Substitute new key.
18864         * lib/termios.in.h (includes): Make include_next conditional.
18865         * doc/posix-headers/termios.texi (termios.h): Update
18866         documentation.
18867         Reported by Daniel P. Berrange.
18868
18869 2010-10-13  Jim Meyering  <meyering@redhat.com>
18870
18871         git-version-gen: don't require that .git/ be in the current dir
18872         * build-aux/git-version-gen: Adjust this script so that it works
18873         when run from any working directory beneath the top-level .git/-
18874         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18875         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18876
18877         test-select: avoid warn_unused_result warnings
18878         * tests/test-select.c: Include "macros.h".
18879         ASSERT that each call to read, write, and pipe succeeds.
18880         While not technically required, also check each "close".
18881         * modules/select-tests (Files): Add tests/macros.h.
18882
18883         test-symlinkat: remove declaration of unused local
18884         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18885
18886         test-inttostr: avoid shadowing warnings
18887         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18888         and use malloc rather than the stack for the same reason as
18889         mentioned in the comment justifying the other allocation.
18890
18891 2010-10-11  Bruno Haible  <bruno@clisp.org>
18892
18893         stdlib: Allow multiple gnulib generated replacements to coexist.
18894         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18895         Reported by Sam Steingold <sds@gnu.org>.
18896
18897 2010-10-11  Jim Meyering  <meyering@redhat.com>
18898
18899         fix a documentation typo
18900         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18901
18902 2010-10-11  Eric Blake  <eblake@redhat.com>
18903
18904         futimens: work around Solaris 11 bug
18905         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18906         * tests/test-futimens.h (test_futimens): Enhance, rather than
18907         weaken test.
18908         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18909
18910 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18911
18912         Indentation.
18913         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18914         higher-level operators more to the left.
18915
18916 2010-10-11  Jim Meyering  <meyering@redhat.com>
18917
18918         test-futimens: avoid unwarranted test failure on Solaris 5.11
18919         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18920         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18921         because it tries to dereference the NULL name argument.
18922
18923 2010-10-11  Bruno Haible  <bruno@clisp.org>
18924
18925         Indentation.
18926         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18927         indentation.
18928
18929 2010-10-11  Jim Meyering  <meyering@redhat.com>
18930
18931         spawn.in.h: make indentation consistent with parentheses
18932         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18933         Make indentation consistent with parentheses.
18934
18935 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18936
18937         Fix mismatched parens in previous commit
18938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18939         parens.
18940
18941 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18942
18943         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18944
18945         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18946         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18947         * lib/malloca.c: Include "verify.h".
18948         (verify1): Remove, replacing with a verify call.
18949         * lib/relocwrapper.c (verify1): Likewise.
18950         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18951         Likewise.
18952         * modules/malloca (Depends-on): Add 'verify'.
18953         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18954         * modules/vasnprintf (Depends-on): Add 'verify'.
18955         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18956         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18958         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18959         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18960         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18961         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18962
18963         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18964
18965         Formerly the style was sometimes 2*X - 1, because the C standard
18966         was wrongly thought to disallow ?: in integral constant expressions.
18967         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18968         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18969         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18970         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18971         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18972         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18973         verify that time_t cannot be floating.
18974
18975 2010-10-08  Eric Blake  <eblake@redhat.com>
18976
18977         time: enforce recent POSIX ruling that time_t is integral
18978         * lib/time.in.h (__time_t_must_be_integral): Detect any
18979         problematic systems, allowing the rest of gnulib to assume POSIX.
18980
18981 2010-10-08  Jim Meyering  <meyering@redhat.com>
18982
18983         fdopendir: fix a bug on systems lacking openat and /proc support
18984         OpenBSD 4.7 is one such system.  The most noticeable effect was
18985         failure of any application making nontrivial use of fts: rm, du,
18986         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18987           ./rm: traversal failed: `a': Bad file descriptor
18988         Debugging that, you see that even though FD 6 was closed just
18989         prior to the opendir call in fd_clone_opendir, its resulting
18990         dir->dd_fd was 8, rather than the expected value of 6:
18991
18992         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18993         93                close (fd);
18994         (gdb) n
18995         94                dir = fd_clone_opendir (dupfd);
18996         (gdb) n
18997         95                saved_errno = errno;
18998         (gdb) p dir->dd_fd
18999         $11 = 8
19000
19001         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19002         The problem is that on OpenBSD, fd_clone_opendir has to resort
19003         to using the old-style save/restore CWD mechanism, due to its
19004         lack of openat/proc support, and *that* would steal the FD (6)
19005         that opendir was supposed to use.
19006
19007         The fix is to squirrel away the desired FD so that save_cwd uses a
19008         different one, and then free the dest FD right before calling opendir.
19009         That guarantees opendir will use the required file descriptor.
19010
19011         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19012
19013 2010-10-08  Bruno Haible  <bruno@clisp.org>
19014
19015         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19016         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19017
19018 2010-10-08  Bruno Haible  <bruno@clisp.org>
19019
19020         nanosleep: Make replacement POSIX compliant.
19021         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19022         is out of range.
19023         Reported by Jim Meyering.
19024
19025 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19026
19027         bootstrap: add hook for altering gnulib.mk, for Bison
19028         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19029         the Bison bootstrapping process can rewrite file names and variables
19030         in this file before later parts of 'bootstrap' use the file.
19031         Bison wants to include lib/gnulib.mk from the top-level makefile,
19032         so it needs the file names in this file to be relative to the top
19033         level, not relative to lib; plus it needs variable names to be
19034         rewritten.
19035         (slurp): Use the new function.
19036
19037         bootstrap: reformat for readability
19038         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19039
19040 2010-10-08  Eric Blake  <eblake@redhat.com>
19041
19042         docs: update cygwin progress
19043         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19044         1.7.7.
19045         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19046         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19047         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19048         * doc/posix-functions/carg.texi (carg): Likewise.
19049         * doc/posix-functions/cargf.texi (cargf): Likewise.
19050         * doc/posix-functions/casin.texi (casin): Likewise.
19051         * doc/posix-functions/casinf.texi (casinf): Likewise.
19052         * doc/posix-functions/casinh.texi (casinh): Likewise.
19053         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19054         * doc/posix-functions/catan.texi (catan): Likewise.
19055         * doc/posix-functions/catanf.texi (catanf): Likewise.
19056         * doc/posix-functions/catanh.texi (catanh): Likewise.
19057         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19058         * doc/posix-functions/ccos.texi (ccos): Likewise.
19059         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19060         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19061         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19062         * doc/posix-functions/cexp.texi (cexp): Likewise.
19063         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19064         * doc/posix-functions/cimag.texi (cimag): Likewise.
19065         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19066         * doc/posix-functions/clog.texi (clog): Likewise.
19067         * doc/posix-functions/clogf.texi (clogf): Likewise.
19068         * doc/posix-functions/conj.texi (conj): Likewise.
19069         * doc/posix-functions/conjf.texi (conjf): Likewise.
19070         * doc/posix-functions/cpow.texi (cpow): Likewise.
19071         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19072         * doc/posix-functions/cproj.texi (cproj): Likewise.
19073         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19074         * doc/posix-functions/creal.texi (creal): Likewise.
19075         * doc/posix-functions/crealf.texi (crealf): Likewise.
19076         * doc/posix-functions/csin.texi (csin): Likewise.
19077         * doc/posix-functions/csinf.texi (csinf): Likewise.
19078         * doc/posix-functions/csinh.texi (csinh): Likewise.
19079         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19080         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19081         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19082         * doc/posix-functions/ctan.texi (ctan): Likewise.
19083         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19084         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19085         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19086         * doc/posix-headers/complex.texi (complex.h): Likewise.
19087
19088 2010-10-07  Jim Meyering  <meyering@redhat.com>
19089
19090         parse-datetime: avoid compilation failure on OpenBSD 4.7
19091         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19092         This works around a compilation failure on OpenBSD 4.7:
19093         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19094
19095 2010-10-07  Eric Blake  <eblake@redhat.com>
19096
19097         docs: update cygwin progress
19098         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19099         1.7.6.
19100         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19101         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19102         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19103         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19104         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19105         Likewise.
19106         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19107         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19108         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19109         Likewise.
19110         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19111         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19112         Likewise.
19113         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19114         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19115         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19116         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19117         Likewise.
19118         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19119         Likewise.
19120         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19121
19122         docs: update parse-datetime history
19123         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19124         documentation of this function's history and alternatives.
19125
19126         cygwin: use more robust version check
19127         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19128         exclude an eventual cygwin 1.9.1.
19129         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19131         (gl_FUNC_STRCASESTR): Likewise.
19132         Reported by Bruno Haible.
19133
19134 2010-10-06  Bruno Haible  <bruno@clisp.org>
19135
19136         string, sys_select: Avoid #including large headers unless necessary.
19137         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19138         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19139         OSF/1, BeOS, Haiku.
19140         Reported by Jim Meyering.
19141
19142 2010-10-05  Eric Blake  <eblake@redhat.com>
19143
19144         memmem, strstr, strcasestr: fix bug with long periodic needle
19145         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19146         periodic needle having false positive.
19147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19148         and cygwin 1.7.7.
19149         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19151         (gl_FUNC_STRCASESTR): Likewise.
19152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19153         * tests/test-memmem.c (main): Expose the bug.
19154         * tests/test-strcasestr.c (main): Likewise.
19155         * tests/test-strstr.c (main): Likewise.
19156         * tests/test-c-strcasestr.c (main): Likewise.
19157         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19158         * doc/posix-functions/strstr.texi (strstr): Likewise.
19159         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19160         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19161
19162 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19163
19164         parse-datetime: do some more renaming
19165         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19166         parse_datetime, not get_date.  Mention the renaming.
19167         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19168         in comments.
19169         * m4/bison.m4: Likewise.
19170
19171 2010-10-05  Eric Blake  <eblake@redhat.com>
19172
19173         parse-datetime: better name than get_date
19174         * NEWS: Reword the deprecation notice.
19175         * modules/get_date: Rename to modules/parse-datetime.
19176         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19177         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19178         * lib/get_date.y: Rename to lib/parse-datetime.y.
19179         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19180         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19181         * doc/getdate.texi: Provide fallback wrapper.
19182         * lib/getdate.h: Move guts, and wrap...
19183         * lib/parse-datetime.h: ...new file.
19184         * lib/parse-datetime.y (get_date): Rename...
19185         (parse_datetime): ...to this.
19186         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19187         (gl_PARSE_DATETIME): ...to this.
19188         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19189         documentation.
19190         * modules/getdate (Files): Provide fallback docs and header.
19191         (Notice, Depends-on): Update references.
19192         * tests/test-parse-datetime.c: Likewise.
19193         * DEPENDENCIES: Likewise.
19194         * MODULES.html.sh (Date and time <time.h>): Likewise.
19195         * doc/parse-datetime.texi (Date input formats)
19196         (Authors of parse_datetime): Likewise.
19197         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19198         (Include): Likewise.
19199         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19200         * gnulib-tool: Likewise.
19201         * m4/bison.m4 (gl_BISON): Likewise.
19202         Suggested by Bruno Haible.
19203
19204 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19205
19206         more ports to Solaris tr, which needs [] around ranges
19207         * gnulib-tool: Solaris tr needs [] around ranges.
19208         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19209         * tests/test-pipe-filter-gi1.c (main): Likewise.
19210         * tests/test-pipe-filter-ii1.c (main): Likewise.
19211
19212 2010-10-05  Eric Blake  <eblake@redhat.com>
19213
19214         bootstrap: fix Solaris regression
19215         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19216         around ranges.
19217         Reported by Pádraig Brady.
19218
19219         bootstrap: work with pkg-config
19220         * build-aux/bootstrap (check_versions): Also transliterate - in
19221         prerequisite name.
19222         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19223         prerequisites that were already found, to avoid confusion.
19224         Reported by Justin Clift.
19225
19226         faccessat: remove unused wrappers
19227         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19228         presence of these wrappers dragged in -lgen on Solaris.
19229         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19230
19231 2010-10-05  Jim Meyering  <meyering@redhat.com>
19232
19233         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19234         * Makefile (sc_pragma_columns): New syntax-check rule.
19235
19236 2010-10-04  Bruno Haible  <bruno@clisp.org>
19237
19238         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19239         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19240         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19241         Reported by Bruce Korb and Eric Blake.
19242
19243 2010-10-04  Bruno Haible  <bruno@clisp.org>
19244
19245         threadlib: Make option --with-libpth-prefix work.
19246         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19247         use $LIBPTH, not just -lpth.
19248
19249 2010-10-04  Bruno Haible  <bruno@clisp.org>
19250
19251         Avoid line length limitation from HP NonStop system header files.
19252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19253         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19254         * lib/ctype.in.h: Likewise.
19255         * lib/dirent.in.h: Likewise.
19256         * lib/errno.in.h: Likewise.
19257         * lib/fcntl.in.h: Likewise.
19258         * lib/float.in.h: Likewise.
19259         * lib/getopt.in.h: Likewise.
19260         * lib/iconv.in.h: Likewise.
19261         * lib/inttypes.in.h: Likewise.
19262         * lib/langinfo.in.h: Likewise.
19263         * lib/locale.in.h: Likewise.
19264         * lib/math.in.h: Likewise.
19265         * lib/netdb.in.h: Likewise.
19266         * lib/netinet_in.in.h: Likewise.
19267         * lib/poll.in.h: Likewise.
19268         * lib/pthread.in.h: Likewise.
19269         * lib/pty.in.h: Likewise.
19270         * lib/sched.in.h: Likewise.
19271         * lib/se-selinux.in.h: Likewise.
19272         * lib/search.in.h: Likewise.
19273         * lib/signal.in.h: Likewise.
19274         * lib/spawn.in.h: Likewise.
19275         * lib/stdarg.in.h: Likewise.
19276         * lib/stddef.in.h: Likewise.
19277         * lib/stdint.in.h: Likewise.
19278         * lib/stdio.in.h: Likewise.
19279         * lib/stdlib.in.h: Likewise.
19280         * lib/string.in.h: Likewise.
19281         * lib/strings.in.h: Likewise.
19282         * lib/sys_file.in.h: Likewise.
19283         * lib/sys_ioctl.in.h: Likewise.
19284         * lib/sys_select.in.h: Likewise.
19285         * lib/sys_socket.in.h: Likewise.
19286         * lib/sys_stat.in.h: Likewise.
19287         * lib/sys_time.in.h: Likewise.
19288         * lib/sys_times.in.h: Likewise.
19289         * lib/sys_utsname.in.h: Likewise.
19290         * lib/sys_wait.in.h: Likewise.
19291         * lib/sysexits.in.h: Likewise.
19292         * lib/termios.in.h: Likewise.
19293         * lib/time.in.h: Likewise.
19294         * lib/unistd.in.h: Likewise.
19295         * lib/wchar.in.h: Likewise.
19296         * lib/wctype.in.h: Likewise.
19297         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19298         * modules/ctype (Makefile.am): Likewise.
19299         * modules/dirent (Makefile.am): Likewise.
19300         * modules/errno (Makefile.am): Likewise.
19301         * modules/fcntl-h (Makefile.am): Likewise.
19302         * modules/float (Makefile.am): Likewise.
19303         * modules/getopt-posix (Makefile.am): Likewise.
19304         * modules/iconv-h (Makefile.am): Likewise.
19305         * modules/inttypes (Makefile.am): Likewise.
19306         * modules/langinfo (Makefile.am): Likewise.
19307         * modules/locale (Makefile.am): Likewise.
19308         * modules/math (Makefile.am): Likewise.
19309         * modules/netdb (Makefile.am): Likewise.
19310         * modules/netinet_in (Makefile.am): Likewise.
19311         * modules/poll-h (Makefile.am): Likewise.
19312         * modules/pthread (Makefile.am): Likewise.
19313         * modules/pty (Makefile.am): Likewise.
19314         * modules/sched (Makefile.am): Likewise.
19315         * modules/search (Makefile.am): Likewise.
19316         * modules/selinux-h (Makefile.am): Likewise.
19317         * modules/signal (Makefile.am): Likewise.
19318         * modules/spawn (Makefile.am): Likewise.
19319         * modules/stdarg (Makefile.am): Likewise.
19320         * modules/stddef (Makefile.am): Likewise.
19321         * modules/stdint (Makefile.am): Likewise.
19322         * modules/stdio (Makefile.am): Likewise.
19323         * modules/stdlib (Makefile.am): Likewise.
19324         * modules/string (Makefile.am): Likewise.
19325         * modules/strings (Makefile.am): Likewise.
19326         * modules/sys_file (Makefile.am): Likewise.
19327         * modules/sys_ioctl (Makefile.am): Likewise.
19328         * modules/sys_select (Makefile.am): Likewise.
19329         * modules/sys_socket (Makefile.am): Likewise.
19330         * modules/sys_stat (Makefile.am): Likewise.
19331         * modules/sys_time (Makefile.am): Likewise.
19332         * modules/sys_times (Makefile.am): Likewise.
19333         * modules/sys_utsname (Makefile.am): Likewise.
19334         * modules/sys_wait (Makefile.am): Likewise.
19335         * modules/sysexits (Makefile.am): Likewise.
19336         * modules/termios (Makefile.am): Likewise.
19337         * modules/time (Makefile.am): Likewise.
19338         * modules/unistd (Makefile.am): Likewise.
19339         * modules/wchar (Makefile.am): Likewise.
19340         * modules/wctype (Makefile.am): Likewise.
19341
19342 2010-10-04  Bruno Haible  <bruno@clisp.org>
19343
19344         read-file tests: Avoid a test failure on NonStop Kernel.
19345         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19346         a regular file.
19347         Reported by Joachim Schmitz <schmitz@hp.com>.
19348
19349 2010-10-03  Bruno Haible  <bruno@clisp.org>
19350
19351         gnulib-tool: Fixes for --create-testdir with --libtool.
19352         * gnulib-tool (func_get_automake_snippet): Don't augment
19353         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19354         an executable.
19355         (func_create_testdir): Handle module 'alloca' like func_import.
19356         Reported by Bruce Korb <bruce.korb@gmail.com>.
19357
19358 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19359
19360         Avoid some lines longer than 80 characters.
19361         * lib/stdint.in.h: Break long comment lines.
19362         * lib/math.in.h: Likewise.
19363         (_GL_NUM_UINT_WORDS): New macro, for readability.
19364         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19365         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19366         * lib/stdlib.in.h: Likewise.
19367         * lib/spawn.in.h: Likewise.
19368         * lib/sys_socket.in.h: Update an URL.
19369         * lib/sys_stat.in.h: Break long line.
19370
19371 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19372
19373         Improve pmccabe2html.
19374         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19375         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19376         when the sources change. Remove the line in the HTML about "Used
19377         ranges" (which implied that there might be other unused ranges),
19378         rename "Resume" to "Summary" (easier to understand for more users).
19379         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19380         styles, and some unnecessary blank lines.
19381
19382 2010-10-03  Bruno Haible  <bruno@clisp.org>
19383             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19384
19385         acl: Add support for ACLs on NonStop Kernel.
19386         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19387         Check whether the function aclsort() exists.
19388         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19389         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19390         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19391         (acl_nontrivial [HAVE_ACLSORT]: New function.
19392         (file_has_acl): Implement for NonStop Kernel.
19393         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19394         (qset_acl): Implement for NonStop Kernel.
19395         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19396         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19397         (main): Implement for NonStop Kernel.
19398         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19399         Kernel. Handle this flavor.
19400         * tests/test-set-mode-acl.sh: Likewise.
19401         * tests/test-copy-acl.sh: Likewise.
19402         * tests/test-copy-file.sh: Likewise.
19403
19404 2010-10-03  Bruno Haible  <bruno@clisp.org>
19405
19406         Info about ACLs on NonStop Kernel.
19407         * doc/acl-resources.txt: Add info about NonStop Kernel.
19408         References by Joachim Schmitz <schmitz@hp.com>.
19409
19410 2010-10-02  Bruno Haible  <bruno@clisp.org>
19411
19412         Define missing EDQUOT on NonStop Kernel.
19413         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19414         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19415         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19416         missing.
19417         * doc/posix-headers/errno.texi: Mention the NSK bug.
19418         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19419         Reported by Joachim Schmitz <schmitz@hp.com>.
19420
19421 2010-10-02  Bruno Haible  <bruno@clisp.org>
19422
19423         Update doc for POSIX:2008.
19424         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19425         Update URL of POSIX specification.
19426
19427 2010-10-02  Bruno Haible  <bruno@clisp.org>
19428
19429         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19430         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19431         from gnulib, not from Automake.
19432
19433 2010-10-02  Bruno Haible  <bruno@clisp.org>
19434
19435         New module 'system-posix'.
19436         * modules/system-posix: New file.
19437         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19438         module is present.
19439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19440         GNULIB_SYSTEM_POSIX.
19441         * modules/stdlib (Depends-on): Remove sys_wait.
19442         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19443         * doc/posix-functions/system.texi: Mention the new module.
19444         * doc/posix-headers/stdlib.texi: Likewise.
19445         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19446         define test_sys_wait_macros to a no-op.
19447         Reported by Sam Steingold <sds@gnu.org>.
19448
19449 2010-09-30  Bruno Haible  <bruno@clisp.org>
19450
19451         More renaming from 'getdate' to 'get_date'.
19452         * doc/get_date.texi: Renamed from doc/getdate.texi.
19453         * modules/get_date (Files): Update.
19454         * MODULES.html.sh (Date and time <time.h>): Update.
19455         * DEPENDENCIES: Update.
19456         * gnulib-tool: Update comment.
19457         * m4/bison.m4 (gl_BISON): Likewise.
19458         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19459
19460 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19461
19462         bootstrap: support ACLOCAL_FLAGS during aclocal
19463         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19464         can add additional -I dir for third-party .m4 files.
19465
19466 2010-09-30  Eric Blake  <eblake@redhat.com>
19467
19468         bootstrap: use glibtoolize on MacOS
19469         * build-aux/bootstrap (check_versions): Convert libtool into
19470         libtoolize.
19471         (tool search): Move libtool check earlier, and look for
19472         glibtoolize for MacOS.
19473         (gnulib_tool_options): Auto-add --libtool when appropriate.
19474         Reported by Justin Clift.
19475
19476         poll: fix typo that broke test on MacOS
19477         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19478         Reported by Justin Clift.
19479
19480         getdate: rename to get_date
19481         Note: getdate.h is not renamed, to minimize client impact.
19482         * modules/getdate: Mark obsolete.  Move old contents...
19483         * modules/get_date: ...to new module name.
19484         * modules/getdate-tests: Move...
19485         * modules/get_date-tests: ...here.
19486         * m4/getdate.m4: Move...
19487         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19488         * lib/getdate.y: Move...
19489         * lib/get_date.y: ...here.
19490         * tests/test-getdate.c: Move...
19491         * tests/test-get_date.c: ...here.
19492         * doc/posix-functions/getdate.texi (getdate): Update name.
19493         * NEWS: Mention the change.
19494
19495 2010-09-29  Bruno Haible  <bruno@clisp.org>
19496
19497         Separate the module 'waitpid' from the module 'sys_wait'.
19498         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19499         present.
19500         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19501         gl_MODULE_INDICATOR_FOR_TESTS.
19502         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19503         * modules/sys_wait (Depends-on): Remove waitpid.
19504         (Makefile.am): Substitute GNULIB_WAITPID.
19505         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19506         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19507         signature only if the 'waitpid' module is present.
19508         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19509         * NEWS: Mention the change.
19510         * modules/grantpt (Depends-on): Add waitpid.
19511         * modules/wait-process (Depends-on): Likewise.
19512
19513 2010-09-29  Bruno Haible  <bruno@clisp.org>
19514
19515         More tests for module 'sys_wait'.
19516         * modules/sys_wait-c++-tests: New file.
19517         * tests/test-sys_wait-c++.cc: New file.
19518         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19519         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19520
19521 2010-09-29  Bruno Haible  <bruno@clisp.org>
19522
19523         New module 'waitpid'.
19524         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19525         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19526         Don't include <process.h>.
19527         (waitpid): Declare only, using modern idiom.
19528         * m4/waitpid.m4: New file.
19529         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19530         * modules/waitpid: New file.
19531         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19532         (Makefile.am): Update.
19533         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19534
19535 2010-09-28  Bruno Haible  <bruno@clisp.org>
19536
19537         poll: Assume ANSI C.
19538         * lib/poll.c (poll): Use an ANSI C declaration.
19539
19540 2010-09-28  Bruno Haible  <bruno@clisp.org>
19541
19542         poll-h: Create poll.h on all platforms.
19543         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19544         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19545         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19546         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19547         (gl_REPLACE_POLL_H): Don't set POLL_H.
19548         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19549         * modules/poll-h (Depends-on): Add include_next.
19550         (Makefile.am): Create poll.h unconditionally. Substitute also
19551         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19552
19553 2010-09-28  Bruno Haible  <bruno@clisp.org>
19554
19555         Tests for module 'poll-h'.
19556         * modules/poll-h-c++-tests: New file.
19557         * tests/test-poll-h-c++.cc: New file.
19558
19559         Tests for module 'poll-h'.
19560         * modules/poll-h-tests: New file.
19561         * tests/test-poll-h.c: New file.
19562
19563 2010-09-28  Bruno Haible  <bruno@clisp.org>
19564
19565         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19566         * modules/poll-h (Depends-on): Add 'extensions'.
19567
19568 2010-09-28  Bruno Haible  <bruno@clisp.org>
19569
19570         New module 'poll-h'.
19571         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19572         (poll): Use modern idiom.
19573         * modules/poll-h: New file.
19574         * modules/poll (Files): Remove lib/poll.in.h.
19575         (Depends-on): Add poll-h.
19576         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19577         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19578         * m4/poll_h.m4: New file.
19579         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19580         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19581         and invoke gl_REPLACE_POLL_H.
19582         * lib/poll.c: Use common idiom.
19583         * tests/test-poll.c: Likewise.
19584         * doc/posix-headers/poll.texi: Mention the poll-h module.
19585         Suggested by Eric Blake.
19586
19587 2010-09-26  Bruno Haible  <bruno@clisp.org>
19588
19589         sys_wait: Implement WSTOPSIG.
19590         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19591         Reported by Simon Josefsson.
19592
19593 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19594
19595         stdlib, sys_wait: Avoid compilation error on mingw.
19596         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19597
19598 2010-09-26  Bruno Haible  <bruno@clisp.org>
19599
19600         stdlib tests: Avoid code duplication.
19601         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19602         * modules/sys_wait-tests (Files): Likewise.
19603         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19604         * tests/test-stdlib.c: Include test-sys_wait.h.
19605         (main): Invoke test_sys_wait_macros.
19606         * tests/test-sys_wait.c: Include test-sys_wait.h.
19607         (main): Invoke test_sys_wait_macros.
19608
19609 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19610
19611         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19612         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19613         sure Windows sockets are working before calling getaddrinfo.
19614         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19615         * doc/gnulib.texi (Windows sockets): Fix typo.
19616
19617 2010-09-25  Bruno Haible  <bruno@clisp.org>
19618
19619         Tests for module 'regex-quote'.
19620         * modules/regex-quote-tests: New file.
19621         * tests/test-regex-quote.c: New file.
19622
19623         New module 'regex-quote'.
19624         * lib/regex-quote.h: New file.
19625         * lib/regex-quote.c: New file.
19626         * modules/regex-quote: New file.
19627         Suggested by Reuben Thomas <rrt@sc3d.org>.
19628
19629 2010-09-24  Bruno Haible  <bruno@clisp.org>
19630
19631         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19632         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19633
19634 2010-09-23  Bruno Haible  <bruno@clisp.org>
19635
19636         setenv: Relax license.
19637         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19638         Blake.
19639         Requested by Eric Blake.
19640
19641 2010-09-22  Bruno Haible  <bruno@clisp.org>
19642
19643         termios: Relax license.
19644         * modules/termios (License): Change to LGPLv2+.
19645         Requested by Eric Blake.
19646
19647 2010-09-22  Bruno Haible  <bruno@clisp.org>
19648
19649         threadlib: Allow the package to change the default to 'no'.
19650         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19651         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19652         Reported by Paul Eggert.
19653
19654 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19655             Bruno Haible  <bruno@clisp.org>
19656
19657         Fix endless loop in mbmemcasecoll.
19658         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19659         byte.
19660         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19661
19662 2010-09-22  Bruno Haible  <bruno@clisp.org>
19663
19664         Tests for module 'memcoll'.
19665         * modules/memcoll-tests: New file.
19666         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19667
19668         memcoll, xmemcoll: Clarify size vs. length.
19669         * modules/memcoll.c (memcoll0): Clarify specification.
19670         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19671         passed to collate_error.
19672
19673 2010-09-22  Bruno Haible  <bruno@clisp.org>
19674
19675         Tests for module 'memcasecmp'.
19676         * modules/memcasecmp-tests: New file.
19677         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19678
19679 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         * lib/pthread.in.h: Add split double-inclusion guard, and include
19682         system <pthread.h> if there is one.  Use @@-style as in other
19683         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19684         pthread.h doesn't.
19685         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19686         (pthread_mutexattr_settype, pthread_mutex_trylock):
19687         New static inline functions, if there's no system <pthread.h>.
19688         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19689         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19690         Approximate with mutexes if the system lacks spinlocks, as in
19691         MacOS.
19692         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19693         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19694         @@-style.  Check for spinlocks separately.
19695         (gl_PTHREAD_DEFAULTS): New macro.
19696         * modules/pthread: Redo to use a more typical style for in.h files.
19697
19698 2010-09-21  Eric Blake  <eblake@redhat.com>
19699
19700         net_if: enhance tests
19701         * tests/test-net_if.c (main): Move signature checks earlier.
19702         Print failures to stderr.
19703         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19704         Document the bug that we do not yet fix.
19705
19706 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19707
19708         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19709         about gnulib, not GSS.
19710
19711 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19712
19713         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19714         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19715         for Emacs.
19716         * build-aux/pmccabe2html: Make Makefile.am example code more
19717         cut-and-paste friendly.
19718
19719 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19720
19721         * tests/test-net_if.c: New file.
19722         * modules/net_if-tests: New file.
19723
19724 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19725
19726         pthread: add pthread_spin_destroy
19727         * lib/pthread.in.h (pthread_spin_destroy): New function.
19728
19729 2010-09-19  Bruno Haible  <bruno@clisp.org>
19730
19731         gnulib-tool: Fix --help output.
19732         * gnulib-tool (func_usage): Fix help message.
19733         Reported by Reuben Thomas <rrt@sc3d.org>.
19734
19735 2010-09-18  Jim Meyering  <meyering@redhat.com>
19736
19737         maint.mk: avoid unexpanded \n in two diagnostics
19738         * top/maint.mk (sc_prohibit_always_true_header_tests):
19739         Don't use a literal \n in a halt=... assignment.  It would not be
19740         expanded, and the two \n bytes would appear in the diagnostic output
19741         rather than the desired newline.  Use halt=$$(printf ... instead.
19742         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19743
19744 2010-09-18  Bruno Haible  <bruno@clisp.org>
19745
19746         netinet_in: Doc tweak.
19747         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19748         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19749
19750 2010-09-18  Jim Meyering  <meyering@redhat.com>
19751
19752         init.sh: correct an outdated comment
19753         * tests/init.sh (create_exe_shims_):  s/function/alias/
19754
19755         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19756         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19757         a file named "*.exe" is removed between the glob expansion and the
19758         processing of that oddly named file.
19759
19760 2010-09-17  Eric Blake  <eblake@redhat.com>
19761
19762         mirbsd: add some more support
19763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19764         in BSD family.
19765         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19766         devices as OpenBSD.
19767         * m4/host-os.m4 (mirbsd): Add MirBSD.
19768
19769         tests: fix unportable assumption on sys/wait.h
19770         * tests/test-sys_wait.c (main): Relax test.
19771         * tests/test-stdlib.c (main): Likewise.
19772
19773         init.sh: accomodate directory with no .exes
19774         * tests/init.sh: Accomodate directory containing only scripts.
19775
19776         tests: avoid compiler warning
19777         * tests/test-stdlib.c (main): Use the variable.
19778
19779         fdutimens, fdutimensat: update signature, again
19780         * lib/utimens.h (gl_futimens): Delete, and move signature...
19781         (fdutimens): ...here.
19782         (fdutimensat): Rearrange signature.
19783         (lutimensat): Rename variable for clarity.
19784         * lib/fdutimensat.c (fdutimensat): Update signature.
19785         * lib/utimens.c (fdutimens): Likewise.
19786         (gl_futimens): Delete.
19787         (utimens, lutimens): Update callers.
19788         * lib/futimens.c (futimens): Likewise.
19789         * tests/test-fdutimensat.c: Likewise.
19790         * tests/test-utimens.c: Likewise.
19791         * tests/test-futimens.h: Update comment.
19792         * NEWS: Mention this.
19793         Suggested by Paul Eggert.
19794
19795 2010-09-17  Bruno Haible  <bruno@clisp.org>
19796
19797         Take over the maintenance of some older macros from Autoconf.
19798         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19799         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19800         GNU Autoconf.
19801         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19802         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19803
19804 2010-09-17  Eric Blake  <eblake@redhat.com>
19805
19806         fdutimensat: drop atflag validation
19807         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19808         with valid fd, to close a race scenario where futimens is
19809         unsupported and FILE was replaced by a symlink.
19810         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19811         accordingly.
19812         Suggested by Paul Eggert.
19813
19814 2010-09-16  Bruno Haible  <bruno@clisp.org>
19815
19816         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19817         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19818
19819 2010-09-16  Bruno Haible  <bruno@clisp.org>
19820
19821         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19822         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19823         login_tty exists.
19824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19825
19826 2010-09-16  Bruno Haible  <bruno@clisp.org>
19827
19828         login_tty: Make the replacement code work on BSD systems.
19829         * lib/login_tty.c: Include <sys/ioctl.h>.
19830         (login_tty): Use ioctl TIOCSCTTY when available.
19831         * modules/login_tty (Depends-on): Add sys_ioctl.
19832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19833
19834 2010-09-16  Bruno Haible  <bruno@clisp.org>
19835
19836         login_tty: Stricter unit test.
19837         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19838         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19839         and tcgetsid() after login_tty.
19840         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19841
19842 2010-09-16  Bruno Haible  <bruno@clisp.org>
19843
19844         New module 'tcgetsid'.
19845         * lib/tcgetsid.c: New file.
19846         * m4/tcgetsid.m4: New file.
19847         * modules/tcgetsid: New file.
19848         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19849         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19850         GNULIB_TCGETSID, HAVE_TCGETSID.
19851         * lib/termios.in.h: Include <sys/types.h>.
19852         (tcgetsid): New declaration.
19853         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19854         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19855         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19856         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19857
19858 2010-09-16  Bruno Haible  <bruno@clisp.org>
19859
19860         Tests for module 'termios'.
19861         * modules/termios-c++-tests: New file.
19862         * modules/termios-tests: New file.
19863         * tests/test-termios-c++.cc: New file.
19864         * tests/test-termios.c: New file.
19865
19866         New module 'termios'.
19867         * modules/termios: New file.
19868         * lib/termios.in.h: New file.
19869         * m4/termios_h.m4: New file.
19870         * doc/posix-headers/termios.texi: Mention the new module.
19871
19872 2010-09-16  Eric Blake  <eblake@redhat.com>
19873
19874         fdutimensat: add an atflag parameter
19875         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19876         * lib/utimens.h (fdutimensat): Update prototype.
19877         * tests/test-fdutimensat.c: Adjust test to match.
19878         * NEWS: Document the change.
19879         Suggested by Paul Eggert.
19880
19881 2010-09-16  Bruno Haible  <bruno@clisp.org>
19882
19883         Fix typos in comments.
19884         * lib/striconveh.h: Fix typo in comment.
19885         * lib/login_tty.c (login_tty): Likewise.
19886
19887 2010-09-15  Bruno Haible  <bruno@clisp.org>
19888
19889         stdlib: clarify MirBSD WEXITSTATUS bug
19890         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19891         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19892
19893 2010-09-15  Eric Blake  <eblake@redhat.com>
19894
19895         stdlib: work around MirBSD WEXITSTATUS bug
19896         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19897         * modules/stdlib (Depends-on): Add sys_wait.
19898         * tests/test-sys_wait.c (main): Enhance test.
19899         * tests/test-stdlib.c (main): Likewise.
19900         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19901
19902         docs: mention MacOS issue with WEXITSTATUS(constant)
19903         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19904         issue.
19905         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19906
19907         strnlen: add tests
19908         * modules/strnlen-tests: New file.
19909         * tests/test-strnlen.c: Likewise.
19910
19911 2010-09-14  Bruno Haible  <bruno@clisp.org>
19912
19913         unistr/base: Avoid link errors when module 'libunistring' is also used.
19914         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19915         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19916         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19917         Declare also when HAVE_LIBUNISTRING is set.
19918         Reported by Pádraig Brady <P@draigbrady.com>.
19919
19920 2010-09-14  Eric Blake  <eblake@redhat.com>
19921
19922         test-rawmemchr: make more robust
19923         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19924         (Depends-on, configure.ac): Add needed prerequisites to use it.
19925         * modules/memchr-tests (Files, Depends-on, configure.ac):
19926         Likewise, to avoid implicit reliance on memchr module prereqs.
19927         * tests/test-memchr.c (main): Ensure proper masking.
19928         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19929         reads.
19930
19931         memchr: detect glibc Alpha bug
19932         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19933         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19934         Alpha.
19935         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19936         * tests/test-memchr.c (main): Enhance test.
19937         Reported by Nelson H. F. Beebe.
19938
19939 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19940
19941         fts, getcwd, glob: audit for dirfd returning -1
19942         * lib/fts.c (opendir): Remove #define; no longer used.
19943         (opendirat): New arg PDIR_FD.  All callers changed.
19944         (fts_build, _opendir2): Use new opendirat to avoid the need for
19945         dirfd, or for checking whether dirfd returns a negative value.
19946         Don't use opendir; always use openat followed by fdopendir.
19947         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19948         it.
19949         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19950         returns -1 here.
19951         * modules/fts (Depends-on): Remove dirfd.
19952         * modules/getcwd (Depends-on): Likewise.
19953
19954 2010-09-13  Eric Blake  <eblake@redhat.com>
19955
19956         float: fix broken MirBSD header
19957         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19958         * doc/posix-headers/float.texi (float.h): Document it.
19959
19960 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19961
19962         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19963         * lib/fts.c (opendirat): New arg extra_flags.
19964         (__opendir2): Use it to avoid following symlinks when opening
19965         a directory, if symlinks are not supposed to be followed.  See
19966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19967
19968         fdopendir: preserve argument fd before returning
19969         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19970         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19971         (fdopendir): Use them, arranging for FD to be open to the same
19972         directory that it was when it started.  (It might be temporarily
19973         closed while fdopendir is running, so this not thread- or
19974         signal-safe.)  Be careful to do the right thing even when file
19975         descriptors are scarce and dup fails with errno == EMFILE.  See
19976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19977
19978 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19979
19980         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19981         * NEWS: Document change.
19982         * m4/regex.m4: Disable test for regoff_t size.
19983
19984 2010-09-13  Jim Meyering  <meyering@redhat.com>
19985
19986         fts: don't operate on an invalid file descriptor after failed dup
19987         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19988         negative file descriptor.
19989
19990 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19991
19992         savedir: add streamsavedir, deprecate fdsavedir
19993         * NEWS: Mention deprecation of fdsavedir.
19994         * lib/savedir.c (streamsavedir): New extern function, whose name
19995         ends in "savedir" to be consistent with the others.  This differs
19996         from savedirstream in that it doesn't close its argument.  The
19997         next version of GNU tar will use this instead of fdsavedir, to
19998         avoid some race conditions and conserve file descriptors.
19999         (savedirstream): Reimplement as a wrapper around streamsavedir.
20000         (fdsavedir): Add a comment deprecating this function.  As far as
20001         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20002         * lib/savedir.h (streamsavedir): New decl.
20003         (fdsavedir): Add a comment deprecating this.
20004
20005 2010-09-10  Bruno Haible  <bruno@clisp.org>
20006
20007         langinfo: Fix last commit.
20008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20009         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20011
20012 2010-09-10  Bruno Haible  <bruno@clisp.org>
20013
20014         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20015         * lib/progreloc.c (O_EXEC): Define fallback.
20016
20017 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20018
20019         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20020         * NEWS: Document recent changes to fcntl-h.
20021         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20022         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20023         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20024         Similarly for O_SEARCH; this last was already true, but not documented.
20025         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20026         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20027         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20028         Likewise.
20029         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20030         is zero, not whether it is defined.
20031         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20032         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20033         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20034
20035 2010-09-10  Bruno Haible  <bruno@clisp.org>
20036
20037         langinfo, nl_langinfo: Fix for IRIX 5.3.
20038         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20039         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20040         HAVE_LANGINFO_YESEXPR.
20041         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20042         HAVE_LANGINFO_YESEXPR.
20043         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20044         HAVE_LANGINFO_T_FMT_AMPM is 0.
20045         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20046         HAVE_LANGINFO_YESEXPR is 0.
20047         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20048         NOEXPR.
20049         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20050         * doc/posix-functions/nl_langinfo.texi: Likewise.
20051         Reported by Eric Blake.
20052
20053 2010-09-10  Bruno Haible  <bruno@clisp.org>
20054
20055         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20056         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20057         on FreeBSD 8.0 and OpenBSD 4.6.
20058         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20059         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20060         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20061         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20062         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20063         ac_includes_default.
20064         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20065
20066 2010-09-09  Eric Blake  <eblake@redhat.com>
20067
20068         strsignal: work around NetBSD bug
20069         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20070         * lib/string.in.h (includes): Likewise.
20071         * doc/posix-functions/strsignal.texi (strsignal): Document the
20072         bug.
20073         Reported by Nelson H. F. Beebe.
20074
20075         gnulib-tool: work with NetBSD /bin/sh
20076         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20077         (func_get_description, func_get_comment, func_get_status)
20078         (func_get_notice, func_get_applicability, func_get_filelist)
20079         (func_get_dependencies, func_get_autoconf_early_snippet)
20080         (func_get_autoconf_snippet, func_get_automake_snippet)
20081         (func_get_include_directive, func_get_link_directive)
20082         (func_get_license, func_get_maintainer, func_import): Avoid
20083         shell syntax errors from parsing syntax extensions.
20084
20085 2010-09-09  Bruno Haible  <bruno@clisp.org>
20086
20087         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20088         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20089         a reliable way to determine whether the 'alias' command works.
20090
20091 2010-09-08  Jim Meyering  <meyering@redhat.com>
20092
20093         init.sh: penalize a set-x-impaired shell; don't disqualify it
20094         * tests/init.sh: Too many shells corrupt application stderr when
20095         you set -x, so we can't afford to disqualify them, since at least
20096         on Irix-6.5, that would disqualify all bourne shells.
20097         Instead, use a two-pass approach.
20098         On the first pass, try to find a shell that meets the stricter
20099         condition that set -x does not corrupt stderr.
20100         If no shell meets the stricter condition, retest each candidate
20101         shell, but without that extra condition.  Finally, when
20102         VERBOSE=yes is requested and set -x might cause trouble, simply
20103         issue a warning and refrain from enabling debug output.
20104
20105 2010-09-08  Eric Blake  <eblake@redhat.com>
20106
20107         unsetenv: fix OpenBSD bug
20108         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20109         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20110         documentation.
20111         Reported by Jim Meyering.
20112
20113         strtod: work around IRIX 6.5 bug
20114         * lib/strtod.c (strtod): Reparse number on shorter string if
20115         exponent parse was invalid.
20116         * tests/test-strtod.c (main): Add check for "0x1p 2".
20117         Reported by Tom G. Christensen.
20118
20119         getopt: optimize previous patch
20120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20121         empty variable.  Speed up awk script.
20122         Reported by Paolo Bonzini.
20123
20124 2010-09-08  Jim Meyering  <meyering@redhat.com>
20125
20126         test.sh: disqualify shells for which set -x corrupts stderr
20127         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20128         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20129         appear in stderr output.  For example, this command:
20130             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20131         prints "P=1" on those two systems:
20132
20133 2010-09-08  Bruno Haible  <bruno@clisp.org>
20134
20135         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20136         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20137         commands, because some shells ignore redirections when there is an
20138         error in the command lookup.
20139         Reported by Eric Blake.
20140
20141 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20142
20143         * lib/regex.h: Fix a mention of `regex_compile' (should be
20144         `re_compile_pattern').
20145         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20146         (re_set_registers): Correct name of parameter in comment.
20147
20148         * doc/regex.texi: Add documentation for missing syntax flags.
20149         Remove commented-out documentation of defunct syntax option
20150         RE_NO_EMPTY_ALTS.
20151         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20152         Add documentation of re_set_registers.
20153         Document trick to re-use a pattern buffer by setting fastmap manually.
20154         Update documentation of struct re_pattern_buffer per public members.
20155         Uncomment documentation of equivalence class operators and
20156         collating symbol operators, since they are now implemented,
20157         Explain leftmost-longest matching in relation to alternatives.
20158         Tidy documentation of substring matching.
20159         Remove POSIX documentation, which is done better in
20160         glibc, and refer the reader there. Keep BSD API documentation, as
20161         that is not readily available elsewhere.
20162
20163 2010-09-07  Eric Blake  <eblake@redhat.com>
20164
20165         getopt: handle POSIXLY_CORRECT set but not exported
20166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20167         export state of POSIXLY_CORRECT, due to bash set -o posix.
20168         Reported by Dustin J. Mitchell.
20169
20170 2010-09-05  Bruno Haible  <bruno@clisp.org>
20171
20172         gnulib-tool: Highlight the changed options.
20173         * gnulib-tool (func_usage): Display the --import, --add-import,
20174         --remove-import explanations in bold font.
20175
20176 2010-09-06  Karl Berry  <karl@gnu.org>
20177
20178         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20179
20180 2010-09-05  Bruno Haible  <bruno@clisp.org>
20181
20182         uniwidth/width: Update comment.
20183         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20184         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20185
20186 2010-09-05  Bruno Haible  <bruno@clisp.org>
20187
20188         isinf, isnan: Relax license.
20189         * modules/isinf (License): Change from GPL to LGPL, with consent from
20190         Ben Pfaff.
20191         * modules/isnan (License): Likewise.
20192         Requested by Ludovic Courtès.
20193
20194 2010-09-04  Bruno Haible  <bruno@clisp.org>
20195
20196         gnulib-tool: Help migration from --import to --add-import or --update.
20197         * gnulib-tool: Emit a verbose error message when --import is used
20198         without any module name.
20199
20200 2010-09-04  Bruno Haible  <bruno@clisp.org>
20201
20202         Update doc about gnulib-tool.
20203         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20204         'gnulib-tool --update' in more detail.
20205         Reported by Eric Blake.
20206
20207 2010-09-04  Bruno Haible  <bruno@clisp.org>
20208
20209         gnulib-tool: Change --import. New options --add/remove-import.
20210         * gnulib-tool: New options --add-import, --remove-import.
20211         (func_usage): Document them.
20212         (have_associative): Define always.
20213         (func_import): In import mode, don't merge the specified settings with
20214         the cached settings. Implement remove-import mode.
20215         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20216         Explain when to use them versus --import.
20217         (Simple update): Use --add-import instead of --import.
20218         * NEWS: Mention the change.
20219
20220 2010-09-04  Bruno Haible  <bruno@clisp.org>
20221
20222         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20223         separate gnulib.mk.
20224
20225 2010-09-04  Bruno Haible  <bruno@clisp.org>
20226
20227         gnulib-tool: Don't talk about CVS any more.
20228         * gnulib-tool (func_usage, func_import): Write "version control"
20229         instead of CVS.
20230
20231 2010-09-04  Jim Meyering  <meyering@redhat.com>
20232
20233         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20234         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20235         false positives (whose names may be ill-chosen) when searching
20236         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20237         would cause a false-positive.
20238
20239         avoid coreutils "make distcheck" failure
20240         Coreutils tests with an absolute build directory name that contains
20241         a space.  Not quoting this directory name caused a failure.
20242         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20243         * tests/test-vc-list-files-cvs.sh: Likewise.
20244
20245 2010-09-04  Bruno Haible  <bruno@clisp.org>
20246
20247         gnulib-tool: Avoid error when run in a package without Makefile.am.
20248         * gnulib-tool: When collecting the m4dirs in a package that does not
20249         have a Makefile.am, eliminate those directories that contain no
20250         gnulib-cache.m4. Fix expression that counts these directories.
20251
20252 2010-09-04  Bruno Haible  <bruno@clisp.org>
20253
20254         update-copyright test: Improve output when perl is missing or too old.
20255         * tests/test-update-copyright.sh: Move test of Perl version down after
20256         the test whether Perl exists. Provide an explanation relating Perl's
20257         error message to Automake's SKIP: message.
20258
20259 2010-09-04  Bruno Haible  <bruno@clisp.org>
20260
20261         Don't augment PATH in TESTS_ENVIRONMENT.
20262         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20263         set abs_aux_dir instead of augmenting PATH.
20264         * modules/vc-list-files-tests (Makefile.am): Likewise.
20265         * tests/test-update-copyright.sh: Augment PATH here.
20266         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20267         path_prepend_.
20268         * tests/test-vc-list-files-git.sh: Likewise.
20269
20270 2010-09-04  Jim Meyering  <meyering@redhat.com>
20271
20272         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20273         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20274
20275 2010-09-04  Bruno Haible  <bruno@clisp.org>
20276
20277         strdup: Fix compilation error in C++ mode.
20278         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20279         the macro.
20280
20281 2010-09-04  Bruno Haible  <bruno@clisp.org>
20282
20283         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20284         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20285         macro into a function.
20286         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20287
20288 2010-09-04  Bruno Haible  <bruno@clisp.org>
20289
20290         Set PATH_SEPARATOR the same way autoconf does.
20291         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20292         the value of PATH_SEPARATOR the same way autoconf-generated configure
20293         scripts do.
20294         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20295         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20296
20297 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20298
20299         Set PATH_SEPARATOR the same way autoconf does.
20300         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20301         the same way autoconf-generated configure scripts do.
20302         * posix-modules: Likewise.
20303
20304 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         hash: fix safe_hasher const typo
20307         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20308         const; otherwise, there is a type error later.
20309
20310 2010-09-02  Jim Meyering  <meyering@redhat.com>
20311
20312         test-update-copyright.sh: require perl 5.8.0
20313         * tests/test-update-copyright.sh: Require 5.8.0,
20314         which Tom G. Christensen has confirmed is adequate,
20315         while 5.6.1 is not.
20316
20317 2010-09-02  Eric Blake  <eblake@redhat.com>
20318
20319         tests: init.sh improvements for re-exec'ing with zsh
20320         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20321         -vx through shell re-exec.
20322         Reported by Tom G. Christensen.
20323
20324         wctype: fix typo in previous commit
20325         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20326         Reported by Ludovic Courtès.
20327
20328 2010-09-02  Jim Meyering  <meyering@redhat.com>
20329
20330         test-update-copyright.sh: skip test if Perl is too old
20331         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20332         Reported by Tom G. Christensen.
20333
20334 2010-09-02  Bruno Haible  <bruno@clisp.org>
20335
20336         wctype: Avoid compilation error on IRIX 6.5.30.
20337         * lib/wctype.in.h (iswblank): Declare with a replacement if
20338         REPLACE_ISWBLANK is set.
20339         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20340         declared. Set REPLACE_ISWBLANK.
20341         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20342         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20343         * doc/posix-headers/wctype.texi: Likewise.
20344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20345
20346 2010-09-01  Bruno Haible  <bruno@clisp.org>
20347
20348         New module 'socketlib'.
20349         * modules/socketlib: New file.
20350         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20351         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20352         * modules/sockets (Depends-on): Add socketlib.
20353         Suggested by Sam Steingold <sds@gnu.org>.
20354
20355 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20356
20357         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20358
20359         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20360         when one needs search access to a directory but not read access.
20361         On systems where it is available, it works in some cases where
20362         O_RDONLY does not, namely on directories that are searchable but
20363         not readable, and which need only to be searchable.  If O_SEARCH
20364         is not available, fall back to the traditional method of using
20365         O_RDONLY.
20366
20367         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20368         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20369         when opening a directory that needs only to be searchable.
20370         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20371         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20372         * lib/openat-proc.c (openat_proc_name): Likewise.
20373         * lib/openat.c (openat_needs_fchdir): Likewise.
20374         * lib/save-cwd.c (save_cwd): Likewise.
20375         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20376
20377 2010-08-28  Bruno Haible  <bruno@clisp.org>
20378
20379         New module 'host-cpu-c-abi'.
20380         * modules/host-cpu-c-abi: New file.
20381         * m4/host-cpu-c-abi.m4: New file, based on part of
20382         clisp/src/m4/general.m4.
20383         Requested by Sam Steingold <sds@gnu.org>.
20384
20385 2010-08-31  Eric Blake  <eblake@redhat.com>
20386         and Jim Meyering  <meyering@redhat.com>
20387
20388         hash: factor, and guard against misbehaving hasher function
20389         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20390         of table->hasher's return value.  Also protect against a hash value
20391         so large that adding it to table->bucket results in a NULL pointer.
20392         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20393         Use it in place of open-coded check-and-abort.
20394
20395 2010-08-30  Bruno Haible  <bruno@clisp.org>
20396
20397         hash: silence spurious clang warning
20398         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20399         Reported by Eric Blake.
20400
20401 2010-08-30  Eric Blake  <eblake@redhat.com>
20402
20403         strstr, memmem, strcasestr: avoid leaked shell message
20404         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20405         FreeBSD.
20406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20407         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20408
20409         tests: silence clang warning
20410         * tests/test-malloca.c (do_allocation): Avoid dead store.
20411
20412 2010-08-29  Bruno Haible  <bruno@clisp.org>
20413
20414         gettext: Fix recent mistake.
20415         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20416
20417 2010-08-29  Bruno Haible  <bruno@clisp.org>
20418
20419         selinux-h: Offer a --without-selinux option.
20420         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20421         --without-selinux was specified, skip all tests and define
20422         HAVE_SELINUX_SELINUX_H to 0.
20423         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20424         set LIB_SELINUX to empty.
20425         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20426         gl_LIBSELINUX. If --without-selinux was specified, replace
20427         selinux/context.h.
20428         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20429
20430 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20431             Bruno Haible  <bruno@clisp.org>
20432
20433         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20434         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20435         of HAVE_REALLOC.
20436         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20437         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20438         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20439         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20440
20441 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20442             Bruno Haible  <bruno@clisp.org>
20443
20444         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20445         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20446         HAVE_CALLOC.
20447         * lib/xmalloc.c: Update accordingly.
20448         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20449         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20450         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20451
20452 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20453             Bruno Haible  <bruno@clisp.org>
20454
20455         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20456         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20457         HAVE_MALLOC.
20458         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20459         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20460         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20461
20462 2010-08-29  Bruno Haible  <bruno@clisp.org>
20463
20464         Update modules list.
20465         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20466         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20467         (String handling <string.h>): Add astrxfrm.
20468         (File system functions): Add readlinkat.
20469
20470 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20471
20472         Tests for module 'realloc-gnu'.
20473         * modules/realloc-gnu-tests: New file.
20474         * tests/test-realloc-gnu.c: New file.
20475
20476         Tests for module 'calloc-gnu'.
20477         * modules/calloc-gnu-tests: New file.
20478         * tests/test-calloc-gnu.c: New file.
20479
20480         Tests for module 'malloc-gnu'.
20481         * modules/malloc-gnu-tests: New file.
20482         * tests/test-malloc-gnu.c: New file.
20483
20484 2010-08-28  Bruno Haible  <bruno@clisp.org>
20485
20486         Rename module 'realloc' -> 'realloc-gnu'.
20487         * modules/realloc-gnu: New file, copied from modules/realloc.
20488         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20489         obsolete.
20490         * modules/mgetgroups (Depends-on): Update.
20491         * doc/posix-functions/realloc.texi: Update.
20492         * NEWS: Mention the change.
20493
20494         Rename module 'calloc' -> 'calloc-gnu'.
20495         * modules/calloc-gnu: New file, copied from modules/calloc.
20496         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20497         obsolete.
20498         * doc/posix-functions/calloc.texi: Update.
20499         * NEWS: Mention the change.
20500
20501         Rename module 'malloc' -> 'malloc-gnu'.
20502         * modules/malloc-gnu: New file, copied from modules/malloc.
20503         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20504         obsolete.
20505         * modules/argp (Depends-on): Update.
20506         * modules/regex (Depends-on): Update.
20507         * doc/posix-functions/malloc.texi: Update.
20508         * NEWS: Mention the change.
20509
20510 2010-08-28  Eric Blake  <eblake@redhat.com>
20511
20512         pread, pwrite: add missing dependency
20513         * modules/pread (Depends-on): Add extensions.
20514         * modules/pwrite (Depends-on): Likewise.
20515
20516 2010-08-28  Bruno Haible  <bruno@clisp.org>
20517
20518         unistr/u*-strchr: Fix tests dependencies.
20519         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20520         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20521         Reported by Ian Beckwith <ianb@erislabs.net>.
20522
20523 2010-08-28  Bruno Haible  <bruno@clisp.org>
20524
20525         read-file: Don't occupy too much unused memory.
20526         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20527
20528 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20529             Eric Blake  <eblake@redhat.com>
20530             Bruno Haible  <bruno@clisp.org>
20531
20532         read-file: Avoid memory reallocations with regular files.
20533         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20534         (fread_file): With regular files, use the remaining length as the
20535         initial buffer size.  Check against overflow.
20536         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20537         sys_stat.
20538
20539 2010-08-28  Bruno Haible  <bruno@clisp.org>
20540
20541         ftello: Relax license.
20542         * modules/ftello (License): Relax to LGPLv2+.
20543         Reported by Eric Blake.
20544
20545 2010-08-28  Bruno Haible  <bruno@clisp.org>
20546
20547         Avoid relocwrapper link errors due to gnulib replacement functions.
20548         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20549         function.
20550         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20551
20552 2010-08-28  Bruno Haible  <bruno@clisp.org>
20553
20554         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20555         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20556         defined.
20557         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20558         Suggested by Eric Blake.
20559
20560 2010-08-28  Bruno Haible  <bruno@clisp.org>
20561
20562         sys_socket, netdb: Ensure socklen_t gets defined.
20563         * modules/sys_socket (Depends-on): Add socklen.
20564         * modules/netdb (Depends-on): Likewise.
20565         * modules/getaddrinfo (Depends-on): Remove socklen.
20566         * modules/getsockopt (Depends-on): Likewise.
20567         * modules/setsockopt (Depends-on): Likewise.
20568         * tests/test-sys_socket.c: Check that socklen_t is defined.
20569         * tests/test-netdb.c: Likewise.
20570         * m4/socklen.m4: Update comments.
20571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20572
20573 2010-08-27  Eric Blake  <eblake@redhat.com>
20574
20575         login_tty: add missing dependency
20576         * modules/login_tty (Depends-on): Add pty.
20577
20578 2010-08-26  Eric Blake  <eblake@redhat.com>
20579
20580         lib-symbol-versions: fix m4 quoting
20581         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20582         format for AC_LINK_IFELSE.
20583
20584         glob: fix compile test
20585         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20586
20587         btowc: fix missing file
20588         * modules/btowc (Files): Also ship locale-fr.m4.
20589
20590         lseek: fix link test
20591         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20592         AC_LINK_IFELSE.
20593
20594         include_next: silence autoconf 2.68 warning
20595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20596         AC_COMPILE_IFELSE as special.
20597         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20598         autoconf < 2.68.
20599
20600         acl: fix compilation test
20601         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20602         AC_COMPILE_IFELSE.
20603
20604 2010-08-26  Bruno Haible  <bruno@clisp.org>
20605
20606         Modernize AC_TRY_RUN invocations.
20607         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20609         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20610         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20611         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20612         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20613         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20615         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20616         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20618         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20619         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20620         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20622         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20623         gl_MBRLEN_NUL_RETVAL): Likewise.
20624         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20625         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20626         Likewise.
20627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20628         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20629         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20630         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20631         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20632         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20633         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20634         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20635         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20636         Likewise.
20637         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20638         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20639         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20640         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20644         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20645         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20647
20648 2010-08-26  Bruno Haible  <bruno@clisp.org>
20649
20650         Modernize AC_TRY_LINK invocations.
20651         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20652         AC_TRY_LINK.
20653         * m4/argp.m4 (gl_ARGP): Likewise.
20654         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20655         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20656         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20657         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20658         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20659         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20660         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20661         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20662         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20663         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20664         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20665         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20666         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20667         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20668         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20669         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20670         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20671         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20672         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20673         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20674         Likewise.
20675         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20676         Likewise.
20677         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20678         Likewise.
20679         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20681         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20682         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20683         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20684         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20685         * m4/servent.m4 (gl_SERVENT): Likewise.
20686         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20687         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20688         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20689         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20690         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20691         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20692         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20694         * modules/tsearch-tests (configure.ac): Likewise.
20695
20696 2010-08-26  Bruno Haible  <bruno@clisp.org>
20697
20698         Modernize AC_TRY_COMPILE invocations.
20699         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20700         AC_TRY_COMPILE.
20701         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20702         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20703         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20704         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20705         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20706         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20707         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20708         * m4/lock.m4 (gl_LOCK): Likewise.
20709         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20710         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20711         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20713         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20714         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20715         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20717         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20718         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20719         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20720         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20721         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20722         extraneous semicolon.
20723
20724 2010-08-26  Jim Meyering  <meyering@redhat.com>
20725
20726         stat-time: relax license LGPL
20727         * modules/stat-time (License): Change from GPL to LGPL,
20728         with consent from all contributors, for use in libguile.
20729         Requested by Ludovic Courtès.
20730
20731 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20732
20733         poll: return immediately on POLLHUP.
20734         * lib/poll.c (poll): Always set timeout before wait_timeout is
20735         computed.
20736
20737 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738
20739         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20740         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20741         rmdir ("dir/.//"), unlinkat.
20742
20743 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20744
20745         stdbool: avoid spurious failure with modern xlc
20746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20747
20748 2010-08-24  Bruno Haible  <bruno@clisp.org>
20749
20750         getloadavg: simplify code
20751         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20752         gl_have_func. Update comments.
20753
20754 2010-08-24  Eric Blake  <eblake@redhat.com>
20755
20756         getloadavg: don't define SVR4 on cygwin
20757         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20758         only define SVR4 when -lkvm is required.
20759         Reported by Yaakov Selkowitz.
20760
20761 2010-08-24  Bruno Haible  <bruno@clisp.org>
20762
20763         priv-set: fix comment
20764         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20765
20766 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         priv-set: fix comments
20769         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20770         to match code, as suggested by David Bartley in:
20771         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20772
20773 2010-08-23  Eric Blake  <eblake@redhat.com>
20774
20775         stdbool: avoid rejecting clang
20776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20777         * tests/test-stdbool.c: Enable more tests if using the system
20778         <stdbool.h> instead of the gnulib replacement.
20779         (main): Move xlc bug test to a runtime test for all compilers.
20780         Reported by Anders Kaseorg.
20781
20782         argz: fix shell quoting issue
20783         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20784         Reported by Charles Wilson.
20785
20786 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20787             Erik Faye-Lund <kusmabite@gmail.com>
20788
20789         poll, select: handle ERROR_BROKEN_PIPE.
20790         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20791         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20792         * lib/select.c (win32_compute_revents): Do not mark a pipe
20793         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20794
20795 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20796
20797         fts: allow compilation with C++
20798         * lib/fts_.h: Specify extern "C" linkage with C++.
20799
20800 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20801
20802         Fix gnulib-tool sed script de-commentation for AIX sed.
20803         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20804         sed.
20805
20806 2010-08-17  Eric Blake  <eblake@redhat.com>
20807
20808         test-stddef: test for (some) offsetof bugs
20809         * tests/test-stddef.c: Enhance test to ensure correct type of
20810         offsetof.
20811         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20812         that we are not fixing at this time.
20813
20814 2010-08-15  Bruno Haible  <bruno@clisp.org>
20815
20816         stpncpy: Allow stpncpy to be defined as a macro.
20817         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20818         if it's already correctly declared.
20819         * lib/string.in.h (stpncpy): Undefine before redefining.
20820         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20821
20822 2010-08-14  Bruno Haible  <bruno@clisp.org>
20823
20824         Rename module 'memxfrm' to 'amemxfrm'.
20825         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20826         (amemxfrm): Renamed from memxfrm.
20827         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20828         (amemxfrm): Renamed from memxfrm.
20829         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20830         * NEWS: Mention the change.
20831         * MODULES.html.sh (String handling <string.h>): Update.
20832         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20833         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20834         * lib/unicase/u16-casexfrm.c: Likewise.
20835         * lib/unicase/u32-casexfrm.c: Likewise.
20836         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20837         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20838         * lib/uninorm/u16-normxfrm.c: Likewise.
20839         * lib/uninorm/u32-normxfrm.c: Likewise.
20840         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20841         memxfrm.
20842         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20843         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20844         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20845         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20846         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20847         Suggested by Paul Eggert.
20848
20849 2010-08-14  Bruno Haible  <bruno@clisp.org>
20850
20851         Tests for module 'astrxfrm'.
20852         * modules/astrxfrm-tests: New file.
20853         * tests/test-astrxfrm.c: New file.
20854
20855         New module 'astrxfrm'.
20856         * lib/astrxfrm.h: New file.
20857         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20858         * modules/astrxfrm: New file.
20859
20860 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20861
20862         regex: Tweak doc.
20863         * doc/regex.texi (Overview): Don't mention regex.c.
20864         (GNU Regular Expression Compiling): Likewise.
20865         (Match-end-of-line Operator): Mention 'not_eol'.
20866
20867 2010-08-14  Brian Gough  <bjg@gnu.org>
20868             Bruno Haible  <bruno@clisp.org>
20869
20870         git-merge-changelog: add doc relating to use with bzr and hg.
20871         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20872
20873 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20874
20875         pthread: fix pthread.h creation for srcdir != builddir
20876         * modules/pthread (Makefile.am): Fix the rule to work also in a
20877         non-srcdir build.
20878
20879 2010-08-13  Karl Berry  <karl@gnu.org>
20880
20881         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20882         * doc/posix-*/*: force line break before @url of POSIX
20883         specifications.
20884         Suggested by Werner Lemberg.
20885
20886 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20887
20888         strtod: fix const diagnostic
20889         * lib/strtod.c (strtod): Don't assign const char * to char *,
20890         as this elicits a warning from GCC when warnings are enabled.
20891
20892 2010-08-10  Pádraig Brady <P@draigbrady.com>
20893         and Eric Blake  <eblake@redhat.com>
20894
20895         copy-acl: ignore ENOTSUP on HP-UX
20896         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20897         so that it is available for HP-UX.
20898         * lib/copy-acl.c (qcopy_acl): Use it.
20899         Reported by Patrick M. Callahan.
20900
20901 2010-08-10  Eric Blake  <eblake@redhat.com>
20902
20903         open, chown: relax license
20904         * modules/open (License): Change to LGPLv2+, with consent by all
20905         authors, for use in augeas.
20906         * modules/chown (License): Likewise.
20907         * modules/lchown (Likewise): Likewise.
20908         Requested by Adam Stokes.
20909
20910 2010-08-09  Karl Berry  <karl@gnu.org>
20911
20912         * build-aux/ar-lib: new file, import from Automake.
20913         * config/srclist.txt: autocheck for updates.
20914
20915 2010-08-09  Eric Blake  <eblake@redhat.com>
20916
20917         readlinkat: adjust client modules
20918         * modules/areadlinkat (Depends-on): Use readlinkat, not
20919         symlinkat.
20920         * modules/areadlinkat-with-size (Depends-on): Likewise.
20921
20922         mknod: be more vocal about danger of running tests as root
20923         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20924         root, since that is just asking for problems.
20925         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20926
20927         readlinkat: split into its own module
20928         * modules/symlinkat: Split readlinkat...
20929         * modules/readlinkat: ...into separate module.
20930         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20931         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20932         * lib/symlinkat.c (readlinkat): Move...
20933         * lib/readlinkat.c: ...into new file.
20934         * modules/symlinkat-tests: Split readlinkat test...
20935         * modules/readlinkat-tests: ...into separate module.
20936         * tests/test-symlinkat.c: Split...
20937         * tests/test-readlinkat.c: ...into new file.
20938         * NEWS: Document the split.
20939         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20940         * lib/unistd.in.h (readlinkat): Likewise.
20941         Suggested by Bruno Haible.
20942
20943 2010-08-08  Bruno Haible  <bruno@clisp.org>
20944
20945         memxfrm: Speed up.
20946         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20947         that usually only one call to strxfrm is necessary for each string
20948         part.
20949         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20950
20951 2010-08-07  Karl Berry  <karl@gnu.org>
20952
20953         * doc/posix-headers/limits.texi,
20954         * doc/posix-functions/malloc.texi,
20955         * doc/posix-functions/strsignal.texi: missing @item.
20956         * doc/ld-version-script.texi: spurious leading i.
20957         * doc/regex.texi (Interval Operators): no commas inside @var.
20958
20959 2010-08-01  Bruno Haible  <bruno@clisp.org>
20960
20961         Integrate the regex documentation.
20962         * doc/gnulib.texi: Define 'cn' index.
20963         (Regular expressions): New a chapter that includes regex.texi and
20964         regexprops-generic.texi.
20965         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20966         syntax.
20967
20968         Whitespace cleanup.
20969         * doc/regex.texi: Remove trailing spaces.
20970
20971         Add regex documentation.
20972         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20973         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20974         Written by Kathy A. Hargreaves and Karl Berry.
20975
20976 2010-08-01  Bruno Haible  <bruno@clisp.org>
20977
20978         link: Update documentation.
20979         * doc/posix-functions/link.texi: Update regarding Solaris.
20980
20981 2010-07-31  Bruno Haible  <bruno@clisp.org>
20982
20983         Update modules list.
20984         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20985         (String handling <string.h>): Add memcmp2, memxfrm.
20986         (Container data structures): Add xlist, xsublist, xoset.
20987         (Core language properties): Add alignof, unused-parameter.
20988         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20989         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20990         (Unibyte characters <ctype.h>): New section.
20991         (String handling <string.h>): New section.
20992         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20993         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20994         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20995         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20996         tan, tanh, tanl, y0, y1, yn.
20997         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20998         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20999         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21000         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21001         unlockpt, vdprintf, vdprintf-posix.
21002         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21003         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21004         xconcat-filename.
21005         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21006         getdtablesize, pipe2, pipe2-safer.
21007         (Security): New section.
21008         (Networking functions): Add accept4.
21009         (Signal handling): Add sigpipe.
21010         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21011         mbmemcasecoll.
21012         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21013         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21014         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21015         pipe-filter-ii.
21016         (Misc): Add argp-version-etc, login_tty, parse-duration.
21017
21018 2010-07-31  Bruno Haible  <bruno@clisp.org>
21019
21020         Improve doc in MODULES.html.
21021         * modules/linkat (Description): Add the word "function".
21022         * modules/mkfifo (Description): Likewise.
21023         * modules/mknod (Description): Likewise.
21024         * modules/remove (Description): Likewise.
21025         * modules/renameat (Description): Likewise.
21026         * modules/stat (Description): Likewise.
21027         * modules/symlink (Description): Likewise.
21028         * modules/unlink (Description): Likewise.
21029
21030 2010-07-31  Bruno Haible  <bruno@clisp.org>
21031
21032         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21033         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21034         option --enable/disable-c++ instead of --enable/disable-cxx.
21035         * NEWS: Mention the change.
21036
21037 2010-07-31  Bruno Haible  <bruno@clisp.org>
21038
21039         readlink, areadlink: Relax test a bit.
21040         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21041         alternative to ENOTDIR.
21042         * tests/test-areadlink.h (test_areadlink): Likewise.
21043         Reported by Rainer Tammer.
21044
21045 2010-07-31  Bruno Haible  <bruno@clisp.org>
21046
21047         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21048         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21049         character, perform the search using U_STRCHR.
21050         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21051         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21052         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21053         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21054         Suggested by Paolo Bonzini.
21055
21056 2010-07-31  Bruno Haible  <bruno@clisp.org>
21057
21058         unistr/u*-strstr: Fix dependencies.
21059         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21060         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21061         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21062
21063 2010-07-31  Bruno Haible  <bruno@clisp.org>
21064
21065         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21066         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21067         the beginning of the loop.
21068         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21069         cases in 'switch' statement.
21070
21071         unistr/u8-strchr: Fix several bugs.
21072         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21073         the string. When not found, return NULL, not a pointer near the end.
21074
21075         More tests for unistr/u8-strchr.
21076         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21077         that the function does not read past the first occurrence of the byte
21078         being searched.
21079         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21080         * tests/unistr/test-u16-strchr.c (main): New function.
21081         * tests/unistr/test-u32-strchr.c (main): New function.
21082
21083 2010-07-31  Bruno Haible  <bruno@clisp.org>
21084
21085         posix-modules: Ignore backup files of documentation files.
21086         * posix-modules: grep only through files named *.texi.
21087
21088 2010-07-31  Bruno Haible  <bruno@clisp.org>
21089
21090         symlinkat: Fix documentation.
21091         * doc/posix-functions/readlinkat.texi: Fix module name.
21092
21093 2010-07-31  Bruno Haible  <bruno@clisp.org>
21094
21095         fchownat: Replace also when chown has the trailing slash bug.
21096         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21097         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21098         introduced on 2010-04-10.
21099         Reported by Rainer Tammer.
21100
21101 2010-07-31  Bruno Haible  <bruno@clisp.org>
21102
21103         linkat: Work around AIX 7.1 bug.
21104         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21105         whether linkat handles trailing slash correctly. If not, replace linkat
21106         and define LINKAT_TRAILING_SLASH_BUG.
21107         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21108         check whether (fd1,file1) points to a directory if file1 or file2 ends
21109         in a slash. Code taken from lib/link.c.
21110         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21111         Reported by Rainer Tammer.
21112
21113 2010-07-31  Bruno Haible  <bruno@clisp.org>
21114
21115         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21116         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21117         This disables an xlc optimization that was causing wrong test results.
21118         Reported by Rainer Tammer.
21119
21120 2010-07-31  Bruno Haible  <bruno@clisp.org>
21121
21122         iconv: Work around AIX 6.1..7.1 bug.
21123         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21124         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21125         cross-compiling, guess no on all versions of AIX.
21126         Reported by Rainer Tammer.
21127
21128 2010-07-31  Bruno Haible  <bruno@clisp.org>
21129
21130         readlink: Relax test a bit.
21131         * tests/test-readlink.h (test_readlink): Allow different errno value
21132         when readlink is called with a file name that ends in / and refers to
21133         a file.
21134         Suggested by Eric Blake.
21135         Reported by Rainer Tammer.
21136
21137 2010-07-31  Bruno Haible  <bruno@clisp.org>
21138
21139         copysign: Does not require -lm on glibc systems.
21140         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21141         gl_COMMON_DOUBLE_MATHFUNC.
21142         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21143
21144 2010-07-31  Bruno Haible  <bruno@clisp.org>
21145
21146         duplocale: Work around AIX 7.1 bug.
21147         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21148         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21149         * lib/duplocale.c (rpl_duplocale): Update comment.
21150         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21151         Reported by Rainer Tammer.
21152
21153 2010-07-30  Bruno Haible  <bruno@clisp.org>
21154
21155         dirfd: Avoid link error on AIX 7.1.
21156         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21157         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21158         exist, set REPLACE_DIRFD.
21159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21160         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21161         * doc/posix-functions/dirfd.texi: Update.
21162         Reported by Rainer Tammer.
21163
21164 2010-07-30  Eric Blake  <eblake@redhat.com>
21165
21166         strtod: next round of AIX fixes
21167         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21168         exponent.
21169         * tests/test-strtod.c (main): Enhance tests.
21170         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21171         Reported by Rainer Tammer.
21172
21173         futimens: fix configure check
21174         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21175         Reported by Bruno Haible.
21176
21177 2010-07-30  Bruno Haible  <bruno@clisp.org>
21178
21179         getline: Update regarding AIX.
21180         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21181         Reported by Rainer Tammer.
21182
21183 2010-07-30  Bruno Haible  <bruno@clisp.org>
21184
21185         wcwidth: Drop replacement on AIX 7.
21186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21187         AIX 7.
21188         Reported by Rainer Tammer.
21189
21190 2010-07-30  Bruno Haible  <bruno@clisp.org>
21191
21192         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21194         a 'char *'.
21195         Reported by Rainer Tammer.
21196
21197 2010-07-30  Bruno Haible  <bruno@clisp.org>
21198
21199         unlink: Update regarding AIX.
21200         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21201         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21202         Reported by Rainer Tammer.
21203
21204 2010-07-30  Bruno Haible  <bruno@clisp.org>
21205
21206         symlink: Update regarding AIX.
21207         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21208         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21209         Reported by Rainer Tammer.
21210
21211 2010-07-30  Bruno Haible  <bruno@clisp.org>
21212
21213         strndup: Update regarding AIX.
21214         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21215         AIX 7.
21216         Reported by Rainer Tammer.
21217
21218 2010-07-30  Bruno Haible  <bruno@clisp.org>
21219
21220         stat: Update regarding AIX.
21221         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21222         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21223         Reported by Rainer Tammer.
21224
21225 2010-07-30  Bruno Haible  <bruno@clisp.org>
21226
21227         truncl: Fix autoconf test.
21228         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21229         whether truncl works.
21230         Reported by Rainer Tammer.
21231
21232 2010-07-30  Bruno Haible  <bruno@clisp.org>
21233
21234         round: Update regarding AIX.
21235         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21236         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21237         Reported by Rainer Tammer.
21238
21239 2010-07-30  Bruno Haible  <bruno@clisp.org>
21240
21241         rename: Update regarding AIX.
21242         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21243         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21244         Reported by Rainer Tammer.
21245
21246 2010-07-30  Bruno Haible  <bruno@clisp.org>
21247
21248         printf.m4: Update regarding AIX.
21249         * m4/printf.m4: Update comments regarding AIX.
21250         Reported by Rainer Tammer.
21251
21252 2010-07-30  Bruno Haible  <bruno@clisp.org>
21253
21254         iconv: Update regarding AIX.
21255         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21256         AIX 7.
21257         Reported by Rainer Tammer.
21258
21259 2010-07-30  Bruno Haible  <bruno@clisp.org>
21260
21261         getopt: Update regarding AIX.
21262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21263         no on AIX.
21264         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21265         Reported by Rainer Tammer.
21266
21267 2010-07-30  Bruno Haible  <bruno@clisp.org>
21268
21269         ldexpl; Update regarding AIX.
21270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21271         on AIX 7.
21272         Reported by Rainer Tammer.
21273
21274 2010-07-30  Bruno Haible  <bruno@clisp.org>
21275
21276         frexpl: Update regarding AIX.
21277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21278         on AIX 7.
21279         Reported by Rainer Tammer.
21280
21281 2010-07-30  Bruno Haible  <bruno@clisp.org>
21282
21283         open, fopen: Update regarding AIX.
21284         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21285         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21286         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21287         * doc/posix-functions/fopen.texi: Likewise.
21288         Reported by Rainer Tammer.
21289
21290 2010-07-30  Bruno Haible  <bruno@clisp.org>
21291
21292         chown: Update doc regarding AIX.
21293         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21294         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21295         Reported by Rainer Tammer.
21296
21297 2010-07-30  Eric Blake  <eblake@redhat.com>
21298
21299         strtod: fix bug in replacement function on AIX
21300         * lib/strtod.c (strtod): Special case broken "0x" parse in
21301         underlying strtod.
21302         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21303         * doc/posix-functions/strtod.texi (strtod): Likewise.
21304         Reported by Rainer Tammer.
21305
21306 2010-07-30  Bruno Haible  <bruno@clisp.org>
21307
21308         mbrlen: Fix cross-compilation guess for AIX.
21309         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21310         guess. Leftover from 2008-12-22.
21311
21312 2010-07-30  Bruno Haible  <bruno@clisp.org>
21313
21314         mbrtowc: Fix cross-compilation guess for AIX.
21315         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21316         guess. Leftover from 2008-12-21.
21317
21318 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21319
21320         init.sh: work around trap limitation of some shells
21321         * tests/init.sh (setup_): Move exit trap outside of shell function.
21322
21323 2010-07-29  Eric Blake  <eblake@redhat.com>
21324
21325         strtod: aid debugging
21326         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21327         understanding why strtod is rejected.
21328
21329 2010-07-28  Bruno Haible  <bruno@clisp.org>
21330
21331         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21332         * lib/unistr/u8-chr.c: Include <string.h>.
21333         * tests/unistr/test-u8-chr.c: Likewise.
21334         * tests/unistr/test-u16-chr.c: Likewise.
21335         * tests/unistr/test-u32-chr.c: Likewise.
21336         * tests/unistr/test-u8-strchr.c: Likewise.
21337         * tests/unistr/test-u16-strchr.c: Likewise.
21338         * tests/unistr/test-u32-strchr.c: Likewise.
21339         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21340         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21341         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21342         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21343
21344 2010-07-28  Bruno Haible  <bruno@clisp.org>
21345
21346         Use spaces for indentation, not tabs.
21347         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21348
21349 2010-07-27  Bruno Haible  <bruno@clisp.org>
21350
21351         mbspcasecmp: Fix function specification.
21352         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21353         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21354         Reported by Eric Blake <eblake@redhat.com>.
21355
21356 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21357
21358         timespec: use cast and not conditional, as truncation isn't possible
21359         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21360         instead of a conditional.  Comment about the situation in more detail.
21361         This undoes most of the 2009-10-29 patch.
21362
21363 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21364
21365         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21366         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21367         * lib/unistr/u8-strchr.c: Likewise.
21368         * modules/unistr/u8-chr: Depend on memchr.
21369
21370         unistr/u*-strchr: add tests
21371         * modules/unistr/u8-strchr-tests: New file.
21372         * modules/unistr/u16-strchr-tests: New file.
21373         * modules/unistr/u32-strchr-tests: New file.
21374         * tests/unistr/test-strchr.h: New file.
21375         * tests/unistr/test-u8-strchr.c: New file.
21376         * tests/unistr/test-u16-strchr.c: New file.
21377         * tests/unistr/test-u32-strchr.c: New file.
21378
21379         unistr/u*-chr: test multibyte sequences more
21380         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21381         test vector.
21382         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21383         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21384         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21385
21386         unistr/u*-chr: test multibyte sequences
21387         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21388
21389         unistr/u*-chr: prepare for multibyte tests
21390         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21391         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21392         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21393         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21394         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21395         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21396
21397 2010-07-18  Bruno Haible  <bruno@clisp.org>
21398
21399         unistr/u8-strchr: Optimize non-ASCII argument case.
21400         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21401         because the first byte often matches anyway.
21402         Reported by Pádraig Brady <P@draigbrady.com>.
21403
21404 2010-07-15  Karl Berry  <karl@gnu.org>
21405
21406         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21407
21408 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21409
21410         getcwd: on Solaris, work better if ancestors are inaccessible
21411         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21412         buffer and size, try again with a large buffer.  This works better
21413         on Solaris, since its getcwd succeeds even if the path to the root
21414         is inaccessible, and this is helpful in common cases such as .zfs
21415         hidden directories.  Problem reported by J Chapman Flack in
21416         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21417         Use system getcwd if it's declared, not merely if it's partly
21418         working; use the partly-working test only to avoid needless effort
21419         if the system getcwd fails.
21420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21421         comment that was already obsolete and is now even more obsolete.
21422         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21423         now might call strdup.
21424
21425 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21426
21427         pthread: Add enough so that coreutils/src/sort.c compiles.
21428         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21429         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21430         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21431         Include <sys/types.h>, in case it defines pthread_t.
21432         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21433         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21434         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21435         (pthread_rwlockattr_t, pthread_spinlock_t):
21436         New typedefs, if HAVE_PTHREAD_T is not defined.
21437         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21438         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21439         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21440         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21441         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21442         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21443         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21444         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21445         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21446         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21447         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21448         New macros.
21449         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21450         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21451         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21452         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21453         (pthread_spin_unlock): New dummy functions.
21454         (pthread_create): Return EAGAIN; don't set errno.
21455         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21456         require AC_C_INLINE.
21457         * modules/pthread (Depends-on): Add sched, time.
21458         (pthread.h): Use AM_V_GEN.
21459
21460 2010-07-13  Bruno Haible  <bruno@clisp.org>
21461
21462         striconveh: Don't malloc memory if the result buffer is sufficient.
21463         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21464         buffer if its size is sufficient.
21465         Reported by Ludovic Courtès <ludo@gnu.org>.
21466
21467 2010-07-13  Bruno Haible  <bruno@clisp.org>
21468
21469         strtod: Add safety check.
21470         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21471
21472 2010-07-12  Bruno Haible  <bruno@clisp.org>
21473
21474         Unify tests that set gl_cv_func_ldexpl_no_libm.
21475         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21476         gl_FUNC_LDEXPL.
21477         (gl_FUNC_LDEXPL): Invoke it.
21478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21479
21480 2010-07-12  Bruno Haible  <bruno@clisp.org>
21481
21482         Unify tests that set gl_cv_func_ldexp_no_libm.
21483         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21484         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21485         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21486         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21487         * modules/strtod (Files): Add m4/ldexp.m4.
21488
21489 2010-07-12  Bruno Haible  <bruno@clisp.org>
21490
21491         Unify tests that set gl_cv_func_frexpl_no_libm.
21492         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21493         gl_FUNC_FREXPL_NO_LIBM.
21494         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21496
21497 2010-07-12  Bruno Haible  <bruno@clisp.org>
21498
21499         Unify tests that set gl_cv_func_frexp_no_libm.
21500         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21501         gl_FUNC_FREXP_NO_LIBM.
21502         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21503         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21504
21505 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21506
21507         memcoll: clarify sizes versus lengths, document better, and tweak perf
21508         * lib/memcoll.c (strcoll_loop, memcoll0):
21509         Improve quality of descriptive comments.  Name variables
21510         consistently as to whether they are lengths (which do not include
21511         terminating null) versus sizes (which do).
21512         * lib/xmemcoll.c (xmemcoll0): Likewise.
21513         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21514         returned when s1size == 0; this is easier to compile and saves
21515         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21516
21517 2010-07-12  Bruno Haible  <bruno@clisp.org>
21518
21519         Tests for module '_Exit'.
21520         * modules/_Exit-tests: New file.
21521         * tests/test-_Exit.sh: New file.
21522         * tests/test-_Exit.c: New file.
21523
21524         New module '_Exit'.
21525         * lib/stdlib.in.h (__attribute__): New macro.
21526         (_Exit): New declaration.
21527         * lib/_Exit.c: New file.
21528         * m4/_Exit.m4: New file.
21529         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21530         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21531         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21532         * modules/_Exit: New file.
21533         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21534         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21535
21536 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21537
21538         strtod: make it more-accurate typically, and don't require libm
21539         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21540         Include limits.h.  Don't include string.h.
21541         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21542         (locale_isspace): New function, so that no casts are needed to
21543         check whether *s is a space.
21544         (ldexp): Provide an unused dummy if not available.
21545         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21546         (strtod): Use them.  This implementation prefers to use the
21547         underlying strtod if available, falling back on our own code
21548         only to fix known bugs.  This is more likely to produce an
21549         accurate result.  Also, it avoids the use of libm functions.
21550         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21551         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21552         was absent, but it caused a test failure with coreutils.
21553         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21554         with libm.
21555         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21556         * modules/strtod-tests (Makefile.am): Likewise.
21557
21558 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21559             Bruno Haible  <bruno@clisp.org>
21560
21561         unistr/u8-strchr: Optimize ASCII argument case.
21562         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21563
21564 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21565
21566         (x)memcoll: minor tweaks
21567         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21568         is after the type that it qualifies.
21569         (memcoll0): Likewise.
21570         * lib/memcoll.h (memcoll0): Likewise.
21571         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21572         * lib/xmemcoll.h (xmemcoll0): Likewise.
21573         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21574         differs from memcoll in that the NUL byte is part of the argument.
21575         Omit the abort-checks, as performance is a real issue here.  Plus,
21576         the checks were wrong anyway (an off-by-one error).  Omit local
21577         variable 'diff', as it's a bit clearer that way.
21578         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21579         no longer needed.
21580
21581 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21582
21583         (x)memcoll: speedup when input is known to be NUL delimited
21584         * lib/memcoll.c: Include stdlib.
21585         (memcoll0): New function.
21586         (strcoll_loop): New function, refactored for use in both memcoll
21587         and memcoll0.
21588         * lib/memcoll.h (memcoll0): Add prototype.
21589         * lib/xmemcoll.c (xmemcoll0): New function.
21590         (collate_error): New function, refactored for use in both xmemcoll
21591         and xmemcoll0.
21592         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21593         * m4/memcoll.m4: add inline invocation.
21594
21595 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21596
21597         * build-aux/bootstrap: Remove any local translations
21598         from the translation project synchronization directory,
21599         so that local only translations are not distributed.
21600
21601 2010-07-04  Bruno Haible  <bruno@clisp.org>
21602
21603         fsusage: Clarify which code applies to which platforms.
21604         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21605         platform.
21606         * lib/fsusage.c (get_fs_usage): Likewise.
21607
21608 2010-07-04  Bruno Haible  <bruno@clisp.org>
21609
21610         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21611         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21612         Reported by Martin Lambers <marlam@marlam.de>.
21613
21614 2010-07-04  Jim Meyering  <meyering@redhat.com>
21615
21616         hash: once again explicitly disallow insertion of NULL
21617         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21618         inserting a NULL pointer cannot work with these functions.
21619         Add a comment with details.
21620         This reverts part of the 2010-07-01 commit, 5bef1a35
21621         "hash: extend module to deal with non-pointer keys".
21622
21623 2010-07-01  Bruno Haible  <bruno@clisp.org>
21624
21625         stdbool: Update doc.
21626         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21627         Info from Christian Weisgerber <naddy@mips.inka.de>.
21628
21629 2010-07-01  Jim Meyering  <meyering@redhat.com>
21630
21631         hash: extend module to deal with non-pointer keys
21632         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21633         but that allows insertion of non-pointer entries.
21634         Do not disallow an ENTRY value of NULL.
21635         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21636         * lib/hash.h (hash_insert0): Declare.
21637
21638 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21639
21640         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21641         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21642         not present (i.e. with autoconf 2.59 and when using gettextize, not
21643         gnulib), require AC_GNU_SOURCE instead.
21644
21645 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21646
21647         idpriv-drop: Fix tests.
21648         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21649         not to the test-idpriv-droptemp program.
21650
21651 2010-06-29  Bruno Haible  <bruno@clisp.org>
21652
21653         string: Fix syntax error with g++ 2.96.
21654         * lib/string.in.h (__pure__): Remove definition.
21655         (_GL_ATTRIBUTE_PURE): New macro.
21656         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21657         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21658         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21659
21660 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21661
21662         unitypes: Fix bug introduced on 2010-05-18.
21663         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21664
21665 2010-06-22  Eric Blake  <eblake@redhat.com>
21666
21667         memmem: slight optimization
21668         * lib/str-two-way.h (critical_factorization): Update comments.
21669         Reduce work during factorization phase.
21670         Reported by Carlos Bueno <carlos@bueno.org>.
21671
21672 2010-06-21  Bruno Haible  <bruno@clisp.org>
21673
21674         Fix HAVE_CALLOC_POSIX misnomer.
21675         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21676         !HAVE_CALLOC_POSIX.
21677         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21678         HAVE_CALLOC_POSIX.
21679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21680         instead of HAVE_CALLOC_POSIX.
21681         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21682         HAVE_CALLOC_POSIX.
21683
21684         Use modern idiom for calloc() replacement.
21685         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21686         AC_FUNC_CALLOC.
21687         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21688         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21689         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21690         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21691         (gl_REPLACE_CALLOC): New macro.
21692
21693 2010-06-21  Bruno Haible  <bruno@clisp.org>
21694
21695         Fix HAVE_REALLOC_POSIX misnomer.
21696         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21697         !HAVE_REALLOC_POSIX.
21698         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21699         HAVE_REALLOC_POSIX.
21700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21701         instead of HAVE_REALLOC_POSIX.
21702         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21703         HAVE_REALLOC_POSIX.
21704
21705         Use modern idiom for realloc() replacement.
21706         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21707         AC_FUNC_REALLOC.
21708         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21709         Autoconf's AC_FUNC_REALLOC.
21710         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21711         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21712         (gl_REPLACE_REALLOC): New macro.
21713         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21714
21715 2010-06-21  Bruno Haible  <bruno@clisp.org>
21716
21717         Fix HAVE_MALLOC_POSIX misnomer.
21718         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21719         !HAVE_MALLOC_POSIX.
21720         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21721         HAVE_MALLOC_POSIX.
21722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21723         instead of HAVE_MALLOC_POSIX.
21724         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21725         HAVE_MALLOC_POSIX.
21726
21727         Use modern idiom for malloc() replacement.
21728         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21729         AC_FUNC_MALLOC.
21730         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21731         Autoconf's AC_FUNC_MALLOC.
21732         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21733         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21734         (gl_REPLACE_MALLOC): New macro.
21735         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21736
21737 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21738
21739         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21740         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21741         This macro takes 3 arguments, not 4.
21742
21743 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21744
21745         ipv6: fix detection under mingw
21746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21747         in6_addr.
21748
21749 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21750
21751         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21752         that strtod() works when cross-compiling to a glibc version known
21753         to work.
21754
21755 2010-06-15  Bruno Haible  <bruno@clisp.org>
21756
21757         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21758
21759 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21760
21761         select: Correct timeout.
21762         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21763
21764 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21765
21766         git-version-gen: init shell var to avoid env var influence
21767         * build-aux/git-version-gen (v): Init shell var to empty.
21768
21769 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21770
21771         priv-set: Don't assume that priv.h exists merely because getppriv does.
21772         See Jan Andersen's bug report about AIX 5L in
21773         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21774         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21775         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21776         * lib/priv-set.h: Likewise.
21777         * tests/test-priv-set.c: Likewise.
21778
21779 2010-06-13  Bruno Haible  <bruno@clisp.org>
21780
21781         relocatable: Make it easier to test whether to install wrappers.
21782         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21783         RELOCATABLE_VIA_WRAPPER.
21784
21785 2010-06-13  Bruno Haible  <bruno@clisp.org>
21786
21787         gnulib-tool: Display specified modules and dependencies differently.
21788         * gnulib-tool (func_show_module_list): New function.
21789         (func_import, func_create_testdir): Invoke it.
21790         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21791
21792 2010-06-13  Bruno Haible  <bruno@clisp.org>
21793
21794         gnulib-tool: Align code of func_import and func_create_testdir.
21795         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21796         specified_modules.
21797
21798 2010-06-12  Jim Meyering  <meyering@redhat.com>
21799
21800         test-inttostr: avoid spurious failure on Solaris 9
21801         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21802         to accept "%ju".  Reported by Bruno Haible.
21803
21804 2010-06-11  Jim Meyering  <meyering@redhat.com>
21805
21806         test-sys_socket: mark variables as used more readably
21807         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21808         as "used" explicitly via (void) statement casts.  This is more
21809         readable than using them in an artificial return expression.
21810         Suggestion from Bruno Haible.
21811
21812 2010-06-11  Bruno Haible  <bruno@clisp.org>
21813
21814         Avoid some more warnings from "gcc -Wwrite-strings".
21815         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21816         to 'const char *'.
21817         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21818         * tests/test-c-strcasestr.c (main): Likewise.
21819         * tests/test-mbscasestr1.c (main): Likewise.
21820         * tests/test-mbscasestr2.c (main): Likewise.
21821         * tests/test-memmem.c (main): Likewise.
21822         * tests/test-strstr.c (main): Likewise.
21823         * tests/test-strcasestr.c (main): Likewise.
21824
21825 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21826
21827         init.sh: change framework_failure_ to fail with status 99, not 1
21828         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21829         automake's parallel-tests rule that this is an unexpected failure,
21830         even if the test is listed in XFAIL_TESTS.
21831
21832 2010-06-11  Jim Meyering  <meyering@redhat.com>
21833
21834         test-inttostr: avoid warnings about 4-6KB literal strings
21835         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21836         Include "macros.h", for its definition of ASSERT.
21837         (CK): s/assert/ASSERT/
21838         * modules/inttostr-tests (Files): Add macros.h.
21839
21840         init.sh: don't use $ME_ or skip_ before they are defined
21841         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21842         their first uses.  Also hoist their companions: warn_, fail_,
21843         framework_failure_, $stderr_fileno.  Prompted by a patch from
21844         Stefano Lattarini.
21845
21846         test-sys_socket: avoid set-but-not-used warnings from gcc
21847         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21848         avoid warning about set-but-not-used variables.
21849
21850         test-xvasprintf: avoid 'const' discard warnings
21851         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21852         "const" when assigning from literal strings.
21853         (test_xasprintf): Add "void" in function argument list to placate
21854         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21855
21856         tests: avoid compilation warnings in argmatch and exclude tests...
21857         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21858         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21859         Since it always exits, declare with the "noreturn" attribute.
21860         * tests/test-argmatch.c: Likewise.
21861
21862         tests: avoid 'const' discard warnings in mbsstr tests
21863         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21864         * tests/test-mbsstr2.c (main): Likewise.
21865
21866         test-verify: avoid warning from gcc's -Wmissing-declarations
21867         * tests/test-verify.c (function): Declare to be static.
21868
21869         test-inttostr.c: include <string.h> for use of strcmp
21870         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21871
21872         test-linkat: avoid failed assertion on "other" architectures
21873         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21874         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21875         sparc: https://bugs.launchpad.net/bugs/591968
21876
21877 2010-06-11  Jim Meyering  <meyering@redhat.com>
21878
21879         printf.m4: avoid autoconf's "Expanded Before Required" warning
21880         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21881         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21882         autoconf warning.
21883
21884 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21885
21886         Replacement header templates are now named with ".in", not "_".
21887         * doc/gnulib-intro.texi: Correct.
21888
21889 2010-06-10  Jim Meyering  <meyering@redhat.com>
21890
21891         inttostr-tests: depend on snprintf, not snprintf-posix
21892         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21893         snprintf-posix, to avoid this aclocal failure:
21894           missing file gnulib-tests/vasnprintf.c
21895           configure.ac:45: error: expected source file, required through \
21896           AC_LIBSOURCES, not found
21897
21898 2010-06-10  Jim Meyering  <meyering@redhat.com>
21899
21900         inttostr: add a new function, inttostr, and tests
21901         The namesake function was not available.  The existence of the
21902         template file, inttostr.c makes its addition nontrivial.
21903         * lib/anytostr.c: Rename from inttostr.c.
21904         (anytostr): Rename from inttostr.
21905         * lib/inttostr.c: New file.
21906         * modules/inttostr (Files): Add anytostr.c.
21907         (Makefile.am): Set lib_SOURCES instead of ...
21908         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21909         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21910         * lib/offtostr.c: Likewise.
21911         * lib/uinttostr.c: Likewise.
21912         * lib/umaxtostr.c: Likewise.
21913         * modules/inttostr-tests: New file.
21914         * tests/test-inttostr.c: New file.  Test these functions.
21915
21916 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21917             Bruno Haible  <bruno@clisp.org>
21918
21919         Add "Extending Gnulib" chapter to manual.
21920         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21921         chapter.
21922         (Extending Gnulib): New chapter.
21923         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21924         chapter.
21925
21926 2010-06-09  Bruno Haible  <bruno@clisp.org>
21927
21928         Avoid relocwrapper link errors due to gnulib replacement functions.
21929         * lib/areadlink.c: Use the system's malloc, realloc functions.
21930         (areadlink): Set errno to ENOMEM explicitly.
21931         * modules/areadlink (Depends-on): Remove malloc-posix.
21932         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21933
21934 2010-06-09  Bruno Haible  <bruno@clisp.org>
21935
21936         Avoid relocwrapper link errors due to gnulib replacement functions.
21937         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21938         * lib/malloca.c: Likewise.
21939         * lib/relocatable.c: Likewise.
21940         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21941         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21942         * lib/setenv.c: Use the system's malloc, realloc functions.
21943         * lib/strerror.c: Use the system's sprintf function.
21944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21945
21946 2010-06-04  Bruno Haible  <bruno@clisp.org>
21947
21948         Prefer documented low-level autoconf macro names.
21949         * m4/lib-link.m4: Use m4_translit instead of translit.
21950         * m4/environ.m4: Likewise.
21951         * m4/mathfunc.m4: Likewise.
21952         * m4/onceonly.m4: Likewise.
21953         * m4/stdint.m4: Likewise.
21954         Suggested by Eric Blake.
21955
21956 2010-06-04  Martin Lambers  <marlam@marlam.de>
21957             Bruno Haible  <bruno@clisp.org>
21958
21959         havelib: Allow library names with '+' characters.
21960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21961         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21962
21963 2010-06-09  Bruno Haible  <bruno@clisp.org>
21964
21965         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21966         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21967         realloc failed.
21968
21969 2010-06-08  Peter Simons  <simons@cryp.to>
21970
21971         maint.mk: make the news-check rule more configurable
21972         * top/maint.mk (news-check-lines-spec): New variable.
21973         (news-check): Use "sed -n 1,10p" in place of "head".
21974
21975 2010-06-07  Jim Meyering  <meyering@redhat.com>
21976
21977         do-release-commit-and-tag: fix typo in --help
21978         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21979
21980         regex: avoid new dead-code warning with gcc-4.6.0
21981         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21982         if-block containing a while-loop.  It's been unused for at least
21983         5 years.
21984
21985 2010-06-05  Bruno Haible  <bruno@clisp.org>
21986
21987         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21988         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21989
21990 2010-06-04  Bruno Haible  <bruno@clisp.org>
21991
21992         Update to GNU gettext 0.18.1.
21993         * modules/gettext (configure.ac): Require gettext infrastructure from
21994         version 0.18.1.
21995
21996 2010-06-03  Bruno Haible  <bruno@clisp.org>
21997
21998         Don't use AC_LIBOBJ with file names in subdirectories.
21999         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22000         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22001         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22002         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22003         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22004         gl_LIBUNISTRING_LIBSOURCE.
22005         (Makefile.am): Augment lib_SOURCES here, conditionally.
22006         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22007
22008 2010-06-03  Bruno Haible  <bruno@clisp.org>
22009
22010         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22011         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22012         expansion does not end with a newline.
22013         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22014         unnecessary newline.
22015
22016 2010-06-03  Bruno Haible  <bruno@clisp.org>
22017
22018         Reduce dependencies.
22019         * tests/test-quotearg.h: New file, extracted from
22020         tests/test-quotearg.c.
22021         * tests/test-quotearg-simple.c: New file, extracted from
22022         tests/test-quotearg.c.
22023         * tests/test-quotearg.c: Don't include <ctype.h>.
22024         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22025         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22026         use_quote_double_quotes, use_quotearg_colon): Moved to
22027         tests/test-quotearg.h.
22028         (results_g, flag_results, custom_quotes, custom_results): Moved
22029         to tests/test-quotearg-simple.c.
22030         (main): Moved the part that does not depend on gettext to
22031         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22032         performed.
22033         * modules/quotearg-simple: New file.
22034         * modules/quotearg-simple-tests: New file.
22035         * modules/quotearg (Depends-on): Add quotearg-simple.
22036         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22037         (Files): Add tests/test-quotearg.h.
22038         Reported by Paolo Bonzini.
22039
22040 2010-06-03  Bruno Haible  <bruno@clisp.org>
22041
22042         Reduce dependencies.
22043         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22044
22045 2010-06-03  Bruno Haible  <bruno@clisp.org>
22046
22047         time: Undefine more broken macros.
22048         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22049         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22050         Reported by Eric Blake.
22051
22052 2010-06-03  Bruno Haible  <bruno@clisp.org>
22053
22054         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22055         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22056         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22057         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22058         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22059         Reported by Ludovic Courtès <ludo@gnu.org>.
22060
22061 2010-06-02  Eric Blake  <eblake@redhat.com>
22062
22063         time: work with mingw + pthreads-win32 library
22064         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22065         if timespec is defined only in pthread.h.
22066         * modules/time (Makefile.am): Substitute it.
22067         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22068         <pthread.h>, when needed.
22069         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22070         from the library.
22071
22072 2010-05-31  Bruno Haible  <bruno@clisp.org>
22073
22074         Avoid expanding two macros in the wrong order.
22075         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22076         gl_LIBUNISTRING if it is defined.
22077         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22078         autoconf >= 2.64.
22079         Reported by Ludovic Courtès <ludo@gnu.org>.
22080
22081 2010-05-27  Jim Meyering  <meyering@redhat.com>
22082
22083         maint.mk: also prohibit "#undef" of always-defined symbols
22084         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22085         Allow more than one space before the symbol name.
22086         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22087         the regexp uses alternation.
22088
22089 2010-05-26  Eric Blake  <eblake@redhat.com>
22090
22091         maint.mk: avoid echo -e
22092         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22093         Convert all uses of echo -* to printf.
22094         Reported by Matthias Bolte.
22095
22096 2010-05-25  Bruno Haible  <bruno@clisp.org>
22097
22098         Update to GNU gettext 0.18, part 2.
22099         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22100         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22101
22102 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22103
22104         Add missing include in test-pwrite.c.
22105         * tests/test-pwrite.c: Include string.h, for strcmp.
22106
22107 2010-05-24  Bruno Haible  <bruno@clisp.org>
22108
22109         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22110
22111 2010-05-24  Bruno Haible  <bruno@clisp.org>
22112
22113         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22114         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22115         iconveh_error argument.
22116         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22117         U_STRCONV_TO_LOCALE.
22118         * lib/unistr/u16-strcoll.c: Likewise.
22119         * lib/unistr/u32-strcoll.c: Likewise.
22120         * modules/unistr/u8-strcoll (Depends-on): Add
22121         uniconv/u8-strconv-to-enc, localcharset. Remove
22122         uniconv/u8-strconv-to-locale.
22123         (configure.ac): Bump version number.
22124         * modules/unistr/u16-strcoll (Depends-on): Add
22125         uniconv/u16-strconv-to-enc, localcharset. Remove
22126         uniconv/u16-strconv-to-locale.
22127         (configure.ac): Bump version number.
22128         * modules/unistr/u32-strcoll (Depends-on): Add
22129         uniconv/u32-strconv-to-enc, localcharset. Remove
22130         uniconv/u32-strconv-to-locale.
22131         (configure.ac): Bump version number.
22132
22133 2010-05-24  Bruno Haible  <bruno@clisp.org>
22134
22135         Avoid a test failure on NetBSD 5.0.
22136         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22137         an iconv() bug.
22138
22139 2010-05-24  Bruno Haible  <bruno@clisp.org>
22140
22141         Adjust #include directive style.
22142         * modules/regex (Includes): Recommend to write <regex.h>.
22143
22144 2010-05-24  Bruno Haible  <bruno@clisp.org>
22145
22146         regex: Don't require alloca.
22147         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22148         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22149         only inside if (0).
22150
22151 2010-05-23  Jim Meyering  <meyering@redhat.com>
22152
22153         test-renameat.c: include <sys/stat.h>
22154         * tests/test-renameat.c: Include <sys/stat.h>; required for
22155         definition of S_IS* macros.
22156
22157 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22158
22159         Update maintainer documentation for 'relocatable-prog' module.
22160         * doc/relocatable-maint.texi: Update.
22161         Comments by Bruno Haible.
22162
22163 2010-05-23  Bruno Haible  <bruno@clisp.org>
22164
22165         git-merge-changelog: Enable --split-merged-entry by default.
22166         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22167         (usage): Don't mention this option any more.
22168         Reported by Ralf Wildenhues.
22169
22170 2010-05-23  Jim Meyering  <meyering@redhat.com>
22171
22172         test-pwrite: do not leave behind a test file named "out"
22173         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22174         The trivial-looking use of init.sh is really necessary.
22175         It ensures that the temporary file, "out", is created in
22176         a temporary directory, and removed upon termination.
22177         * tests/test-pwrite.sh: Re-add file.
22178         * modules/pwrite-tests: Reference it.
22179
22180 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22181
22182         Fix output redirection buglet in init.sh.
22183         * tests/init.sh: Fix redirection of stderr.
22184
22185 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22186
22187         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22188
22189 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22190
22191         * modules/valgrind-tests: New file.
22192         * m4/valgrind-tests.m4: New file.
22193         * doc/valgrind-tests.texi: New file.
22194         * doc/gnulib.texi (Running self-tests under valgrind): New
22195         section.
22196
22197 2010-05-19  Bruno Haible  <bruno@clisp.org>
22198
22199         Clean up dead code in recent commit.
22200         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22201         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22202         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22203         Suggested by Paolo Bonzini.
22204
22205 2010-05-19  Bruno Haible  <bruno@clisp.org>
22206
22207         Avoid valgrind error reports from libunistring.
22208         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22209         * modules/libunistring (Files): Add it.
22210         * modules/libunistring-optional (Files): Likewise.
22211
22212 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22213             Bruno Haible  <bruno@clisp.org>
22214
22215         New module 'libunistring-optional'.
22216         * modules/libunistring-optional: New file.
22217         * m4/libunistring-base.m4: New file.
22218         * m4/libunistring-optional.m4: New file.
22219         * lib/unicase.in.h: Renamed from lib/unicase.h.
22220         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22221         * lib/unictype.in.h: Renamed from lib/unictype.h.
22222         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22223         * lib/uniname.in.h: Renamed from lib/uniname.h.
22224         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22225         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22226         * lib/unistr.in.h: Renamed from lib/unistr.h.
22227         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22228         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22229         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22230         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22231         gl_LIBUNISTRING. If the library was found, determine the installed
22232         version and set LIBUNISTRING_VERSION.
22233         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22234         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22235         handle a configuration option --with-included-libunistring.
22236         * modules/libunistring (Files): Add m4/absolute-header.m4.
22237         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22238         Add m4/libunistring-base.m4.
22239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22240         (Makefile.am): Build unicase.h from unicase.in.h.
22241         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22242         Add m4/libunistring-base.m4.
22243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22244         (Makefile.am): Build uniconv.h from uniconv.in.h.
22245         * modules/unictype/base (Files): Use unictype.in.h instead of
22246         unictype.h. Add m4/libunistring-base.m4.
22247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22248         (Makefile.am): Build unictype.h from unictype.in.h.
22249         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22250         Add m4/libunistring-base.m4.
22251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22252         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22253         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22254         Add m4/libunistring-base.m4.
22255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22256         (Makefile.am): Build uniname.h from uniname.in.h.
22257         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22258         Add m4/libunistring-base.m4.
22259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22260         (Makefile.am): Build uninorm.h from uninorm.in.h.
22261         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22262         unistdio.h. Add m4/libunistring-base.m4.
22263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22264         (Makefile.am): Build unistdio.h from unistdio.in.h.
22265         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22266         Add m4/libunistring-base.m4.
22267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22268         (Makefile.am): Build unistr.h from unistr.in.h.
22269         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22270         Add m4/libunistring-base.m4.
22271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22272         (Makefile.am): Build unitypes.h from unitypes.in.h.
22273         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22274         Add m4/libunistring-base.m4.
22275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22276         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22277         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22278         uniwidth.h. Add m4/libunistring-base.m4.
22279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22280         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22281         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22282         instead of augmenting lib_SOURCES.
22283         * modules/unicase/empty-suffix-context: Likewise.
22284         * modules/unicase/locale-language: Likewise.
22285         * modules/unicase/tolower: Likewise.
22286         * modules/unicase/totitle: Likewise.
22287         * modules/unicase/toupper: Likewise.
22288         * modules/unicase/u8-casecmp: Likewise.
22289         * modules/unicase/u8-casecoll: Likewise.
22290         * modules/unicase/u8-casefold: Likewise.
22291         * modules/unicase/u8-casexfrm: Likewise.
22292         * modules/unicase/u8-ct-casefold: Likewise.
22293         * modules/unicase/u8-ct-tolower: Likewise.
22294         * modules/unicase/u8-ct-totitle: Likewise.
22295         * modules/unicase/u8-ct-toupper: Likewise.
22296         * modules/unicase/u8-is-cased: Likewise.
22297         * modules/unicase/u8-is-casefolded: Likewise.
22298         * modules/unicase/u8-is-lowercase: Likewise.
22299         * modules/unicase/u8-is-titlecase: Likewise.
22300         * modules/unicase/u8-is-uppercase: Likewise.
22301         * modules/unicase/u8-prefix-context: Likewise.
22302         * modules/unicase/u8-suffix-context: Likewise.
22303         * modules/unicase/u8-tolower: Likewise.
22304         * modules/unicase/u8-totitle: Likewise.
22305         * modules/unicase/u8-toupper: Likewise.
22306         * modules/unicase/u16-casecmp: Likewise.
22307         * modules/unicase/u16-casecoll: Likewise.
22308         * modules/unicase/u16-casefold: Likewise.
22309         * modules/unicase/u16-casexfrm: Likewise.
22310         * modules/unicase/u16-ct-casefold: Likewise.
22311         * modules/unicase/u16-ct-tolower: Likewise.
22312         * modules/unicase/u16-ct-totitle: Likewise.
22313         * modules/unicase/u16-ct-toupper: Likewise.
22314         * modules/unicase/u16-is-cased: Likewise.
22315         * modules/unicase/u16-is-casefolded: Likewise.
22316         * modules/unicase/u16-is-lowercase: Likewise.
22317         * modules/unicase/u16-is-titlecase: Likewise.
22318         * modules/unicase/u16-is-uppercase: Likewise.
22319         * modules/unicase/u16-prefix-context: Likewise.
22320         * modules/unicase/u16-suffix-context: Likewise.
22321         * modules/unicase/u16-tolower: Likewise.
22322         * modules/unicase/u16-totitle: Likewise.
22323         * modules/unicase/u16-toupper: Likewise.
22324         * modules/unicase/u32-casecmp: Likewise.
22325         * modules/unicase/u32-casecoll: Likewise.
22326         * modules/unicase/u32-casefold: Likewise.
22327         * modules/unicase/u32-casexfrm: Likewise.
22328         * modules/unicase/u32-ct-casefold: Likewise.
22329         * modules/unicase/u32-ct-tolower: Likewise.
22330         * modules/unicase/u32-ct-totitle: Likewise.
22331         * modules/unicase/u32-ct-toupper: Likewise.
22332         * modules/unicase/u32-is-cased: Likewise.
22333         * modules/unicase/u32-is-casefolded: Likewise.
22334         * modules/unicase/u32-is-lowercase: Likewise.
22335         * modules/unicase/u32-is-titlecase: Likewise.
22336         * modules/unicase/u32-is-uppercase: Likewise.
22337         * modules/unicase/u32-prefix-context: Likewise.
22338         * modules/unicase/u32-suffix-context: Likewise.
22339         * modules/unicase/u32-tolower: Likewise.
22340         * modules/unicase/u32-totitle: Likewise.
22341         * modules/unicase/u32-toupper: Likewise.
22342         * modules/unicase/ulc-casecmp: Likewise.
22343         * modules/unicase/ulc-casecoll: Likewise.
22344         * modules/unicase/ulc-casexfrm: Likewise.
22345         * modules/uniconv/u8-conv-from-enc: Likewise.
22346         * modules/uniconv/u8-conv-to-enc: Likewise.
22347         * modules/uniconv/u8-strconv-from-enc: Likewise.
22348         * modules/uniconv/u8-strconv-from-locale: Likewise.
22349         * modules/uniconv/u8-strconv-to-enc: Likewise.
22350         * modules/uniconv/u8-strconv-to-locale: Likewise.
22351         * modules/uniconv/u16-conv-from-enc: Likewise.
22352         * modules/uniconv/u16-conv-to-enc: Likewise.
22353         * modules/uniconv/u16-strconv-from-enc: Likewise.
22354         * modules/uniconv/u16-strconv-from-locale: Likewise.
22355         * modules/uniconv/u16-strconv-to-enc: Likewise.
22356         * modules/uniconv/u16-strconv-to-locale: Likewise.
22357         * modules/uniconv/u32-conv-from-enc: Likewise.
22358         * modules/uniconv/u32-conv-to-enc: Likewise.
22359         * modules/uniconv/u32-strconv-from-enc: Likewise.
22360         * modules/uniconv/u32-strconv-from-locale: Likewise.
22361         * modules/uniconv/u32-strconv-to-enc: Likewise.
22362         * modules/uniconv/u32-strconv-to-locale: Likewise.
22363         * modules/unictype/bidicategory-byname: Likewise.
22364         * modules/unictype/bidicategory-name: Likewise.
22365         * modules/unictype/bidicategory-of: Likewise.
22366         * modules/unictype/bidicategory-test: Likewise.
22367         * modules/unictype/block-list: Likewise.
22368         * modules/unictype/block-test: Likewise.
22369         * modules/unictype/category-C: Likewise.
22370         * modules/unictype/category-Cc: Likewise.
22371         * modules/unictype/category-Cf: Likewise.
22372         * modules/unictype/category-Cn: Likewise.
22373         * modules/unictype/category-Co: Likewise.
22374         * modules/unictype/category-Cs: Likewise.
22375         * modules/unictype/category-L: Likewise.
22376         * modules/unictype/category-Ll: Likewise.
22377         * modules/unictype/category-Lm: Likewise.
22378         * modules/unictype/category-Lo: Likewise.
22379         * modules/unictype/category-Lt: Likewise.
22380         * modules/unictype/category-Lu: Likewise.
22381         * modules/unictype/category-M: Likewise.
22382         * modules/unictype/category-Mc: Likewise.
22383         * modules/unictype/category-Me: Likewise.
22384         * modules/unictype/category-Mn: Likewise.
22385         * modules/unictype/category-N: Likewise.
22386         * modules/unictype/category-Nd: Likewise.
22387         * modules/unictype/category-Nl: Likewise.
22388         * modules/unictype/category-No: Likewise.
22389         * modules/unictype/category-P: Likewise.
22390         * modules/unictype/category-Pc: Likewise.
22391         * modules/unictype/category-Pd: Likewise.
22392         * modules/unictype/category-Pe: Likewise.
22393         * modules/unictype/category-Pf: Likewise.
22394         * modules/unictype/category-Pi: Likewise.
22395         * modules/unictype/category-Po: Likewise.
22396         * modules/unictype/category-Ps: Likewise.
22397         * modules/unictype/category-S: Likewise.
22398         * modules/unictype/category-Sc: Likewise.
22399         * modules/unictype/category-Sk: Likewise.
22400         * modules/unictype/category-Sm: Likewise.
22401         * modules/unictype/category-So: Likewise.
22402         * modules/unictype/category-Z: Likewise.
22403         * modules/unictype/category-Zl: Likewise.
22404         * modules/unictype/category-Zp: Likewise.
22405         * modules/unictype/category-Zs: Likewise.
22406         * modules/unictype/category-and: Likewise.
22407         * modules/unictype/category-and-not: Likewise.
22408         * modules/unictype/category-byname: Likewise.
22409         * modules/unictype/category-name: Likewise.
22410         * modules/unictype/category-none: Likewise.
22411         * modules/unictype/category-of: Likewise.
22412         * modules/unictype/category-or: Likewise.
22413         * modules/unictype/category-test: Likewise.
22414         * modules/unictype/combining-class: Likewise.
22415         * modules/unictype/ctype-alnum: Likewise.
22416         * modules/unictype/ctype-alpha: Likewise.
22417         * modules/unictype/ctype-blank: Likewise.
22418         * modules/unictype/ctype-cntrl: Likewise.
22419         * modules/unictype/ctype-digit: Likewise.
22420         * modules/unictype/ctype-graph: Likewise.
22421         * modules/unictype/ctype-lower: Likewise.
22422         * modules/unictype/ctype-print: Likewise.
22423         * modules/unictype/ctype-punct: Likewise.
22424         * modules/unictype/ctype-space: Likewise.
22425         * modules/unictype/ctype-upper: Likewise.
22426         * modules/unictype/ctype-xdigit: Likewise.
22427         * modules/unictype/decimal-digit: Likewise.
22428         * modules/unictype/digit: Likewise.
22429         * modules/unictype/mirror: Likewise.
22430         * modules/unictype/numeric: Likewise.
22431         * modules/unictype/property-alphabetic: Likewise.
22432         * modules/unictype/property-ascii-hex-digit: Likewise.
22433         * modules/unictype/property-bidi-arabic-digit: Likewise.
22434         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22435         * modules/unictype/property-bidi-block-separator: Likewise.
22436         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22437         * modules/unictype/property-bidi-common-separator: Likewise.
22438         * modules/unictype/property-bidi-control: Likewise.
22439         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22440         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22441         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22442         * modules/unictype/property-bidi-european-digit: Likewise.
22443         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22444         * modules/unictype/property-bidi-left-to-right: Likewise.
22445         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22446         * modules/unictype/property-bidi-other-neutral: Likewise.
22447         * modules/unictype/property-bidi-pdf: Likewise.
22448         * modules/unictype/property-bidi-segment-separator: Likewise.
22449         * modules/unictype/property-bidi-whitespace: Likewise.
22450         * modules/unictype/property-byname: Likewise.
22451         * modules/unictype/property-combining: Likewise.
22452         * modules/unictype/property-composite: Likewise.
22453         * modules/unictype/property-currency-symbol: Likewise.
22454         * modules/unictype/property-dash: Likewise.
22455         * modules/unictype/property-decimal-digit: Likewise.
22456         * modules/unictype/property-default-ignorable-code-point: Likewise.
22457         * modules/unictype/property-deprecated: Likewise.
22458         * modules/unictype/property-diacritic: Likewise.
22459         * modules/unictype/property-extender: Likewise.
22460         * modules/unictype/property-format-control: Likewise.
22461         * modules/unictype/property-grapheme-base: Likewise.
22462         * modules/unictype/property-grapheme-extend: Likewise.
22463         * modules/unictype/property-grapheme-link: Likewise.
22464         * modules/unictype/property-hex-digit: Likewise.
22465         * modules/unictype/property-hyphen: Likewise.
22466         * modules/unictype/property-id-continue: Likewise.
22467         * modules/unictype/property-id-start: Likewise.
22468         * modules/unictype/property-ideographic: Likewise.
22469         * modules/unictype/property-ids-binary-operator: Likewise.
22470         * modules/unictype/property-ids-trinary-operator: Likewise.
22471         * modules/unictype/property-ignorable-control: Likewise.
22472         * modules/unictype/property-iso-control: Likewise.
22473         * modules/unictype/property-join-control: Likewise.
22474         * modules/unictype/property-left-of-pair: Likewise.
22475         * modules/unictype/property-line-separator: Likewise.
22476         * modules/unictype/property-logical-order-exception: Likewise.
22477         * modules/unictype/property-lowercase: Likewise.
22478         * modules/unictype/property-math: Likewise.
22479         * modules/unictype/property-non-break: Likewise.
22480         * modules/unictype/property-not-a-character: Likewise.
22481         * modules/unictype/property-numeric: Likewise.
22482         * modules/unictype/property-other-alphabetic: Likewise.
22483         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22484         * modules/unictype/property-other-grapheme-extend: Likewise.
22485         * modules/unictype/property-other-id-continue: Likewise.
22486         * modules/unictype/property-other-id-start: Likewise.
22487         * modules/unictype/property-other-lowercase: Likewise.
22488         * modules/unictype/property-other-math: Likewise.
22489         * modules/unictype/property-other-uppercase: Likewise.
22490         * modules/unictype/property-paired-punctuation: Likewise.
22491         * modules/unictype/property-paragraph-separator: Likewise.
22492         * modules/unictype/property-pattern-syntax: Likewise.
22493         * modules/unictype/property-pattern-white-space: Likewise.
22494         * modules/unictype/property-private-use: Likewise.
22495         * modules/unictype/property-punctuation: Likewise.
22496         * modules/unictype/property-quotation-mark: Likewise.
22497         * modules/unictype/property-radical: Likewise.
22498         * modules/unictype/property-sentence-terminal: Likewise.
22499         * modules/unictype/property-soft-dotted: Likewise.
22500         * modules/unictype/property-space: Likewise.
22501         * modules/unictype/property-terminal-punctuation: Likewise.
22502         * modules/unictype/property-test: Likewise.
22503         * modules/unictype/property-titlecase: Likewise.
22504         * modules/unictype/property-unassigned-code-value: Likewise.
22505         * modules/unictype/property-unified-ideograph: Likewise.
22506         * modules/unictype/property-uppercase: Likewise.
22507         * modules/unictype/property-variation-selector: Likewise.
22508         * modules/unictype/property-white-space: Likewise.
22509         * modules/unictype/property-xid-continue: Likewise.
22510         * modules/unictype/property-xid-start: Likewise.
22511         * modules/unictype/property-zero-width: Likewise.
22512         * modules/unictype/scripts: Likewise.
22513         * modules/unictype/syntax-c-ident: Likewise.
22514         * modules/unictype/syntax-c-whitespace: Likewise.
22515         * modules/unictype/syntax-java-ident: Likewise.
22516         * modules/unictype/syntax-java-whitespace: Likewise.
22517         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22518         * modules/unilbrk/u8-width-linebreaks: Likewise.
22519         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22520         * modules/unilbrk/u16-width-linebreaks: Likewise.
22521         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22522         * modules/unilbrk/u32-width-linebreaks: Likewise.
22523         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22524         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22525         * modules/uniname/uniname: Likewise.
22526         * modules/uninorm/canonical-decomposition: Likewise.
22527         * modules/uninorm/composition: Likewise.
22528         * modules/uninorm/decomposing-form: Likewise.
22529         * modules/uninorm/decomposition: Likewise.
22530         * modules/uninorm/filter: Likewise.
22531         * modules/uninorm/nfc: Likewise.
22532         * modules/uninorm/nfd: Likewise.
22533         * modules/uninorm/nfkc: Likewise.
22534         * modules/uninorm/nfkd: Likewise.
22535         * modules/uninorm/u8-normalize: Likewise.
22536         * modules/uninorm/u8-normcmp: Likewise.
22537         * modules/uninorm/u8-normcoll: Likewise.
22538         * modules/uninorm/u8-normxfrm: Likewise.
22539         * modules/uninorm/u16-normalize: Likewise.
22540         * modules/uninorm/u16-normcmp: Likewise.
22541         * modules/uninorm/u16-normcoll: Likewise.
22542         * modules/uninorm/u16-normxfrm: Likewise.
22543         * modules/uninorm/u32-normalize: Likewise.
22544         * modules/uninorm/u32-normcmp: Likewise.
22545         * modules/uninorm/u32-normcoll: Likewise.
22546         * modules/uninorm/u32-normxfrm: Likewise.
22547         * modules/unistdio/u8-asnprintf: Likewise.
22548         * modules/unistdio/u8-asprintf: Likewise.
22549         * modules/unistdio/u8-snprintf: Likewise.
22550         * modules/unistdio/u8-sprintf: Likewise.
22551         * modules/unistdio/u8-u8-asnprintf: Likewise.
22552         * modules/unistdio/u8-u8-asprintf: Likewise.
22553         * modules/unistdio/u8-u8-snprintf: Likewise.
22554         * modules/unistdio/u8-u8-sprintf: Likewise.
22555         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22556         * modules/unistdio/u8-u8-vasprintf: Likewise.
22557         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22558         * modules/unistdio/u8-u8-vsprintf: Likewise.
22559         * modules/unistdio/u8-vasnprintf: Likewise.
22560         * modules/unistdio/u8-vasprintf: Likewise.
22561         * modules/unistdio/u8-vsnprintf: Likewise.
22562         * modules/unistdio/u8-vsprintf: Likewise.
22563         * modules/unistdio/u16-asnprintf: Likewise.
22564         * modules/unistdio/u16-asprintf: Likewise.
22565         * modules/unistdio/u16-snprintf: Likewise.
22566         * modules/unistdio/u16-sprintf: Likewise.
22567         * modules/unistdio/u16-u16-asnprintf: Likewise.
22568         * modules/unistdio/u16-u16-asprintf: Likewise.
22569         * modules/unistdio/u16-u16-snprintf: Likewise.
22570         * modules/unistdio/u16-u16-sprintf: Likewise.
22571         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22572         * modules/unistdio/u16-u16-vasprintf: Likewise.
22573         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22574         * modules/unistdio/u16-u16-vsprintf: Likewise.
22575         * modules/unistdio/u16-vasnprintf: Likewise.
22576         * modules/unistdio/u16-vasprintf: Likewise.
22577         * modules/unistdio/u16-vsnprintf: Likewise.
22578         * modules/unistdio/u16-vsprintf: Likewise.
22579         * modules/unistdio/u32-asnprintf: Likewise.
22580         * modules/unistdio/u32-asprintf: Likewise.
22581         * modules/unistdio/u32-snprintf: Likewise.
22582         * modules/unistdio/u32-sprintf: Likewise.
22583         * modules/unistdio/u32-u32-asnprintf: Likewise.
22584         * modules/unistdio/u32-u32-asprintf: Likewise.
22585         * modules/unistdio/u32-u32-snprintf: Likewise.
22586         * modules/unistdio/u32-u32-sprintf: Likewise.
22587         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22588         * modules/unistdio/u32-u32-vasprintf: Likewise.
22589         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22590         * modules/unistdio/u32-u32-vsprintf: Likewise.
22591         * modules/unistdio/u32-vasnprintf: Likewise.
22592         * modules/unistdio/u32-vasprintf: Likewise.
22593         * modules/unistdio/u32-vsnprintf: Likewise.
22594         * modules/unistdio/u32-vsprintf: Likewise.
22595         * modules/unistdio/ulc-asnprintf: Likewise.
22596         * modules/unistdio/ulc-asprintf: Likewise.
22597         * modules/unistdio/ulc-fprintf: Likewise.
22598         * modules/unistdio/ulc-snprintf: Likewise.
22599         * modules/unistdio/ulc-sprintf: Likewise.
22600         * modules/unistdio/ulc-vasnprintf: Likewise.
22601         * modules/unistdio/ulc-vasprintf: Likewise.
22602         * modules/unistdio/ulc-vfprintf: Likewise.
22603         * modules/unistdio/ulc-vsnprintf: Likewise.
22604         * modules/unistdio/ulc-vsprintf: Likewise.
22605         * modules/unistr/u8-check: Likewise.
22606         * modules/unistr/u8-chr: Likewise.
22607         * modules/unistr/u8-cmp: Likewise.
22608         * modules/unistr/u8-cmp2: Likewise.
22609         * modules/unistr/u8-cpy: Likewise.
22610         * modules/unistr/u8-cpy-alloc: Likewise.
22611         * modules/unistr/u8-endswith: Likewise.
22612         * modules/unistr/u8-mblen: Likewise.
22613         * modules/unistr/u8-mbsnlen: Likewise.
22614         * modules/unistr/u8-mbtouc: Likewise.
22615         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22616         * modules/unistr/u8-mbtoucr: Likewise.
22617         * modules/unistr/u8-move: Likewise.
22618         * modules/unistr/u8-next: Likewise.
22619         * modules/unistr/u8-prev: Likewise.
22620         * modules/unistr/u8-set: Likewise.
22621         * modules/unistr/u8-startswith: Likewise.
22622         * modules/unistr/u8-stpcpy: Likewise.
22623         * modules/unistr/u8-stpncpy: Likewise.
22624         * modules/unistr/u8-strcat: Likewise.
22625         * modules/unistr/u8-strchr: Likewise.
22626         * modules/unistr/u8-strcmp: Likewise.
22627         * modules/unistr/u8-strcoll: Likewise.
22628         * modules/unistr/u8-strcpy: Likewise.
22629         * modules/unistr/u8-strcspn: Likewise.
22630         * modules/unistr/u8-strdup: Likewise.
22631         * modules/unistr/u8-strlen: Likewise.
22632         * modules/unistr/u8-strmblen: Likewise.
22633         * modules/unistr/u8-strmbtouc: Likewise.
22634         * modules/unistr/u8-strncat: Likewise.
22635         * modules/unistr/u8-strncmp: Likewise.
22636         * modules/unistr/u8-strncpy: Likewise.
22637         * modules/unistr/u8-strnlen: Likewise.
22638         * modules/unistr/u8-strpbrk: Likewise.
22639         * modules/unistr/u8-strrchr: Likewise.
22640         * modules/unistr/u8-strspn: Likewise.
22641         * modules/unistr/u8-strstr: Likewise.
22642         * modules/unistr/u8-strtok: Likewise.
22643         * modules/unistr/u8-to-u16: Likewise.
22644         * modules/unistr/u8-to-u32: Likewise.
22645         * modules/unistr/u8-uctomb: Likewise.
22646         * modules/unistr/u16-check: Likewise.
22647         * modules/unistr/u16-chr: Likewise.
22648         * modules/unistr/u16-cmp: Likewise.
22649         * modules/unistr/u16-cmp2: Likewise.
22650         * modules/unistr/u16-cpy: Likewise.
22651         * modules/unistr/u16-cpy-alloc: Likewise.
22652         * modules/unistr/u16-endswith: Likewise.
22653         * modules/unistr/u16-mblen: Likewise.
22654         * modules/unistr/u16-mbsnlen: Likewise.
22655         * modules/unistr/u16-mbtouc: Likewise.
22656         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22657         * modules/unistr/u16-mbtoucr: Likewise.
22658         * modules/unistr/u16-move: Likewise.
22659         * modules/unistr/u16-next: Likewise.
22660         * modules/unistr/u16-prev: Likewise.
22661         * modules/unistr/u16-set: Likewise.
22662         * modules/unistr/u16-startswith: Likewise.
22663         * modules/unistr/u16-stpcpy: Likewise.
22664         * modules/unistr/u16-stpncpy: Likewise.
22665         * modules/unistr/u16-strcat: Likewise.
22666         * modules/unistr/u16-strchr: Likewise.
22667         * modules/unistr/u16-strcmp: Likewise.
22668         * modules/unistr/u16-strcoll: Likewise.
22669         * modules/unistr/u16-strcpy: Likewise.
22670         * modules/unistr/u16-strcspn: Likewise.
22671         * modules/unistr/u16-strdup: Likewise.
22672         * modules/unistr/u16-strlen: Likewise.
22673         * modules/unistr/u16-strmblen: Likewise.
22674         * modules/unistr/u16-strmbtouc: Likewise.
22675         * modules/unistr/u16-strncat: Likewise.
22676         * modules/unistr/u16-strncmp: Likewise.
22677         * modules/unistr/u16-strncpy: Likewise.
22678         * modules/unistr/u16-strnlen: Likewise.
22679         * modules/unistr/u16-strpbrk: Likewise.
22680         * modules/unistr/u16-strrchr: Likewise.
22681         * modules/unistr/u16-strspn: Likewise.
22682         * modules/unistr/u16-strstr: Likewise.
22683         * modules/unistr/u16-strtok: Likewise.
22684         * modules/unistr/u16-to-u32: Likewise.
22685         * modules/unistr/u16-to-u8: Likewise.
22686         * modules/unistr/u16-uctomb: Likewise.
22687         * modules/unistr/u32-check: Likewise.
22688         * modules/unistr/u32-chr: Likewise.
22689         * modules/unistr/u32-cmp: Likewise.
22690         * modules/unistr/u32-cmp2: Likewise.
22691         * modules/unistr/u32-cpy: Likewise.
22692         * modules/unistr/u32-cpy-alloc: Likewise.
22693         * modules/unistr/u32-endswith: Likewise.
22694         * modules/unistr/u32-mblen: Likewise.
22695         * modules/unistr/u32-mbsnlen: Likewise.
22696         * modules/unistr/u32-mbtouc: Likewise.
22697         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22698         * modules/unistr/u32-mbtoucr: Likewise.
22699         * modules/unistr/u32-move: Likewise.
22700         * modules/unistr/u32-next: Likewise.
22701         * modules/unistr/u32-prev: Likewise.
22702         * modules/unistr/u32-set: Likewise.
22703         * modules/unistr/u32-startswith: Likewise.
22704         * modules/unistr/u32-stpcpy: Likewise.
22705         * modules/unistr/u32-stpncpy: Likewise.
22706         * modules/unistr/u32-strcat: Likewise.
22707         * modules/unistr/u32-strchr: Likewise.
22708         * modules/unistr/u32-strcmp: Likewise.
22709         * modules/unistr/u32-strcoll: Likewise.
22710         * modules/unistr/u32-strcpy: Likewise.
22711         * modules/unistr/u32-strcspn: Likewise.
22712         * modules/unistr/u32-strdup: Likewise.
22713         * modules/unistr/u32-strlen: Likewise.
22714         * modules/unistr/u32-strmblen: Likewise.
22715         * modules/unistr/u32-strmbtouc: Likewise.
22716         * modules/unistr/u32-strncat: Likewise.
22717         * modules/unistr/u32-strncmp: Likewise.
22718         * modules/unistr/u32-strncpy: Likewise.
22719         * modules/unistr/u32-strnlen: Likewise.
22720         * modules/unistr/u32-strpbrk: Likewise.
22721         * modules/unistr/u32-strrchr: Likewise.
22722         * modules/unistr/u32-strspn: Likewise.
22723         * modules/unistr/u32-strstr: Likewise.
22724         * modules/unistr/u32-strtok: Likewise.
22725         * modules/unistr/u32-to-u16: Likewise.
22726         * modules/unistr/u32-to-u8: Likewise.
22727         * modules/unistr/u32-uctomb: Likewise.
22728         * modules/uniwbrk/u8-wordbreaks: Likewise.
22729         * modules/uniwbrk/u16-wordbreaks: Likewise.
22730         * modules/uniwbrk/u32-wordbreaks: Likewise.
22731         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22732         * modules/uniwbrk/wordbreak-property: Likewise.
22733         * modules/uniwidth/u8-strwidth: Likewise.
22734         * modules/uniwidth/u8-width: Likewise.
22735         * modules/uniwidth/u16-strwidth: Likewise.
22736         * modules/uniwidth/u16-width: Likewise.
22737         * modules/uniwidth/u32-strwidth: Likewise.
22738         * modules/uniwidth/u32-width: Likewise.
22739         * modules/uniwidth/width: Likewise.
22740         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22741         with $(LIBUNISTRING).
22742         * modules/unicase/ignorable-tests: Likewise.
22743         * modules/unicase/locale-language-tests: Likewise.
22744         * modules/unicase/tolower-tests: Likewise.
22745         * modules/unicase/totitle-tests: Likewise.
22746         * modules/unicase/toupper-tests: Likewise.
22747         * modules/unicase/u8-casecmp-tests: Likewise.
22748         * modules/unicase/u8-casecoll-tests: Likewise.
22749         * modules/unicase/u8-casefold-tests: Likewise.
22750         * modules/unicase/u8-is-cased-tests: Likewise.
22751         * modules/unicase/u8-is-casefolded-tests: Likewise.
22752         * modules/unicase/u8-is-lowercase-tests: Likewise.
22753         * modules/unicase/u8-is-titlecase-tests: Likewise.
22754         * modules/unicase/u8-is-uppercase-tests: Likewise.
22755         * modules/unicase/u8-tolower-tests: Likewise.
22756         * modules/unicase/u8-totitle-tests: Likewise.
22757         * modules/unicase/u8-toupper-tests: Likewise.
22758         * modules/unicase/u16-casecmp-tests: Likewise.
22759         * modules/unicase/u16-casecoll-tests: Likewise.
22760         * modules/unicase/u16-casefold-tests: Likewise.
22761         * modules/unicase/u16-is-cased-tests: Likewise.
22762         * modules/unicase/u16-is-casefolded-tests: Likewise.
22763         * modules/unicase/u16-is-lowercase-tests: Likewise.
22764         * modules/unicase/u16-is-titlecase-tests: Likewise.
22765         * modules/unicase/u16-is-uppercase-tests: Likewise.
22766         * modules/unicase/u16-tolower-tests: Likewise.
22767         * modules/unicase/u16-totitle-tests: Likewise.
22768         * modules/unicase/u16-toupper-tests: Likewise.
22769         * modules/unicase/u32-casecmp-tests: Likewise.
22770         * modules/unicase/u32-casecoll-tests: Likewise.
22771         * modules/unicase/u32-casefold-tests: Likewise.
22772         * modules/unicase/u32-is-cased-tests: Likewise.
22773         * modules/unicase/u32-is-casefolded-tests: Likewise.
22774         * modules/unicase/u32-is-lowercase-tests: Likewise.
22775         * modules/unicase/u32-is-titlecase-tests: Likewise.
22776         * modules/unicase/u32-is-uppercase-tests: Likewise.
22777         * modules/unicase/u32-tolower-tests: Likewise.
22778         * modules/unicase/u32-totitle-tests: Likewise.
22779         * modules/unicase/u32-toupper-tests: Likewise.
22780         * modules/unicase/ulc-casecmp-tests: Likewise.
22781         * modules/unicase/ulc-casecoll-tests: Likewise.
22782         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22783         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22784         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22785         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22786         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22787         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22788         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22789         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22790         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22791         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22792         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22793         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22794         * modules/unictype/bidicategory-byname-tests: Likewise.
22795         * modules/unictype/bidicategory-name-tests: Likewise.
22796         * modules/unictype/bidicategory-of-tests: Likewise.
22797         * modules/unictype/bidicategory-test-tests: Likewise.
22798         * modules/unictype/block-list-tests: Likewise.
22799         * modules/unictype/block-of-tests: Likewise.
22800         * modules/unictype/block-test-tests: Likewise.
22801         * modules/unictype/category-C-tests: Likewise.
22802         * modules/unictype/category-Cc-tests: Likewise.
22803         * modules/unictype/category-Cf-tests: Likewise.
22804         * modules/unictype/category-Cn-tests: Likewise.
22805         * modules/unictype/category-Co-tests: Likewise.
22806         * modules/unictype/category-Cs-tests: Likewise.
22807         * modules/unictype/category-L-tests: Likewise.
22808         * modules/unictype/category-Ll-tests: Likewise.
22809         * modules/unictype/category-Lm-tests: Likewise.
22810         * modules/unictype/category-Lo-tests: Likewise.
22811         * modules/unictype/category-Lt-tests: Likewise.
22812         * modules/unictype/category-Lu-tests: Likewise.
22813         * modules/unictype/category-M-tests: Likewise.
22814         * modules/unictype/category-Mc-tests: Likewise.
22815         * modules/unictype/category-Me-tests: Likewise.
22816         * modules/unictype/category-Mn-tests: Likewise.
22817         * modules/unictype/category-N-tests: Likewise.
22818         * modules/unictype/category-Nd-tests: Likewise.
22819         * modules/unictype/category-Nl-tests: Likewise.
22820         * modules/unictype/category-No-tests: Likewise.
22821         * modules/unictype/category-P-tests: Likewise.
22822         * modules/unictype/category-Pc-tests: Likewise.
22823         * modules/unictype/category-Pd-tests: Likewise.
22824         * modules/unictype/category-Pe-tests: Likewise.
22825         * modules/unictype/category-Pf-tests: Likewise.
22826         * modules/unictype/category-Pi-tests: Likewise.
22827         * modules/unictype/category-Po-tests: Likewise.
22828         * modules/unictype/category-Ps-tests: Likewise.
22829         * modules/unictype/category-S-tests: Likewise.
22830         * modules/unictype/category-Sc-tests: Likewise.
22831         * modules/unictype/category-Sk-tests: Likewise.
22832         * modules/unictype/category-Sm-tests: Likewise.
22833         * modules/unictype/category-So-tests: Likewise.
22834         * modules/unictype/category-Z-tests: Likewise.
22835         * modules/unictype/category-Zl-tests: Likewise.
22836         * modules/unictype/category-Zp-tests: Likewise.
22837         * modules/unictype/category-Zs-tests: Likewise.
22838         * modules/unictype/category-and-not-tests: Likewise.
22839         * modules/unictype/category-and-tests: Likewise.
22840         * modules/unictype/category-byname-tests: Likewise.
22841         * modules/unictype/category-name-tests: Likewise.
22842         * modules/unictype/category-none-tests: Likewise.
22843         * modules/unictype/category-of-tests: Likewise.
22844         * modules/unictype/category-or-tests: Likewise.
22845         * modules/unictype/category-test-withtable-tests: Likewise.
22846         * modules/unictype/combining-class-tests: Likewise.
22847         * modules/unictype/ctype-alnum-tests: Likewise.
22848         * modules/unictype/ctype-alpha-tests: Likewise.
22849         * modules/unictype/ctype-blank-tests: Likewise.
22850         * modules/unictype/ctype-cntrl-tests: Likewise.
22851         * modules/unictype/ctype-digit-tests: Likewise.
22852         * modules/unictype/ctype-graph-tests: Likewise.
22853         * modules/unictype/ctype-lower-tests: Likewise.
22854         * modules/unictype/ctype-print-tests: Likewise.
22855         * modules/unictype/ctype-punct-tests: Likewise.
22856         * modules/unictype/ctype-space-tests: Likewise.
22857         * modules/unictype/ctype-upper-tests: Likewise.
22858         * modules/unictype/ctype-xdigit-tests: Likewise.
22859         * modules/unictype/decimal-digit-tests: Likewise.
22860         * modules/unictype/digit-tests: Likewise.
22861         * modules/unictype/mirror-tests: Likewise.
22862         * modules/unictype/numeric-tests: Likewise.
22863         * modules/unictype/property-alphabetic-tests: Likewise.
22864         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22865         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22866         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22867         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22868         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22869         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22870         * modules/unictype/property-bidi-control-tests: Likewise.
22871         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22872         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22873         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22874         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22875         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22876         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22877         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22878         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22879         * modules/unictype/property-bidi-pdf-tests: Likewise.
22880         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22881         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22882         * modules/unictype/property-byname-tests: Likewise.
22883         * modules/unictype/property-combining-tests: Likewise.
22884         * modules/unictype/property-composite-tests: Likewise.
22885         * modules/unictype/property-currency-symbol-tests: Likewise.
22886         * modules/unictype/property-dash-tests: Likewise.
22887         * modules/unictype/property-decimal-digit-tests: Likewise.
22888         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22889         * modules/unictype/property-deprecated-tests: Likewise.
22890         * modules/unictype/property-diacritic-tests: Likewise.
22891         * modules/unictype/property-extender-tests: Likewise.
22892         * modules/unictype/property-format-control-tests: Likewise.
22893         * modules/unictype/property-grapheme-base-tests: Likewise.
22894         * modules/unictype/property-grapheme-extend-tests: Likewise.
22895         * modules/unictype/property-grapheme-link-tests: Likewise.
22896         * modules/unictype/property-hex-digit-tests: Likewise.
22897         * modules/unictype/property-hyphen-tests: Likewise.
22898         * modules/unictype/property-id-continue-tests: Likewise.
22899         * modules/unictype/property-id-start-tests: Likewise.
22900         * modules/unictype/property-ideographic-tests: Likewise.
22901         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22902         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22903         * modules/unictype/property-ignorable-control-tests: Likewise.
22904         * modules/unictype/property-iso-control-tests: Likewise.
22905         * modules/unictype/property-join-control-tests: Likewise.
22906         * modules/unictype/property-left-of-pair-tests: Likewise.
22907         * modules/unictype/property-line-separator-tests: Likewise.
22908         * modules/unictype/property-logical-order-exception-tests: Likewise.
22909         * modules/unictype/property-lowercase-tests: Likewise.
22910         * modules/unictype/property-math-tests: Likewise.
22911         * modules/unictype/property-non-break-tests: Likewise.
22912         * modules/unictype/property-not-a-character-tests: Likewise.
22913         * modules/unictype/property-numeric-tests: Likewise.
22914         * modules/unictype/property-other-alphabetic-tests: Likewise.
22915         * modules/unictype/property-other-default-ignorable-code-point-tests:
22916         Likewise.
22917         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22918         * modules/unictype/property-other-id-continue-tests: Likewise.
22919         * modules/unictype/property-other-id-start-tests: Likewise.
22920         * modules/unictype/property-other-lowercase-tests: Likewise.
22921         * modules/unictype/property-other-math-tests: Likewise.
22922         * modules/unictype/property-other-uppercase-tests: Likewise.
22923         * modules/unictype/property-paired-punctuation-tests: Likewise.
22924         * modules/unictype/property-paragraph-separator-tests: Likewise.
22925         * modules/unictype/property-pattern-syntax-tests: Likewise.
22926         * modules/unictype/property-pattern-white-space-tests: Likewise.
22927         * modules/unictype/property-private-use-tests: Likewise.
22928         * modules/unictype/property-punctuation-tests: Likewise.
22929         * modules/unictype/property-quotation-mark-tests: Likewise.
22930         * modules/unictype/property-radical-tests: Likewise.
22931         * modules/unictype/property-sentence-terminal-tests: Likewise.
22932         * modules/unictype/property-soft-dotted-tests: Likewise.
22933         * modules/unictype/property-space-tests: Likewise.
22934         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22935         * modules/unictype/property-test-tests: Likewise.
22936         * modules/unictype/property-titlecase-tests: Likewise.
22937         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22938         * modules/unictype/property-unified-ideograph-tests: Likewise.
22939         * modules/unictype/property-uppercase-tests: Likewise.
22940         * modules/unictype/property-variation-selector-tests: Likewise.
22941         * modules/unictype/property-white-space-tests: Likewise.
22942         * modules/unictype/property-xid-continue-tests: Likewise.
22943         * modules/unictype/property-xid-start-tests: Likewise.
22944         * modules/unictype/property-zero-width-tests: Likewise.
22945         * modules/unictype/scripts-tests: Likewise.
22946         * modules/unictype/syntax-c-ident-tests: Likewise.
22947         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22948         * modules/unictype/syntax-java-ident-tests: Likewise.
22949         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22950         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22951         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22952         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22953         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22954         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22955         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22956         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22957         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22958         * modules/uniname/uniname-tests: Likewise.
22959         * modules/uninorm/canonical-decomposition-tests: Likewise.
22960         * modules/uninorm/compat-decomposition-tests: Likewise.
22961         * modules/uninorm/composition-tests: Likewise.
22962         * modules/uninorm/decomposing-form-tests: Likewise.
22963         * modules/uninorm/decomposition-tests: Likewise.
22964         * modules/uninorm/filter-tests: Likewise.
22965         * modules/uninorm/nfc-tests: Likewise.
22966         * modules/uninorm/nfd-tests: Likewise.
22967         * modules/uninorm/nfkc-tests: Likewise.
22968         * modules/uninorm/nfkd-tests: Likewise.
22969         * modules/uninorm/u8-normcmp-tests: Likewise.
22970         * modules/uninorm/u8-normcoll-tests: Likewise.
22971         * modules/uninorm/u16-normcmp-tests: Likewise.
22972         * modules/uninorm/u16-normcoll-tests: Likewise.
22973         * modules/uninorm/u32-normcmp-tests: Likewise.
22974         * modules/uninorm/u32-normcoll-tests: Likewise.
22975         * modules/unistdio/u8-asnprintf-tests: Likewise.
22976         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22977         * modules/unistdio/u8-vasprintf-tests: Likewise.
22978         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22979         * modules/unistdio/u8-vsprintf-tests: Likewise.
22980         * modules/unistdio/u16-asnprintf-tests: Likewise.
22981         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22982         * modules/unistdio/u16-vasprintf-tests: Likewise.
22983         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22984         * modules/unistdio/u16-vsprintf-tests: Likewise.
22985         * modules/unistdio/u32-asnprintf-tests: Likewise.
22986         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22987         * modules/unistdio/u32-vasprintf-tests: Likewise.
22988         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22989         * modules/unistdio/u32-vsprintf-tests: Likewise.
22990         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22991         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22992         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22993         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22994         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22995         * modules/unistr/u8-check-tests: Likewise.
22996         * modules/unistr/u8-chr-tests: Likewise.
22997         * modules/unistr/u8-cmp-tests: Likewise.
22998         * modules/unistr/u8-cmp2-tests: Likewise.
22999         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23000         * modules/unistr/u8-cpy-tests: Likewise.
23001         * modules/unistr/u8-mblen-tests: Likewise.
23002         * modules/unistr/u8-mbsnlen-tests: Likewise.
23003         * modules/unistr/u8-mbtouc-tests: Likewise.
23004         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23005         * modules/unistr/u8-mbtoucr-tests: Likewise.
23006         * modules/unistr/u8-move-tests: Likewise.
23007         * modules/unistr/u8-next-tests: Likewise.
23008         * modules/unistr/u8-prev-tests: Likewise.
23009         * modules/unistr/u8-set-tests: Likewise.
23010         * modules/unistr/u8-stpcpy-tests: Likewise.
23011         * modules/unistr/u8-stpncpy-tests: Likewise.
23012         * modules/unistr/u8-strcat-tests: Likewise.
23013         * modules/unistr/u8-strcmp-tests: Likewise.
23014         * modules/unistr/u8-strcoll-tests: Likewise.
23015         * modules/unistr/u8-strcpy-tests: Likewise.
23016         * modules/unistr/u8-strdup-tests: Likewise.
23017         * modules/unistr/u8-strlen-tests: Likewise.
23018         * modules/unistr/u8-strmblen-tests: Likewise.
23019         * modules/unistr/u8-strmbtouc-tests: Likewise.
23020         * modules/unistr/u8-strncat-tests: Likewise.
23021         * modules/unistr/u8-strncmp-tests: Likewise.
23022         * modules/unistr/u8-strncpy-tests: Likewise.
23023         * modules/unistr/u8-strnlen-tests: Likewise.
23024         * modules/unistr/u8-to-u16-tests: Likewise.
23025         * modules/unistr/u8-to-u32-tests: Likewise.
23026         * modules/unistr/u8-uctomb-tests: Likewise.
23027         * modules/unistr/u16-check-tests: Likewise.
23028         * modules/unistr/u16-chr-tests: Likewise.
23029         * modules/unistr/u16-cmp-tests: Likewise.
23030         * modules/unistr/u16-cmp2-tests: Likewise.
23031         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23032         * modules/unistr/u16-cpy-tests: Likewise.
23033         * modules/unistr/u16-mblen-tests: Likewise.
23034         * modules/unistr/u16-mbsnlen-tests: Likewise.
23035         * modules/unistr/u16-mbtouc-tests: Likewise.
23036         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23037         * modules/unistr/u16-mbtoucr-tests: Likewise.
23038         * modules/unistr/u16-move-tests: Likewise.
23039         * modules/unistr/u16-next-tests: Likewise.
23040         * modules/unistr/u16-prev-tests: Likewise.
23041         * modules/unistr/u16-set-tests: Likewise.
23042         * modules/unistr/u16-stpcpy-tests: Likewise.
23043         * modules/unistr/u16-stpncpy-tests: Likewise.
23044         * modules/unistr/u16-strcat-tests: Likewise.
23045         * modules/unistr/u16-strcmp-tests: Likewise.
23046         * modules/unistr/u16-strcoll-tests: Likewise.
23047         * modules/unistr/u16-strcpy-tests: Likewise.
23048         * modules/unistr/u16-strdup-tests: Likewise.
23049         * modules/unistr/u16-strlen-tests: Likewise.
23050         * modules/unistr/u16-strmblen-tests: Likewise.
23051         * modules/unistr/u16-strmbtouc-tests: Likewise.
23052         * modules/unistr/u16-strncat-tests: Likewise.
23053         * modules/unistr/u16-strncmp-tests: Likewise.
23054         * modules/unistr/u16-strncpy-tests: Likewise.
23055         * modules/unistr/u16-strnlen-tests: Likewise.
23056         * modules/unistr/u16-to-u32-tests: Likewise.
23057         * modules/unistr/u16-to-u8-tests: Likewise.
23058         * modules/unistr/u16-uctomb-tests: Likewise.
23059         * modules/unistr/u32-check-tests: Likewise.
23060         * modules/unistr/u32-chr-tests: Likewise.
23061         * modules/unistr/u32-cmp-tests: Likewise.
23062         * modules/unistr/u32-cmp2-tests: Likewise.
23063         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23064         * modules/unistr/u32-cpy-tests: Likewise.
23065         * modules/unistr/u32-mblen-tests: Likewise.
23066         * modules/unistr/u32-mbsnlen-tests: Likewise.
23067         * modules/unistr/u32-mbtouc-tests: Likewise.
23068         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23069         * modules/unistr/u32-mbtoucr-tests: Likewise.
23070         * modules/unistr/u32-move-tests: Likewise.
23071         * modules/unistr/u32-next-tests: Likewise.
23072         * modules/unistr/u32-prev-tests: Likewise.
23073         * modules/unistr/u32-set-tests: Likewise.
23074         * modules/unistr/u32-stpcpy-tests: Likewise.
23075         * modules/unistr/u32-stpncpy-tests: Likewise.
23076         * modules/unistr/u32-strcat-tests: Likewise.
23077         * modules/unistr/u32-strcmp-tests: Likewise.
23078         * modules/unistr/u32-strcoll-tests: Likewise.
23079         * modules/unistr/u32-strcpy-tests: Likewise.
23080         * modules/unistr/u32-strdup-tests: Likewise.
23081         * modules/unistr/u32-strlen-tests: Likewise.
23082         * modules/unistr/u32-strmblen-tests: Likewise.
23083         * modules/unistr/u32-strmbtouc-tests: Likewise.
23084         * modules/unistr/u32-strncat-tests: Likewise.
23085         * modules/unistr/u32-strncmp-tests: Likewise.
23086         * modules/unistr/u32-strncpy-tests: Likewise.
23087         * modules/unistr/u32-strnlen-tests: Likewise.
23088         * modules/unistr/u32-to-u16-tests: Likewise.
23089         * modules/unistr/u32-to-u8-tests: Likewise.
23090         * modules/unistr/u32-uctomb-tests: Likewise.
23091         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23092         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23093         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23094         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23095         * modules/uniwidth/u8-strwidth-tests: Likewise.
23096         * modules/uniwidth/u8-width-tests: Likewise.
23097         * modules/uniwidth/u16-strwidth-tests: Likewise.
23098         * modules/uniwidth/u16-width-tests: Likewise.
23099         * modules/uniwidth/u32-strwidth-tests: Likewise.
23100         * modules/uniwidth/u32-width-tests: Likewise.
23101         * modules/uniwidth/width-tests: Likewise.
23102
23103 2010-05-18  Richard Jones  <rjones@redhat.com>
23104
23105         doc: users.txt: list hivex
23106         * users.txt: Add hivex.
23107
23108 2010-05-18  Richard Jones  <rjones@redhat.com>
23109
23110         doc: users.txt: list febootstrap
23111         * users.txt: Add febootstrap.
23112
23113 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23114
23115         bootstrap: fix an error when gnulib is not used as a git submodule
23116         * build-aux/bootstrap (gnulib_path): If its length is zero then
23117         assign "gnulib" to it.
23118         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23119
23120 2010-05-16  Bruno Haible  <bruno@clisp.org>
23121
23122         Avoid autoconf warnings about AM_ICONV.
23123         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23124         2.64.
23125
23126 2010-05-16  Bruno Haible  <bruno@clisp.org>
23127
23128         absolute-header: Make the macro usable in more situations.
23129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23130         from gl_ABSOLUTE_HEADER.
23131         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23132
23133 2010-05-16  James Youngman  <jay@gnu.org>
23134
23135         doc: update users.txt
23136         * users.txt: Add CSSC.
23137
23138 2010-05-16  Jim Meyering  <meyering@redhat.com>
23139
23140         init.sh: fix an error in the previous change; add more comments
23141         * tests/init.sh: Compare exit code in loop against 9, not 2.
23142         Patch by Bruno Haible.
23143         Make the two tests more similar by adding an empty "then" clause.
23144         Add comments.
23145
23146         init.sh: avoid unnecessary shell re-exec
23147         * tests/init.sh: Improve the re-exec-required check to first test the
23148         current shell.  If it passes the test, do not search for a shell that
23149         does pass, and do not re-exec.  This test is particularly contorted to
23150         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23151         of $(...) evokes a syntax error and causes immediate shell exit with
23152         status 2.  Bruno Haible reported that the re-exec made it impossible
23153         to single-step through any init.sh-using script.
23154
23155 2010-05-16  Bruno Haible  <bruno@clisp.org>
23156
23157         Fix collision between gnulib's and libintl's printf replacements.
23158         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23159         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23160         (printf): When using GNU C, map the __printf__ function to rpl_printf
23161         via __asm__. When not using GNU C, define rpl_printf instead of
23162         __printf__.
23163         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23164         commit.
23165         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23166         commit.
23167         * m4/asm-underscore.m4: New file.
23168         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23169         * modules/stdio (Files): Add m4/asm-underscore.m4.
23170         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23171         Reported by Ben Pfaff.
23172
23173 2010-05-16  Bruno Haible  <bruno@clisp.org>
23174
23175         verify: Avoid skipping the test on openSUSE 11.0.
23176         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23177
23178 2010-05-13  Bruno Haible  <bruno@clisp.org>
23179
23180         Avoid useless warnings from G++.
23181         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23182         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23184
23185 2010-05-11  Jim Meyering  <meyering@redhat.com>
23186
23187         maint.mk: tweak preceding change
23188         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23189         regexps tighter by anchoring at EOL, and make the new group "shy"
23190         for slightly decreased overhead.
23191
23192 2010-05-11  Eric Blake  <eblake@redhat.com>
23193
23194         maint.mk: gnulib doesn't guarantee NSIG
23195         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23196
23197 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23198
23199         test-pwrite.c: Remove unused variable declaration.
23200         * tests/test-pwrite.c (main): Remove read_buf declaration.
23201
23202         Remove useless test-pwrite.sh file.
23203         * tests/test-pwrite.sh: Delete file.
23204         * modules/pwrite-tests: Remove references.
23205         Reported by Bruno Haible.
23206
23207 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23208
23209         init.sh: fix a typo
23210         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23211
23212 2010-05-10  Jim Meyering  <meyering@redhat.com>
23213
23214         maint.mk: avoid using a temporary file in the always-defined-macros check
23215         * top/maint.mk (.re-defmac): Remove rule.
23216         (gl_trap_): Remove definition.
23217         (sc_prohibit_always-defined_macros): Rewrite not to create and
23218         depend on a temporary file.  Instead, depend on GNU grep's ability
23219         to read a list of regular expressions from stdin when given "-f -".
23220
23221 2010-05-09  Bruno Haible  <bruno@clisp.org>
23222
23223         Update to GNU gettext 0.18, part 1.
23224         * m4/gettext.m4: Update to GNU gettext 0.18.
23225         * m4/intl.m4: Likewise.
23226         * m4/po.m4: Likewise.
23227         * modules/gettext (Files): Add m4/fcntl-o.m4.
23228         (configure.ac): Require gettext infrastructure from version 0.18.
23229
23230 2010-05-09  Jim Meyering  <meyering@redhat.com>
23231
23232         init.sh: enable MALLOC_PERTURB_
23233         * tests/init.sh: Enable glibc's malloc-perturbing option.
23234
23235         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23236         With my recent change in init.sh from the two-line form:
23237             -#   : ${srcdir=.}
23238             -#   . "$srcdir/init.sh"; path_prepend_ .
23239             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23240         I noticed that using the one-line form would cause this test
23241         to fail with a false-positive, or to stop working altogether,
23242         depending on whether help-version changed or all the tests did.
23243         * top/maint.mk (_hv_regex): Remove this definition.
23244         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23245         (_hv_regex_strong): Use a stronger regex to check for conformance.
23246         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23247         Give a separate diagnostic for lack of conforming use.
23248
23249         maint.mk: prohibit definition of symbols defined by gnulib
23250         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23251         definition of symbols defined by gnulib.
23252
23253 2010-05-09  Bruno Haible  <bruno@clisp.org>
23254
23255         acl: Avoid test failure on Cygwin-hosted mingw.
23256         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23257
23258 2010-05-09  Bruno Haible  <bruno@clisp.org>
23259
23260         error: Use system's fcntl function.
23261         * lib/error.c (fcntl): Undefine.
23262
23263 2010-05-09  Jim Meyering  <meyering@redhat.com>
23264
23265         verify: adjust formatting to be more consistent
23266         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23267         argument-list '('s, and after one comma.
23268
23269 2010-05-09  Bruno Haible  <bruno@clisp.org>
23270
23271         error: More reliable output on mingw.
23272         * lib/error.c: Include <windows.h>.
23273         (is_open): New function.
23274         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23275         defined.
23276
23277 2010-05-09  Bruno Haible  <bruno@clisp.org>
23278
23279         vasnprintf: Fix syntax errors in libintl build on mingw.
23280         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23281         pad_ourselves and prec_ourselves after use.
23282
23283 2010-05-08  Bruno Haible  <bruno@clisp.org>
23284
23285         * lib/config.charset: Update comments for Cygwin 1.7.
23286         * lib/localcharset.c: Likewise.
23287
23288 2010-05-07  Jim Meyering  <meyering@redhat.com>
23289
23290         init.sh: improve comments
23291         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23292         . "${srcdir=.}/init.sh"; path_prepend_ .
23293         Add a note about path_prepend_ and the alternative of using
23294         TESTS_ENVIRONMENT.
23295
23296 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23297
23298         exclude: Unescape hashed patterns in wildcard mode.
23299         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23300         to the hash list.
23301         * tests/test-exclude8.sh: New test case.
23302         * modules/exclude-tests: Add new test.
23303
23304 2010-05-05  Eric Blake  <eblake@redhat.com>
23305
23306         verify: automate tests
23307         * modules/verify-tests: New module.
23308         * tests/test-verify.sh: New file.
23309         * tests/test-verify.c: Guard each negative test with a unique id.
23310         Also avoid warning about unused left hand of comma expressions.
23311
23312 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23313
23314         Further improvements to verify.h, suggested by Eric Blake.
23315         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23316         the GL_* versions, to avoid collision with OpenGL.
23317         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23318         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23319         than testing merely whether it's defined.
23320
23321         Modify verify.h to pacify gcc -Wredundant_decls.
23322         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23323         These use the prefix "GL_" since they're likely to be useful elsewhere.
23324         We may need to break them out into a different .h file.
23325         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23326         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23327         of verify_function__.
23328
23329 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23330
23331         Tests for module pwrite.
23332         * modules/pwrite-tests: New file.
23333         * tests/test-pwrite.sh: New file.
23334         * tests/test-pwrite.c: New file.
23335
23336         New module pwrite.
23337         * lib/unistd.in.h (pwrite): New declaration.
23338         * lib/pwrite.c: New file, from glibc with modifications.
23339         * m4/pwrite.m4: New file.
23340         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23341         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23342         REPLACE_PWRITE.
23343         * modules/pwrite: New file.
23344         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23345         REPLACE_PWRITE.
23346         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23347         * doc/posix-functions/pwrite.texi: Mention the new module.
23348
23349 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23350
23351         pread: Update documentation.
23352         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23353
23354 2010-05-04  Eric Blake  <eblake@redhat.com>
23355
23356         docs: update cygwin progress
23357         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23358         this bug.
23359         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23360         Added in cygwin 1.7.2.
23361         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23362         Likewise.
23363         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23364         Likewise.
23365         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23366         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23367         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23368         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23369         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23370         Mention nproc module.
23371         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23372         bug in cygwin 1.7.5 addition.
23373         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23374         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23375         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23376         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23377         1.7.5.
23378         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23379         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23380         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23381         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23382         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23383         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23384         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23385         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23386         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23387         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23388         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23389         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23390         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23391         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23392         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23393         Likewise.
23394         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23395         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23396         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23397         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23398         Likewise.
23399         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23400         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23401         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23402         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23403         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23404         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23405         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23406         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23407         Likewise.
23408         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23409         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23410         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23411         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23412         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23413         Likewise.
23414         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23415         Likewise.
23416         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23417         Likewise.
23418         * doc/glibc-functions/xdrrec_endofrecord.texi
23419         (xdrrec_endofrecord): Likewise.
23420         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23421         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23422         Likewise.
23423         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23424         Likewise.
23425
23426 2010-05-04  Jim Meyering  <meyering@redhat.com>
23427
23428         gendocs.sh: make its "-s FILE" option more useful
23429         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23430         $PACKAGE to reflect the probably-different basename of "FILE".
23431
23432 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23433
23434         bootstrap: don't ignore download_po_files failure
23435         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23436         failure.
23437
23438 2010-05-03  Jim Meyering  <meyering@redhat.com>
23439
23440         maint.mk: allow to pass options to gendocs.sh
23441         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23442         (gendocs_options_): New overridable variable.
23443
23444         gnu-web-doc-update: don't ignore configure or build failure
23445         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23446
23447         announce-gen: backslash-escape '@'s in --help output
23448         * build-aux/announce-gen: Fix syntax errors.
23449
23450         maint.mk, announce-gen: allow project-specific announcement mail headers
23451         * top/maint.mk (translation_project_): Define default.
23452         (announcement_Cc_, announcement_mail_headers_): Likewise.
23453         (announcement): Invoke announce-gen with new --mail-headers option.
23454         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23455
23456         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23457         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23458         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23459         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23460         line in the "err2" output file when running "make check" in verbose
23461         mode (i.e., with set -x enabled).
23462
23463 2010-05-03  Bruno Haible  <bruno@clisp.org>
23464
23465         wctob: Fix for weird platforms.
23466         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23467         argument value.
23468
23469 2010-05-03  Jim Meyering  <meyering@redhat.com>
23470
23471         maint.mk: prohibit unwarranted use of <strings.h>
23472         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23473         strings.h in a file that does not also use strcasecmp, strncasecmp,
23474         ffs or ffsll.
23475
23476         maint.mk: remove obsolete comments
23477         * top/maint.mk: Remove stale, commented-out rules.
23478
23479 2010-05-02  Bruno Haible  <bruno@clisp.org>
23480
23481         wcwidth: Declare also when it's aliased.
23482         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23483         macro.
23484
23485 2010-05-02  Bruno Haible  <bruno@clisp.org>
23486
23487         Fix regression from 2010-04-25.
23488         * gnulib-tool (func_modules_transitive_closure): Check the status of
23489         all modules, not only of the tests that are of the form foo-tests where
23490         foo is a module.
23491
23492 2010-05-02  Bruno Haible  <bruno@clisp.org>
23493
23494         wctob: Work around nasty Cygwin 1.7.2 bug.
23495         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23496         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23497
23498 2010-05-01  Bruno Haible  <bruno@clisp.org>
23499
23500         fpurge: Sharper test.
23501         * tests/test-fpurge.c (main): Add one more ftell check.
23502         * modules/fpurge-tests (Depends-on): Add ftell.
23503         Suggested by Eric Blake.
23504
23505 2010-05-01  Bruno Haible  <bruno@clisp.org>
23506
23507         ftello: Another test.
23508         * tests/test-ftello3.c: New file.
23509         * modules/ftello-tests (Files): Add it.
23510         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23511         MOSTLYCLEANFILES.
23512
23513         ftell: Another test.
23514         * tests/test-ftell3.c: New file.
23515         * modules/ftell-tests (Files): Add it.
23516         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23517         MOSTLYCLEANFILES.
23518
23519 2010-05-01  Bruno Haible  <bruno@clisp.org>
23520
23521         ftell, ftello: Work around Solaris bug.
23522         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23523         * lib/ftello.c: Include stdio-impl.h.
23524         (ftello): On Solaris, when _IOWRT is set, compute the result without
23525         looking at _IOREAD.
23526         * modules/ftello (Files): Add lib/stdio-impl.h.
23527         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23528         * doc/posix-functions/ftello.texi: Likewise.
23529         Reported by Eric Blake.
23530
23531 2010-05-01  Bruno Haible  <bruno@clisp.org>
23532
23533         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23534         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23535         the _IOWRT flag is also set.
23536
23537 2010-05-01  Bruno Haible  <bruno@clisp.org>
23538
23539         Fix doc about a HP-UX stdio bug.
23540         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23541         * doc/posix-functions/ftello.texi: Likewise.
23542
23543 2010-05-01  Bruno Haible  <bruno@clisp.org>
23544
23545         lseek test: Fix failure on Solaris.
23546         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23547         output.
23548
23549 2010-04-30  Jim Meyering  <meyering@redhat.com>
23550
23551         bootstrap: don't ignore failure to generate po*/Makevars
23552         * build-aux/bootstrap (with_gettext): Don't ignore failure
23553         to create po/Makevars or runtime-po/Makevars.
23554
23555 2010-04-29  Eric Blake  <eblake@redhat.com>
23556
23557         headers: relax license to LGPLv2+
23558         * modules/fcntl-h (License): Relax license.
23559         * modules/getopt-posix (License): Likewise.
23560         * modules/locale (License): Likewise.
23561         * modules/math (License): Likewise.
23562         * modules/pty (License): Likewise.
23563         * modules/sched (License): Likewise.
23564         * modules/search (License): Likewise.
23565         * modules/spawn (License): Likewise.
23566         * modules/stdarg (License): Likewise.
23567         * modules/sysexits (License): Likewise.
23568
23569 2010-04-29  Jim Meyering  <meyering@redhat.com>
23570
23571         inttypes: relax license to LGPLv2+
23572         * modules/inttypes (License): Relax license.
23573
23574 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23575
23576         * top/maint.mk (indent): Run twice to produce idempotent results.
23577
23578 2010-04-28  Bruno Haible  <bruno@clisp.org>
23579
23580         getdate: Generate getdate.c in the source directory.
23581         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23582         MOSTLYCLEANFILES.
23583         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23584
23585 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23586
23587         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23588         is not declared as a const *; avoid warnings in that case.
23589
23590 2010-04-28  Eric Blake  <eblake@redhat.com>
23591
23592         canonicalize-lgpl: avoid compiler warning
23593         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23594         declaration' / 'extraneous semicolon' warning with some compilers.
23595         Reported by Andreas Gruenbacher.
23596
23597 2010-04-28  Jim Meyering  <meyering@redhat.com>
23598
23599         init.sh: ensure a more reliable exit status when exiting via trap
23600         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23601         Inspired by patches from Dmitry V. Levin.
23602         Also trap on signal 3 (SIGQUIT).
23603
23604 2010-04-27  Bruno Haible  <bruno@clisp.org>
23605
23606         Update doc about utimes().
23607         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23608         'utimens' module.
23609         Reported by Andreas Gruenbacher <agruen@suse.de>.
23610
23611 2010-04-27  Eric Blake  <eblake@redhat.com>
23612
23613         full-read, full-write: relax license
23614         * modules/full-read (License): Drop to LGPLv2+.
23615         * modules/full-write (License): Likewise.
23616         * modules/safe-read (License): Likewise.
23617         * modules/safe-write (License): Likewise.
23618
23619         pthread: mention library for linking
23620         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23621
23622 2010-04-27  Jim Meyering  <meyering@redhat.com>
23623
23624         maint.mk: fix a bug introduced in last change
23625         * top/maint.mk (gl_assured_headers_): Now that all names are on
23626         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23627         is not anchored to end of word, it should be adequate.
23628
23629         maint.mk: avoid side-effect in latest syntax-check
23630         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23631         to run commands via $(shell...), and hence to incur cost only when
23632         the new rule is actually run.
23633
23634         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23635         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23636         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23637         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23638         (gl_assured_headers_, az_, AZ_): Define.
23639         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23640
23641 2010-04-26  Jim Meyering  <jim@meyering.net>
23642             Bruno Haible  <bruno@clisp.org>
23643
23644         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23645         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23646         Prompted by an exchange with Gilles Espinasse.
23647
23648 2010-04-26  Jim Meyering  <meyering@redhat.com>
23649
23650         git-version-gen: aesthetic tweak
23651         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23652         so that the command remains on a single line.
23653
23654 2010-04-26  Eric Blake  <eblake@redhat.com>
23655
23656         git-version-gen: allow use on EBCDIC hosts
23657         * build-aux/git-version-gen (dirty): Use literal rather than tying
23658         ourselves to ascii.
23659         Reported by Steve Goetze.
23660
23661 2010-04-25  Bruno Haible  <bruno@clisp.org>
23662
23663         netdb: Add support for GNULIB_POSIXCHECK.
23664         * lib/netdb.in.h: Include warn-on-use.h.
23665         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23666         functions are used when GNULIB_POSIXCHECK is defined and the
23667         getaddrinfo module is not in use.
23668         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23669         freeaddrinfo, gai_strerror, getnameinfo are declared.
23670         * modules/netdb (Depends-on): Add warn-on-use.
23671         (Makefile.am): Include warn-on-use.h in netdb.h.
23672
23673 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23674
23675         build: avoid "make check" failure without .git/ directory
23676         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23677         there is no .git/ directory.
23678
23679 2010-04-25  Bruno Haible  <bruno@clisp.org>
23680
23681         ptsname: Fix misuse of ttyname_r.
23682         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23683         of errno.
23684
23685 2010-04-25  Bruno Haible  <bruno@clisp.org>
23686
23687         ttyname_r: Make it work on Solaris 10.
23688         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23689         if the system function has the POSIX declaration. Test whether the
23690         function fails if the buffer is less than 128 bytes large.
23691         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23692         system's ttyname_r function. Provide a reasonably large buffer.
23693         * modules/ttyname_r (Depends-on): Add extensions.
23694         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23695
23696 2010-04-25  Bruno Haible  <bruno@clisp.org>
23697
23698         Use the 'extensions' module for some more functions on Solaris.
23699         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23700         module.
23701         * doc/posix-functions/ctime_r.texi: Likewise.
23702         * doc/posix-functions/getgrgid_r.texi: Likewise.
23703         * doc/posix-functions/getgrnam_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         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23709         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23710
23711 2010-04-25  Bruno Haible  <bruno@clisp.org>
23712
23713         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23715         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23716         * lib/ttyname_r.c: Include <limits.h>.
23717         (ttyname_r): Define using the system's ttyname_r function, if it exists
23718         and not on Solaris.
23719         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23720         set.
23721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23722         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23723         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23724         Reported by Simon Josefsson.
23725
23726 2010-04-25  Bruno Haible  <bruno@clisp.org>
23727
23728         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23729         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23730         * doc/posix-functions/ctime_r.texi: Likewise.
23731         * doc/posix-functions/getgrgid_r.texi: Likewise.
23732         * doc/posix-functions/getgrnam_r.texi: Likewise.
23733         * doc/posix-functions/getlogin_r.texi: Likewise.
23734         * doc/posix-functions/getpwnam_r.texi: Likewise.
23735         * doc/posix-functions/getpwuid_r.texi: Likewise.
23736         * doc/posix-functions/readdir_r.texi: Likewise.
23737         * doc/posix-functions/sigwait.texi: Likewise.
23738         * doc/posix-functions/ttyname_r.texi: Likewise.
23739         Reported by Simon Josefsson.
23740
23741 2010-04-25  Bruno Haible  <bruno@clisp.org>
23742
23743         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23744         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23745         also to --create-testdir.
23746         (func_acceptable): Don't consider the status of *-tests modules here.
23747         (func_modules_transitive_closure): Consider it here, before including a
23748         test module.
23749         (func_import, func_create_testdir): Set inc_all_direct_tests,
23750         inc_all_indirect_tests.
23751         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23752         --create-testdir and --create-megatestdir.
23753
23754 2010-04-25  Bruno Haible  <bruno@clisp.org>
23755
23756         gnulib-tool: Add --without-*-tests options.
23757         * gnulib-tool (func_usage): Document the --without-*-tests options.
23758         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23759         excl_unportable_tests): New variables.
23760         Fail if they are specified with --import or --update.
23761         (func_acceptable): Respect the excl_*_tests variables.
23762         (func_import): Set the excl_*_tests variables to empty.
23763
23764 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23765             Bruno Haible  <bruno@clisp.org>
23766
23767         Work around a MacOS X 10.4 bug with openpty.
23768         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23769         * tests/test-openpty.c (main): Close the master side explicitly.
23770
23771 2010-04-25  Bruno Haible  <bruno@clisp.org>
23772
23773         strnlen: Fix a C++ test error on MacOS X and Solaris.
23774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23775         the function is not declared.
23776         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23777         Simon Josefsson.
23778
23779 2010-04-24  Bruno Haible  <bruno@clisp.org>
23780
23781         Avoid a gcc warning.
23782         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23783         of correct type for %08lx directive.
23784         Reported by Eric Blake.
23785
23786 2010-04-24  Bruno Haible  <bruno@clisp.org>
23787
23788         vasnprintf: Correct errno value in case of out-of-memory.
23789         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23790         or sprintf. Use the errno value from SNPRINTF or sprintf.
23791         Reported by Ian Beckwith <ianb@erislabs.net>.
23792
23793 2010-04-24  Bruno Haible  <bruno@clisp.org>
23794
23795         ansi-c++-opt: Find correct compiler when cross-compiling.
23796         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23797         AC_CHECK_PROGS.
23798         Reported by Simon Josefsson.
23799
23800 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23801
23802         vc-list-files: Add support for subversion
23803         * build-aux/vc-list-files: Use "svn list" to generate the list of
23804         files controlled by subversion.
23805
23806 2010-04-23  Jim Meyering  <meyering@redhat.com>
23807
23808         vc-list-files tests: convert to use init.sh
23809         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23810         path_prepend_.
23811         Use Exit, not exit.
23812         Use skip_ rather than open coding it.
23813         Remove trap set-up and compare definitions.
23814         * tests/test-vc-list-files-git.sh: Likewise.
23815         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23816
23817 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23818
23819         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23820         backup files.
23821
23822 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23823
23824         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23825
23826 2010-04-20  Eric Blake  <eblake@redhat.com>
23827
23828         tests: be robust to ignored SIGPIPE
23829         * tests/test-select-in.sh: Consume all output.
23830         * tests/test-lseek.sh: Check correct exit status, while avoiding
23831         EPIPE.
23832
23833 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23834             Bruno Haible  <bruno@clisp.org>
23835
23836         visibility: Don't use -fvisibility if it leads to a warning.
23837         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23838         yes, don't pretend that visibility works if it leads to a warning.
23839         Reported by Mike Gran <spk121@yahoo.com>.
23840
23841 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23842
23843         * build-aux/bootstrap: Use "git -h" for testing for supported options
23844         instead of "git --help".  The short-form option only shows a summary,
23845         and doesn't layout the full man page.  Grep for the full option name
23846         in the summary, too.
23847
23848 2010-04-19  Bruno Haible  <bruno@clisp.org>
23849
23850         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23851         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23852         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23853         mention of RELOCATABLE_STRIP.
23854         Reported by Sylvain Beucler <beuc@beuc.net>.
23855
23856 2010-04-19  Bruno Haible  <bruno@clisp.org>
23857
23858         * lib/diffseq.h: Fix typo in comment.
23859         Reported by Eric Blake.
23860
23861 2010-04-19  Bruno Haible  <bruno@clisp.org>
23862
23863         ioctl: Move autoconf macro to a .m4 file.
23864         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23865         * modules/ioctl (Files): Add it.
23866         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23867         Reported by Ian Beckwith <ianb@erislabs.net>.
23868
23869 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23870             Bruno Haible  <bruno@clisp.org>
23871
23872         diffseq: Accommodate use-case with abstract arrays.
23873         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23874         is not defined.
23875         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23876         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23877
23878 2010-04-18  Bruno Haible  <bruno@clisp.org>
23879
23880         * doc/posix-headers/stdbool.texi: More precise wording.
23881
23882 2010-04-17  Jim Meyering  <meyering@redhat.com>
23883
23884         maint.mk: use gnu-style indentation in an embedded perl script
23885         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23886         Rename variable: s/two/last_two_bytes/
23887
23888 2010-04-16  Eric Blake  <eblake@redhat.com>
23889
23890         test-stdbool: skip test that fails with Solaris CC
23891         * tests/test-stdbool.c (f): Skip test that causes compilation
23892         error under buggy C++ compiler.
23893         * lib/stdbool.in.h: Document the limitation.
23894         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23895
23896         setenv: allow compilation with C++
23897         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23898         register keyword.
23899
23900         stdint: allow test to pass with C++
23901         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23902
23903         getopt: allow compilation with C++
23904         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23905         struct.
23906         * lib/getopt.c (_getopt_internal_r): Use correct type.
23907         Reported by Dagobert Michelson, via Joel E. Denny.
23908
23909 2010-04-16  Bruno Haible  <bruno@clisp.org>
23910
23911         Override netdb.h always.
23912         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23914         Reported by Ludovic Courtès <ludo@gnu.org>.
23915
23916 2010-04-15  Bruno Haible  <bruno@clisp.org>
23917
23918         openpty: Fix mistake from 2010-03-21.
23919         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23920         Reported by Simon Josefsson.
23921
23922 2010-04-15  Eric Blake  <eblake@redhat.com>
23923
23924         test-forkpty: fix expected signature
23925         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23926         Reported by Simon Josefsson.
23927
23928 2010-04-15  Jim Meyering  <meyering@redhat.com>
23929
23930         maint.mk: texinfo_suffix_re_: correct the default regexp
23931         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23932
23933         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23934         make it configurable via texinfo_suffix_re_.
23935
23936 2010-04-14  Eric Blake  <eblake@redhat.com>
23937
23938         strtok_r: relax license to LGPLv2+
23939         * modules/strtok_r (License): Relax license.
23940         Reported by Matthias Bolte.
23941
23942 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23943
23944         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23945         version 1.4.4 by default instead of requiring the libgcrypt
23946         version used during build.  This makes it possible to use the
23947         application with older but still binary compatible libgcrypt
23948         versions.
23949
23950 2010-04-13  Eric Blake  <eblake@redhat.com>
23951
23952         getopt-gnu: match recent glibc fixes and posix ruling
23953         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23954         '+' handling, when requesting extensions.
23955         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23956         'W;' handling.
23957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23958         * doc/posix-functions/getopt.texi (getopt): Document this.
23959         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23960         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23961         Likewise.
23962
23963         getopt: merge bug fixes from glibc
23964         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23965         diagnostics.  Honor '+:' correctly.  Reject ';'.
23966
23967         getopt-posix: detect MacOS bug
23968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23969         optind when missing a required argument.
23970         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23971         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23973         Likewise.
23974
23975         getopt-posix: avoid spurious failure on Solaris
23976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23977         an indicator that setting optind=1 is sufficient for reset.
23978
23979         getopt-posix: avoid spurious failure on FreeBSD
23980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23981         in POSIX mode, since the m4 test uses it.
23982
23983         gnulib-tool: silence warning on BSD sh
23984         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23985
23986 2010-04-13  Jim Meyering  <meyering@redhat.com>
23987
23988         doc: users.txt: GNU patch now uses gnulib
23989         * users.txt: Add patch.
23990
23991 2010-04-12  Jim Meyering  <meyering@redhat.com>
23992
23993         maint.mk: generate more concise timing data for syntax-check rules
23994         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23995         " done" from each line that reports a syntax-check test duration.
23996
23997 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23998
23999         git-version-gen: use "git update-index..." rather than "git status"
24000         * build-aux/git-version-gen: Use git update-index --refresh, not
24001         "git status".  With some versions of git, "git status" would fail
24002         to update the index and result in an unwarranted "-dirty" suffix.
24003
24004 2010-04-11  Jim Meyering  <meyering@redhat.com>
24005
24006         openat: correct formatting (no semantic change)
24007         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24008         Suggested by Bruno Haible.
24009
24010 2010-04-11  Bruno Haible  <bruno@clisp.org>
24011
24012         Stricter declaration checking in testdirs.
24013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24014         If for_tests is true, augment AM_CPPFLAGS to define
24015         GNULIB_STRICT_CHECKING.
24016         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24017         GNULIB_STRICT_CHECKING is defined, verify that the function is
24018         declared.
24019
24020 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24021             Bruno Haible  <bruno@clisp.org>
24022
24023         libunistring: Improve configure output.
24024         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24025         Don't say "consider installing GNU libunistring" when checking again
24026         with libiconv.
24027
24028 2010-04-11  Bruno Haible  <bruno@clisp.org>
24029
24030         libunistring: Correct value of $LTLIBUNISTRING.
24031         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24032         correct the value of $LTLIBUNISTRING.
24033
24034 2010-04-11  Bruno Haible  <bruno@clisp.org>
24035
24036         havelib: Add static libraries to LIBS in the right order.
24037         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24038         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24039
24040 2010-04-11  Bruno Haible  <bruno@clisp.org>
24041
24042         libunistring: Detect libunistring also when it depends on libiconv.
24043         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24044         the second AC_LIB_HAVE_LINKFLAGS invocation.
24045
24046 2010-04-11  James Youngman  <jay@gnu.org>
24047
24048         close-stream: declare local scalars to be "const"
24049         * lib/close-stream.c (close_stream): Make boolean variables const
24050         to document the fact that we set but do not change them.
24051
24052 2010-04-11  Bruno Haible  <bruno@clisp.org>
24053
24054         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24055
24056 2010-04-11  Jim Meyering  <meyering@redhat.com>
24057
24058         maint.mk: don't include dist-check.mk
24059         * top/maint.mk: Remove bogus include directive.
24060
24061         maint.mk: improve empty-line-at-EOF check
24062         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24063         solution, rather than tail+Perl-based one.  The latter would read
24064         a few kilobytes from the end of each file, and did not handle empty
24065         files properly.
24066
24067         maint.mk: print the elapsed time for each syntax-check rule
24068         * top/maint.mk (sc_m_rules_): Save start time in a file.
24069         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24070         (local-check): Interpose the .z rules
24071
24072 2010-04-11  Jim Meyering  <meyering@redhat.com>
24073
24074         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24075         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24076         empty file with one that ends in an empty line.
24077
24078 2010-04-10  Bruno Haible  <bruno@clisp.org>
24079
24080         mkdir: Make it work on mingw64.
24081         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24082         * lib/mkdir.c: Update comment.
24083         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24084
24085 2010-04-10  Bruno Haible  <bruno@clisp.org>
24086
24087         Don't override improved macro from newer autoconf.
24088         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24089         autoconf >= 2.62.
24090         Reported by Joel E. Denny <jdenny@clemson.edu>.
24091
24092 2010-04-10  Jim Meyering  <meyering@redhat.com>
24093
24094         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24096
24097         maint.mk: correct a diagnostic
24098         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24099         in diagnostic; now use $prohibit.
24100
24101 2010-04-10  Bruno Haible  <address@hidden>
24102
24103         fchownat: Fix a C++ test error on Solaris 8.
24104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24105         the function does not exist.
24106
24107 2010-04-10  Bruno Haible  <bruno@clisp.org>
24108
24109         vasnprintf: Add more tests.
24110         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24111         (test_function): Test converting an invalid wide string.
24112
24113         vasnprintf: Correct handling of unconvertible wide string arguments.
24114         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24115         VASNPRINTF.
24116         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24117         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24118         smaller than the expected maximum need for the directive. Set errno to
24119         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24120         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24122         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24123         * modules/vasnprintf (Files): Add m4/printf.m4.
24124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24125
24126 2010-04-10  Bruno Haible  <bruno@clisp.org>
24127
24128         vasnprintf: Fix crash in %ls directive.
24129         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24130         string is passed as argument to %ls, with no precision and no width.
24131         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24132
24133 2010-04-10  Bruno Haible  <bruno@clisp.org>
24134
24135         vasnprintf: Fix multiple test failures on mingw.
24136         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24137         _snprintf, or snwprintf, not _snwprintf.
24138
24139 2010-04-10  Bruno Haible  <bruno@clisp.org>
24140
24141         write: Fix a C++ test error on mingw.
24142         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24143
24144 2010-04-10  Bruno Haible  <bruno@clisp.org>
24145
24146         vasnprintf test: Reduce code duplication.
24147         * tests/test-vasnprintf.c (test_function): New function, extracted from
24148         test_vasnprintf.
24149         (test_vasnprintf, test_asnprintf): Invoke it.
24150
24151 2010-04-10  Bruno Haible  <bruno@clisp.org>
24152
24153         strnlen: Fix warning in C++ mode on MacOS X.
24154         * lib/string.in.h (strnlen): Use the modern idiom.
24155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24156         defining strnlen as a macro already in <config.h>.
24157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24158         REPLACE_STRNLEN.
24159         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24161
24162 2010-04-08  James Youngman  <jay@gnu.org>
24163
24164         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24165         the example.
24166
24167 2010-04-09  Jim Meyering  <meyering@redhat.com>
24168
24169         maint.mk: print better diagnostic when there is no $(_hv_file)
24170         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24171         announce that when $(_hv_file) (aka help-version) does not exist.
24172
24173         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24174         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24175         not try to interpret its random input bytes.  Jarno Rajahalme reported
24176         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24177         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24178         (mktempd_): Likewise, just in case.
24179
24180         ftruncate: add two years to projected module removal date: 2012
24181         * m4/ftruncate.m4: Adjust comments.
24182
24183         ftruncate: mark module as obsolete; even MinGW provides it, now
24184         * modules/ftruncate (Status): Obsolete.
24185         (Notice): Say that.
24186         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24188
24189 2010-04-08  Bruno Haible  <bruno@clisp.org>
24190
24191         Fix side effects from tests-related modules.
24192         * modules/dprintf-posix (Comment): New section.
24193         * modules/fprintf-posix (Comment): Likewise.
24194         * modules/obstack-printf-posix (Comment): Likewise.
24195         * modules/printf-posix (Comment): Likewise.
24196         * modules/snprintf-posix (Comment): Likewise.
24197         * modules/sprintf-posix (Comment): Likewise.
24198         * modules/vasnprintf-posix (Comment): Likewise.
24199         * modules/vasprintf-posix (Comment): Likewise.
24200         * modules/vdprintf-posix (Comment): Likewise.
24201         * modules/vfprintf-posix (Comment): Likewise.
24202         * modules/vprintf-posix (Comment): Likewise.
24203         * modules/vsnprintf-posix (Comment): Likewise.
24204         * modules/vsprintf-posix (Comment): Likewise.
24205         * modules/xprintf-posix (Comment): Likewise.
24206         * modules/xvasprintf-posix (Comment): Likewise.
24207         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24208         * modules/floorf-tests (Depends-on): Likewise.
24209         * modules/round-tests (Depends-on): Likewise.
24210         * modules/roundf-tests (Depends-on): Likewise.
24211         * modules/trunc-tests (Depends-on): Likewise.
24212         * modules/truncf-tests (Depends-on): Likewise.
24213         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24214         'fprintf-posix' module is not present.
24215         * tests/test-floorf2.c (check): Likewise.
24216         * tests/test-trunc2.c (check): Likewise.
24217         * tests/test-truncf2.c (check): Likewise.
24218         * tests/test-round2.c (equal): Likewise.
24219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24220
24221 2010-04-07  Karl Berry  <karl@gnu.org>
24222
24223         * config/srclist.txt,
24224         * config/srclistvars.sh,
24225         * config/srclist-update: doc fixes.
24226
24227 2010-04-07  Jim Meyering  <meyering@redhat.com>
24228
24229         maint.mk: add a PATH crosschecking syntax-check rule
24230         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24231         Useful if you use a test like the one in help-version (coreutils,
24232         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24233         printed by prog --version.
24234
24235 2010-04-06  Bruno Haible  <bruno@clisp.org>
24236
24237         Fix link error on mingw.
24238         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24239         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24240
24241 2010-04-06  Bruno Haible  <bruno@clisp.org>
24242
24243         Assume rmdir exists.
24244         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24245
24246 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24247
24248         doc: update users.txt
24249         * users.txt: Add gcal.
24250
24251 2010-04-06  Jim Meyering  <meyering@redhat.com>
24252
24253         init.sh: simply unset TMPDIR rather than risking env -i
24254         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24255         although it probably works fine on all Unix-based systems, some
24256         systems (Cygwin?) cannot tolerate a totally cleared environment.
24257         Suggestion from Eric Blake.
24258
24259 2010-04-06  Jim Meyering  <meyering@redhat.com>
24260
24261         init.sh: portability fix: use env's POSIX-specified -i option not -u
24262         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24263         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24264
24265 2010-04-05  Bruno Haible  <bruno@clisp.org>
24266
24267         btowc: Work around Cygwin 1.7.2 bug.
24268         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24269         does not map NUL to 0.
24270         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24271
24272 2010-04-05  Bruno Haible  <bruno@clisp.org>
24273
24274         Make the multithread modules work on Cygwin 1.7.2.
24275         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24276         imported symbols can be declared weak, so that it returns "no" on
24277         Cygwin 1.7.2.
24278
24279 2010-04-05  Bruno Haible  <bruno@clisp.org>
24280
24281         Use the module 'strncat'.
24282         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24283
24284         Tests for module 'strncat'.
24285         * modules/strncat-tests: New file.
24286         * tests/test-strncat.c: New file.
24287
24288         New module 'strncat'.
24289         * lib/string.in.h (strncat): New declaration.
24290         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24291         * m4/strncat.m4: New file, based on m4/memchr.m4.
24292         * modules/strncat: New file.
24293         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24294         is declared.
24295         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24296         REPLACE_STRNCAT.
24297         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24298         REPLACE_STRNCAT.
24299         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24300         module.
24301         * tests/test-string-c++.cc: Check signature of strncat.
24302
24303 2010-04-05  Jim Meyering  <meyering@redhat.com>
24304
24305         xstrtoumax-tests: convert to use init.sh
24306         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24307         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24308         Use Exit, not exit.
24309         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24310
24311         xstrtoimax-tests: convert to use init.sh
24312         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24313         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24314         Use Exit, not exit.
24315         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24316
24317 2010-04-05  Bruno Haible  <bruno@clisp.org>
24318
24319         sys_socket: Avoid #define replacements in C++ mode.
24320         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24321         warning to the function if possible, rather than #defining the symbol
24322         to a dysfunctional alias.
24323
24324 2010-04-05  Bruno Haible  <bruno@clisp.org>
24325
24326         fseeko: Fix C++ test error on mingw.
24327         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24328         gl_FUNC_FSEEKO.
24329         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24330         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24331         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24332         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24333
24334 2010-04-05  Bruno Haible  <bruno@clisp.org>
24335
24336         duplocale: Improve test output.
24337         * tests/test-duplocale.c (main): Print reason for skipped test.
24338
24339 2010-04-05  Bruno Haible  <bruno@clisp.org>
24340
24341         Assume rmdir exists.
24342         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24343         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24344
24345 2010-04-05  Bruno Haible  <bruno@clisp.org>
24346
24347         Fix link error on Solaris 8 with cc.
24348         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24349
24350 2010-04-05  Bruno Haible  <bruno@clisp.org>
24351
24352         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24353         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24354
24355 2010-04-05  Bruno Haible  <bruno@clisp.org>
24356
24357         vasprintf: Update documentation.
24358         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24359
24360 2010-04-05  Bruno Haible  <bruno@clisp.org>
24361
24362         ptsname: Improve test.
24363         * tests/test-ptsname.c (main): Also try the various master names of BSD
24364         systems.
24365
24366 2010-04-05  Bruno Haible  <bruno@clisp.org>
24367
24368         memchr: Avoid a possible C++ test error.
24369         * lib/string.in.h (memchr): Provide declaration if function is missing.
24370         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24371         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24373         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24374
24375 2010-04-05  Bruno Haible  <bruno@clisp.org>
24376
24377         strtok_r: Improve idiom.
24378         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24379         AC_LIBOBJ is used.
24380
24381 2010-04-05  Bruno Haible  <bruno@clisp.org>
24382
24383         strdup: Improve idiom.
24384         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24385         AC_LIBOBJ is used.
24386         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24387         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24388         when AC_LIBOBJ is used.
24389
24390 2010-04-05  Bruno Haible  <bruno@clisp.org>
24391
24392         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24393         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24394         don't set REPLACE_MBSINIT to 1.
24395         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24396         don't set REPLACE_MBRTOWC to 1.
24397         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24398         exist, don't set REPLACE_MBSRTOWCS to 1.
24399         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24400         exist, don't set REPLACE_MBSNRTOWCS to 1.
24401         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24402         don't set REPLACE_WCRTOMB to 1.
24403         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24404         exist, don't set REPLACE_WCSRTOMBS to 1.
24405         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24406         exist, don't set REPLACE_WCSNRTOMBS to 1.
24407
24408 2010-04-05  Bruno Haible  <bruno@clisp.org>
24409
24410         ldexpl: Improve idiom.
24411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24412         make sure to set HAVE_DECL_LDEXPL to 0.
24413
24414 2010-04-05  Jim Meyering  <meyering@redhat.com>
24415
24416         xstrtol-tests: convert to use init.sh
24417         * modules/xstrtol-tests (Files): Add tests/init.sh.
24418         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24419         Use Exit, not exit.
24420         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24421
24422         atexit-tests: convert to use init.sh
24423         * modules/atexit-tests (Files): Add tests/init.sh.
24424         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24425         Use Exit, not exit.
24426         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24427
24428         init.sh: fix typo
24429         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24430
24431         init.sh: make it easier for a test script to write to the tty, ...
24432         when using automake's parallel-tests mode.
24433         * tests/init.sh (stderr_fileno_): Define overridable variable.
24434         (warn_): New function, to use it.
24435         (fail_, skip_, framework_failure_): Use warn_.
24436
24437 2010-04-04  Bruno Haible  <bruno@clisp.org>
24438
24439         btowc: Avoid warning.
24440         * lib/btowc.c: Include <stdlib.h>.
24441         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24442
24443 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24444             Bruno Haible  <bruno@clisp.org>
24445
24446         wchar: Port to NetBSD 1.5.
24447         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24448         * lib/wctype.in.h (WEOF): Likewise.
24449
24450 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24451             Bruno Haible  <bruno@clisp.org>
24452
24453         Port extended stdio to NetBSD 1.5.
24454         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24455         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24456         older.
24457
24458 2010-04-04  Bruno Haible  <bruno@clisp.org>
24459
24460         string: Remove unused substitution.
24461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24462         HAVE_DECL_STRERROR.
24463         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24464
24465 2010-04-04  Bruno Haible  <bruno@clisp.org>
24466
24467         strtod: Avoid a possible C++ test error.
24468         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24469         set REPLACE_STRTOD.
24470
24471 2010-04-04  Bruno Haible  <bruno@clisp.org>
24472
24473         strerror: Update documentation.
24474         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24475
24476 2010-04-04  Bruno Haible  <bruno@clisp.org>
24477
24478         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24479         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24480         _GL_CXXALIAS_SYS_CAST.
24481
24482 2010-04-04  Bruno Haible  <bruno@clisp.org>
24483
24484         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24485         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24486         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24487         REPLACE_FREXPL to 1.
24488         * doc/posix-functions/frexpl.texi: Update documentation.
24489
24490 2010-04-04  Bruno Haible  <bruno@clisp.org>
24491
24492         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24493         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24494
24495 2010-04-04  Bruno Haible  <bruno@clisp.org>
24496
24497         Implement nanosleep for native Windows.
24498         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24499
24500 2010-04-04  Bruno Haible  <bruno@clisp.org>
24501
24502         math: Fix some C++ test errors on Solaris 8.
24503         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24504
24505 2010-04-04  Bruno Haible  <bruno@clisp.org>
24506
24507         math: Fix some C++ test errors on Cygwin.
24508         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24509         truncl): Provide declaration if the system does not have it.
24510         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24511         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24512         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24513         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24514         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24515         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24516         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24517         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24518         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24519         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24520         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24521         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24522         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24523         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24524         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24525         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24527         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24528         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24529         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24530         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24531         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24532
24533 2010-04-04  Bruno Haible  <bruno@clisp.org>
24534
24535         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24536         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24537         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24538         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24539         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24540         * m4/isinf.m4 (gl_ISINF): Likewise.
24541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24542
24543 2010-04-04  Bruno Haible  <bruno@clisp.org>
24544
24545         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24546         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24547
24548 2010-04-04  Bruno Haible  <bruno@clisp.org>
24549
24550         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24551         * modules/tmpfile (configure.ac): Update.
24552
24553         tmpfile: Fix C++ test error on mingw.
24554         * lib/stdio.in.h (tmpfile): New declaration.
24555         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24556         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24557         * modules/tmpfile (Depends-on): Add stdio.
24558         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24559         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24560         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24561         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24562         REPLACE_TMPFILE.
24563         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24564
24565 2010-04-04  Bruno Haible  <bruno@clisp.org>
24566
24567         ioctl: Fix C++ test error on mingw.
24568         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24569         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24570         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24571
24572 2010-04-03  Bruno Haible  <bruno@clisp.org>
24573
24574         wcwidth: Fix C++ test error on mingw.
24575         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24577         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24578
24579 2010-04-03  Bruno Haible  <bruno@clisp.org>
24580
24581         nanosleep: Fix C++ test error on mingw.
24582         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24583         * lib/time.in.h (nanosleep): Use modern idiom.
24584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24585         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24586         REPLACE_NANOSLEEP to 1.
24587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24588         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24589
24590 2010-04-03  Bruno Haible  <bruno@clisp.org>
24591
24592         strptime: Fix C++ test error on mingw.
24593         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24594         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24595         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24596         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24597         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24598         not REPLACE_STRPTIME.
24599         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24600         REPLACE_STRPTIME.
24601
24602 2010-04-03  Bruno Haible  <bruno@clisp.org>
24603
24604         timegm: Fix C++ test error on mingw.
24605         * lib/time.in.h (timegm): Use modern idiom.
24606         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24607         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24609         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24610
24611 2010-04-03  Bruno Haible  <bruno@clisp.org>
24612
24613         timegm: Assume declaration if function exists.
24614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24615         if it exists. Don't clobber ac_cv_func_timegm.
24616
24617 2010-04-03  Bruno Haible  <bruno@clisp.org>
24618
24619         time_r: Fix C++ test error on mingw.
24620         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24621         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24622         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24624         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24625
24626 2010-04-03  Bruno Haible  <bruno@clisp.org>
24627
24628         time_r: Minor updates.
24629         * modules/time_r (Description): Mention the provided functions.
24630         * lib/time_r.c: Don't include <string.h>.
24631         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24632         * doc/posix-functions/localtime_r.texi: Likewise.
24633
24634 2010-04-03  Bruno Haible  <bruno@clisp.org>
24635
24636         time: Fix regression introduced on 2010-03-08.
24637         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24638         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24639
24640 2010-04-03  Jim Meyering  <meyering@redhat.com>
24641
24642         maint.mk: don't silently disable project-specific syntax-check rules
24643         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24644         that they need to convert their project-specific syntax-check rules
24645         to use the new _sc_search_regexp.
24646
24647 2010-04-03  Bruno Haible  <bruno@clisp.org>
24648
24649         fchdir: Fix regression introduced on 2010-03-08.
24650         * lib/unistd.in.h (fchdir): Fix declaration.
24651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24653         REPLACE_FCHDIR.
24654         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24655         REPLACE_FCHDIR.
24656
24657 2010-04-03  Bruno Haible  <bruno@clisp.org>
24658
24659         getpagesize: Fix C++ test error on mingw.
24660         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24661         system does not declare the function.
24662         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24663         declared.
24664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24665         HAVE_DECL_GETPAGESIZE.
24666         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24667
24668 2010-04-03  Bruno Haible  <bruno@clisp.org>
24669
24670         stdio: Make C++ tests work on mingw.
24671         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24672         does not declare the function.
24673
24674 2010-04-03  Bruno Haible  <bruno@clisp.org>
24675
24676         ftello: Fix C++ test error on mingw.
24677         * lib/stdio.in.h (ftello): Use modern idiom.
24678         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24679         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24680         is missing and that it needs to be replaced.
24681         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24683         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24684
24685 2010-04-03  Bruno Haible  <bruno@clisp.org>
24686
24687         fseeko: Fix C++ test error on mingw.
24688         * lib/stdio.in.h (fseeko): Use modern idiom.
24689         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24691         is missing and that it needs to be replaced.
24692         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24694         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24695
24696 2010-04-03  Bruno Haible  <bruno@clisp.org>
24697
24698         mkstemp: Fix C++ test error on mingw.
24699         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24701         function is missing and that it needs to be replaced.
24702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24703         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24704
24705 2010-04-03  Bruno Haible  <bruno@clisp.org>
24706
24707         stpncpy: Fix C++ test error on mingw.
24708         * lib/string.in.h (stpncpy): Use modern idiom.
24709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24710         function is missing and that it needs to be replaced.
24711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24712         REPLACE_STPNCPY.
24713         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24714
24715 2010-04-03  Bruno Haible  <bruno@clisp.org>
24716
24717         sys_stat: Fix C++ test error on mingw.
24718         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24719         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24720
24721 2010-04-03  Bruno Haible  <bruno@clisp.org>
24722
24723         pty: Update doc.
24724         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24725
24726 2010-04-03  Bruno Haible  <bruno@clisp.org>
24727
24728         unistd: Fix C++ test error on mingw.
24729         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24730
24731 2010-04-03  Bruno Haible  <bruno@clisp.org>
24732
24733         Update doc regarding mingw.
24734         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24735         * doc/glibc-functions/login_tty.texi: Likewise.
24736         * doc/glibc-functions/forkpty.texi: Likewise.
24737
24738 2010-04-03  Bruno Haible  <bruno@clisp.org>
24739
24740         stdlib: Avoid compilation failure of c-strtold on mingw.
24741         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24742
24743 2010-04-03  Bruno Haible  <bruno@clisp.org>
24744
24745         locale: Make C++ tests work on Cygwin and mingw.
24746         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24747         cannot provide the function.
24748         Reported by Simon Josefsson.
24749
24750 2010-04-03  Bruno Haible  <bruno@clisp.org>
24751
24752         localename: Port to MacOS X 10.6.
24753         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24754         memory layout of the locales in MacOS X 10.6 as well.
24755         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24756
24757 2010-04-02  Bruno Haible  <bruno@clisp.org>
24758
24759         gnulib-tool: Ensure that long-running tests are executed last.
24760         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24761         running tests after the one for the other tests.
24762
24763 2010-04-02  Bruno Haible  <bruno@clisp.org>
24764
24765         gnulib-tool: Ensure the tests in the main directory are executed first.
24766         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24767         start with the current directory.
24768
24769 2010-04-02  Bruno Haible  <bruno@clisp.org>
24770
24771         Tests for module 'havelib', moved here from GNU gettext.
24772         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24773         modifications.
24774         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24775         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24776         with modifications.
24777         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24778         modifications.
24779         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24780         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24781         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24782         with modifications.
24783         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24784         with modifications.
24785         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24786         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24787         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24788         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24789         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24790         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24791         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24792         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24793         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24794         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24795         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24796         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24797         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24798         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24799         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24800         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24801         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24802         with modifications.
24803         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24804         with modifications.
24805         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24806         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24807         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24808         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24809         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24810         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24811         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24812         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24813         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24814         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24815         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24816         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24817         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24818         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24819         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24820         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24821         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24822         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24823         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24824         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24825         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24826         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24827         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24828         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24829         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24830         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24831         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24832         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24833         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24834         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24835         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24836         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24837         * tests/havelib/rpathx/rpathx.c: New file, from
24838         gettext/autoconf-lib-link.
24839         * tests/havelib/rpathx/Makefile.am: New file, from
24840         gettext/autoconf-lib-link.
24841         * tests/havelib/rpathx/configure.ac: New file, from
24842         gettext/autoconf-lib-link with modifications.
24843         * tests/havelib/rpathy/rpathy.c: New file, from
24844         gettext/autoconf-lib-link.
24845         * tests/havelib/rpathy/Makefile.am: New file, from
24846         gettext/autoconf-lib-link.
24847         * tests/havelib/rpathy/configure.ac: New file, from
24848         gettext/autoconf-lib-link with modifications.
24849         * tests/havelib/rpathz/rpathz.c: New file, from
24850         gettext/autoconf-lib-link.
24851         * tests/havelib/rpathz/Makefile.am: New file, from
24852         gettext/autoconf-lib-link.
24853         * tests/havelib/rpathz/configure.ac: New file, from
24854         gettext/autoconf-lib-link with modifications.
24855         * tests/havelib/rpathlx/usex.c: New file, from
24856         gettext/autoconf-lib-link.
24857         * tests/havelib/rpathlx/Makefile.am: New file, from
24858         gettext/autoconf-lib-link.
24859         * tests/havelib/rpathlx/configure.ac: New file, from
24860         gettext/autoconf-lib-link with modifications.
24861         * tests/havelib/rpathly/usey.c: New file, from
24862         gettext/autoconf-lib-link.
24863         * tests/havelib/rpathly/Makefile.am: New file, from
24864         gettext/autoconf-lib-link.
24865         * tests/havelib/rpathly/configure.ac: New file, from
24866         gettext/autoconf-lib-link with modifications.
24867         * tests/havelib/rpathlz/usez.c: New file, from
24868         gettext/autoconf-lib-link.
24869         * tests/havelib/rpathlz/Makefile.am: New file, from
24870         gettext/autoconf-lib-link.
24871         * tests/havelib/rpathlz/configure.ac: New file, from
24872         gettext/autoconf-lib-link with modifications.
24873         * tests/havelib/rpathlyx/usey.c: New file, from
24874         gettext/autoconf-lib-link.
24875         * tests/havelib/rpathlyx/Makefile.am: New file, from
24876         gettext/autoconf-lib-link.
24877         * tests/havelib/rpathlyx/configure.ac: New file, from
24878         gettext/autoconf-lib-link with modifications.
24879         * tests/havelib/rpathlzyx/usez.c: New file, from
24880         gettext/autoconf-lib-link.
24881         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24882         gettext/autoconf-lib-link.
24883         * tests/havelib/rpathlzyx/configure.ac: New file, from
24884         gettext/autoconf-lib-link with modifications.
24885         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24886         with modifications.
24887
24888 2010-04-02  Bruno Haible  <bruno@clisp.org>
24889
24890         gnulib-tool: Create distributed built sources also for the tests.
24891         * gnulib-tool (func_create_testdir): Also generate distributed built
24892         sources in the tests directory.
24893
24894 2010-04-02  Bruno Haible  <bruno@clisp.org>
24895
24896         gnulib-tool: Obey user's environment variables.
24897         * gnulib-tool (func_create_testdir): When creating built sources,
24898         respect the environment variables for autoconf, automake, etc. given by
24899         the user.
24900
24901 2010-04-02  Bruno Haible  <bruno@clisp.org>
24902
24903         gnulib-tool: Provide the value of --m4-base to modules.
24904         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24905         of gl_m4_base.
24906
24907 2010-04-02  Eric Blake  <eblake@redhat.com>
24908
24909         maint.mk: fix some fallout
24910         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24911         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24912
24913 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24914
24915         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24916         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24917         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24918         (sc_cast_of_x_alloc_return_value): Likewise.
24919         (sc_cast_of_alloca_return_value): Likewise.
24920         (sc_space_tab): Likewise.
24921         (sc_prohibit_atoi_atof): Likewise.
24922         (sc_prohibit_magic_number_exit): Likewise.
24923         (sc_error_exit_success): Likewise.
24924         (sc_file_system): Likewise.
24925         (sc_prohibit_have_config_h): Likewise.
24926         (sc_require_config_h): Likewise.
24927         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24928         (sc_obsolete_symbols): Likewise.
24929         (sc_changelog): Likewise.
24930         (sc_program_name): Likewise.
24931         (sc_the_the): Likewise.
24932         (sc_trailing_blank): Likewise.
24933         (sc_two_space_separator_in_usage): Likewise.
24934         (sc_useless_cpp_parens): Likewise.
24935         (sc_GPL_version): Likewise.
24936         (sc_GFDL_version): Likewise.
24937         (sc_texinfo_acronym): Likewise.
24938         (sc_prohibit_cvs_keyword): Likewise.
24939         (sc_prohibit_stat_st_blocks): Likewise.
24940         (sc_prohibit_S_IS_definition): Likewise.
24941         (sc_redundant_const): Likewise.
24942         (sc_makefile_TAB_only_indentation): Likewise.
24943         (sc_m4_quote_check): Likewise.
24944         (sc_makefile_path_separator_check): Likewise.
24945         (sc_copyright_check): Likewise.
24946         (sc_Wundef_boolean): Likewise.
24947         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24948
24949         maint.mk: match 0 or more whitespace-before-function-call '('
24950         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24951         that have zero or two-and-more spaces between the function name
24952         and the open parenthesis.
24953         (sc_error_message_warn_fatal): Likewise.
24954         (sc_error_message_uppercase): Likewise.
24955         (sc_error_message_period): Likewise.
24956
24957 2010-03-31  Eric Blake  <eblake@redhat.com>
24958
24959         maint.mk: check for [ as well as test
24960         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24961         Based on a libvirt report by Matthias Bolte.
24962
24963         gnumakefile: don't squelch _version output
24964         * top/GNUmakefile (_version): Create one-shot dependency rather
24965         than using $(shell) when version must be regenerated.
24966         (_autoreconf): Run verbosely, by default.
24967
24968         sys_time: avoid compiler warnings
24969         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24970         unconditional, fixing regression from 2010-03-29.
24971         Reported by Simon Josefsson.
24972
24973 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24974
24975         maint.mk: s/_header_without_use/_sc_header_without_use/
24976         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24977         (sc_prohibit_assert_without_use): Use the new name.
24978         (sc_prohibit_close_stream_without_use): Likewise.
24979         (sc_prohibit_getopt_without_use): Likewise.
24980         (sc_prohibit_quotearg_without_use): Likewise.
24981         (sc_prohibit_quote_without_use): Likewise.
24982         (sc_prohibit_long_options_without_use): Likewise.
24983         (sc_prohibit_inttostr_without_use): Likewise.
24984         (sc_prohibit_ignore_value_without_use): Likewise.
24985         (sc_prohibit_error_without_use): Likewise.
24986         (sc_prohibit_xalloc_without_use): Likewise.
24987         (sc_prohibit_hash_without_use): Likewise.
24988         (sc_prohibit_hash_pjw_without_use): Likewise.
24989         (sc_prohibit_safe_read_without_use): Likewise.
24990         (sc_prohibit_argmatch_without_use): Likewise.
24991         (sc_prohibit_canonicalize_without_use): Likewise.
24992         (sc_prohibit_root_dev_ino_without_use): Likewise.
24993         (sc_prohibit_openat_without_use): Likewise.
24994         (sc_prohibit_c_ctype_without_use): Likewise.
24995         (sc_prohibit_signal_without_use): Likewise.
24996         (sc_prohibit_intprops_without_use): Likewise.
24997
24998 2010-03-30  Eric Blake  <eblake@redhat.com>
24999
25000         maint: improve module indicators
25001         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25002         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25003         columns, and avoid extra macro expansion.
25004
25005         fdopendir: work around FreeBSD bug
25006         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25007         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25008         * modules/dirent (Makefile.am): Substitute it.
25009         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25010         declaration.
25011         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25012         fix.
25013         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25014
25015 2010-03-29  Bruno Haible  <bruno@clisp.org>
25016
25017         Emit #pragma system_header after the inclusion guard, not before.
25018         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25019         guard that spans the entire file, not before. This enables an
25020         optimization in GCC's preprocessor.
25021         * lib/ctype.in.h: Likewise.
25022         * lib/dirent.in.h: Likewise.
25023         * lib/errno.in.h: Likewise.
25024         * lib/float.in.h: Likewise.
25025         * lib/getopt.in.h: Likewise.
25026         * lib/iconv.in.h: Likewise.
25027         * lib/langinfo.in.h: Likewise.
25028         * lib/locale.in.h: Likewise.
25029         * lib/math.in.h: Likewise.
25030         * lib/netdb.in.h: Likewise.
25031         * lib/netinet_in.in.h: Likewise.
25032         * lib/pty.in.h: Likewise.
25033         * lib/sched.in.h: Likewise.
25034         * lib/se-selinux.in.h: Likewise.
25035         * lib/search.in.h: Likewise.
25036         * lib/spawn.in.h: Likewise.
25037         * lib/stdarg.in.h: Likewise.
25038         * lib/stdint.in.h: Likewise.
25039         * lib/string.in.h: Likewise.
25040         * lib/strings.in.h: Likewise.
25041         * lib/sys_file.in.h: Likewise.
25042         * lib/sys_ioctl.in.h: Likewise.
25043         * lib/sys_time.in.h: Likewise.
25044         * lib/sys_times.in.h: Likewise.
25045         * lib/sys_utsname.in.h: Likewise.
25046         * lib/sys_wait.in.h: Likewise.
25047         * lib/sysexits.in.h: Likewise.
25048         * lib/wctype.in.h: Likewise.
25049
25050 2010-03-28  James Youngman  <jay@gnu.org>
25051
25052         save-cwd: don't leak a file descriptor when the caller execs.
25053         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25054         saved file descriptor.
25055         * modules/save-cwd (Depends-on): Depend on cloexec.
25056
25057 2010-03-29  Bruno Haible  <bruno@clisp.org>
25058
25059         Remove vestiges of fts-lgpl module.
25060         * lib/fts_.h: Assume GNULIB_FTS is 1.
25061         * lib/fts.c: Likewise.
25062         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25063
25064 2010-03-28  Bruno Haible  <bruno@clisp.org>
25065
25066         Fix definition of tests witness macro.
25067         * gnulib-tool (func_import): Fix definition of witness macro.
25068
25069 2010-03-28  Bruno Haible  <bruno@clisp.org>
25070
25071         Fix ioctl's protoype on glibc systems.
25072         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25073         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25074         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25075         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25076         signature. If not, arrange to replace the ioctl function.
25077         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25078         REPLACE_IOCTL.
25079         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25080         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25081         Reported by Ludovic Courtès <ludo@gnu.org>.
25082
25083 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25084
25085         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25086         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25087         made it so grep -r --include=GLOB* ... did not work.
25088
25089 2010-03-26  Jim Meyering  <meyering@redhat.com>
25090             Eric Blake  <eblake@redhat.com>
25091
25092         maint.mk: prohibit use of test's -o and -a operators
25093         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25094
25095 2010-03-28  Bruno Haible  <bruno@clisp.org>
25096
25097         Remove unused GNULIB_XYZ macro definitions.
25098         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25099         invocation.
25100
25101 2010-03-28  Bruno Haible  <bruno@clisp.org>
25102
25103         Mark privileged tests modules.
25104         * modules/idpriv-drop-tests (Status): New section.
25105         * modules/idpriv-droptemp-tests (Status): New section.
25106
25107 2010-03-28  Bruno Haible  <bruno@clisp.org>
25108
25109         Split C++ tests into separate tests modules.
25110         * modules/dirent-c++-tests: New file, extracted from
25111         modules/dirent-tests.
25112         * modules/dirent-tests: Depend on it.
25113         * modules/fcntl-h-c++-tests: New file, extracted from
25114         modules/fcntl-h-tests.
25115         * modules/fcntl-h-tests: Depend on it.
25116         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25117         * modules/glob-tests: Depend on it.
25118         * modules/iconv-h-c++-tests: New file, extracted from
25119         modules/iconv-h-tests.
25120         * modules/iconv-h-tests: Depend on it.
25121         * modules/langinfo-c++-tests: New file, extracted from
25122         modules/langinfo-tests.
25123         * modules/langinfo-tests: Depend on it.
25124         * modules/locale-c++-tests: New file, extracted from
25125         modules/locale-tests.
25126         * modules/locale-tests: Depend on it.
25127         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25128         * modules/math-tests: Depend on it.
25129         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25130         * modules/pty-tests: Depend on it.
25131         * modules/search-c++-tests: New file, extracted from
25132         modules/search-tests.
25133         * modules/search-tests: Depend on it.
25134         * modules/signal-c++-tests: New file, extracted from
25135         modules/signal-tests.
25136         * modules/signal-tests: Depend on it.
25137         * modules/spawn-c++-tests: New file, extracted from
25138         modules/spawn-tests.
25139         * modules/spawn-tests: Depend on it.
25140         * modules/stdio-c++-tests: New file, extracted from
25141         modules/stdio-tests.
25142         * modules/stdio-tests: Depend on it.
25143         * modules/stdlib-c++-tests: New file, extracted from
25144         modules/stdlib-tests.
25145         * modules/stdlib-tests: Depend on it.
25146         * modules/string-c++-tests: New file, extracted from
25147         modules/string-tests.
25148         * modules/string-tests: Depend on it.
25149         * modules/sys_ioctl-c++-tests: New file, extracted from
25150         modules/sys_ioctl-tests.
25151         * modules/sys_ioctl-tests: Depend on it.
25152         * modules/sys_select-c++-tests: New file, extracted from
25153         modules/sys_select-tests.
25154         * modules/sys_select-tests: Depend on it.
25155         * modules/sys_socket-c++-tests: New file, extracted from
25156         modules/sys_socket-tests.
25157         * modules/sys_socket-tests: Depend on it.
25158         * modules/sys_stat-c++-tests: New file, extracted from
25159         modules/sys_stat-tests.
25160         * modules/sys_stat-tests: Depend on it.
25161         * modules/sys_time-c++-tests: New file, extracted from
25162         modules/sys_time-tests.
25163         * modules/sys_time-tests: Depend on it.
25164         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25165         * modules/time-tests: Depend on it.
25166         * modules/unistd-c++-tests: New file, extracted from
25167         modules/unistd-tests.
25168         * modules/unistd-tests: Depend on it.
25169         * modules/wchar-c++-tests: New file, extracted from
25170         modules/wchar-tests.
25171         * modules/wchar-tests: Depend on it.
25172         * modules/wctype-c++-tests: New file, extracted from
25173         modules/wctype-tests.
25174         * modules/wctype-tests: Depend on it.
25175         Reported by Simon Josefsson.
25176
25177 2010-03-28  Bruno Haible  <bruno@clisp.org>
25178
25179         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25180         * gnulib-tool (func_exists_module): New function, extracted from
25181         func_verify_module.
25182         (func_verify_module): Use it.
25183         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25184         'foo' only if 'foo' exists.
25185         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25186         module.
25187
25188 2010-03-28  Bruno Haible  <bruno@clisp.org>
25189
25190         gnulib-tool: Add support for special categories of tests.
25191         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25192         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25193         (func_usage): Document them.
25194         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25195         inc_unportable_tests, inc_all_tests): New variables.
25196         (func_acceptable): Consider these variables.
25197         (func_modules_transitive_closure): Make it work when the 'Status' field
25198         consists of multiple words.
25199         (func_import): Store and restore the values of inc_cxx_tests,
25200         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25201         inc_all_tests in gnulib-comp.m4.
25202         (func_create_testdir): Set inc_all_tests to true.
25203         * doc/gnulib.texi (Extra tests modules): New section.
25204         Suggested by Jim Meyering.
25205
25206 2010-03-28  Bruno Haible  <bruno@clisp.org>
25207
25208         ansi-c++-opt: Allow turning off the C++ build by default.
25209         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25210         gl_CXX_CHOICE_DEFAULT_NO is defined.
25211         Requested by Eric Blake.
25212
25213 2010-03-28  Bruno Haible  <bruno@clisp.org>
25214
25215         unistd: Avoid #define replacements in C++ mode.
25216         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25217         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25218         setsockopt, shutdown, select): In C++, attach a warning to the function
25219         if possible, rather than #defining the symbol to a dysfunctional alias.
25220         Reported by John W. Eaton <jwe@gnu.org>.
25221
25222 2010-03-28  Bruno Haible  <bruno@clisp.org>
25223
25224         Fix link errors on mingw.
25225         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25226         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25227         $(LIBSOCKET).
25228         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25229         $(LIBSOCKET).
25230
25231 2010-03-28  Bruno Haible  <bruno@clisp.org>
25232             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25233
25234         lib-ignore: Determine different options for different compilers.
25235         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25236         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25237         Add comments.
25238         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25239         * NEWS: Mention the change.
25240
25241 2010-03-27  Bruno Haible  <bruno@clisp.org>
25242
25243         Remove unused GNULIB_XYZ macro definitions.
25244         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25245         * modules/fseek (configure.ac): Likewise.
25246         * modules/ioctl (configure.ac): Likewise.
25247         * modules/open (configure.ac): Likewise.
25248         * modules/stdlib-safer (configure.ac): Likewise.
25249
25250 2010-03-27  Bruno Haible  <bruno@clisp.org>
25251
25252         Add a remark about certain modules.
25253         * modules/malloc (Comment): New section.
25254         * modules/realloc (Comment): Likewise.
25255         * modules/sigpipe (Comment): Likewise.
25256
25257 2010-03-27  Bruno Haible  <bruno@clisp.org>
25258
25259         Resolve conflict between the two kinds of module indicators.
25260         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25261         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25262         * modules/canonicalize (configure.ac): Invoke
25263         gl_MODULE_INDICATOR_FOR_TESTS.
25264         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25265         GNULIB_XYZ.
25266         * tests/test-dirent-c++.cc: Likewise.
25267         * tests/test-dirent-safer.c: Likewise.
25268         * tests/test-dup2.c: Likewise.
25269         * tests/test-fchdir.c: Likewise.
25270         * tests/test-fcntl-h-c++.cc: Likewise.
25271         * tests/test-getopt.c: Likewise.
25272         * tests/test-getopt.h: Likewise.
25273         * tests/test-langinfo-c++.cc: Likewise.
25274         * tests/test-locale-c++.cc: Likewise.
25275         * tests/test-math-c++.cc: Likewise.
25276         * tests/test-pty-c++.cc: Likewise.
25277         * tests/test-search-c++.cc: Likewise.
25278         * tests/test-signal-c++.cc: Likewise.
25279         * tests/test-spawn-c++.cc: Likewise.
25280         * tests/test-stdio-c++.cc: Likewise.
25281         * tests/test-stdlib-c++.cc: Likewise.
25282         * tests/test-string-c++.cc: Likewise.
25283         * tests/test-sys_ioctl-c++.cc: Likewise.
25284         * tests/test-sys_select-c++.cc: Likewise.
25285         * tests/test-sys_socket-c++.cc: Likewise.
25286         * tests/test-sys_stat-c++.cc: Likewise.
25287         * tests/test-sys_time-c++.cc: Likewise.
25288         * tests/test-time-c++.cc: Likewise.
25289         * tests/test-unistd-c++.cc: Likewise.
25290         * tests/test-wchar-c++.cc: Likewise.
25291         * tests/uninorm/test-u8-nfc.c: Likewise.
25292         * tests/uninorm/test-u8-nfd.c: Likewise.
25293         * tests/uninorm/test-u8-nfkc.c: Likewise.
25294         * tests/uninorm/test-u8-nfkd.c: Likewise.
25295         * tests/uninorm/test-u16-nfc.c: Likewise.
25296         * tests/uninorm/test-u16-nfd.c: Likewise.
25297         * tests/uninorm/test-u16-nfkc.c: Likewise.
25298         * tests/uninorm/test-u16-nfkd.c: Likewise.
25299         * tests/uninorm/test-u32-nfc.c: Likewise.
25300         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25301         * tests/uninorm/test-u32-nfd.c: Likewise.
25302         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25303         * tests/uninorm/test-u32-nfkc.c: Likewise.
25304         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25305         * tests/uninorm/test-u32-nfkd.c: Likewise.
25306         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25307         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25308
25309 2010-03-27  Bruno Haible  <bruno@clisp.org>
25310
25311         Distinguish two kinds of module indicators.
25312         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25313         gl_MODULE_INDICATOR.
25314         (gl_MODULE_INDICATOR): New macro.
25315         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25316         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25318         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25319         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25320         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25321         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25322         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25323         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25324         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25325         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25326         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25328         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25329         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25331         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25332         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25333         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25335         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25336         * modules/cloexec (configure.ac): Likewise.
25337         * modules/getopt-gnu (configure.ac): Likewise.
25338         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25339         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25340         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25341         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25342
25343 2010-03-27  Bruno Haible  <bruno@clisp.org>
25344
25345         New module description field 'Comment'.
25346         * gnulib-tool: New option --extract-comment.
25347         (func_usage): Document it.
25348         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25349         (func_get_comment): New function.
25350         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25351
25352 2010-03-27  Bruno Haible  <bruno@clisp.org>
25353
25354         Addendum to 2010-02-07 commit.
25355         * gnulib-tool (func_usage): Document --extract-applicability option.
25356
25357 2010-03-27  Bruno Haible  <bruno@clisp.org>
25358
25359         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25360         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25361         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25362         rather than link errors.
25363
25364 2010-03-27  Bruno Haible  <bruno@clisp.org>
25365
25366         Avoid side effects from tests-related modules on the compilation of lib.
25367         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25368         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25369         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25370         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25371         macro.
25372         (func_import): Define a witness macro. Assign it a value that depends
25373         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25374         tests-related modules.
25375         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25376         Reported by Jim Meyering.
25377
25378 2010-03-27  Bruno Haible  <bruno@clisp.org>
25379
25380         Factorize common .m4 code.
25381         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25382         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25383         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25384         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25385         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25386         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25387         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25388         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25390         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25391         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25392         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25393         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25394         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25395         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25396         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25397         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25398         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25400         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25403         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25405         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25406         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25407         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25408         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25409         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25410         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25411         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25412         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25413
25414 2010-03-27  Bruno Haible  <bruno@clisp.org>
25415
25416         Fix a compilation error on Cygwin with g++ >= 4.3.
25417         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25418         if it is undefined or if we alias it to chmod.
25419         (lstat): Don't warn about the use of this function if it is undefined
25420         or if we alias it to stat.
25421         Reported by Simon Josefsson.
25422
25423 2010-03-27  Bruno Haible  <bruno@clisp.org>
25424
25425         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25426         * modules/getlogin (configure.ac): Update.
25427
25428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25429         * modules/getlogin_r (configure.ac): Update.
25430
25431         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25433         * modules/inet_ntop (configure.ac): Update.
25434
25435         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25436         * modules/inet_pton (configure.ac): Update.
25437
25438         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25439         * modules/mbslen (configure.ac): Update.
25440
25441         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25442         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25443         * modules/forkpty (configure.ac): Update.
25444         * modules/openpty (configure.ac): Update.
25445
25446 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25447
25448         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25449         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25450
25451 2010-03-25  Eric Blake  <eblake@redhat.com>
25452
25453         maint: use pragma consistently across replacement headers
25454         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25455         * lib/dirent.in.h (system_header): Likewise.
25456         * lib/errno.in.h (system_header): Likewise.
25457         * lib/float.in.h (system_header): Likewise.
25458         * lib/getopt.in.h (system_header): Likewise.
25459         * lib/iconv.in.h (system_header): Likewise.
25460         * lib/inttypes.in.h (system_header): Likewise.
25461         * lib/langinfo.in.h (system_header): Likewise.
25462         * lib/locale.in.h (system_header): Likewise.
25463         * lib/math.in.h (system_header): Likewise.
25464         * lib/netdb.in.h (system_header): Likewise.
25465         * lib/netinet_in.in.h (system_header): Likewise.
25466         * lib/pty.in.h (system_header): Likewise.
25467         * lib/sched.in.h (system_header): Likewise.
25468         * lib/se-selinux.in.h (system_header): Likewise.
25469         * lib/search.in.h (system_header): Likewise.
25470         * lib/spawn.in.h (system_header): Likewise.
25471         * lib/stdarg.in.h (system_header): Likewise.
25472         * lib/stdint.in.h (system_header): Likewise.
25473         * lib/string.in.h (system_header): Likewise.
25474         * lib/strings.in.h (system_header): Likewise.
25475         * lib/sys_file.in.h (system_header): Likewise.
25476         * lib/sys_ioctl.in.h (system_header): Likewise.
25477         * lib/sys_socket.in.h (system_header): Likewise.
25478         * lib/sys_times.in.h (system_header): Likewise.
25479         * lib/sys_utsname.in.h (system_header): Likewise.
25480         * lib/sys_wait.in.h (system_header): Likewise.
25481         * lib/sysexits.in.h (system_header): Likewise.
25482         * lib/unistd.in.h (system_header): Likewise.
25483         * lib/wctype.in.h (system_header): Likewise.
25484
25485         arpa/inet: fix mingw compilation warning
25486         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25487         Reported by Matthew Bolte.
25488
25489 2010-03-25  Bruno Haible  <bruno@clisp.org>
25490
25491         Avoid collision between gnulib wrapper and libintl wrapper.
25492         * lib/printf.c (printf): Don't define if a printf wrapper is already
25493         defined in intl/printf.c.
25494         Reported by Michel Boaventura <michel@michelboaventura.com>.
25495
25496 2010-03-25  Bruno Haible  <bruno@clisp.org>
25497
25498         Use ANSI C.
25499         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25500
25501 2010-03-25  Bruno Haible  <bruno@clisp.org>
25502
25503         Minor formatting changes.
25504         * lib/acosl.c: Insert space before function argument list.
25505         * lib/argz.c: Likewise.
25506         * lib/asinl.c: Likewise.
25507         * lib/expl.c: Likewise.
25508         * lib/gen-uni-tables.c: Likewise.
25509         * lib/gettext.h: Likewise.
25510         * lib/glthread/lock.h: Likewise.
25511         * lib/tanl.c: Likewise.
25512         * lib/uniname/uniname.c: Likewise.
25513         * tests/test-idpriv-drop.c: Likewise.
25514         * tests/test-idpriv-droptemp.c: Likewise.
25515         * tests/test-lock.c: Likewise.
25516         * tests/test-tls.c: Likewise.
25517         * lib/argp-help.c: Insert space before function-like macro argument
25518         list.
25519         * lib/memcmp.c: Likewise.
25520         * tests/test-base64.c: Likewise.
25521         * lib/localename.c: Insert space before sizeof's argument list.
25522         * lib/safe-alloc.h: Likewise.
25523         * lib/file-set.h: Insert space before macro argument list.
25524         * tests/test-argp.c: Likewise.
25525         * lib/argp-namefrob.h: Insert space before function parameter list.
25526         * lib/getaddrinfo.c: Likewise.
25527         * lib/netdb.in.h: Likewise.
25528         * lib/parse-duration.h: Likewise.
25529         * lib/parse-duration.c: Likewise.
25530         * lib/poll.c: Likewise.
25531         * lib/select.c: Likewise.
25532         * lib/trim.h: Likewise.
25533         * tests/test-usleep.c: Likewise.
25534         * lib/ldexpl.c: Insert space before function parameter list and before
25535         function argument list.
25536         * lib/logl.c: Likewise.
25537         * lib/sqrtl.c: Likewise.
25538         * lib/trim.c: Likewise.
25539         * lib/cosl.c: Use GNU style indentation. Insert space before function
25540         argument list.
25541         * lib/sinl.c: Likewise.
25542         * lib/tsearch.c: Insert space after 'for'.
25543         Reported by Jim Meyering.
25544
25545 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25546
25547         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25548         config header before grepping, as it's not present before
25549         autoreconf/configure are run.  Reported by Simon Josefsson.
25550
25551 2010-03-23  Bruno Haible  <bruno@clisp.org>
25552
25553         pt_chown: Make it work with automake < 1.11.
25554         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25555         Reported by Simon Josefsson.
25556
25557 2010-03-23  Bruno Haible  <bruno@clisp.org>
25558
25559         pt_chown: Don't depend on GPLed modules.
25560         * lib/pt_chown.c: Don't include idpriv.h.
25561         (main): Don't drop privileges.
25562         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25563         Reported by Simon Josefsson.
25564
25565 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25566
25567         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25568         suggestions from karl@freefriends.org (Karl Berry).
25569
25570 2010-03-22  Eric Blake  <eblake@redhat.com>
25571
25572         gethostname: further tweaks
25573         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25574         are overriding gethostname.
25575         Suggested by Bruno Haible.
25576
25577 2010-03-21  Bruno Haible  <bruno@clisp.org>
25578
25579         Fix comments.
25580         * lib/forkpty.c (rpl_forkpty): Fix comment.
25581         * lib/openpty.c (rpl_openpty): Likewise.
25582         Reported by Eric Blake.
25583
25584 2010-03-22  Eric Blake  <eblake@redhat.com>
25585
25586         gethostname: fix build on mingw
25587         * lib/unistd.in.h (includes): Work around fact that mingw
25588         <winsock2.h> re-includes <unistd.h>, by avoiding any
25589         redeclarations if we are being included by <winsock2.h>.
25590         Reported by Matthias Bolte.
25591
25592 2010-03-21  Bruno Haible  <bruno@clisp.org>
25593
25594         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25595         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25596         modifications.
25597         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25598         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25599         provide the replacement.
25600         * modules/forkpty (Depends-on): Add openpty, login_tty.
25601         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25602         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25603         * doc/glibc-functions/forkpty.texi: More supported platforms.
25604         * config/srclist.txt: Add forkpty.c (commented).
25605
25606 2010-03-21  Bruno Haible  <bruno@clisp.org>
25607
25608         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25609         (Makefile.am): Verify that PTY_LIB is defined.
25610
25611         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25612
25613 2010-03-21  Bruno Haible  <bruno@clisp.org>
25614
25615         Tests for module 'login_tty'.
25616         * modules/login_tty-tests: New file.
25617         * tests/test-login_tty.c: New file.
25618
25619         New module 'login_tty'.
25620         * lib/login_tty.c: New file.
25621         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25622         * modules/login_tty: New file.
25623         * doc/glibc-functions/login_tty.texi: Mention the new module.
25624
25625 2010-03-21  Bruno Haible  <bruno@clisp.org>
25626
25627         login_tty: Documentation.
25628         * doc/glibc-functions/login_tty.texi: New file.
25629         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25630
25631 2010-03-21  Bruno Haible  <bruno@clisp.org>
25632
25633         pty: Consistent macro naming.
25634         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25635         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25636         * modules/pty (configure.ac): Update.
25637
25638 2010-03-21  Bruno Haible  <bruno@clisp.org>
25639
25640         Tests for openpty: Make stricter.
25641         * tests/test-openpty.c (main): Add test of canonical processing and
25642         erase.
25643         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25644
25645         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25646         * lib/openpty.c (openpty): New replacement function.
25647         * lib/pty.in.h: Include <termios.h>.
25648         (openpty): Update declaration. Add comments.
25649         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25650         is not declared, arrange to provide the replacement. Check for _getpty
25651         and posix_openpt.
25652         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25653         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25654         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25655         * modules/pty-tests (test_pty_c___LDADD): New variable.
25656         * doc/glibc-functions/openpty.texi: More supported platforms.
25657
25658 2010-03-21  Bruno Haible  <bruno@clisp.org>
25659
25660         setenv: Tweaks.
25661         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25662         the test program.
25663         * doc/posix-functions/setenv.texi: Update platforms list.
25664
25665 2010-03-21  Bruno Haible  <bruno@clisp.org>
25666
25667         New module 'unlockpt'.
25668         * lib/unlockpt.c: New file, from glibc with modifications.
25669         * m4/unlockpt.m4: New file.
25670         * modules/unlockpt: New file.
25671         * lib/stdlib.in.h (unlockpt): New declaration.
25672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25673         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25674         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25675         HAVE_UNLOCKPT.
25676         * doc/posix-functions/unlockpt.texi: Mention the new module.
25677         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25678         * config/srclist.txt: Add unlockpt.c (commented).
25679
25680 2010-03-21  Jim Meyering  <meyering@redhat.com>
25681
25682         maint.mk: prohibit inclusion of "intprops.h" without use
25683         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25684
25685 2010-03-21  Bruno Haible  <bruno@clisp.org>
25686
25687         New module 'grantpt'.
25688         * lib/grantpt.c: New file, from glibc with modifications.
25689         * m4/grantpt.m4: New file.
25690         * modules/grantpt: New file.
25691         * lib/stdlib.in.h (grantpt): New declaration.
25692         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25693         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25694         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25695         HAVE_GRANTPT.
25696         * doc/posix-functions/grantpt.texi: Mention the new module.
25697         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25698         * config/srclist.txt: Add grantpt.c (commented).
25699
25700 2010-03-21  Bruno Haible  <bruno@clisp.org>
25701
25702         New module 'pt_chown'.
25703         * lib/pt_chown.c: New file, from glibc with modifications.
25704         * lib/pty-private.h: New file, from glibc with modifications.
25705         * modules/pt_chown: New file.
25706         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25707
25708 2010-03-21  Bruno Haible  <bruno@clisp.org>
25709
25710         Tests for module 'ptsname'.
25711         * modules/ptsname-tests: New file.
25712         * tests/test-ptsname.c: New file.
25713
25714         New module 'ptsname'.
25715         * lib/ptsname.c: New file, from glibc with modifications.
25716         * m4/ptsname.m4: New file.
25717         * modules/ptsname: New file.
25718         * lib/stdlib.in.h (ptsname): New declaration.
25719         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25720         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25721         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25722         HAVE_PTSNAME.
25723         * doc/posix-functions/ptsname.texi: Mention the new module.
25724         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25725         * config/srclist.txt: Add ptsname.c (commented).
25726
25727 2010-03-21  Bruno Haible  <bruno@clisp.org>
25728
25729         Tests for module 'ttyname_r'.
25730         * modules/ttyname_r-tests: New file.
25731         * tests/test-ttyname_r.c: New file.
25732
25733         New module 'ttyname_r'.
25734         * lib/ttyname_r.c: New file.
25735         * m4/ttyname_r.m4: New file.
25736         * modules/ttyname_r: New file.
25737         * lib/unistd.in.h (ttyname_r): New declaration.
25738         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25740         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25741         HAVE_TTYNAME_R.
25742         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25743         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25744
25745 2010-03-20  Bruno Haible  <bruno@clisp.org>
25746
25747         signal: Undefine macro definitions in C++ mode.
25748         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25749         sigfillset): Undefine macro definitions from the system header in C++
25750         mode.
25751         Reported by John W. Eaton <jwe@gnu.org>.
25752
25753 2010-03-20  Bruno Haible  <bruno@clisp.org>
25754
25755         Ensure no #include statements inside extern "C" { ... }.
25756         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25757         contain #include statements.
25758         * lib/time.in.h: Likewise.
25759
25760 2010-03-20  Bruno Haible  <bruno@clisp.org>
25761
25762         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25763         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25764         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25765         Reported by John W. Eaton <jwe@gnu.org>.
25766
25767 2010-03-20  Bruno Haible  <bruno@clisp.org>
25768
25769         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25770         Reported by Jim Meyering.
25771
25772 2010-03-20  Bruno Haible  <bruno@clisp.org>
25773
25774         pipe: Set errno upon failure.
25775         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25776         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25777         errno value in error message.
25778
25779 2010-03-20  Bruno Haible  <bruno@clisp.org>
25780             Jim Meyering  <meyering@redhat.com>
25781
25782         lchown: Avoid "unused variable" warning.
25783         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25784
25785 2010-03-20  Bruno Haible  <bruno@clisp.org>
25786
25787         Work around unlink() bug on MacOS X 10.5.6.
25788         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25789         attempting to unlink a parent directory.
25790         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25791         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25792         activate for the replacement function.
25793         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25794
25795 2010-03-20  Bruno Haible  <bruno@clisp.org>
25796
25797         Fix link errors on Solaris 8.
25798         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25799         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25800
25801 2010-03-19  Jim Meyering  <meyering@redhat.com>
25802
25803         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25804         The _LIBC implementation of build_range_exp correctly honors the
25805         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25806         However, the non-_LIBC implementation would ignore that syntax-bit
25807         flag and return REG_ERANGE unconditionally.
25808         This change makes it honor that flag.
25809         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25810         Make two pointer parameters "const".
25811         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25812         (parse_bracket_exp): Update caller.
25813
25814         regex.m4: correct the reversed range endpoint ([b-a]) test
25815         * m4/regex.m4: When requiring that [b-a] evoke failure,
25816         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25817         test pass once again for x86-based systems.
25818
25819 2010-03-19  Bruno Haible  <bruno@clisp.org>
25820
25821         scandir: Fix link error on Solaris 8.
25822         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25823         macros.
25824
25825 2010-03-19  Bruno Haible  <bruno@clisp.org>
25826
25827         getusershell: Fix documentation.
25828         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25829         module.
25830         * doc/glibc-functions/setusershell.texi: Likewise.
25831
25832         getusershell: Provide declaration, missing on Solaris 9.
25833         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25834         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25835         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25836         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25838         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25839         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25840         HAVE_GETUSERSHELL.
25841         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25842
25843 2010-03-19  Bruno Haible  <bruno@clisp.org>
25844
25845         wctype: Provide iswblank function.
25846         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25847         exists and is fine.
25848         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25849         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25850         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25851         * doc/posix-functions/iswblank.texi: Update.
25852
25853 2010-03-19  Bruno Haible  <bruno@clisp.org>
25854
25855         Tests of module 'pty' in C++ mode.
25856         * modules/pty-tests: New file.
25857         * tests/test-pty-c++.cc: New file.
25858         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25859
25860 2010-03-19  Eric Blake  <eblake@redhat.com>
25861
25862         logb: fix documentation
25863         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25864         1.5 declaration bug.
25865
25866         forkpty, openpty: prefer glibc's const-safe prototype
25867         * lib/forkpty.c (rpl_forkpty): New file.
25868         * lib/openpty.c (rpl_openpty): Likewise.
25869         * modules/forkpty (Files): Distribute it.
25870         * modules/openpty (Files): Likewise.
25871         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25872         check...
25873         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25874         replacement for for non-const BSD signature.
25875         * modules/pty (Makefile.am): Substitute witnesses.
25876         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25877         * tests/test-forkpty.c: Update signature check.
25878         * tests/test-openpty.c: Likewise.
25879         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25880         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25881
25882         forkpty, openpty: split functions into new modules
25883         * modules/pty (Makefile.am): Substitute new witnesses.
25884         (Libraries): Move library detection...
25885         * modules/forkpty: ...into new module.
25886         * modules/openpty: Another new module.
25887         * modules/pty-tests: Rename and split...
25888         * modules/forkpty-tests: ...to this...
25889         * modules/openpty-tests: ...and this.
25890         * tests/test-pty.c: Rename and split...
25891         * tests/test-forkpty.c: ...to this...
25892         * tests/test-openpty.c: ...and this.
25893         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25894         (gl_PTY): Split library searching...
25895         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25896         (gl_FORKPTY, gl_OPENPTY): New macros.
25897         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25898         * NEWS: Mention the split.
25899         * MODULES.html.sh (Misc): Document the modules.
25900         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25901         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25902
25903         pty: improve replacement header
25904         * lib/pty.in.h: New file.
25905         * modules/pty (Files): Ship it.
25906         (Makefile.am): Always build replacement.
25907         * m4/pty.m4: Rename...
25908         * m4/pty_h.m4: ...to this.
25909         (gl_PTY): Modernize setting of witness macros; update check of
25910         forkpty to take proper advantage of cache.
25911         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25912
25913         getopt: avoid compiler warning
25914         * lib/getopt.c (attribute_hidden): Remove unused macro.
25915
25916 2010-03-18  Bruno Haible  <bruno@clisp.org>
25917
25918         Fix link errors on Solaris 8.
25919         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25920         * modules/search-tests (test_search_c___LDADD): Likewise.
25921         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25922         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25923         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25924         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25925         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25926         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25927         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25928
25929 2010-03-18  Bruno Haible  <bruno@clisp.org>
25930
25931         Fix bug introduced on 2010-03-14.
25932         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25933         (gl_SPAWN_H): Require it.
25934         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25935         Reported by Simon Josefsson.
25936
25937 2010-03-18  Bruno Haible  <bruno@clisp.org>
25938
25939         Fix typo introduced on 2009-12-31.
25940         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25941         posix_spawn_file_actions_adddup2.
25942
25943 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25944         and Eric Blake  <eblake@redhat.com>
25945
25946         test-vc-list-files-git: make more robust
25947         * tests/test-vc-list-files-git.sh: Unset problematic environment
25948         variables.  Chain commands together.
25949
25950 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25951
25952         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25953         `AC_CHECK_DECL' invocation.
25954
25955 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25956
25957         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25958         appears before executable statements. Suggested by Petr Sumbera
25959         <Petr.Sumbera@Sun.COM>.
25960
25961 2010-03-14  Bruno Haible  <bruno@clisp.org>
25962
25963         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25964         portability problems. Instead use a simpler test.
25965         (main): Check that invalid arguments are rejected only on Linux.
25966
25967 2010-03-14  Bruno Haible  <bruno@clisp.org>
25968
25969         Fix bug introduced on 2009-12-31.
25970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25971         gl_PREREQ_SYS_H_WINSOCK2 always.
25972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25973         SYS_SOCKET_H variable.
25974         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25975         Update comments.
25976         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25977         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25980         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25981
25982 2010-03-14  Bruno Haible  <bruno@clisp.org>
25983
25984         Fix values returned by sinl, cosl.
25985         * lib/trigl.h: Add specification comments.
25986         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25987         that combines the values from the precomputed table with the values of
25988         the Chebyshev polynomials.
25989
25990 2010-03-14  Bruno Haible  <bruno@clisp.org>
25991
25992         Fix compilation error when modules 'posix_spawn[p]' are not used.
25993         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25995
25996 2010-03-14  Bruno Haible  <bruno@clisp.org>
25997
25998         Fix compilation error on mingw when module 'time_r' is not used.
25999         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26000         is 1.
26001         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26002         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26003         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26004         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26005
26006 2010-03-14  Bruno Haible  <bruno@clisp.org>
26007
26008         Fix compilation error with Sun C.
26009         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26010         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26011         instead of GCC specific ULONG_LONG_MAX.
26012         * lib/xstrtoll.c: Likewise.
26013         * lib/xstrtoull.c: Likewise.
26014
26015 2010-03-13  Bruno Haible  <bruno@clisp.org>
26016
26017         Allow the user to disable C++ code and tests.
26018         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26019         (gl_PROG_ANSI_CXX): Require it.
26020
26021 2010-03-13  Bruno Haible  <bruno@clisp.org>
26022
26023         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26024         cases.
26025
26026 2010-03-13  Bruno Haible  <bruno@clisp.org>
26027
26028         Test that gnulib does not break the standard C++ headers.
26029         * tests/test-locale-c++2.cc: New file.
26030         * modules/locale-tests (Files): Add it.
26031         (Makefile.am): Compile it for test-locale-c++.
26032         * tests/test-math-c++2.cc: New file.
26033         * modules/math-tests (Files): Add it.
26034         (Makefile.am): Compile it for test-math-c++.
26035         * tests/test-signal-c++2.cc: New file.
26036         * modules/signal-tests (Files): Add it.
26037         (Makefile.am): Compile it for test-signal-c++.
26038         * tests/test-stdio-c++2.cc: New file.
26039         * modules/stdio-tests (Files): Add it.
26040         (Makefile.am): Compile it for test-stdio-c++.
26041         * tests/test-stdlib-c++2.cc: New file.
26042         * modules/stdlib-tests (Files): Add it.
26043         (Makefile.am): Compile it for test-stdlib-c++.
26044         * tests/test-string-c++2.cc: New file.
26045         * modules/string-tests (Files): Add it.
26046         (Makefile.am): Compile it for test-string-c++.
26047         * tests/test-time-c++2.cc: New file.
26048         * modules/time-tests (Files): Add it.
26049         (Makefile.am): Compile it for test-time-c++.
26050         Reported by John W. Eaton <jwe@gnu.org>.
26051
26052 2010-03-13  Bruno Haible  <bruno@clisp.org>
26053
26054         * gnulib-tool (func_usage): Clarify which options are available for
26055         --create-testdir and --create-megatestdir.
26056
26057 2010-03-13  Bruno Haible  <bruno@clisp.org>
26058
26059         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26060         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26061         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26062         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26063         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26064         when appropriate.
26065         Reported by Jim Meyering.
26066
26067 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26068
26069         * gnulib-tool (func_import): Explain origin of code.
26070
26071 2010-03-12  Bruno Haible  <bruno@clisp.org>
26072
26073         Fix problem with automake's definition of CXXLINK.
26074         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26075         Reported by Simon Josefsson and Ludovic Courtès.
26076
26077 2010-03-12  Bruno Haible  <bruno@clisp.org>
26078
26079         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26080         stable releases.
26081
26082 2010-03-11  Bruno Haible  <bruno@clisp.org>
26083
26084         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26085         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26086         whether the system provides one variant or multiple variants of the
26087         function.
26088         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26089         C++ compilers.
26090         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26091         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26092         Reported by Jim Meyering.
26093
26094 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26095
26096         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26097
26098 2010-03-08  Bruno Haible  <bruno@clisp.org>
26099
26100         gnulib-tool: Add support for --libtool in --create-testdir.
26101         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26102         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26103
26104 2010-03-08  Eric Blake  <eblake@redhat.com>
26105
26106         gnulib-tool.texi: mention possibility of git submodule
26107         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26108         submodules.
26109         * doc/.gitignore: Ignore another generated file.
26110
26111 2010-03-08  Karl Berry  <karl@gnu.org>
26112
26113         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26114         of committing gnulib files while skipping others.
26115
26116 2010-03-07  Bruno Haible  <bruno@clisp.org>
26117
26118         Tests of module 'wctype' in C++ mode.
26119         * tests/test-wctype-c++.cc: New file.
26120         * modules/wctype-tests (Files): Add it and tests/signature.h.
26121         (Depends-on): Add ansi-c++-opt.
26122         (Makefile.am): Arrange to compile and run test-wctype-c++.
26123
26124         Tests of module 'wchar' in C++ mode.
26125         * tests/test-wchar-c++.cc: New file.
26126         * modules/wchar-tests (Files): Add it and tests/signature.h.
26127         (Depends-on): Add ansi-c++-opt.
26128         (Makefile.am): Arrange to compile and run test-wchar-c++.
26129         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26130         gl_MODULE_INDICATOR.
26131
26132         Tests of module 'unistd' in C++ mode.
26133         * tests/test-unistd-c++.cc: New file.
26134         * modules/unistd-tests (Files): Add it and tests/signature.h.
26135         (Depends-on): Add ansi-c++-opt.
26136         (Makefile.am): Arrange to compile and run test-unistd-c++.
26137         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26138         gl_MODULE_INDICATOR.
26139
26140         Tests of module 'time' in C++ mode.
26141         * tests/test-time-c++.cc: New file.
26142         * modules/time-tests (Files): Add it and tests/signature.h.
26143         (Depends-on): Add ansi-c++-opt.
26144         (Makefile.am): Arrange to compile and run test-time-c++.
26145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26146
26147         Tests of module 'sys_time' in C++ mode.
26148         * tests/test-sys_time-c++.cc: New file.
26149         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26150         (Depends-on): Add ansi-c++-opt.
26151         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26152         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26153         gl_MODULE_INDICATOR.
26154
26155         Tests of module 'sys_stat' in C++ mode.
26156         * tests/test-sys_stat-c++.cc: New file.
26157         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26158         (Depends-on): Add ansi-c++-opt.
26159         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26160         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26161         gl_MODULE_INDICATOR.
26162
26163         Tests of module 'sys_socket' in C++ mode.
26164         * tests/test-sys_socket-c++.cc: New file.
26165         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26166         (Depends-on): Add ansi-c++-opt.
26167         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26169         gl_MODULE_INDICATOR.
26170
26171         Tests of module 'sys_select' in C++ mode.
26172         * tests/test-sys_select-c++.cc: New file.
26173         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26174         (Depends-on): Add ansi-c++-opt.
26175         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26176         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26177         gl_MODULE_INDICATOR.
26178
26179         Tests of module 'sys_ioctl' in C++ mode.
26180         * tests/test-sys_ioctl-c++.cc: New file.
26181         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26182         (Depends-on): Add ansi-c++-opt.
26183         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26184         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26185         gl_MODULE_INDICATOR.
26186
26187         Tests of module 'string' in C++ mode.
26188         * tests/test-string-c++.cc: New file.
26189         * modules/string-tests (Files): Add it and tests/signature.h.
26190         (Depends-on): Add ansi-c++-opt.
26191         (Makefile.am): Arrange to compile and run test-string-c++.
26192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26193         gl_MODULE_INDICATOR.
26194
26195         Tests of module 'stdlib' in C++ mode.
26196         * tests/test-stdlib-c++.cc: New file.
26197         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26198         (Depends-on): Add ansi-c++-opt.
26199         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26200         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26201         gl_MODULE_INDICATOR.
26202
26203         Tests of module 'stdio' in C++ mode.
26204         * tests/test-stdio-c++.cc: New file.
26205         * modules/stdio-tests (Files): Add it and tests/signature.h.
26206         (Depends-on): Add ansi-c++-opt.
26207         (Makefile.am): Arrange to compile and run test-stdio-c++.
26208         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26209         gl_MODULE_INDICATOR.
26210
26211         Tests of module 'spawn' in C++ mode.
26212         * tests/test-spawn-c++.cc: New file.
26213         * modules/spawn-tests (Files): Add it and tests/signature.h.
26214         (Depends-on): Add ansi-c++-opt.
26215         (Makefile.am): Arrange to compile and run test-spawn-c++.
26216         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26217         gl_MODULE_INDICATOR.
26218
26219         Tests of module 'signal' in C++ mode.
26220         * tests/test-signal-c++.cc: New file.
26221         * modules/signal-tests (Files): Add it and tests/signature.h.
26222         (Depends-on): Add ansi-c++-opt.
26223         (Makefile.am): Arrange to compile and run test-signal-c++.
26224         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26225         gl_MODULE_INDICATOR.
26226
26227         Tests of module 'search' in C++ mode.
26228         * tests/test-search-c++.cc: New file.
26229         * modules/search-tests (Files): Add it and tests/signature.h.
26230         (Depends-on): Add ansi-c++-opt.
26231         (Makefile.am): Arrange to compile and run test-search-c++.
26232         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26233         gl_MODULE_INDICATOR.
26234
26235         Tests of module 'math' in C++ mode.
26236         * tests/test-math-c++.cc: New file.
26237         * modules/math-tests (Files): Add it and tests/signature.h.
26238         (Depends-on): Add ansi-c++-opt.
26239         (Makefile.am): Arrange to compile and run test-math-c++.
26240         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26241
26242         Tests of module 'locale' in C++ mode.
26243         * tests/test-locale-c++.cc: New file.
26244         * modules/locale-tests (Files): Add it and tests/signature.h.
26245         (Depends-on): Add ansi-c++-opt.
26246         (Makefile.am): Arrange to compile and run test-locale-c++.
26247         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26248         gl_MODULE_INDICATOR.
26249
26250         Tests of module 'langinfo' in C++ mode.
26251         * tests/test-langinfo-c++.cc: New file.
26252         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26253         (Depends-on): Add ansi-c++-opt.
26254         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26255         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26256         gl_MODULE_INDICATOR.
26257
26258         Tests of module 'iconv-h' in C++ mode.
26259         * tests/test-iconv-h-c++.cc: New file.
26260         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26261         (Depends-on): Add ansi-c++-opt.
26262         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26263
26264         Tests of module 'glob' in C++ mode.
26265         * tests/test-glob-c++.cc: New file.
26266         * modules/glob-tests (Files): Add it.
26267         (Depends-on): Add ansi-c++-opt.
26268         (Makefile.am): Arrange to compile and run test-glob-c++.
26269
26270         Tests of module 'fcntl-h' in C++ mode.
26271         * tests/test-fcntl-h-c++.cc: New file.
26272         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26273         (Depends-on): Add ansi-c++-opt.
26274         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26275         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26276         gl_MODULE_INDICATOR.
26277
26278         Tests of module 'dirent' in C++ mode.
26279         * tests/test-dirent-c++.cc: New file.
26280         * modules/dirent-tests (Files): Add it and tests/signature.h.
26281         (Depends-on): Add ansi-c++-opt.
26282         (Makefile.am): Arrange to compile and run test-dirent-c++.
26283         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26284         gl_MODULE_INDICATOR.
26285
26286         New module 'ansi-c++-opt'.
26287         * modules/ansi-c++-opt: New file.
26288         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26289
26290         Document C++ namespace mode.
26291         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26292
26293         wctype: Avoid #define replacements in C++ mode.
26294         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26295         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26296         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26297         In C++, define a namespaced alias symbol.
26298         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26299         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26300         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26301         rule.
26302
26303         wchar: Avoid #define replacements in C++ mode.
26304         * lib/wchar.in.h: Include c++defs.h.
26305         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26306         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26307         symbol.
26308         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26309         * modules/wchar (Depends-on): Add c++defs.
26310         (Makefile.am): Update wchar.h rule.
26311
26312         unistd: Avoid #define replacements in C++ mode.
26313         * lib/unistd.in.h: Include c++defs.h.
26314         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26315         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26316         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26317         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26318         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26319         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26320         symbol.
26321         (environ): Update.
26322         * modules/unistd (Depends-on): Add c++defs.
26323         (Makefile.am): Update unistd.h rule.
26324
26325         time: Avoid #define replacements in C++ mode.
26326         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26327         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26328         define a namespaced alias symbol.
26329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26330         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26331         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26332         * modules/time (Depends-on): Add c++defs, warn-on-use.
26333         (Makefile.am): Update time.h rule.
26334         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26335         * modules/nanosleep (configure.ac): Likewise.
26336         * modules/strptime (configure.ac): Likewise.
26337         * modules/timegm (configure.ac): Likewise.
26338
26339         sys_time: Avoid #define replacements in C++ mode.
26340         * lib/sys_time.in.h: Include c++defs.h.
26341         (gettimeofday): In C++, define a namespaced alias symbol.
26342         * modules/sys_time (Depends-on): Add c++defs.
26343         (Makefile.am): Update sys/time.h rule.
26344
26345         sys_stat: Avoid #define replacements in C++ mode.
26346         * lib/sys_stat.in.h: Include c++defs.h.
26347         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26348         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26349         namespaced alias symbol.
26350         In C++, define a namespaced alias symbol.
26351         * modules/sys_stat (Depends-on): Add c++defs.
26352         (Makefile.am): Update sys/stat.h rule.
26353
26354         sys_socket: Avoid #define replacements in C++ mode.
26355         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26356         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26357         definitions also when the system has a <sys/socket.h>.
26358         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26359         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26360         In C++, define a namespaced alias symbol.
26361         * modules/sys_socket (Depends-on): Add c++defs.
26362         (Makefile.am): Update sys/socket.h rule.
26363
26364         sys_select: Avoid #define replacements in C++ mode.
26365         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26366         definitions also when the system has a <sys/select.h>.
26367         (select): In C++, define a namespaced alias symbol.
26368         * modules/sys_select (Depends-on): Add c++defs.
26369         (Makefile.am): Update sys/select.h rule.
26370
26371         sys_ioctl: Avoid #define replacements in C++ mode.
26372         * lib/sys_ioctl.in.h: Include c++defs.h.
26373         (ioctl): In C++, define a namespaced alias symbol.
26374         * modules/sys_ioctl (Depends-on): Add c++defs.
26375         (Makefile.am): Update sys/ioctl.h rule.
26376
26377         string: Avoid #define replacements in C++ mode.
26378         * lib/string.in.h: Include c++defs.h.
26379         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26380         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26381         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26382         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26383         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26384         * modules/string (Depends-on): Add c++defs.
26385         (Makefile.am): Update string.h rule.
26386
26387         stdlib: Avoid #define replacements in C++ mode.
26388         * lib/stdlib.in.h: Include c++defs.h.
26389         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26390         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26391         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26392         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26393         symbol.
26394         * modules/stdlib (Depends-on): Add c++defs.
26395         (Makefile.am): Update stdlib.h rule.
26396
26397         stdio: Avoid #define replacements in C++ mode.
26398         * lib/stdio.in.h: Include c++defs.h.
26399         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26400         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26401         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26402         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26403         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26404         namespaced alias symbol.
26405         * modules/stdio (Depends-on): Add c++defs.
26406         (Makefile.am): Update stdio.h rule.
26407
26408         spawn: Avoid #define replacements in C++ mode.
26409         * lib/spawn.in.h: Include c++defs.h.
26410         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26411         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26412         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26413         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26414         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26415         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26416         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26417         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26418         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26419         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26420         In C++, define a namespaced alias symbol.
26421         * modules/spawn (Depends-on): Add c++defs.
26422         (Makefile.am): Update spawn.h rule.
26423
26424         signal: Avoid #define replacements in C++ mode.
26425         * lib/signal.in.h: Include c++defs.h.
26426         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26427         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26428         namespaced alias symbol.
26429         * modules/signal (Depends-on): Add c++defs.
26430         (Makefile.am): Update signal.h rule.
26431
26432         search: Avoid #define replacements in C++ mode.
26433         * lib/search.in.h: Include c++defs.h.
26434         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26435         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26436         symbol.
26437         * modules/search (Depends-on): Add c++defs.
26438         (Makefile.am): Update search.h rule.
26439
26440         math: Avoid #define replacements in C++ mode.
26441         * lib/math.in.h: Include c++defs.h.
26442         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26443         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26444         trunc, truncl): In C++, define a namespaced alias symbol.
26445         * modules/math (Depends-on): Add c++defs.
26446         (Makefile.am): Update math.h rule.
26447
26448         locale: Avoid #define replacements in C++ mode.
26449         * lib/locale.in.h: Include c++defs.h.
26450         (duplocale): In C++, define a namespaced alias symbol.
26451         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26452         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26453         * modules/locale (Depends-on): Add c++defs.
26454         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26455
26456         langinfo: Avoid #define replacements in C++ mode.
26457         * lib/langinfo.in.h: Include c++defs.h.
26458         (nl_langinfo): In C++, define a namespaced alias symbol.
26459         * modules/langinfo (Depends-on): Add c++defs.
26460         (Makefile.am): Update langinfo.h rule.
26461
26462         iconv-h: Avoid #define replacements in C++ mode.
26463         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26464         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26465         symbol.
26466         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26467         whenever iconv is present.
26468         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26469         (Makefile.am): Update iconv.h rule.
26470
26471         glob: Avoid #define replacements in C++ mode.
26472         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26473         (_gl_glob_errfunc_fn): New type.
26474         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26475         symbol.
26476         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26477         (Makefile.am): Update glob.h rule.
26478
26479         fcntl-h: Avoid #define replacements in C++ mode.
26480         * lib/fcntl.in.h: Include c++defs.h.
26481         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26482         * modules/fcntl-h (Depends-on): Add c++defs.
26483         (Makefile.am): Update fcntl.h rule.
26484
26485         dirent: Avoid #define replacements in C++ mode.
26486         * lib/dirent.in.h: Include c++defs.h.
26487         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26488         namespaced alias symbol.
26489         (dirfd): Update declaration.
26490         * modules/dirent (Depends-on): Add c++defs.
26491         (Makefile.am): Update dirent.h rule.
26492
26493         ctype: Make it usable in C++ code.
26494         * lib/ctype.in.h: Include c++defs.h.
26495         (isblank): Declare as extern "C".
26496         * modules/ctype (Depends-on): Add c++defs.
26497         (Makefile.am): Update ctype.h rule.
26498
26499         New module 'c++defs'.
26500         * modules/c++defs: New file.
26501         * build-aux/c++defs.h: New file.
26502         Reported by John W. Eaton <jwe@gnu.org>.
26503
26504 2010-03-07  Bruno Haible  <bruno@clisp.org>
26505
26506         logb: Provide missing declaration for Cygwin.
26507         * lib/math.in.h (logb): New declaration.
26508         * m4/logb.m4: New file.
26509         * modules/logb (Files): Add m4/logb.m4.
26510         (Depends-on): Add math.
26511         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26512         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26514         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26515         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26516
26517 2010-03-07  Bruno Haible  <bruno@clisp.org>
26518
26519         Fix test-cond link error.
26520         * tests/test-cond.c: Include <stdio.h>.
26521
26522 2010-03-07  Bruno Haible  <bruno@clisp.org>
26523
26524         Fix test-dirent-safer link error.
26525         * modules/dirent-safer-tests (Makefile.am): Define
26526         test_dirent_safer_LDADD.
26527
26528 2010-03-07  Bruno Haible  <bruno@clisp.org>
26529
26530         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26531         among default module list.
26532
26533 2010-03-07  Bruno Haible  <bruno@clisp.org>
26534
26535         Fix link error on platforms with GNU libiconv.
26536         * modules/unistr/u8-strcoll-tests (Makefile): Define
26537         test_u8_strcoll_LDADD.
26538         * modules/unistr/u16-strcoll-tests (Makefile): Define
26539         test_u16_strcoll_LDADD.
26540         * modules/unistr/u32-strcoll-tests (Makefile): Define
26541         test_u32_strcoll_LDADD.
26542
26543 2010-03-07  Bruno Haible  <bruno@clisp.org>
26544
26545         Use POSIX declarations for socket functions.
26546         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26547         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26548         rpl_sendto): Change declaration to match POSIX.
26549         * lib/connect.c (rpl_connect): Likewise.
26550         * lib/accept.c (rpl_accept): Likewise.
26551         * lib/bind.c (rpl_bind): Likewise.
26552         * lib/getpeername.c (rpl_getpeername): Likewise.
26553         * lib/getsockname.c (rpl_getsockname): Likewise.
26554         * lib/recv.c (rpl_recv): Likewise.
26555         * lib/send.c (rpl_send): Likewise.
26556         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26557         * lib/sendto.c (rpl_sendto): Likewise.
26558
26559 2010-03-06  Bruno Haible  <bruno@clisp.org>
26560
26561         Clarify access, euidaccess, faccessat.
26562         * doc/posix-functions/faccessat.texi: Mention security problem under
26563         "Other problems", not "Portability problems".
26564         * doc/posix-functions/access.texi: Likewise. Mention a related security
26565         problem.
26566         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26567         * lib/euidaccess.c: Add comments about platforms.
26568         * lib/unistd.in.h (access, euidaccess): Add warnings.
26569
26570 2010-03-07  Bruno Haible  <bruno@clisp.org>
26571
26572         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26573         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26574         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26575         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26576         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26577         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26578         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26579         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26580         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26582         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26583         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26584         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26585         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26586         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26587         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26588         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26589         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26590         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26591         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26592         Likewise.
26593         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26594         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26595         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26596         Likewise.
26597         * tests/test-spawn.c (main): Make it work when
26598         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26599
26600 2010-03-07  Bruno Haible  <bruno@clisp.org>
26601
26602         Fix incorrect Makefile.am generation in German locale.
26603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26604         Execute sed command with character range in C locale.
26605
26606 2010-03-06  Bruno Haible  <bruno@clisp.org>
26607
26608         Tests for module 'iconv-h'.
26609         * modules/iconv-h-tests: New file.
26610         * tests/test-iconv-h.c: New file.
26611
26612         New module 'iconv-h'.
26613         * modules/iconv-h: New file.
26614         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26615         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26616         (configure.ac): Remove gl_ICONV_H.
26617         (Makefile.am): Remove rule for iconv.h.
26618
26619 2010-03-06  Bruno Haible  <bruno@clisp.org>
26620
26621         More consistent naming of *.m4 files.
26622         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26623         * modules/wctype (Files): Update.
26624
26625         More consistent naming of *.m4 files.
26626         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26627         * modules/wchar (Files): Update.
26628
26629 2010-03-06  Jim Meyering  <meyering@redhat.com>
26630
26631         euidaccess: relax license to LGPLv2+
26632         * modules/euidaccess (License): Relax to LGPLv2+.
26633
26634 2010-03-06  Bruno Haible  <bruno@clisp.org>
26635
26636         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26637         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26638         (Makefile.am): Augment lib_SOURCES instead.
26639
26640 2010-03-04  Jim Meyering  <meyering@redhat.com>
26641
26642         utime: remove obsolete module
26643         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26644         unnecessary for years, and has been marked as obsolete for 10 months.
26645         * modules/utime: Remove file.
26646         * lib/utime.c: Remove file.
26647         * m4/utime.m4: Remove file.
26648         * m4/utimes-null.m4: Remove file.
26649         * doc/posix-functions/utime.texi (utime): Remove reference to
26650         the module.  Move the sole "fixed by gnulib" item into the
26651         "problems not fixed by Gnulib" list.
26652         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26653
26654 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26655
26656         * modules/exit (License): Relax license to LGPLv2+.
26657         (Status): Mark as obsolete.
26658         * NEWS: Mention deprecated 'exit' module.
26659         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26660         of now obsolete 'exit'.
26661
26662 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26663
26664         fts-lgpl: remove unused module
26665         * modules/fts-lgpl: Remove.
26666         * MODULES.html.sh (func_all_modules): Adjust.
26667         * check-module (find_included_lib_files): Adjust.
26668         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26669
26670 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26671
26672         copy-acl: enhance Solaris ACL error handling
26673         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26674         * lib/set-mode-acl.c (qset_acl): Likewise.
26675
26676 2010-03-02  Bruno Haible  <bruno@clisp.org>
26677
26678         spawn: Don't override the system defined values on FreeBSD 8.
26679         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26680         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26681         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26682         if HAVE_POSIX_SPAWN is 1.
26683         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26684
26685 2010-03-01  Bruno Haible  <bruno@clisp.org>
26686
26687         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26688         regarding Automake.
26689
26690 2010-02-25  Bruno Haible  <bruno@clisp.org>
26691
26692         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26693         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26694         setting, not afterwards.
26695         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26696
26697 2010-02-24  Eric Blake  <eblake@redhat.com>
26698
26699         bootstrap, git-version-gen: use timestamp
26700         * build-aux/git-version-gen (scriptversion): Force UTC.
26701         * build-aux/bootstrap (scriptversion): New variable.
26702
26703         bootstrap: allow older git
26704         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26705         older than 1.6.4.  Requested by the libvirt project.
26706
26707 2010-02-23  Eric Blake  <eblake@redhat.com>
26708
26709         warn-on-use: work with old autoconf
26710         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26711         AS_VAR semantics of autoconf 2.60.
26712         Reported by Bruno Haible.
26713
26714         bootstrap: improve some comments
26715         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26716         clarification comments.
26717
26718         gettimeofday: provide correct function
26719         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26720         when replacement is declared, otherwise provide gettimeofday.
26721         Reported by Michael Goffioul.
26722
26723 2010-02-23  Jim Meyering  <meyering@redhat.com>
26724
26725         lib-ignore: relax license to "unlimited", not LGPLv2+
26726         * modules/lib-ignore (License): Relax to "unlimited".
26727
26728 2010-02-23  Jim Meyering  <meyering@redhat.com>
26729
26730         lib-ignore: relax license to LGPLv2+
26731         * modules/lib-ignore (License): Relax to LGPLv2+.
26732
26733 2010-02-22  Eric Blake  <eblake@redhat.com>
26734
26735         lseek: avoid bash 3.2 broken pipe bug
26736         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26737         warning from bash 3.2.
26738         Reported by Ben Pfaff, with analysis from Bruno Haible.
26739
26740         bootstrap: support non-FSF copyright holder
26741         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26742         bootstrap.conf override of COPYRIGHT_HOLDER.
26743         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26744
26745         bootstrap: interoperate with gettext 0.14.1
26746         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26747
26748         bootstrap: allow for alternate submodule location
26749         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26750         hardcoding submodule location.
26751         (gnulib_mk): Allow direct use of Makefile.am.
26752
26753         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26754         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26755         rather than reconfiguring where the submodule points.
26756
26757         gettimeofday: restore support for platforms that lack function
26758         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26759         replacement if function is missing.
26760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26761         * modules/sys_time (Makefile.am): Substitute it.
26762         * lib/sys_time.in.h (gettimeofday): Check it.
26763         Reported by Michael Goffioul.
26764
26765 2010-02-21  Bruno Haible  <bruno@clisp.org>
26766
26767         * lib/stdio.in.h (obstack_printf): Fix typo.
26768
26769 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26770
26771         vc-list-files: use bzr ls's -R option
26772         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26773         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26774
26775 2010-02-21  Jim Meyering  <meyering@redhat.com>
26776
26777         init.sh: fix EXEEXT shims to work also for names like test-prog
26778         * tests/init.sh: Re-exec a better shell, when needed.
26779         If the current shell lacks support for posix $(...), an init.sh-using
26780         test will now try to find a shell that supports that.  If EXEEXT is
26781         nonempty, we also require support for hyphen-in-alias-name and shell
26782         substitutions like ${var#glob}.  Failure to find such a shell results
26783         in a skipped test.
26784
26785 2010-02-21  Bruno Haible  <bruno@clisp.org>
26786
26787         Really work around around "broken pipe" error message from bash 3.2.
26788         * gnulib-tool (func_reset_sigpipe): Remove function.
26789         (echo): In bash 3.2, define to a function that uses printf.
26790         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26791
26792 2010-02-20  Bruno Haible  <bruno@clisp.org>
26793
26794         Restore support for automake 1.9.6 with autoconf 2.61.
26795         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26796         Reported by James Youngman <jay@gnu.org>.
26797
26798 2010-02-20  Bruno Haible  <bruno@clisp.org>
26799
26800         Improve *printf warning condition.
26801         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26802         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26803         and the function is overridden due to SIGPIPE emulation.
26804
26805 2010-02-20  Bruno Haible  <bruno@clisp.org>
26806
26807         * lib/stdio.in.h: Tweak comments.
26808
26809 2010-02-19  Bruno Haible  <bruno@clisp.org>
26810
26811         Make it easier to find modules. New gnulib-tool option '--find'.
26812         * gnulib-tool: New option --find.
26813         (func_usage): Document it.
26814         (func_sanitize_modulelist): New function, extracted from
26815         func_all_modules.
26816         (func_all_modules): Invoke it.
26817         * doc/gnulib-tool.texi (Which modules?): New node.
26818
26819 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26820
26821         * lib/sys_select.in.h: Provide select replacement even if
26822         sys/select.h exists on a system, for Interix.
26823
26824 2010-02-18  Jim Meyering  <meyering@redhat.com>
26825
26826         init.sh: don't use $(...) just yet
26827         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26828         to accommodate e.g., Solaris' /bin/sh.
26829
26830 2010-02-17  Bruno Haible  <bruno@clisp.org>
26831
26832         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26833         Reported by Ludovic Courtès <ludo@gnu.org>.
26834
26835 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26836
26837         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26838         linking with -lintl.
26839
26840 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26841
26842         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26843         if not provided by the system's netdb.h.  Reported by
26844         ludo@gnu.org (Ludovic Courtès).
26845
26846 2010-02-15  Jim Meyering  <meyering@redhat.com>
26847
26848         init.sh: improve portability and efficiency
26849         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26850         "dummy" in a for loop.
26851         Use '!', not '^' to select the complement of a character set used
26852         in a "case" statement.
26853         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26854         Suggestions from Eric Blake.
26855
26856         init.sh: automatically accommodate programs with the .exe suffix
26857         Automatically arrange for an invocation of "prog" to execute the
26858         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26859         may use the simpler "prog", yet still work when built on a system
26860         that requires specifying the added suffix.
26861         Do this by constructing a function named "prog" that invokes
26862         "prog.exe" for each .exe file in selected directories.
26863         * tests/init.sh (find_exe_basenames_): New function.
26864         (create_exe_shim_functions_): New function.
26865         (path_prepend_): Use it.
26866
26867         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26868         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26869         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26870
26871 2010-02-14  Jim Meyering  <meyering@redhat.com>
26872
26873         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26874         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26875         (sc_prohibit_hash_pjw_without_use): New rule.
26876
26877         maint.mk: allow the default upload destination dir to be overridden
26878         * top/maint.mk (upload_dest_dir_): Define with a default that
26879         preserves the status quo.
26880         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26881         Reported by Peter Simons.
26882
26883         maint.mk: prohibit inclusion of "hash.h" without_use
26884         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26885
26886 2010-02-10  Jim Meyering  <meyering@redhat.com>
26887
26888         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26889         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26890
26891 2010-02-09  Eric Blake  <ebb9@byu.net>
26892         and Bruno Haible  <bruno@clisp.org>
26893
26894         obstack-printf-posix: ensure declaration
26895         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26896         extracted from gl_FUNC_OBSTACK_PRINTF.
26897         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26898         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26899         Likewise.
26900         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26901         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26902         0.
26903
26904 2010-02-08  Bruno Haible  <bruno@clisp.org>
26905
26906         gnulib-tool: Fix typo in 2010-02-07 commit.
26907         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26908         Reported by Eric Blake.
26909
26910 2010-02-07  Bruno Haible  <bruno@clisp.org>
26911
26912         gnulib-tool: Fix up caching patches.
26913         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26914         option --no-cache. Use associative arrays when supported by the shell.
26915         (sed_comments): New variable.
26916         (modcache): Renamed from do_cache.
26917         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26918         abbreviate unnecessarily.
26919         (have_associative): New variable.
26920         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26921         way also for ksh and zsh.
26922         (func_init_sed_convert_to_cache_statements): New function, extracted
26923         from func_cache_lookup_module. Add support for associative arrays.
26924         Don't set the c_MODULE_cached variable here. Ignore all lines before
26925         the first field header. Remove only the final newline, not all trailing
26926         newlines. Support empty fields correctly. Limit the use of 'eval' to
26927         assignments.
26928         (func_get_description, func_get_status, func_get_notice,
26929         func_get_applicability, func_get_filelist, func_get_dependencies,
26930         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26931         func_get_automake_snippet, func_get_include_directive,
26932         func_get_link_directive, func_get_license, func_get_maintainer):
26933         Update documentation. List the unoptimized code first. Add support for
26934         associative arrays. Limit the use of 'eval' to assignments.
26935         (func_get_applicability): Undo stylistic pessimisations.
26936         (func_get_automake_snippet, func_get_include_directive): Reduce code
26937         duplication.
26938         (func_modules_transitive_closure, func_modules_add_dummy,
26939         func_modules_notice, func_modules_to_filelist, func_add_file,
26940         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26941         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26942         func_create_testdir, func_create_megatestdir): Update documentation.
26943
26944 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26945
26946         * gnulib-tool (func_cache_lookup_module): Store the module name
26947         belonging to the cache variable; error out if two different
26948         module names map to the same cache variable name.
26949
26950 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26951
26952         gnulib-tool: Make caching optional.
26953         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26954         Update matching short versions of --no-changelog.
26955         (func_usage): Update.
26956         (sed_extract_cache_prog): Renamed from ...
26957         (sed_extract_prog): ... this; revert to old extraction script.
26958         (func_get_description, func_get_status)
26959         (func_get_notice, func_get_applicability, func_get_filelist)
26960         (func_get_dependencies, func_get_autoconf_early_snippet)
26961         (func_get_autoconf_snippet, func_get_automake_snippet)
26962         (func_get_include_directive, func_get_link_directive)
26963         (func_get_license, func_get_maintainer): If $do_cache is false,
26964         use old, non-caching extraction scripts.
26965         Suggestion by Bruno Haible.
26966
26967 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26968
26969         gnulib-tool: cache module metainformation.
26970         * gnulib-tool (sed_extract_prog): Match newline before each
26971         header, and rewrite header to a shell variable suffix.
26972         (func_cache_var, func_cache_lookup_module): New functions,
26973         to turn a module name into a cache variable prefix, and to
26974         look up and cache module metainformation.
26975         (func_get_description, func_get_status)
26976         (func_get_notice, func_get_applicability, func_get_filelist)
26977         (func_get_dependencies, func_get_autoconf_early_snippet)
26978         (func_get_autoconf_snippet, func_get_automake_snippet)
26979         (func_get_include_directive, func_get_link_directive)
26980         (func_get_license, func_get_maintainer): Use
26981         func_cache_lookup_module.
26982
26983 2010-02-07  Bruno Haible  <bruno@clisp.org>
26984
26985         fnctl: Fix missing dependency.
26986         * modules/fcntl (Depends-on): Add getdtablesize.
26987         Reported by John W. Eaton <jwe@gnu.org>.
26988
26989 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26990
26991         Argp: fix recognition of short alias options.
26992
26993         * lib/argp-parse.c (convert_options): Fix improper use of
26994         `|' between character values.
26995         * tests/test-argp.c (group1_option): New alias option
26996         --read (-r).
26997         (group1_parser): Special handling for 'r'.
26998         (test15): New test case.
26999         (test_fun): Add test15.
27000         * tests/test-argp-2.sh: Update expected --help and --usage
27001         outputs.
27002
27003 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27004
27005         * tests/test-argp.c: Fix indentation.
27006
27007 2010-02-04  Eric Blake  <ebb9@byu.net>
27008
27009         gettimeofday: expose type of second argument
27010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27011         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27012         * tests/test-gettimeofday.c: Use it to silence warning.
27013         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27014         the issue.
27015
27016 2010-02-03  Jim Meyering  <meyering@redhat.com>
27017
27018         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27019         * lib/regcomp.c (TYPE_SIGNED): Define.
27020         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27021
27022         regcomp.c: avoid a new -Wshadow warning
27023         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27024
27025 2010-02-01  Jim Meyering  <meyering@redhat.com>
27026
27027         removing useless parentheses in cpp #define directives
27028         For motivation, see commit c0221df4, "define STREQ(a,b)
27029         consistently, removing useless parentheses"
27030         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27031         * lib/mountlist.c (MNT_IGNORE): Likewise.
27032         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27033
27034 2010-02-01  Eric Blake  <ebb9@byu.net>
27035
27036         sys_time: use link-warning
27037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27038         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27039         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27040         * modules/sys_time (Depends-on): Add warn-on-use.
27041         (Makefile.am): Always build replacement.
27042         (configure.ac): Update substitutions.
27043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27044         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27045         bother with SYS_TIME_H.
27046         * modules/gettimeofday (configure.ac): Declare indicator.
27047         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27048         in use.
27049
27050         closein-tests: silence compiler warning
27051         * tests/test-closein.c (main): Ignore fread result.
27052         * modules/closein-tests (Depends-on): Add ignore-value.
27053
27054         tests: silence warning about system return
27055         * tests/test-areadlink-with-size.c (main): Ignore system result.
27056         * tests/test-areadlink.c (main): Likewise.
27057         * tests/test-areadlinkat-with-size.c (main): Likewise.
27058         * tests/test-areadlinkat.c (main): Likewise.
27059         * tests/test-canonicalize-lgpl.c (main): Likewise.
27060         * tests/test-canonicalize.c (main): Likewise.
27061         * tests/test-chown.c (main): Likewise.
27062         * tests/test-fchownat.c (main): Likewise.
27063         * tests/test-fdutimensat.c (main): Likewise.
27064         * tests/test-fstatat.c (main): Likewise.
27065         * tests/test-futimens.c (main): Likewise.
27066         * tests/test-lchown.c (main): Likewise.
27067         * tests/test-link.c (main): Likewise.
27068         * tests/test-linkat.c (main): Likewise.
27069         * tests/test-lstat.c (main): Likewise.
27070         * tests/test-mkdir.c (main): Likewise.
27071         * tests/test-mkdirat.c (main): Likewise.
27072         * tests/test-mkfifo.c (main): Likewise.
27073         * tests/test-mkfifoat.c (main): Likewise.
27074         * tests/test-mknod.c (main): Likewise.
27075         * tests/test-readlink.c (main): Likewise.
27076         * tests/test-remove.c (main): Likewise.
27077         * tests/test-rename.c (main): Likewise.
27078         * tests/test-renameat.c (main): Likewise.
27079         * tests/test-rmdir.c (main): Likewise.
27080         * tests/test-symlink.c (main): Likewise.
27081         * tests/test-symlinkat.c (main): Likewise.
27082         * tests/test-unlink.c (main): Likewise.
27083         * tests/test-unlinkat.c (main): Likewise.
27084         * tests/test-utimens.c (main): Likewise.
27085         * tests/test-utimensat.c (main): Likewise.
27086         * modules/areadlink-tests (Depends-on): Add ignore-value.
27087         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27088         * modules/areadlinkat-tests (Depends-on): Likewise.
27089         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27090         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27091         * modules/canonicalize-tests (Depends-on): Likewise.
27092         * modules/chown-tests (Depends-on): Likewise.
27093         * modules/fdutimensat-tests (Depends-on): Likewise.
27094         * modules/futimens-tests (Depends-on): Likewise.
27095         * modules/lchown-tests (Depends-on): Likewise.
27096         * modules/link-tests (Depends-on): Likewise.
27097         * modules/linkat-tests (Depends-on): Likewise.
27098         * modules/lstat-tests (Depends-on): Likewise.
27099         * modules/mkdir-tests (Depends-on): Likewise.
27100         * modules/mkfifo-tests (Depends-on): Likewise.
27101         * modules/mkfifoat-tests (Depends-on): Likewise.
27102         * modules/mknod-tests (Depends-on): Likewise.
27103         * modules/openat-tests (Depends-on): Likewise.
27104         * modules/readlink-tests (Depends-on): Likewise.
27105         * modules/remove-tests (Depends-on): Likewise.
27106         * modules/rename-tests (Depends-on): Likewise.
27107         * modules/renameat-tests (Depends-on): Likewise.
27108         * modules/rmdir-tests (Depends-on): Likewise.
27109         * modules/symlink-tests (Depends-on): Likewise.
27110         * modules/symlinkat-tests (Depends-on): Likewise.
27111         * modules/unlink-tests (Depends-on): Likewise.
27112         * modules/utimens-tests (Depends-on): Likewise.
27113         * modules/utimensat-tests (Depends-on): Likewise.
27114
27115 2010-01-31  Bruno Haible  <bruno@clisp.org>
27116
27117         Perform the same test for many <math.h> functions.
27118         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27119         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27120         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27121         of gl_MATHFUNC.
27122         * modules/acos (configure.ac): Likewise.
27123         * modules/asin (configure.ac): Likewise.
27124         * modules/atan (configure.ac): Likewise.
27125         * modules/atan2 (configure.ac): Likewise.
27126         * modules/cbrt (configure.ac): Likewise.
27127         * modules/copysign (configure.ac): Likewise.
27128         * modules/cos (configure.ac): Likewise.
27129         * modules/cosh (configure.ac): Likewise.
27130         * modules/erf (configure.ac): Likewise.
27131         * modules/erfc (configure.ac): Likewise.
27132         * modules/exp (configure.ac): Likewise.
27133         * modules/fmod (configure.ac): Likewise.
27134         * modules/hypot (configure.ac): Likewise.
27135         * modules/j0 (configure.ac): Likewise.
27136         * modules/j1 (configure.ac): Likewise.
27137         * modules/jn (configure.ac): Likewise.
27138         * modules/lgamma (configure.ac): Likewise.
27139         * modules/log (configure.ac): Likewise.
27140         * modules/log10 (configure.ac): Likewise.
27141         * modules/log1p (configure.ac): Likewise.
27142         * modules/pow (configure.ac): Likewise.
27143         * modules/remainder (configure.ac): Likewise.
27144         * modules/sin (configure.ac): Likewise.
27145         * modules/sinh (configure.ac): Likewise.
27146         * modules/tan (configure.ac): Likewise.
27147         * modules/tanh (configure.ac): Likewise.
27148         * modules/y0 (configure.ac): Likewise.
27149         * modules/y1 (configure.ac): Likewise.
27150         * modules/yn (configure.ac): Likewise.
27151         Suggested by Paolo Bonzini.
27152
27153 2010-01-31  Bruno Haible  <bruno@clisp.org>
27154
27155         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27156
27157 2010-01-31  Bruno Haible  <bruno@clisp.org>
27158
27159         Work around getdelim() bug on FreeBSD 8.0.
27160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27161         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27162         not work.
27163         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27164         is 1.
27165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27166         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27167         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27168         a non-zero size.
27169         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27170
27171 2010-01-31  Bruno Haible  <bruno@clisp.org>
27172
27173         Work around getline() bug on FreeBSD 8.0.
27174         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27175         and a non-zero size.
27176         * tests/test-getline.c (main): Likewise.
27177         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27178         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27179
27180 2010-01-28  Eric Blake  <ebb9@byu.net>
27181
27182         regex: fix build failure
27183         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27184         platforms.
27185
27186 2010-01-28  Jim Meyering  <meyering@redhat.com>
27187
27188         regex: do not ignore memory allocation failure
27189         * lib/regex_internal.c (create_cd_newstate): Detect
27190         re_node_set_init_copy failure.   Extracted from glibc commit
27191         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27192
27193         regex: sync more white-space changes from libc
27194         * lib/regex_internal.c: White-space only changes.
27195         * lib/regexec.c: Likewise.
27196
27197         regex: add many uses of __attribute_warn_unused_result__
27198         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27199         * lib/regexec.c: Likewise.
27200         Extracted from a messy glibc commit.
27201
27202         regcomp.c: spelling and merge-artifact from glibc
27203         * lib/regcomp.c: Merge remainder of glibc's
27204         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27205
27206         regcomp.c: sync white-space changes from glibc
27207         * lib/regcomp.c: Merge to accommodate white space
27208         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27209
27210         regcomp.c: do not ignore internal return values
27211         * lib/regcomp.c: Do not ignore internal return values.
27212         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27213         but without its white-space changes and spelling fixes.
27214
27215         regex_internal.h: define __attribute_warn_unused_result__
27216         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27217
27218         maint: add a syntax-check rule to check for vulnerable Makefile.in
27219         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27220
27221 2010-01-27  Jim Meyering  <meyering@redhat.com>
27222
27223         ncftpput-ftp: clean up spaces
27224         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27225         Remove trailing blanks.
27226
27227 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27228
27229         * build-aux/git-version-gen: Fix copyright statement.
27230         * build-aux/gnupload: Likewise.
27231         * tests/test-arcfour.c: Likewise.
27232         * tests/test-arctwo.c: Likewise.
27233         * tests/test-count-one-bits.c: Likewise.
27234         * tests/test-crc.c: Likewise.
27235         * tests/test-des.c: Likewise.
27236         * tests/test-gc-arcfour.c: Likewise.
27237         * tests/test-gc-arctwo.c: Likewise.
27238         * tests/test-gc-des.c: Likewise.
27239         * tests/test-gc-hmac-md5.c: Likewise.
27240         * tests/test-gc-hmac-sha1.c: Likewise.
27241         * tests/test-gc-md2.c: Likewise.
27242         * tests/test-gc-md4.c: Likewise.
27243         * tests/test-gc-md5.c: Likewise.
27244         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27245         * tests/test-gc-rijndael.c: Likewise.
27246         * tests/test-gc-sha1.c: Likewise.
27247         * tests/test-gc.c: Likewise.
27248         * tests/test-gethostname.c: Likewise.
27249         * tests/test-gettimeofday.c: Likewise.
27250         * tests/test-hash.c: Likewise.
27251         * tests/test-hmac-md5.c: Likewise.
27252         * tests/test-hmac-sha1.c: Likewise.
27253         * tests/test-md2.c: Likewise.
27254         * tests/test-md4.c: Likewise.
27255         * tests/test-md5.c: Likewise.
27256         * tests/test-memchr.c: Likewise.
27257         * tests/test-memchr2.c: Likewise.
27258         * tests/test-memcmp.c: Likewise.
27259         * tests/test-memmem.c: Likewise.
27260         * tests/test-memrchr.c: Likewise.
27261         * tests/test-rawmemchr.c: Likewise.
27262         * tests/test-read-file.c: Likewise.
27263         * tests/test-rijndael.c: Likewise.
27264         * tests/test-sockets.c: Likewise.
27265         * tests/test-strchrnul.c: Likewise.
27266         * tests/test-strstr.c: Likewise.
27267         * tests/test-strtod.c: Likewise.
27268         * build-aux/ncftpput-ftp: Likewise.
27269
27270 2010-01-26  Eric Blake  <ebb9@byu.net>
27271
27272         ignore-value: update recommended header name
27273         * modules/ignore-value (Include): Only use <> for headers that
27274         exist in glibc.
27275
27276 2010-01-26  Jim Meyering  <meyering@redhat.com>
27277
27278         test-userspec.c: avoid compiler warnings
27279         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27280         and "initialization discards qualifiers..." warnings.
27281         Put the first "uid" in its own scope, and make char* members "const".
27282
27283 2010-01-25  Bruno Haible  <bruno@clisp.org>
27284
27285         gnulib-tool: Make warning diagnostics consistent.
27286         * gnulib-tool (func_warning): New function.
27287         Use it everywhere where gnulib-tool produces output to stderr and it is
27288         not a fatal error.
27289
27290 2010-01-25  Bruno Haible  <bruno@clisp.org>
27291
27292         Fix test dependencies.
27293         * modules/xstrtol-tests (Depends-on): Add inttypes.
27294         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27295
27296 2010-01-25 Pádraig Brady <P@draigBrady.com>
27297
27298         syntax-check: detect incorrect boolean macro values in config.h
27299         * modules/maintainer-makefile (configure.ac): Parameterize the location
27300         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27301         The logic is from Eric Blake and the location indicated by Jim Meyering.
27302         Note the more natural CONFIG_HEADER name is prohibited by automake
27303         for backwards compatibility reasons.
27304         * top/maint.mk (sc_Wundef_boolean): New rule.
27305
27306 2010-01-25  Jim Meyering  <meyering@redhat.com>
27307
27308         bootstrap: detect MacOS 10.6's shasum, too
27309         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27310         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27311
27312 2010-01-23  Jim Meyering  <meyering@redhat.com>
27313
27314         xstrtoll: new module
27315         * modules/xstrtoll: New file.
27316         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27317         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27318         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27319         ./configure fails if you use this module and lack "long long".
27320         * modules/xstrtoll-tests: New module.
27321         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27322         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27323         new init.sh-based test framework.
27324
27325 2010-01-24  Bruno Haible  <bruno@clisp.org>
27326
27327         Tests for module 'yn'.
27328         * modules/yn-tests: New file.
27329         * tests/test-yn.c: New file.
27330
27331         Tests for module 'y1'.
27332         * modules/y1-tests: New file.
27333         * tests/test-y1.c: New file.
27334
27335         Tests for module 'y0'.
27336         * modules/y0-tests: New file.
27337         * tests/test-y0.c: New file.
27338
27339         Tests for module 'tanh'.
27340         * modules/tanh-tests: New file.
27341         * tests/test-tanh.c: New file.
27342
27343         Tests for module 'tan'.
27344         * modules/tan-tests: New file.
27345         * tests/test-tan.c: New file.
27346
27347         Tests for module 'sqrt'.
27348         * modules/sqrt-tests: New file.
27349         * tests/test-sqrt.c: New file.
27350
27351         Tests for module 'sinh'.
27352         * modules/sinh-tests: New file.
27353         * tests/test-sinh.c: New file.
27354
27355         Tests for module 'sin'.
27356         * modules/sin-tests: New file.
27357         * tests/test-sin.c: New file.
27358
27359         Tests for module 'rint'.
27360         * modules/rint-tests: New file.
27361         * tests/test-rint.c: New file.
27362
27363         Tests for module 'remainder'.
27364         * modules/remainder-tests: New file.
27365         * tests/test-remainder.c: New file.
27366
27367         Tests for module 'pow'.
27368         * modules/pow-tests: New file.
27369         * tests/test-pow.c: New file.
27370
27371         Tests for module 'nextafter'.
27372         * modules/nextafter-tests: New file.
27373         * tests/test-nextafter.c: New file.
27374
27375         Tests for module 'modf'.
27376         * modules/modf-tests: New file.
27377         * tests/test-modf.c: New file.
27378
27379         Tests for module 'logb'.
27380         * modules/logb-tests: New file.
27381         * tests/test-logb.c: New file.
27382
27383         Tests for module 'log1p'.
27384         * modules/log1p-tests: New file.
27385         * tests/test-log1p.c: New file.
27386
27387         Tests for module 'log10'.
27388         * modules/log10-tests: New file.
27389         * tests/test-log10.c: New file.
27390
27391         Tests for module 'log'.
27392         * modules/log-tests: New file.
27393         * tests/test-log.c: New file.
27394
27395         Tests for module 'lgamma'.
27396         * modules/lgamma-tests: New file.
27397         * tests/test-lgamma.c: New file.
27398
27399         Tests for module 'ldexp'.
27400         * modules/ldexp-tests: New file.
27401         * tests/test-ldexp.c: New file.
27402
27403         Tests for module 'jn'.
27404         * modules/jn-tests: New file.
27405         * tests/test-jn.c: New file.
27406
27407         Tests for module 'j1'.
27408         * modules/j1-tests: New file.
27409         * tests/test-j1.c: New file.
27410
27411         Tests for module 'j0'.
27412         * modules/j0-tests: New file.
27413         * tests/test-j0.c: New file.
27414
27415         Tests for module 'hypot'.
27416         * modules/hypot-tests: New file.
27417         * tests/test-hypot.c: New file.
27418
27419         Tests for module 'fmod'.
27420         * modules/fmod-tests: New file.
27421         * tests/test-fmod.c: New file.
27422
27423         Tests for module 'fabs'.
27424         * modules/fabs-tests: New file.
27425         * tests/test-fabs.c: New file.
27426
27427         Tests for module 'exp'.
27428         * modules/exp-tests: New file.
27429         * tests/test-exp.c: New file.
27430
27431         Tests for module 'erfc'.
27432         * modules/erfc-tests: New file.
27433         * tests/test-erfc.c: New file.
27434
27435         Tests for module 'erf'.
27436         * modules/erf-tests: New file.
27437         * tests/test-erf.c: New file.
27438
27439         Tests for module 'cosh'.
27440         * modules/cosh-tests: New file.
27441         * tests/test-cosh.c: New file.
27442
27443         Tests for module 'cos'.
27444         * modules/cos-tests: New file.
27445         * tests/test-cos.c: New file.
27446
27447         Tests for module 'copysign'.
27448         * modules/copysign-tests: New file.
27449         * tests/test-copysign.c: New file.
27450
27451         Tests for module 'cbrt'.
27452         * modules/cbrt-tests: New file.
27453         * tests/test-cbrt.c: New file.
27454
27455         Tests for module 'atan2'.
27456         * modules/atan2-tests: New file.
27457         * tests/test-atan2.c: New file.
27458
27459         Tests for module 'atan'.
27460         * modules/atan-tests: New file.
27461         * tests/test-atan.c: New file.
27462
27463         Tests for module 'asin'.
27464         * modules/asin-tests: New file.
27465         * tests/test-asin.c: New file.
27466
27467         Tests for module 'acos'.
27468         * modules/acos-tests: New file.
27469         * tests/test-acos.c: New file.
27470
27471 2010-01-24  Bruno Haible  <bruno@clisp.org>
27472
27473         Fix tests for common <math.h> functions.
27474         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27475         code snippet that references the function pointer, rather than merely
27476         calling the function. Substitute the FUNC_LIBM variable.
27477         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27478         * modules/acos (configure.ac): Likewise.
27479         * modules/asin (configure.ac): Likewise.
27480         * modules/atan (configure.ac): Likewise.
27481         * modules/atan2 (configure.ac): Likewise.
27482         * modules/cbrt (configure.ac): Likewise.
27483         * modules/copysign (configure.ac): Likewise.
27484         * modules/cos (configure.ac): Likewise.
27485         * modules/cosh (configure.ac): Likewise.
27486         * modules/erf (configure.ac): Likewise.
27487         * modules/erfc (configure.ac): Likewise.
27488         * modules/exp (configure.ac): Likewise.
27489         * modules/fabs (configure.ac): Likewise.
27490         * modules/fmod (configure.ac): Likewise.
27491         * modules/hypot (configure.ac): Likewise.
27492         * modules/j0 (configure.ac): Likewise.
27493         * modules/j1 (configure.ac): Likewise.
27494         * modules/jn (configure.ac): Likewise.
27495         * modules/ldexp (configure.ac): Likewise.
27496         * modules/lgamma (configure.ac): Likewise.
27497         * modules/log (configure.ac): Likewise.
27498         * modules/log10 (configure.ac): Likewise.
27499         * modules/log1p (configure.ac): Likewise.
27500         * modules/logb (configure.ac): Likewise.
27501         * modules/modf (configure.ac): Likewise.
27502         * modules/nextafter (configure.ac): Likewise.
27503         * modules/pow (configure.ac): Likewise.
27504         * modules/remainder (configure.ac): Likewise.
27505         * modules/rint (configure.ac): Likewise.
27506         * modules/sin (configure.ac): Likewise.
27507         * modules/sinh (configure.ac): Likewise.
27508         * modules/tan (configure.ac): Likewise.
27509         * modules/tanh (configure.ac): Likewise.
27510         * modules/y0 (configure.ac): Likewise.
27511         * modules/y1 (configure.ac): Likewise.
27512         * modules/yn (configure.ac): Likewise.
27513
27514 2010-01-24  Bruno Haible  <bruno@clisp.org>
27515
27516         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27517         * tests/test-acosl.c (x): New variable.
27518         (main): Store argument in x and fetch it from x.
27519         * tests/test-asinl.c (x): New variable.
27520         (main): Store argument in x and fetch it from x.
27521         * tests/test-atanl.c (x): New variable.
27522         (main): Store argument in x and fetch it from x.
27523         * tests/test-cosl.c (x): New variable.
27524         (main): Store argument in x and fetch it from x.
27525         * tests/test-expl.c (x): New variable.
27526         (main): Store argument in x and fetch it from x.
27527         * tests/test-logl.c (x): New variable.
27528         (main): Store argument in x and fetch it from x.
27529         * tests/test-sinl.c (x): New variable.
27530         (main): Store argument in x and fetch it from x.
27531         * tests/test-sqrtl.c (x): New variable.
27532         (main): Store argument in x and fetch it from x.
27533         * tests/test-tanl.c (x): New variable.
27534         (main): Store argument in x and fetch it from x.
27535
27536 2010-01-24  Bruno Haible  <bruno@clisp.org>
27537
27538         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27539         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27540         assignments to the initial TESTS_ENVIRONMENT.
27541         * doc/gnulib.texi (Unit test modules): Document it.
27542         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27543         TESTS_ENVIRONMENT.
27544         * modules/btowc-tests (Makefile.am): Likewise.
27545         * modules/c-stack-tests (Makefile.am): Likewise.
27546         * modules/c-strcase-tests (Makefile.am): Likewise.
27547         * modules/copy-file-tests (Makefile.am): Likewise.
27548         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27549         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27550         * modules/mbrtowc-tests (Makefile.am): Likewise.
27551         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27552         * modules/mbscasestr-tests (Makefile.am): Likewise.
27553         * modules/mbschr-tests (Makefile.am): Likewise.
27554         * modules/mbscspn-tests (Makefile.am): Likewise.
27555         * modules/mbsinit-tests (Makefile.am): Likewise.
27556         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27557         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27558         * modules/mbspbrk-tests (Makefile.am): Likewise.
27559         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27560         * modules/mbsrchr-tests (Makefile.am): Likewise.
27561         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27562         * modules/mbsspn-tests (Makefile.am): Likewise.
27563         * modules/mbsstr-tests (Makefile.am): Likewise.
27564         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27565         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27566         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27567         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27568         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27569         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27570         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27571         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27572         * modules/wcrtomb-tests (Makefile.am): Likewise.
27573         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27574         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27575         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27576         assignments from TESTS_ENVIRONMENT.
27577         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27578         augmentation.
27579         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27580         * modules/atexit-tests (Makefile.am): Likewise.
27581         * modules/binary-io-tests (Makefile.am): Likewise.
27582         * modules/closein-tests (Makefile.am): Likewise.
27583         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27584         * modules/exclude-tests (Makefile.am): Likewise.
27585         * modules/fflush-tests (Makefile.am): Likewise.
27586         * modules/fpending-tests (Makefile.am): Likewise.
27587         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27588         * modules/freadahead-tests (Makefile.am): Likewise.
27589         * modules/freadptr-tests (Makefile.am): Likewise.
27590         * modules/freadseek-tests (Makefile.am): Likewise.
27591         * modules/fseek-tests (Makefile.am): Likewise.
27592         * modules/fseeko-tests (Makefile.am): Likewise.
27593         * modules/ftell-tests (Makefile.am): Likewise.
27594         * modules/ftello-tests (Makefile.am): Likewise.
27595         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27596         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27597         * modules/lseek-tests (Makefile.am): Likewise.
27598         * modules/parse-duration-tests (Makefile.am): Likewise.
27599         * modules/perror-tests (Makefile.am): Likewise.
27600         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27601         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27602         * modules/pipe-tests (Makefile.am): Likewise.
27603         * modules/pread-tests (Makefile.am): Likewise.
27604         * modules/printf-posix-tests (Makefile.am): Likewise.
27605         * modules/select-tests (Makefile.am): Likewise.
27606         * modules/sigpipe-tests (Makefile.am): Likewise.
27607         * modules/tsearch-tests (Makefile.am): Likewise.
27608         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27609         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27610         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27611         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27612         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27613         * modules/version-etc-tests (Makefile.am): Likewise.
27614         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27615         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27616         * modules/xalloc-die-tests (Makefile.am): Likewise.
27617         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27618         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27619         * modules/xstrtol-tests (Makefile.am): Likewise.
27620         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27621         * modules/yesno-tests (Makefile.am): Likewise.
27622         Suggested by Jim Meyering.
27623
27624 2010-01-24  Bruno Haible  <bruno@clisp.org>
27625
27626         More documentation.
27627         * doc/gnulib.texi (Writing modules): New chapter.
27628         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27629         the new chapter.
27630
27631 2010-01-24  Jim Meyering  <meyering@redhat.com>
27632
27633         maint.mk: do not prepend "./" after filtering
27634         * top/maint.mk (_prepend_srcdir_prefix): New variable
27635         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27636         "./" when $(srcdir) is ".".
27637
27638         define STREQ(a,b) consistently, removing useless parentheses
27639         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27640         since the only risk is that "a" or "b" contains an unparenthesized
27641         comma, but if either did that, STREQ would have 3 or more arguments.
27642         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27643         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27644         * lib/hash-triple.c (STREQ): Likewise.
27645         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27646         * lib/getugroups.c (STREQ): Likewise.
27647
27648 2010-01-23  Jim Meyering  <meyering@redhat.com>
27649
27650         maint.mk: fix syntax-check in a non-srcdir build directory
27651         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27652         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27653
27654 2010-01-22  Jim Meyering  <meyering@redhat.com>
27655
27656         userspec: add unit tests
27657         * tests/test-userspec.c: New file.
27658         * modules/userspec-tests: Likewise.
27659
27660 2010-01-21  Jim Meyering  <meyering@redhat.com>
27661
27662         maint.mk: handle source file names containing "." robustly
27663         * top/maint.mk (_dot_escaped_srcdir): Define.
27664         (VC_LIST): Use it in LHS of sed substitution.
27665
27666 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27667
27668         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27669         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27670         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27671         from a non-srcdir build.
27672
27673 2010-01-20  Eric Blake  <ebb9@byu.net>
27674
27675         warn-on-use: use instead of link-warning
27676         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27677         * modules/unistd (Depends-on, Makefile.am): Likewise.
27678         * modules/arpa_inet (Depends-on): Replace link-warning with
27679         warn-on-use.
27680         (Makefile.am): Update rules accordingly.
27681         * modules/ctype (Depends-on, Makefile.am): Likewise.
27682         * modules/dirent (Depends-on, Makefile.am): Likewise.
27683         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27684         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27685         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27686         * modules/locale (Depends-on, Makefile.am): Likewise.
27687         * modules/math (Depends-on, Makefile.am): Likewise.
27688         * modules/search (Depends-on, Makefile.am): Likewise.
27689         * modules/signal (Depends-on, Makefile.am): Likewise.
27690         * modules/spawn (Depends-on, Makefile.am): Likewise.
27691         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27692         * modules/string (Depends-on, Makefile.am): Likewise.
27693         * modules/strings (Depends-on, Makefile.am): Likewise.
27694         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27695         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27696         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27697         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27698         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27699         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27700         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27701         * modules/wchar (Depends-on, Makefile.am): Likewise.
27702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27703         should be poisoned.
27704         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27705         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27706         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27707         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27708         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27709         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27710         * m4/math_h.m4 (gl_MATH_H): Likewise.
27711         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27712         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27713         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27714         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27715         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27716         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27717         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27718         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27721         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27725         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27726         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27727         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27728         GL_LINK_WARNING.
27729         * lib/ctype.in.h: Likewise.
27730         * lib/dirent.in.h: Likewise.
27731         * lib/fcntl.in.h: Likewise.
27732         * lib/inttypes.in.h: Likewise.
27733         * lib/langinfo.in.h: Likewise.
27734         * lib/locale.in.h: Likewise.
27735         * lib/math.in.h: Likewise.
27736         * lib/search.in.h: Likewise.
27737         * lib/signal.in.h: Likewise.
27738         * lib/spawn.in.h: Likewise.
27739         * lib/stdio.in.h: Likewise.
27740         * lib/stdlib.in.h: Likewise.
27741         * lib/string.in.h: Likewise.
27742         * lib/strings.in.h: Likewise.
27743         * lib/sys_file.in.h: Likewise.
27744         * lib/sys_ioctl.in.h: Likewise.
27745         * lib/sys_select.in.h: Likewise.
27746         * lib/sys_socket.in.h: Likewise.
27747         * lib/sys_stat.in.h: Likewise.
27748         * lib/sys_times.in.h: Likewise.
27749         * lib/sys_utsname.in.h: Likewise.
27750         * lib/unistd.in.h: Likewise.
27751         * lib/wchar.in.h: Likewise.
27752
27753 2010-01-20  Bruno Haible  <bruno@clisp.org>
27754
27755         Avoid duplicate -lm.
27756         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27757         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27759         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27760         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27761         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27762         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27763         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27764         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27765         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27766         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27767         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27768         Reported by Paolo Bonzini.
27769
27770 2010-01-19  Bruno Haible  <bruno@clisp.org>
27771
27772         langinfo, nl_langinfo: Relicense under LGPLv2+.
27773         * modules/langinfo (License): Change to LGPLv2+.
27774         * modules/nl_langinfo (License): Likewise.
27775         Patch by David Lutterkort <lutter@redhat.com>.
27776
27777 2010-01-19  Bruno Haible  <bruno@clisp.org>
27778
27779         Avoid compilation error with cc on OSF/1 5.1.
27780         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27781         statement, not before.
27782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27783
27784 2010-01-18  Bruno Haible  <bruno@clisp.org>
27785
27786         Avoid a link error due to the __printf__ symbol.
27787         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27788         and 2.6.x.
27789         (__format__, __printf__): Remove definitions.
27790         * lib/argp-fmtstream.h: Likewise.
27791         * lib/argp.h: Likewise.
27792         * lib/error.h: Likewise.
27793         * lib/vasnprintf.h: Likewise.
27794         * lib/xprintf.h: Likewise.
27795         * lib/xvasprintf.h: Likewise.
27796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27797
27798 2010-01-18  Bruno Haible  <bruno@clisp.org>
27799
27800         Tests for module 'tanl'.
27801         * modules/tanl-tests: New file.
27802         * tests/test-tanl.c: New file.
27803
27804         Tests for module 'sqrtl'.
27805         * modules/sqrtl-tests: New file.
27806         * tests/test-sqrtl.c: New file.
27807
27808         Tests for module 'sinl'.
27809         * modules/sinl-tests: New file.
27810         * tests/test-sinl.c: New file.
27811
27812         Tests for module 'logl'.
27813         * modules/logl-tests: New file.
27814         * tests/test-logl.c: New file.
27815
27816         Tests for module 'expl'.
27817         * modules/expl-tests: New file.
27818         * tests/test-expl.c: New file.
27819
27820         Tests for module 'cosl'.
27821         * modules/cosl-tests: New file.
27822         * tests/test-cosl.c: New file.
27823
27824         Tests for module 'atanl'.
27825         * modules/atanl-tests: New file.
27826         * tests/test-atanl.c: New file.
27827
27828         Tests for module 'asinl'.
27829         * modules/asinl-tests: New file.
27830         * tests/test-asinl.c: New file.
27831
27832         Tests for module 'acosl'.
27833         * modules/acosl-tests: New file.
27834         * tests/test-acosl.c: New file.
27835
27836         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27837         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27838         tanl): Use the standard gnulib idiom.
27839         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27840         * lib/sinl.c: Likewise.
27841         * lib/tanl.c: Don't include trigl.c.
27842         (kernel_tanl): Make static.
27843         * lib/sincosl.c: Include trigl.h first.
27844         * lib/trigl.c: Likewise.
27845         * m4/acosl.m4: New file.
27846         * m4/asinl.m4: New file.
27847         * m4/atanl.m4: New file.
27848         * m4/cosl.m4: New file.
27849         * m4/expl.m4: New file.
27850         * m4/logl.m4: New file.
27851         * m4/sinl.m4: New file.
27852         * m4/sqrtl.m4: New file.
27853         * m4/tanl.m4: New file.
27854         * m4/mathl.m4: Remove file.
27855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27856         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27857         Don't initialize GNULIB_MATHL.
27858         * modules/acosl: New file.
27859         * modules/asinl: New file.
27860         * modules/atanl: New file.
27861         * modules/cosl: New file.
27862         * modules/expl: New file.
27863         * modules/logl: New file.
27864         * modules/sinl: New file.
27865         * modules/sqrtl: New file.
27866         * modules/tanl: New file.
27867         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27868         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27869         substitute GNULIB_MATHL.
27870         * modules/mathl: Rewritten.
27871         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27872         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27873         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27874         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27875         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27876         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27877         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27878         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27879         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27880
27881 2010-01-18  Bruno Haible  <bruno@clisp.org>
27882
27883         sqrt: Make gl_FUNC_SQRT requirable.
27884         * m4/sqrt.m4: New file.
27885         * modules/sqrt (Files): Add it.
27886         (configure.ac): Invoke gl_FUNC_SQRT.
27887
27888 2010-01-18  Bruno Haible  <bruno@clisp.org>
27889
27890         New modules for common <math.h> functions.
27891         * m4/mathfunc.m4: New file.
27892         * modules/acos: New file.
27893         * modules/asin: New file.
27894         * modules/atan: New file.
27895         * modules/atan2: New file.
27896         * modules/cbrt: New file.
27897         * modules/copysign: New file.
27898         * modules/cos: New file.
27899         * modules/cosh: New file.
27900         * modules/erf: New file.
27901         * modules/erfc: New file.
27902         * modules/exp: New file.
27903         * modules/fabs: New file.
27904         * modules/fmod: New file.
27905         * modules/hypot: New file.
27906         * modules/j0: New file.
27907         * modules/j1: New file.
27908         * modules/jn: New file.
27909         * modules/ldexp: New file.
27910         * modules/lgamma: New file.
27911         * modules/log: New file.
27912         * modules/log10: New file.
27913         * modules/log1p: New file.
27914         * modules/logb: New file.
27915         * modules/modf: New file.
27916         * modules/nextafter: New file.
27917         * modules/pow: New file.
27918         * modules/remainder: New file.
27919         * modules/rint: New file.
27920         * modules/sin: New file.
27921         * modules/sinh: New file.
27922         * modules/sqrt: New file.
27923         * modules/tan: New file.
27924         * modules/tanh: New file.
27925         * modules/y0: New file.
27926         * modules/y1: New file.
27927         * modules/yn: New file.
27928         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27929         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27930         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27931         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27932         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27933         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27934         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27935         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27936         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27937         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27938         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27939         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27940         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27941         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27942         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27943         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27944         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27945         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27946         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27947         * doc/posix-functions/log.texi: Mention the 'log' module.
27948         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27949         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27950         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27951         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27952         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27953         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27954         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27955         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27956         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27957         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27958         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27959         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27960         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27961         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27962         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27963         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27964
27965 2010-01-18  Jim Meyering  <meyering@redhat.com>
27966
27967         ignore-value: relax license to LGPLv2+
27968         * modules/ignore-value (License): Relax to LGPLv2+.
27969
27970         getdate: don't leak when TZ contains two or more '"'s
27971         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27972         double quote in TZ after the first one.
27973
27974         readtokens: do not leak internal token_lengths buffer
27975         * lib/readtokens.c (readtokens): Free the local, lengths,
27976         when the supplied "token_lengths" parameter is NULL.
27977
27978 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27979
27980         Fix a couple of missing LIBTHREAD link failures on AIX.
27981         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27982         $(LIBTHREAD).
27983         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27984
27985         Link test-poll against INET_PTON_LIB.
27986         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27987         for inet_pton on Solaris 10.
27988
27989 2010-01-17  Bruno Haible  <bruno@clisp.org>
27990
27991         unistdio/*-sprintf: Fix typo in module description.
27992         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27993         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27994         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27995         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27996         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27997         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27998         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28000
28001 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28002
28003         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28004         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28005         variables in shell case patterns, for AIX and HP-UX ksh.
28006
28007         Split large sed scripts, for HP-UX sed.
28008         * modules/stdio: Split sed scripts around 50 sed commands,
28009         to avoid HP-UX limit of 99 commands, in the near future.
28010         * modules/string: Likewise.
28011         * modules/unistd: Likewise.
28012
28013         gnulib-tool: avoid writing in the current directory.
28014         * gnulib-tool (func_emit_lib_Makefile_am)
28015         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28016         not in the current directory, so concurrent gnulib-tool
28017         instances do not interfere.
28018
28019 2010-01-16  Jim Meyering  <meyering@redhat.com>
28020
28021         doc: update users.txt
28022         * users.txt: Add grep.
28023         (diffutils, gzip): Update URLs.
28024
28025 2010-01-12  Bruno Haible  <bruno@clisp.org>
28026
28027         posix_spawn: Avoid test failure on Cygwin.
28028         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28029         characters.
28030         Reported by Simon Josefsson.
28031
28032 2010-01-12  Bruno Haible  <bruno@clisp.org>
28033
28034         * tests/test-cond.c (main): When skipping the test, show the reason.
28035
28036 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28037
28038         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28039
28040 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28041
28042         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28043         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28044
28045 2010-01-12  Eric Blake  <ebb9@byu.net>
28046
28047         build: guarantee AS_VAR_IF
28048         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28049         (gl_AS_VAR_IF): Move...
28050         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28051         Reported by Simon Josefsson.
28052
28053 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28054
28055         * lib/stdio.in.h: Fix typo.
28056
28057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28058
28059         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28060         libgpg-error.
28061
28062 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28063
28064         * tests/test-xalloc-die.sh: Use $EXEEXT.
28065
28066 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28067             Bruno Haible  <bruno@clisp.org>
28068
28069         getlogin, getlogin_r: Avoid test failure.
28070         * tests/test-getlogin.c: Include <stdio.h>.
28071         (main): Skip the test when the function fails because stdin is not a
28072         tty.
28073         * tests/test-getlogin_r.c: Include <stdio.h>.
28074         (main): Skip the test when the function fails because stdin is not a
28075         tty.
28076
28077 2010-01-11  Eric Blake  <ebb9@byu.net>
28078
28079         tests: avoid more large file warnings
28080         * tests/test-fflush.c: Avoid warning about ftell use.
28081         * tests/test-fseek.c: Avoid warning about fseek use.
28082
28083 2010-01-10  Bruno Haible  <bruno@clisp.org>
28084
28085         nproc: Work better on Linux when /proc and /sys are not mounted.
28086         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28087         as lower bound when, on glibc/Linux systems,
28088         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28089         Suggested by Pádraig Brady <P@draigbrady.com>.
28090         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28091
28092         nproc: Refactor.
28093         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28094         extracted from num_processors.
28095         (num_processors): Call it.
28096
28097 2010-01-11  Jim Meyering  <meyering@redhat.com>
28098
28099         utimecmp: avoid new warning from upcoming gcc-4.5.0
28100         * lib/utimecmp.c (BILLION): Define using #define rather than an
28101         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28102
28103 2010-01-11  Eric Blake  <ebb9@byu.net>
28104
28105         math: add portability warnings for classification macros
28106         * modules/math (Depends-on): Add warn-on-use.
28107         (Makefile.am): Provide new substitutions.
28108         * m4/math_h.m4 (gl_MATH_H): Require inline.
28109         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28110         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28111         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28112         implement warnings.
28113
28114         unistd: warn on use of environ without module
28115         * modules/unistd (Depends-on): Add warn-on-use.
28116         (Makefile.am): Provide new substitutions.
28117         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28118         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28119
28120         stdio: warn on suspicious uses
28121         * modules/stdio (Depends-on): Add warn-on-use.
28122         (Makefile.am): Provide new substitutions.
28123         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28124         fseeko.
28125         * lib/stdio.in.h (gets): Always warn on use.
28126         (fseek, ftell): Adjust when warnings are issued, and honor
28127         _GL_NO_LARGE_FILES as a way to silence the warning.
28128         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28129         any warning about large file offsets.
28130         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28131         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28132         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28133         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28134         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28135         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28136         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28137         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28138
28139         warn-on-use: new module
28140         * modules/warn-on-use: New file.
28141         * build-aux/warn-on-use.h: Likewise.
28142         * m4/warn-on-use.m4: Likewise.
28143         * MODULES.html.sh (Support for building): Mention it.
28144
28145 2010-01-10  Bruno Haible  <bruno@clisp.org>
28146
28147         Tests for module 'unistr/u32-strdup'.
28148         * modules/unistr/u32-strdup-tests: New file.
28149         * tests/unistr/test-u32-strdup.c: New file.
28150
28151         Tests for module 'unistr/u16-strdup'.
28152         * modules/unistr/u16-strdup-tests: New file.
28153         * tests/unistr/test-u16-strdup.c: New file.
28154
28155         Tests for module 'unistr/u8-strdup'.
28156         * modules/unistr/u8-strdup-tests: New file.
28157         * tests/unistr/test-u8-strdup.c: New file.
28158         * tests/unistr/test-strdup.h: New file.
28159
28160         Tests for module 'unistr/u32-strncmp'.
28161         * modules/unistr/u32-strncmp-tests: New file.
28162         * tests/unistr/test-u32-strncmp.c: New file.
28163
28164         Tests for module 'unistr/u16-strncmp'.
28165         * modules/unistr/u16-strncmp-tests: New file.
28166         * tests/unistr/test-u16-strncmp.c: New file.
28167
28168         Tests for module 'unistr/u8-strncmp'.
28169         * modules/unistr/u8-strncmp-tests: New file.
28170         * tests/unistr/test-u8-strncmp.c: New file.
28171         * tests/unistr/test-strncmp.h: New file.
28172
28173         Tests for module 'unistr/u32-strcoll'.
28174         * modules/unistr/u32-strcoll-tests: New file.
28175         * tests/unistr/test-u32-strcoll.c: New file.
28176
28177         Tests for module 'unistr/u16-strcoll'.
28178         * modules/unistr/u16-strcoll-tests: New file.
28179         * tests/unistr/test-u16-strcoll.c: New file.
28180
28181         Tests for module 'unistr/u8-strcoll'.
28182         * modules/unistr/u8-strcoll-tests: New file.
28183         * tests/unistr/test-u8-strcoll.c: New file.
28184
28185         Tests for module 'unistr/u32-strcmp'.
28186         * modules/unistr/u32-strcmp-tests: New file.
28187         * tests/unistr/test-u32-strcmp.c: New file.
28188         * tests/unistr/test-u32-strcmp.h: New file.
28189
28190         Tests for module 'unistr/u16-strcmp'.
28191         * modules/unistr/u16-strcmp-tests: New file.
28192         * tests/unistr/test-u16-strcmp.c: New file.
28193         * tests/unistr/test-u16-strcmp.h: New file.
28194
28195         Tests for module 'unistr/u8-strcmp'.
28196         * modules/unistr/u8-strcmp-tests: New file.
28197         * tests/unistr/test-u8-strcmp.c: New file.
28198         * tests/unistr/test-u8-strcmp.h: New file.
28199         * tests/unistr/test-strcmp.h: New file.
28200
28201         Tests for module 'unistr/u32-strncat'.
28202         * modules/unistr/u32-strncat-tests: New file.
28203         * tests/unistr/test-u32-strncat.c: New file.
28204
28205         Tests for module 'unistr/u16-strncat'.
28206         * modules/unistr/u16-strncat-tests: New file.
28207         * tests/unistr/test-u16-strncat.c: New file.
28208
28209         Tests for module 'unistr/u8-strncat'.
28210         * modules/unistr/u8-strncat-tests: New file.
28211         * tests/unistr/test-u8-strncat.c: New file.
28212         * tests/unistr/test-strncat.h: New file.
28213
28214         Tests for module 'unistr/u32-strcat'.
28215         * modules/unistr/u32-strcat-tests: New file.
28216         * tests/unistr/test-u32-strcat.c: New file.
28217
28218         Tests for module 'unistr/u16-strcat'.
28219         * modules/unistr/u16-strcat-tests: New file.
28220         * tests/unistr/test-u16-strcat.c: New file.
28221
28222         Tests for module 'unistr/u8-strcat'.
28223         * modules/unistr/u8-strcat-tests: New file.
28224         * tests/unistr/test-u8-strcat.c: New file.
28225         * tests/unistr/test-strcat.h: New file.
28226
28227         Tests for module 'unistr/u32-stpncpy'.
28228         * modules/unistr/u32-stpncpy-tests: New file.
28229         * tests/unistr/test-u32-stpncpy.c: New file.
28230
28231         Tests for module 'unistr/u16-stpncpy'.
28232         * modules/unistr/u16-stpncpy-tests: New file.
28233         * tests/unistr/test-u16-stpncpy.c: New file.
28234
28235         Tests for module 'unistr/u8-stpncpy'.
28236         * modules/unistr/u8-stpncpy-tests: New file.
28237         * tests/unistr/test-u8-stpncpy.c: New file.
28238         * tests/unistr/test-stpncpy.h: New file.
28239
28240         Tests for module 'unistr/u32-strncpy'.
28241         * modules/unistr/u32-strncpy-tests: New file.
28242         * tests/unistr/test-u32-strncpy.c: New file.
28243
28244         Tests for module 'unistr/u16-strncpy'.
28245         * modules/unistr/u16-strncpy-tests: New file.
28246         * tests/unistr/test-u16-strncpy.c: New file.
28247
28248         Tests for module 'unistr/u8-strncpy'.
28249         * modules/unistr/u8-strncpy-tests: New file.
28250         * tests/unistr/test-u8-strncpy.c: New file.
28251         * tests/unistr/test-strncpy.h: New file.
28252
28253         Tests for module 'unistr/u32-stpcpy'.
28254         * modules/unistr/u32-stpcpy-tests: New file.
28255         * tests/unistr/test-u32-stpcpy.c: New file.
28256
28257         Tests for module 'unistr/u16-stpcpy'.
28258         * modules/unistr/u16-stpcpy-tests: New file.
28259         * tests/unistr/test-u16-stpcpy.c: New file.
28260
28261         Tests for module 'unistr/u8-stpcpy'.
28262         * modules/unistr/u8-stpcpy-tests: New file.
28263         * tests/unistr/test-u8-stpcpy.c: New file.
28264         * tests/unistr/test-stpcpy.h: New file.
28265
28266         Tests for module 'unistr/u32-strcpy'.
28267         * modules/unistr/u32-strcpy-tests: New file.
28268         * tests/unistr/test-u32-strcpy.c: New file.
28269
28270         Tests for module 'unistr/u16-strcpy'.
28271         * modules/unistr/u16-strcpy-tests: New file.
28272         * tests/unistr/test-u16-strcpy.c: New file.
28273
28274         Tests for module 'unistr/u8-strcpy'.
28275         * modules/unistr/u8-strcpy-tests: New file.
28276         * tests/unistr/test-u8-strcpy.c: New file.
28277         * tests/unistr/test-strcpy.h: New file.
28278
28279         Tests for module 'unistr/u32-strnlen'.
28280         * modules/unistr/u32-strnlen-tests: New file.
28281         * tests/unistr/test-u32-strnlen.c: New file.
28282
28283         Tests for module 'unistr/u16-strnlen'.
28284         * modules/unistr/u16-strnlen-tests: New file.
28285         * tests/unistr/test-u16-strnlen.c: New file.
28286
28287         Tests for module 'unistr/u8-strnlen'.
28288         * modules/unistr/u8-strnlen-tests: New file.
28289         * tests/unistr/test-u8-strnlen.c: New file.
28290         * tests/unistr/test-strnlen.h: New file.
28291
28292         Tests for module 'unistr/u32-strlen'.
28293         * modules/unistr/u32-strlen-tests: New file.
28294         * tests/unistr/test-u32-strlen.c: New file.
28295
28296         Tests for module 'unistr/u16-strlen'.
28297         * modules/unistr/u16-strlen-tests: New file.
28298         * tests/unistr/test-u16-strlen.c: New file.
28299
28300         Tests for module 'unistr/u8-strlen'.
28301         * modules/unistr/u8-strlen-tests: New file.
28302         * tests/unistr/test-u8-strlen.c: New file.
28303
28304         Tests for module 'unistr/u32-prev'.
28305         * modules/unistr/u32-prev-tests: New file.
28306         * tests/unistr/test-u32-prev.c: New file.
28307
28308         Tests for module 'unistr/u16-prev'.
28309         * modules/unistr/u16-prev-tests: New file.
28310         * tests/unistr/test-u16-prev.c: New file.
28311
28312         Tests for module 'unistr/u8-prev'.
28313         * modules/unistr/u8-prev-tests: New file.
28314         * tests/unistr/test-u8-prev.c: New file.
28315
28316         Tests for module 'unistr/u32-next'.
28317         * modules/unistr/u32-next-tests: New file.
28318         * tests/unistr/test-u32-next.c: New file.
28319
28320         Tests for module 'unistr/u16-next'.
28321         * modules/unistr/u16-next-tests: New file.
28322         * tests/unistr/test-u16-next.c: New file.
28323
28324         Tests for module 'unistr/u8-next'.
28325         * modules/unistr/u8-next-tests: New file.
28326         * tests/unistr/test-u8-next.c: New file.
28327
28328         Tests for module 'unistr/u32-strmbtouc'.
28329         * modules/unistr/u32-strmbtouc-tests: New file.
28330         * tests/unistr/test-u32-strmbtouc.c: New file.
28331
28332         Tests for module 'unistr/u16-strmbtouc'.
28333         * modules/unistr/u16-strmbtouc-tests: New file.
28334         * tests/unistr/test-u16-strmbtouc.c: New file.
28335
28336         Tests for module 'unistr/u8-strmbtouc'.
28337         * modules/unistr/u8-strmbtouc-tests: New file.
28338         * tests/unistr/test-u8-strmbtouc.c: New file.
28339
28340         Tests for module 'unistr/u32-strmblen'.
28341         * modules/unistr/u32-strmblen-tests: New file.
28342         * tests/unistr/test-u32-strmblen.c: New file.
28343
28344         Tests for module 'unistr/u16-strmblen'.
28345         * modules/unistr/u16-strmblen-tests: New file.
28346         * tests/unistr/test-u16-strmblen.c: New file.
28347
28348         Tests for module 'unistr/u8-strmblen'.
28349         * modules/unistr/u8-strmblen-tests: New file.
28350         * tests/unistr/test-u8-strmblen.c: New file.
28351
28352         Tests for module 'unistr/u32-cpy-alloc'.
28353         * modules/unistr/u32-cpy-alloc-tests: New file.
28354         * tests/unistr/test-u32-cpy-alloc.c: New file.
28355
28356         Tests for module 'unistr/u16-cpy-alloc'.
28357         * modules/unistr/u16-cpy-alloc-tests: New file.
28358         * tests/unistr/test-u16-cpy-alloc.c: New file.
28359
28360         Tests for module 'unistr/u8-cpy-alloc'.
28361         * modules/unistr/u8-cpy-alloc-tests: New file.
28362         * tests/unistr/test-u8-cpy-alloc.c: New file.
28363         * tests/unistr/test-cpy-alloc.h: New file.
28364
28365         Tests for module 'unistr/u32-mbsnlen'.
28366         * modules/unistr/u32-mbsnlen-tests: New file.
28367         * tests/unistr/test-u32-mbsnlen.c: New file.
28368
28369         Tests for module 'unistr/u16-mbsnlen'.
28370         * modules/unistr/u16-mbsnlen-tests: New file.
28371         * tests/unistr/test-u16-mbsnlen.c: New file.
28372
28373         Tests for module 'unistr/u8-mbsnlen'.
28374         * modules/unistr/u8-mbsnlen-tests: New file.
28375         * tests/unistr/test-u8-mbsnlen.c: New file.
28376
28377         Tests for module 'unistr/u32-chr'.
28378         * modules/unistr/u32-chr-tests: New file.
28379         * tests/unistr/test-u32-chr.c: New file.
28380
28381         Tests for module 'unistr/u16-chr'.
28382         * modules/unistr/u16-chr-tests: New file.
28383         * tests/unistr/test-u16-chr.c: New file.
28384
28385         Tests for module 'unistr/u8-chr'.
28386         * modules/unistr/u8-chr-tests: New file.
28387         * tests/unistr/test-u8-chr.c: New file.
28388         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28389
28390         Tests for module 'unistr/u32-cmp2'.
28391         * modules/unistr/u32-cmp2-tests: New file.
28392         * tests/unistr/test-u32-cmp2.c: New file.
28393
28394         Tests for module 'unistr/u16-cmp2'.
28395         * modules/unistr/u16-cmp2-tests: New file.
28396         * tests/unistr/test-u16-cmp2.c: New file.
28397
28398         Tests for module 'unistr/u8-cmp2'.
28399         * modules/unistr/u8-cmp2-tests: New file.
28400         * tests/unistr/test-u8-cmp2.c: New file.
28401         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28402
28403         Tests for module 'unistr/u32-cmp'.
28404         * modules/unistr/u32-cmp-tests: New file.
28405         * tests/unistr/test-u32-cmp.c: New file.
28406
28407         Tests for module 'unistr/u16-cmp'.
28408         * modules/unistr/u16-cmp-tests: New file.
28409         * tests/unistr/test-u16-cmp.c: New file.
28410
28411         Tests for module 'unistr/u8-cmp'.
28412         * modules/unistr/u8-cmp-tests: New file.
28413         * tests/unistr/test-u8-cmp.c: New file.
28414         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28415
28416         Tests for module 'unistr/u32-set'.
28417         * modules/unistr/u32-set-tests: New file.
28418         * tests/unistr/test-u32-set.c: New file.
28419
28420         Tests for module 'unistr/u16-set'.
28421         * modules/unistr/u16-set-tests: New file.
28422         * tests/unistr/test-u16-set.c: New file.
28423
28424         Tests for module 'unistr/u8-set'.
28425         * modules/unistr/u8-set-tests: New file.
28426         * tests/unistr/test-u8-set.c: New file.
28427         * tests/unistr/test-set.h: New file.
28428
28429         Tests for module 'unistr/u32-move'.
28430         * modules/unistr/u32-move-tests: New file.
28431         * tests/unistr/test-u32-move.c: New file.
28432
28433         Tests for module 'unistr/u16-move'.
28434         * modules/unistr/u16-move-tests: New file.
28435         * tests/unistr/test-u16-move.c: New file.
28436
28437         Tests for module 'unistr/u8-move'.
28438         * modules/unistr/u8-move-tests: New file.
28439         * tests/unistr/test-u8-move.c: New file.
28440         * tests/unistr/test-move.h: New file.
28441
28442         Tests for module 'unistr/u32-cpy'.
28443         * modules/unistr/u32-cpy-tests: New file.
28444         * tests/unistr/test-u32-cpy.c: New file.
28445
28446         Tests for module 'unistr/u16-cpy'.
28447         * modules/unistr/u16-cpy-tests: New file.
28448         * tests/unistr/test-u16-cpy.c: New file.
28449
28450         Tests for module 'unistr/u8-cpy'.
28451         * modules/unistr/u8-cpy-tests: New file.
28452         * tests/unistr/test-u8-cpy.c: New file.
28453         * tests/unistr/test-cpy.h: New file.
28454
28455 2010-01-09  Bruno Haible  <bruno@clisp.org>
28456
28457         Tests for module 'unistr/u32-uctomb'.
28458         * modules/unistr/u32-uctomb-tests: New file.
28459         * tests/unistr/test-u32-uctomb.c: New file.
28460
28461         Tests for module 'unistr/u16-uctomb'.
28462         * modules/unistr/u16-uctomb-tests: New file.
28463         * tests/unistr/test-u16-uctomb.c: New file.
28464
28465         Tests for module 'unistr/u8-uctomb'.
28466         * modules/unistr/u8-uctomb-tests: New file.
28467         * tests/unistr/test-u8-uctomb.c: New file.
28468
28469         Tests for module 'unistr/u32-mbtoucr'.
28470         * modules/unistr/u32-mbtoucr-tests: New file.
28471         * tests/unistr/test-u32-mbtoucr.c: New file.
28472
28473         Tests for module 'unistr/u16-mbtoucr'.
28474         * modules/unistr/u16-mbtoucr-tests: New file.
28475         * tests/unistr/test-u16-mbtoucr.c: New file.
28476
28477         Tests for module 'unistr/u8-mbtoucr'.
28478         * modules/unistr/u8-mbtoucr-tests: New file.
28479         * tests/unistr/test-u8-mbtoucr.c: New file.
28480
28481         Tests for module 'unistr/u32-mbtouc'.
28482         * modules/unistr/u32-mbtouc-tests: New file.
28483         * tests/unistr/test-u32-mbtouc.c: New file.
28484
28485         Tests for module 'unistr/u16-mbtouc'.
28486         * modules/unistr/u16-mbtouc-tests: New file.
28487         * tests/unistr/test-u16-mbtouc.c: New file.
28488
28489         Tests for module 'unistr/u8-mbtouc'.
28490         * modules/unistr/u8-mbtouc-tests: New file.
28491         * tests/unistr/test-u8-mbtouc.c: New file.
28492
28493         Tests for module 'unistr/u32-mbtouc-unsafe'.
28494         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28495         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28496         * tests/unistr/test-u32-mbtouc.h: New file.
28497
28498         Tests for module 'unistr/u16-mbtouc-unsafe'.
28499         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28500         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28501         * tests/unistr/test-u16-mbtouc.h: New file.
28502
28503         Tests for module 'unistr/u8-mbtouc-unsafe'.
28504         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28505         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28506         * tests/unistr/test-u8-mbtouc.h: New file.
28507
28508         Tests for module 'unistr/u32-mblen'.
28509         * modules/unistr/u32-mblen-tests: New file.
28510         * tests/unistr/test-u32-mblen.c: New file.
28511
28512         Tests for module 'unistr/u16-mblen'.
28513         * modules/unistr/u16-mblen-tests: New file.
28514         * tests/unistr/test-u16-mblen.c: New file.
28515
28516         Tests for module 'unistr/u8-mblen'.
28517         * modules/unistr/u8-mblen-tests: New file.
28518         * tests/unistr/test-u8-mblen.c: New file.
28519
28520         Tests for module 'unistr/u32-to-u16'.
28521         * modules/unistr/u32-to-u16-tests: New file.
28522         * tests/unistr/test-u32-to-u16.c: New file.
28523
28524         Tests for module 'unistr/u32-to-u8'.
28525         * modules/unistr/u32-to-u8-tests: New file.
28526         * tests/unistr/test-u32-to-u8.c: New file.
28527
28528         Tests for module 'unistr/u16-to-u32'.
28529         * modules/unistr/u16-to-u32-tests: New file.
28530         * tests/unistr/test-u16-to-u32.c: New file.
28531
28532         Tests for module 'unistr/u16-to-u8'.
28533         * modules/unistr/u16-to-u8-tests: New file.
28534         * tests/unistr/test-u16-to-u8.c: New file.
28535
28536         Tests for module 'unistr/u8-to-u32'.
28537         * modules/unistr/u8-to-u32-tests: New file.
28538         * tests/unistr/test-u8-to-u32.c: New file.
28539
28540         Tests for module 'unistr/u8-to-u16'.
28541         * modules/unistr/u8-to-u16-tests: New file.
28542         * tests/unistr/test-u8-to-u16.c: New file.
28543
28544         Tests for module 'unistr/u32-check'.
28545         * modules/unistr/u32-check-tests: New file.
28546         * tests/unistr/test-u32-check.c: New file.
28547
28548         Tests for module 'unistr/u16-check'.
28549         * modules/unistr/u16-check-tests: New file.
28550         * tests/unistr/test-u16-check.c: New file.
28551
28552         Tests for module 'unistr/u8-check'.
28553         * modules/unistr/u8-check-tests: New file.
28554         * tests/unistr/test-u8-check.c: New file.
28555
28556         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28557         (category_equals): New function.
28558         (main): Add more tests.
28559         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28560
28561         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28562
28563 2010-01-10  Bruno Haible  <bruno@clisp.org>
28564
28565         unistr/u*-strcoll: Try harder to distinguish different strings.
28566         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28567         compare s1 and s2 to see if they are different.
28568
28569 2010-01-10  Bruno Haible  <bruno@clisp.org>
28570
28571         unistr/u*-stpncpy: Fix the return value.
28572         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28573         description of the return value consistent with stpncpy in glibc.
28574         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28575         written non-NUL unit.
28576
28577 2010-01-10  Bruno Haible  <bruno@clisp.org>
28578
28579         unistr/u*-next: Add missing dependencies.
28580         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28581         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28582         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28583
28584 2010-01-10  Bruno Haible  <bruno@clisp.org>
28585
28586         unistr/u8-mbsnlen: Fix return value for incomplete character.
28587         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28588         u8_mblen.
28589         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28590         Remove unistr/u8-mblen.
28591         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28592         u16_mblen.
28593         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28594         Remove unistr/u16-mblen.
28595
28596 2010-01-10  Bruno Haible  <bruno@clisp.org>
28597
28598         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28599         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28600         Reported by Brian Gough <bjg@gnu.org> and
28601         Chris Clayton <chris2553@googlemail.com> via
28602         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28603
28604 2010-01-09  Bruno Haible  <bruno@clisp.org>
28605
28606         unistr/u16-to-u32: Reject invalid input.
28607         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28608         u16_mbtouc.
28609         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28610         Remove unistr/u16-mbtouc.
28611
28612         unistr/u16-to-u8: Reject invalid input.
28613         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28614         u16_mbtouc.
28615         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28616         Remove unistr/u16-mbtouc.
28617
28618         unistr/u8-to-u32: Reject invalid input.
28619         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28620         u8_mbtouc.
28621         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28622         Remove unistr/u8-mbtouc.
28623
28624         unistr/u8-to-u16: Reject invalid input.
28625         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28626         u8_mbtouc.
28627         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28628         Remove unistr/u8-mbtouc.
28629
28630 2010-01-09  Bruno Haible  <bruno@clisp.org>
28631
28632         Tests for module 'getlogin'.
28633         * modules/getlogin-tests: New file.
28634         * tests/test-getlogin.c: New file.
28635
28636         New module 'getlogin'.
28637         * lib/unistd.in.h (getlogin): New declaration.
28638         * lib/getlogin.c: New file.
28639         * m4/getlogin.m4: New file.
28640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28641         HAVE_GETLOGIN.
28642         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28643         HAVE_GETLOGIN.
28644         * modules/getlogin: New file.
28645         * doc/posix-functions/getlogin.texi: Mention the new module.
28646         Reported by John W. Eaton <jwe@gnu.org>.
28647
28648 2010-01-09  Bruno Haible  <bruno@clisp.org>
28649
28650         getlogin_r: Support for native Windows.
28651         * lib/getlogin_r.c: Include <windows.h>
28652         (getlogin_r): Implement for native Windows.
28653         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28655         via John W. Eaton <jwe@gnu.org>.
28656
28657 2010-01-09  Bruno Haible  <bruno@clisp.org>
28658
28659         getlogin_r: Small fixes.
28660         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28661         succeeds.
28662         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28663         before testing whether getlogin_r is declared. No need to set
28664         HAVE_DECL_GETLOGIN_R to 1.
28665         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28666
28667 2010-01-09  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/unistd.in.h (getlogin_r): Add comment.
28670
28671 2010-01-09  Bruno Haible  <bruno@clisp.org>
28672
28673         Tests for module 'getlogin_r'.
28674         * modules/getlogin_r-tests: New file.
28675         * tests/test-getlogin_r.c: New file.
28676
28677 2010-01-09  Jim Meyering  <meyering@redhat.com>
28678
28679         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28680         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28681         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28682
28683 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28684
28685         * lib/dup2.c (rpl_dup2): Improve comment.
28686
28687 2010-01-08  Eric Blake  <ebb9@byu.net>
28688
28689         maint.mk: allow packages to add makefile @@ exceptions
28690         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28691         (sc_makefile_check): Rename...
28692         (sc_makefile_at_at_check): ...to this, and use hook.
28693
28694         dup2: work around mingw bug
28695         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28696         Reported by Simon Josefsson.
28697
28698 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28699
28700         glob: Fix C++ compilation.
28701         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28702         C++.
28703
28704 2010-01-07  Bruno Haible  <bruno@clisp.org>
28705
28706         Fix indentation of wctype.in.h, broken since 2007-01-06.
28707         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28708
28709 2010-01-07  Bruno Haible  <bruno@clisp.org>
28710
28711         mbslen: Avoid collision with system function.
28712         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28713         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28714         * m4/mbslen.m4: New file.
28715         * modules/mbslen (Files): Add it.
28716         (configure.ac): Invoke gl_MBSLEN.
28717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28718         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28719         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28720         via Ian Beckwith <ianb@erislabs.net>.
28721
28722 2010-01-07  Bruno Haible  <bruno@clisp.org>
28723
28724         dirent: Document the last fix.
28725         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28726
28727 2010-01-07  Bruno Haible  <bruno@clisp.org>
28728
28729         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28730         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28731         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28732         va_list are defined.
28733         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28734         Reported by Eric Blake.
28735
28736 2010-01-07  Bruno Haible  <bruno@clisp.org>
28737
28738         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28739         * modules/xlist (Depends-on): Add 'list',
28740         * modules/xoset (Depends-on): Add 'oset'.
28741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28742
28743 2010-01-07  Bruno Haible  <bruno@clisp.org>
28744
28745         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28746         * doc/posix-functions/strncasecmp.texi: Likewise.
28747
28748 2010-01-07  Bruno Haible  <bruno@clisp.org>
28749
28750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28751
28752 2010-01-07  John W. Eaton  <jwe@octave.org>
28753
28754         wctype: allow C++ use
28755         * lib/wctype.in.h: Add extern "C" block for C++.
28756
28757 2010-01-06  Eric Blake  <ebb9@byu.net>
28758
28759         maint.mk: detect incorrect GFDL usage
28760         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28761
28762 2010-01-06  Jim Meyering  <meyering@redhat.com>
28763         and Eric Blake  <ebb9@byu.net>
28764
28765         maint.mk: ignore multi-line copyright in NEWS
28766         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28767
28768 2010-01-06  Eric Blake  <ebb9@byu.net>
28769
28770         select: add missing dependency
28771         * modules/select-tests (Depends-on): Move sockets dependency...
28772         * modules/select (Depends-on): ...here.
28773         Reported by Ian Beckwith.
28774
28775         doc: regenerate INSTALL
28776         * doc/INSTALL: Reflect recent autoconf update.
28777         * doc/INSTALL.ISO: Likewise.
28778         * doc/INSTALL.UTF-8: Likewise.
28779
28780         pread: fix compilation on glibc
28781         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28782         Reported by Ralf Wildenhues.
28783
28784         dirent: fix test failure
28785         * lib/dirent.in.h (includes): Guarantee ino_t.
28786         Reported by Ralf Wildenhues.
28787
28788 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28789
28790         linkat, renameat: avoid bad free
28791         * lib/at-func2.c (at_func2): Fix typo.
28792         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28793
28794 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28795
28796         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28797         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28798         to avoid failure of symlink test later.
28799
28800 2010-01-06  Eric Blake  <ebb9@byu.net>
28801
28802         stdio, unistd: guarantee ssize_t
28803         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28804         2008 are exposed when needed.
28805         * lib/stdio.in.h (includes): Likewise.
28806         Reported by Ralf Wildenhues.
28807
28808 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28809
28810         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28811         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28812         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28813
28814 2010-01-06  Jim Meyering  <meyering@redhat.com>
28815
28816         readtokens: this module *does* require xalloc.h
28817         It uses only functions that were omitted by the old syntax-check rule.
28818         * lib/readtokens.c: Include "xalloc.h" once again.
28819         * modules/readtokens (Depends-on): Add xalloc.
28820         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28821
28822 2010-01-05  Eric Blake  <ebb9@byu.net>
28823
28824         maint: support 'make announcement' from a VPATH build
28825         * top/maint.mk (announcement): Look for correct NEWS file.
28826
28827 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28828
28829         utimens (fdutimens): ignore a negative FD, per contract
28830         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28831         when we have a valid file descriptor.  Otherwise, using a brand
28832         new glibc (with just-patched futimens that now fails with EBADF)
28833         would cause this function to fail with ENOSYS.
28834         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28835         See also http://bugzilla.redhat.com/552320.
28836
28837 2010-01-05  Eric Blake  <ebb9@byu.net>
28838
28839         strcase: document what it provides
28840         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28841         gnulib module.
28842         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28843         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28844
28845 2010-01-05  Jim Meyering  <meyering@redhat.com>
28846
28847         maint: remove useless inclusions of "xalloc.h"
28848         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28849         * lib/readtokens.c: Likewise.
28850         * lib/same.c: Likewise.
28851         * modules/getloadavg (Depends-on): Remove xalloc.
28852         * modules/readtokens: Likewise.
28853         * modules/same: Likewise.
28854
28855         maint.mk: include 4 more function names in alloca.h-checking regexp
28856         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28857         regexp.  Before, we would give a false-positive (saying alloca.h
28858         is included unnecessarily) when the only uses involved omitted symbols.
28859
28860         xalloc.h: use consistent formatting
28861         * lib/xalloc.h: Move declarations to start in the first column.
28862
28863 2010-01-05  Eric Blake  <ebb9@byu.net>
28864
28865         mkdir: avoid xalloc
28866         * lib/mkdir.c (includes): Drop unused header.
28867         Reported by John W. Eaton.
28868
28869 2010-01-04  Jim Meyering  <meyering@redhat.com>
28870
28871         nl_langinfo: avoid configure-time syntax error
28872         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28873         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28874         the empty string.  Don't let that provoke a shell syntax error.
28875
28876         regcomp, regexec, fnmatch: avoid array bounds read error
28877         * lib/regcomp.c (build_equiv_class): From glibc:
28878         Use only the low 24 bits of a findidx return value as an index
28879         into the weights array.  Patch by Ulrich Drepper:
28880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28881         * lib/regexec.c (check_node_accept_bytes): Likewise.
28882         * lib/fnmatch_loop.c (FCT): Likewise.
28883
28884         regcomp: skip collseq lookup when there are no rules
28885         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28886         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28887
28888         regcomp: recognize ill-formed { } expressions
28889         * lib/regcomp.c (parse_dup_op): From glibc:
28890         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28891
28892         regcomp: fix typo in comment
28893         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28894         s/satisfy/satisfies/.
28895
28896         regcomp: sync from glibc: remove dead store
28897         * lib/regcomp.c (duplicate_node_closure): Remove useless
28898         search_duplicated_node call and dead store.
28899
28900         regcomp: sync from glibc; always use nl_langinfo
28901         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28902         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28903         * modules/regex (Depends-on): Add nl_langinfo.
28904
28905 2010-01-04  Eric Blake  <ebb9@byu.net>
28906
28907         fdopendir: fix configure test
28908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28909
28910 2010-01-01  Bruno Haible  <bruno@clisp.org>
28911
28912         wchar: Remove unused configure check.
28913         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28914
28915 2010-01-01  Eric Blake  <ebb9@byu.net>
28916
28917         headers: make check of system header explicit
28918         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28919         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28920         ourselves.
28921         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28925         internals.
28926         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28927         missing.
28928         Suggested by Bruno Haible.
28929
28930 2010-01-01  Jim Meyering  <meyering@redhat.com>
28931
28932         ChangeLog: tweak to eliminate unnecessary copyright line
28933         * ChangeLog: Remove a copyright line that was mistakenly updated
28934         by today's update-copyright run.  Reported by Eric Blake.
28935
28936         test-update-copyright: don't let envvar setting cause test failure
28937         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28938
28939 2010-01-01  Bruno Haible  <bruno@clisp.org>
28940
28941         localename: Avoid gcc warning.
28942         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28943         function if it is not used.
28944
28945 2010-01-01  Jim Meyering  <meyering@redhat.com>
28946
28947         update nearly all FSF copyright year lists to include 2010
28948         Use the same procedure as for 2009, outlined in
28949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28950
28951         version-etc: set COPYRIGHT_YEAR to 2010
28952         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28953
28954 2009-12-31  Eric Blake  <ebb9@byu.net>
28955
28956         doc: correct availability of cygwin 1.5.x getopt
28957         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28958         variables.
28959         * doc/posix-functions/opterr.texi (opterr): Likewise.
28960         * doc/posix-functions/optind.texi (optind): Likewise.
28961         * doc/posix-functions/optopt.texi (optopt): Likewise.
28962         * doc/posix-functions/tzname.texi (tzname): Likewise.
28963
28964         openat: update maintainer
28965         * modules/openat (Maintainer): Add myself.
28966
28967         utimens: avoid shadowing warning
28968         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28969         buffers into one, to avoid shadowing, as well as avoiding a
28970         redundant stat.
28971         Reported by Jim Meyering.
28972
28973         test-dup2: avoid compiler warning
28974         * tests/test-dup2.c (is_inheritable): Only define if used.
28975
28976 2010-01-01  Bruno Haible  <bruno@clisp.org>
28977
28978         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28979         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28980         defined, use wctomb instead of wcrtomb.
28981
28982 2010-01-01  Bruno Haible  <bruno@clisp.org>
28983
28984         iconv: Reject native Solaris iconv.
28985         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28986         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28987
28988 2009-12-31  Bruno Haible  <bruno@clisp.org>
28989
28990         * tests/test-signal.c (main): Remove test of 'SIG'.
28991
28992 2009-12-31  Bruno Haible  <bruno@clisp.org>
28993
28994         spawn: Fix incomplete fix.
28995         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28996         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28997         warnings for GNULIB_POSIXCHECK again.
28998         Reported by Eric Blake.
28999
29000 2009-12-31  Bruno Haible  <bruno@clisp.org>
29001
29002         Avoid namespace pollution on glibc systems.
29003         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29004         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29005         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29006         glibc systems.
29007
29008 2009-12-31  Bruno Haible  <bruno@clisp.org>
29009
29010         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29011         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29012         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29013         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29014         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29015         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29016         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29017
29018 2009-12-31  Bruno Haible  <bruno@clisp.org>
29019
29020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29021         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29022         afterwards.
29023
29024 2009-12-31  Bruno Haible  <bruno@clisp.org>
29025
29026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29027         SYS_UTSNAME_H.
29028
29029 2009-12-31  Bruno Haible  <bruno@clisp.org>
29030
29031         spawn: Fix misapplied patch.
29032         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29033         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29034         warnings for GNULIB_POSIXCHECK.
29035
29036 2009-12-31  Bruno Haible  <bruno@clisp.org>
29037
29038         times: Update after sys_times changed.
29039         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29040         * modules/times (Files): Add it.
29041         (configure.ac): Invoke gl_FUNC_TIMES.
29042
29043 2009-12-31  Bruno Haible  <bruno@clisp.org>
29044
29045         Use AC_C_INLINE where necessary.
29046         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29049         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29050         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29051         * m4/mbiter.m4 (gl_MBITER): Likewise.
29052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29054         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29055         * modules/u64 (configure.ac): Likewise.
29056
29057 2009-12-31  Bruno Haible  <bruno@clisp.org>
29058
29059         Use AC_C_INLINE instead of module 'inline' where possible.
29060         * modules/inline (Description): Clarify purpose.
29061         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29062         * modules/count-one-bits (Depends-on): Remove inline.
29063         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29064         * modules/openat (Depends-on): Remove inline.
29065         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29066         instead of depending on module 'inline'.
29067         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29068         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29069         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29070         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29071         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29072         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29073         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29074         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29075         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29076         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29077         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29078         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29079         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29080         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29081         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29082         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29083         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29084         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29085         Likewise.
29086         * modules/unictype/property-ascii-hex-digit (Depends-on,
29087         configure.ac): Likewise.
29088         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29089         configure.ac): Likewise.
29090         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29091         configure.ac): Likewise.
29092         * modules/unictype/property-bidi-block-separator (Depends-on,
29093         configure.ac): Likewise.
29094         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29095         configure.ac): Likewise.
29096         * modules/unictype/property-bidi-common-separator (Depends-on,
29097         configure.ac): Likewise.
29098         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29099         Likewise.
29100         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29101         configure.ac): Likewise.
29102         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29103         configure.ac): Likewise.
29104         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29105         configure.ac): Likewise.
29106         * modules/unictype/property-bidi-european-digit (Depends-on,
29107         configure.ac): Likewise.
29108         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29109         configure.ac): Likewise.
29110         * modules/unictype/property-bidi-left-to-right (Depends-on,
29111         configure.ac): Likewise.
29112         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29113         configure.ac): Likewise.
29114         * modules/unictype/property-bidi-other-neutral (Depends-on,
29115         configure.ac): Likewise.
29116         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29117         Likewise.
29118         * modules/unictype/property-bidi-segment-separator (Depends-on,
29119         configure.ac): Likewise.
29120         * modules/unictype/property-bidi-whitespace (Depends-on,
29121         configure.ac): Likewise.
29122         * modules/unictype/property-combining (Depends-on, configure.ac):
29123         Likewise.
29124         * modules/unictype/property-composite (Depends-on, configure.ac):
29125         Likewise.
29126         * modules/unictype/property-currency-symbol (Depends-on,
29127         configure.ac): Likewise.
29128         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29129         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29130         Likewise.
29131         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29132         configure.ac): Likewise.
29133         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29134         Likewise.
29135         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29136         Likewise.
29137         * modules/unictype/property-extender (Depends-on, configure.ac):
29138         Likewise.
29139         * modules/unictype/property-format-control (Depends-on, configure.ac):
29140         Likewise.
29141         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29142         Likewise.
29143         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29144         Likewise.
29145         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29146         Likewise.
29147         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29148         Likewise.
29149         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29150         Likewise.
29151         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29152         Likewise.
29153         * modules/unictype/property-id-start (Depends-on, configure.ac):
29154         Likewise.
29155         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29156         Likewise.
29157         * modules/unictype/property-ids-binary-operator (Depends-on,
29158         configure.ac): Likewise.
29159         * modules/unictype/property-ids-trinary-operator (Depends-on,
29160         configure.ac): Likewise.
29161         * modules/unictype/property-ignorable-control (Depends-on,
29162         configure.ac): Likewise.
29163         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29164         Likewise.
29165         * modules/unictype/property-join-control (Depends-on, configure.ac):
29166         Likewise.
29167         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29168         Likewise.
29169         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29170         Likewise.
29171         * modules/unictype/property-logical-order-exception (Depends-on,
29172         configure.ac): Likewise.
29173         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29174         Likewise.
29175         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29176         * modules/unictype/property-non-break (Depends-on, configure.ac):
29177         Likewise.
29178         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29179         Likewise.
29180         * modules/unictype/property-numeric (Depends-on, configure.ac):
29181         Likewise.
29182         * modules/unictype/property-other-alphabetic (Depends-on,
29183         configure.ac): Likewise.
29184         * modules/unictype/property-other-default-ignorable-code-point
29185         (Depends-on, configure.ac): Likewise.
29186         * modules/unictype/property-other-grapheme-extend (Depends-on,
29187         configure.ac): Likewise.
29188         * modules/unictype/property-other-id-continue (Depends-on,
29189         configure.ac): Likewise.
29190         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29191         Likewise.
29192         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29193         Likewise.
29194         * modules/unictype/property-other-math (Depends-on, configure.ac):
29195         Likewise.
29196         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29197         Likewise.
29198         * modules/unictype/property-paired-punctuation (Depends-on,
29199         configure.ac): Likewise.
29200         * modules/unictype/property-paragraph-separator (Depends-on,
29201         configure.ac): Likewise.
29202         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29203         Likewise.
29204         * modules/unictype/property-pattern-white-space (Depends-on,
29205         configure.ac): Likewise.
29206         * modules/unictype/property-private-use (Depends-on, configure.ac):
29207         Likewise.
29208         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29209         Likewise.
29210         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29211         Likewise.
29212         * modules/unictype/property-radical (Depends-on, configure.ac):
29213         Likewise.
29214         * modules/unictype/property-sentence-terminal (Depends-on,
29215         configure.ac): Likewise.
29216         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29217         Likewise.
29218         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29219         * modules/unictype/property-terminal-punctuation (Depends-on,
29220         configure.ac): Likewise.
29221         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29222         Likewise.
29223         * modules/unictype/property-unassigned-code-value (Depends-on,
29224         configure.ac): Likewise.
29225         * modules/unictype/property-unified-ideograph (Depends-on,
29226         configure.ac): Likewise.
29227         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29228         Likewise.
29229         * modules/unictype/property-variation-selector (Depends-on,
29230         configure.ac): Likewise.
29231         * modules/unictype/property-white-space (Depends-on, configure.ac):
29232         Likewise.
29233         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29234         Likewise.
29235         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29236         Likewise.
29237         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29238         Likewise.
29239         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29240         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29241         Likewise.
29242
29243 2009-12-31  Bruno Haible  <bruno@clisp.org>
29244
29245         Remove unnecessary AC_C_INLINE invocation.
29246         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29247         since 2009-08-21.
29248
29249 2009-12-31  Jim Meyering  <meyering@redhat.com>
29250
29251         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29252         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29253         With this change, we can all remove the gpg_key_ID = ... definition
29254         from our respective cfg.mk files.
29255
29256         maint.mk: create announcement template in ~/, not in /tmp
29257         * top/maint.mk (emit_upload_commands): Adjust.
29258         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29259         Remove temporary file, .ci-msg.
29260
29261 2009-12-31  Eric Blake  <ebb9@byu.net>
29262
29263         link-warning: always build headers with link warnings
29264         * modules/arpa_inet (Makefile.am): Always build replacement
29265         header.
29266         * modules/ctype (Makefile.am): Likewise.
29267         * modules/dirent (Makefile.am): Likewise.
29268         * modules/inttypes (Makefile.am): Likewise.
29269         * modules/langinfo (Makefile.am): Likewise.
29270         * modules/locale (Makefile.am): Likewise.
29271         * modules/spawn (Makefile.am): Likewise.
29272         * modules/sys_file (Makefile.am): Likewise.
29273         * modules/sys_ioctl (Makefile.am): Likewise.
29274         * modules/sys_select (Makefile.am): Likewise.
29275         * modules/sys_socket (Makefile.am): Likewise.
29276         * modules/sys_times (Makefile.am): Likewise.
29277         * modules/sys_utsname (Makefile.am): Likewise.
29278         * modules/sys_wait (Makefile.am): Likewise.
29279         * modules/wchar (Makefile.am): Likewise.
29280         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29281         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29282         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29283         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29285         Likewise.
29286         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29287         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29288         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29289         Likewise.
29290         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29291         Likewise.
29292         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29294         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29298         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29299         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29300         (gl_WCHAR_H_DEFAULTS): Likewise.
29301
29302 2009-12-31  Eric Blake  <ebb9@byu.net>
29303
29304         signal, spawn: use link warnings
29305         * lib/signal.in.h (sigset_t): Make unconditional.
29306         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29307         (sigpending, sigprocmask, sigaction): Add link warnings.
29308         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29309         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29310         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29311         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29312         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29313         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29314         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29315         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29316         (posix_spawn_file_actions_destroy)
29317         (posix_spawn_file_actions_addopen)
29318         (posix_spawn_file_actions_addclose)
29319         (posix_spawn_file_actions_adddup2): Likewise.
29320         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29321         * tests/test-signal.c (main): Enhance test.
29322
29323         spawn: improve wrapper support
29324         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29325         (gl_SPAWN_H_DEFAULTS): New defaults.
29326         * modules/spawn (Makefile.am): Substitute them.
29327         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29328         Only declare if missing or broken.
29329
29330         sys_times, sys_utsname: use include_next
29331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29332         header.
29333         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29334         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29335         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29336         * modules/sys_times (Depends-on): Add include_next.
29337         (Makefile.am): Substitute additional values.
29338         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29339         * lib/sys_times.in.h (includes): Include native header, if
29340         available.
29341         * lib/sys_utsname.in.h (includes): Likewise.
29342         * tests/test-sys_times.c (main): Enhance test.
29343
29344         fdutimensat: revert prior patch
29345         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29346         utimens.h.
29347         Reported by Bruno Haible.
29348
29349 2009-12-30  Eric Blake  <ebb9@byu.net>
29350
29351         sys_wait: drop link-warning dependency
29352         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29353         link-warning efforts.
29354         * lib/sys_wait.in.h: Likewise.
29355
29356         fdutimensat: remove bogus dependency
29357         * modules/fdutimensat (Depends-on): Drop inline.
29358
29359         unistd: fix typo
29360         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29361
29362 2009-12-30  Bruno Haible  <bruno@clisp.org>
29363
29364         Fix compilation error with Solaris cc.
29365         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29366         * lib/unicase/u16-is-invariant.c: Likewise.
29367         * lib/unicase/u32-is-invariant.c: Likewise.
29368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29369
29370 2009-12-30  Bruno Haible  <bruno@clisp.org>
29371
29372         Fix test crash.
29373         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29374         locales.
29375         Reported by Simon Josefsson <simon@josefsson.org>.
29376
29377 2009-12-30  Bruno Haible  <bruno@clisp.org>
29378
29379         Fix compilation error on most platforms.
29380         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29381         Reported by Simon Josefsson <simon@josefsson.org>
29382         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29383
29384 2009-12-30  Eric Blake  <ebb9@byu.net>
29385
29386         futimens, utimensat: work around ntfs-3g bug
29387         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29388         a ctime bug is present, and expand workaround to cover ntfs-3g.
29389         * lib/utimens.c (fdutimens, lutimens): Likewise.
29390         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29391         (validate_timespec): Adjust return value.
29392         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29393         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29394         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29395
29396 2009-12-29  Eric Blake  <ebb9@byu.net>
29397
29398         link-warning: make usage consistent
29399         * modules/ctype (Depends-on): Add link-warning.
29400         (Makefile.am): Update rules accordingly.
29401         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29402         * modules/locale (Depends-on, Makefile.am): Likewise.
29403         * modules/sys_file (Makefile.am): Likewise.
29404         * modules/getopt-posix (Makefile.am): Delete unused link warning
29405         efforts.
29406         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29407         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29408         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29409         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29410
29411         stdio: remove unused variables
29412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29414         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29415
29416         tests: test more substitute headers
29417         * modules/ctype-tests: New file.
29418         * modules/dirent-tests: Likewise.
29419         * modules/spawn-tests: Likewise.
29420         * modules/sys_file-tests: Likewise.
29421         * modules/sys_ioctl-tests: Likewise.
29422         * modules/sys_wait-tests: Likewise.
29423         * tests/test-ctype.c: Likewise.
29424         * tests/test-dirent.c: Likewise.
29425         * tests/test-spawn.c: Likewise.
29426         * tests/test-sys_file.c: Likewise.
29427         * tests/test-sys_ioctl.c: Likewise.
29428         * tests/test-sys_wait.c: Likewise.
29429         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29430         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29431         whether or not flock is in use.
29432
29433         tests: remove License section from module
29434         * modules/arpa_inet-tests: Remove unneeded section.
29435         * modules/byteswap-tests: Likewise.
29436         * modules/ceilf-tests: Likewise.
29437         * modules/ceill-tests: Likewise.
29438         * modules/crypto/des-tests: Likewise.
29439         * modules/crypto/gc-arcfour-tests: Likewise.
29440         * modules/crypto/gc-arctwo-tests: Likewise.
29441         * modules/crypto/gc-des-tests: Likewise.
29442         * modules/crypto/gc-hmac-md5-tests: Likewise.
29443         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29444         * modules/crypto/gc-md2-tests: Likewise.
29445         * modules/crypto/gc-md4-tests: Likewise.
29446         * modules/crypto/gc-md5-tests: Likewise.
29447         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29448         * modules/crypto/gc-rijndael-tests: Likewise.
29449         * modules/crypto/gc-sha1-tests: Likewise.
29450         * modules/crypto/gc-tests: Likewise.
29451         * modules/crypto/md2-tests: Likewise.
29452         * modules/crypto/md4-tests: Likewise.
29453         * modules/fcntl-h-tests: Likewise.
29454         * modules/floorf-tests: Likewise.
29455         * modules/floorl-tests: Likewise.
29456         * modules/frexp-nolibm-tests: Likewise.
29457         * modules/frexp-tests: Likewise.
29458         * modules/frexpl-nolibm-tests: Likewise.
29459         * modules/frexpl-tests: Likewise.
29460         * modules/getaddrinfo-tests: Likewise.
29461         * modules/inttypes-tests: Likewise.
29462         * modules/isfinite-tests: Likewise.
29463         * modules/isinf-tests: Likewise.
29464         * modules/ldexpl-tests: Likewise.
29465         * modules/locale-tests: Likewise.
29466         * modules/math-tests: Likewise.
29467         * modules/netdb-tests: Likewise.
29468         * modules/netinet_in-tests: Likewise.
29469         * modules/printf-frexp-tests: Likewise.
29470         * modules/printf-frexpl-tests: Likewise.
29471         * modules/priv-set-tests: Likewise.
29472         * modules/random_r-tests: Likewise.
29473         * modules/round-tests: Likewise.
29474         * modules/roundf-tests: Likewise.
29475         * modules/roundl-tests: Likewise.
29476         * modules/search-tests: Likewise.
29477         * modules/select-tests: Likewise.
29478         * modules/signal-tests: Likewise.
29479         * modules/stdbool-tests: Likewise.
29480         * modules/stddef-tests: Likewise.
29481         * modules/stdint-tests: Likewise.
29482         * modules/stdio-tests: Likewise.
29483         * modules/stdlib-tests: Likewise.
29484         * modules/string-tests: Likewise.
29485         * modules/strings-tests: Likewise.
29486         * modules/sys_select-tests: Likewise.
29487         * modules/sys_socket-tests: Likewise.
29488         * modules/sys_stat-tests: Likewise.
29489         * modules/sys_time-tests: Likewise.
29490         * modules/sys_utsname-tests: Likewise.
29491         * modules/sysexits-tests: Likewise.
29492         * modules/time-tests: Likewise.
29493         * modules/trunc-tests: Likewise.
29494         * modules/truncf-tests: Likewise.
29495         * modules/truncl-tests: Likewise.
29496         * modules/tsearch-tests: Likewise.
29497         * modules/unistd-tests: Likewise.
29498         * modules/wchar-tests: Likewise.
29499         * modules/wctype-tests: Likewise.
29500
29501         tests: fix license on several tests
29502         * tests/test-des.c: Update to GPLv3+.
29503         * tests/test-flock.c: Likewise.
29504         * tests/test-fsync.c: Likewise.
29505         * tests/test-futimens.h: Likewise.
29506         * tests/test-gc-arcfour.c: Likewise.
29507         * tests/test-gc-arctwo.c: Likewise.
29508         * tests/test-gc-des.c: Likewise.
29509         * tests/test-gc-hmac-md5.c: Likewise.
29510         * tests/test-gc-hmac-sha1.c: Likewise.
29511         * tests/test-gc-md2.c: Likewise.
29512         * tests/test-gc-md4.c: Likewise.
29513         * tests/test-gc-md5.c: Likewise.
29514         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29515         * tests/test-gc-rijndael.c: Likewise.
29516         * tests/test-gc-sha1.c: Likewise.
29517         * tests/test-gc.c: Likewise.
29518         * tests/test-getcwd.c: Likewise.
29519         * tests/test-link.c: Likewise.
29520         * tests/test-link.h: Likewise.
29521         * tests/test-lutimens.h: Likewise.
29522         * tests/test-md2.c: Likewise.
29523         * tests/test-md4.c: Likewise.
29524         * tests/test-mkdir.h: Likewise.
29525         * tests/test-rename.c: Likewise.
29526         * tests/test-rename.h: Likewise.
29527         * tests/test-safe-alloc.c: Likewise.
29528         * tests/test-utimens-common.h: Likewise.
29529         * tests/test-utimens.h: Likewise.
29530
29531         maint: sync license texts
29532         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29533         * doc/gpl-3.0.texi: Revert copyright year update.
29534         * doc/lgpl-3.0.texi: Likewise.
29535
29536 2009-12-29  Jim Meyering  <meyering@redhat.com>
29537
29538         update nearly all FSF copyright year lists to include 2009
29539         The files named by the following are exempted:
29540             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29541               test -f "$dst" && { echo "$dst"; continue; }
29542               test -d "$dst" || continue
29543               echo "$dst"/$(basename "$src")
29544             done > exempt
29545             git ls-files tests/unictype >> exempt
29546         In the remaining files, convert to all-interval notation if
29547         - there is already at least one year interval like 2000-2003
29548         - the file is maintained by me
29549         - the file is in lib/uni*/, where that style already prevails
29550         Otherwise, use update-copyright's default.
29551
29552 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29553         and Eric Blake  <ebb9@byu.net>
29554
29555         tests: don't require debug system() to pass
29556         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29557         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29558         * tests/test-unlink.h (test_unlink_func): Likewise.
29559         * tests/test-fstatat.c (main): ...into callers.
29560         * tests/test-lstat.c (main): Likewise.
29561         * tests/test-rmdir.c (main): Likewise.
29562         * tests/test-unlink.c (main): Likewise.
29563         * tests/test-unlinkat.c (main): Likewise.
29564         * tests/test-areadlink-with-size.c (main): Don't require a
29565         debug-only system call to pass, aiding cross-testing to mingw.
29566         * tests/test-areadlink.c (main): Likewise.
29567         * tests/test-areadlinkat-with-size.c (main): Likewise.
29568         * tests/test-areadlinkat.c (main): Likewise.
29569         * tests/test-canonicalize-lgpl.c (main): Likewise.
29570         * tests/test-canonicalize.c (main): Likewise.
29571         * tests/test-chown.c (main): Likewise.
29572         * tests/test-fchownat.c (main): Likewise.
29573         * tests/test-lchown.c (main): Likewise.
29574         * tests/test-fdutimensat.c (main): Likewise.
29575         * tests/test-futimens.c (main): Likewise.
29576         * tests/test-link.c (main): Likewise.
29577         * tests/test-linkat.c (main): Likewise.
29578         * tests/test-mkdir.c (main): Likewise.
29579         * tests/test-mkdirat.c (main): Likewise.
29580         * tests/test-mkfifo.c (main): Likewise.
29581         * tests/test-mkfifoat.c (main): Likewise.
29582         * tests/test-mknod.c (main): Likewise.
29583         * tests/test-readlink.c (main): Likewise.
29584         * tests/test-remove.c (main): Likewise.
29585         * tests/test-rename.c (main): Likewise.
29586         * tests/test-renameat.c (main): Likewise.
29587         * tests/test-symlink.c (main): Likewise.
29588         * tests/test-symlinkat.c (main): Likewise.
29589         * tests/test-utimens.c (main): Likewise.
29590         * tests/test-utimensat.c (main): Likewise.
29591
29592 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29593
29594         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29595         on $(UNUSED_PARAMETER_H) to avoid build failure.
29596
29597 2009-12-28  Jim Meyering  <meyering@redhat.com>
29598
29599         update-copyright: you may specify a max. line length other than 72
29600         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29601
29602         maint: use consistent FSF copyright line syntax
29603         * lib/posixtm.c: Add missing comma in FSF copyright line.
29604         * lib/posixtm.h: Likewise.
29605         * lib/getugroups.c: Add missing ", Inc.".
29606
29607         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29608         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29609         FSF copyright line.  Remove trailing blanks.
29610
29611 2009-12-28  Eric Blake  <ebb9@byu.net>
29612
29613         test-dup2: reduce dependencies
29614         * modules/cloexec (Configure.ac): Set witness.
29615         * modules/dup2-tests (Depends-on): Drop cloexec.
29616         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29617         not present.
29618         Suggested by Bruno Haible.
29619
29620 2009-12-26  Bruno Haible  <bruno@clisp.org>
29621
29622         Remove an unneeded dependency.
29623         * modules/fseterr (Depends-on): Remove dup2.
29624
29625 2009-12-26  Eric Blake  <ebb9@byu.net>
29626
29627         tests: use macros.h in more places
29628         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29629         (ASSERT_STREAM): Provide default of stderr.
29630         * tests/test-dirent-safer.c: Include macros.h, using alternate
29631         stream for assertions.
29632         * tests/test-dup-safer.c: Likewise.
29633         * tests/test-freopen-safer.c: Likewise.
29634         * tests/test-getopt.c: Likewise.
29635         * tests/test-openat-safer.c: Likewise.
29636         * tests/test-pipe.c: Likewise.
29637         * tests/test-popen-safer.c: Likewise.
29638         * modules/dirent-safer-tests (Files): Include macros.h.
29639         * modules/unistd-safer-tests (Files): Likewise.
29640         * modules/freopen-safer-tests (Files): Likewise.
29641         * modules/getopt-posix-tests (Files): Likewise.
29642         * modules/openat-safer-tests (Files): Likewise.
29643         * modules/pipe-tests (Files): Likewise.
29644
29645 2009-12-26  Bruno Haible  <bruno@clisp.org>
29646
29647         javacomp: Portability fix.
29648         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29649         that it also works on Solaris.
29650
29651 2009-12-26  Bruno Haible  <bruno@clisp.org>
29652
29653         localename: Fix storage allocation of gl_locale_name_thread's result.
29654         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29655         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29656         all platforms that have 'uselocale'.
29657         (gl_locale_name_thread_unsafe): New function, extracted from
29658         gl_locale_name_thread.
29659         (gl_locale_name_thread): Call struniq on all platforms that have
29660         'uselocale'.
29661         * tests/test-localename.c (test_locale_name_thread): Check that the
29662         resulting strings are permanently allocated.
29663         * modules/localename-tests (Depends-on): Add strdup.
29664
29665 2009-12-26  Bruno Haible  <bruno@clisp.org>
29666
29667         * tests/test-localename.c (categories): Fill in the strings.
29668
29669 2009-12-26  Jim Meyering  <meyering@redhat.com>
29670
29671         isdir: complete the removal of m4/isdir.m4
29672         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29673
29674         isdir: clean up, since at least grep still uses it
29675         * lib/isdir.c: Include "isdir.h".
29676         (S_ISDIR): Remove now-unneeded definition.
29677         * modules/isdir (Files): Add lib/isdir.h.
29678         * lib/isdir.h: New file, with declaration.
29679         * m4/isdir.m4: Remove file -- unneeded.
29680
29681 2009-12-25  Bruno Haible  <bruno@clisp.org>
29682
29683         selinux-h: Make generated .h files standalone.
29684         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29685         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29686         * lib/se-selinux.in.h: Likewise.
29687         * modules/selinux-h (Depends-on): Add unused-parameter.
29688         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29689         selinux/selinux.h and selinux/context.h.
29690         Suggested by Eric Blake.
29691
29692 2009-12-25  Bruno Haible  <bruno@clisp.org>
29693
29694         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29695         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29696         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29697         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29698         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29699
29700 2009-12-24  Bruno Haible  <bruno@clisp.org>
29701
29702         openat: Fix warning.
29703         * lib/openat-proc.c: Include <unistd.h>.
29704
29705 2009-12-24  Bruno Haible  <bruno@clisp.org>
29706
29707         New module 'unused-parameter'.
29708         * build-aux/unused-parameter.h: New file, extracted from earlier
29709         gnulib-common.m4.
29710         * modules/unused-parameter: New file.
29711         * lib/unistr.h: Include unused-parameter.h.
29712         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29713         _GL_UNUSED.
29714         * modules/unistr/base (Depends-on): Add unused-parameter.
29715
29716 2009-12-24  Bruno Haible  <bruno@clisp.org>
29717
29718         Add missing dependencies to 'extensions' module.
29719         * m4/extensions.m4: Add comment.
29720         * modules/accept4 (Depends-on): Add extensions.
29721         * modules/dup3 (Depends-on): Likewise.
29722         * modules/fcntl (Depends-on): Likewise.
29723         * modules/futimens (Depends-on): Likewise.
29724         * modules/mknod (Depends-on): Likewise.
29725         * modules/pipe2 (Depends-on): Likewise.
29726         * modules/stat-time (Depends-on): Likewise.
29727         * modules/strcasestr-simple (Depends-on): Likewise.
29728         * modules/strsignal (Depends-on): Likewise.
29729         * modules/utimensat (Depends-on): Likewise.
29730         * modules/localcharset (Depends-on): Likewise. Needed because of
29731         gl_FCNTL_O_FLAGS.
29732         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29733         AC_TYPE_MBSTATE_T.
29734         * modules/wcsnrtombs (Depends-on): Likewise.
29735         * modules/wcsrtombs (Depends-on): Likewise.
29736
29737 2009-12-24  Bruno Haible  <bruno@clisp.org>
29738
29739         binary-io: Avoid gcc warning due to SET_BINARY.
29740         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29741         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29742
29743 2009-12-24  Bruno Haible  <bruno@clisp.org>
29744
29745         Avoid future namespace pollution on glibc systems.
29746         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29747         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29748         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29749         glibc systems.
29750
29751 2009-12-24  Bruno Haible  <bruno@clisp.org>
29752
29753         Refactor common macros used in tests.
29754         * tests/macros.h: New file.
29755         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29756         and/or <stdlib.h>, if appropriate.
29757         (ASSERT, SIZEOF): Remove macros.
29758         * tests/test-areadlink-with-size.c: Likewise.
29759         * tests/test-areadlinkat.c: Likewise.
29760         * tests/test-areadlinkat-with-size.c: Likewise.
29761         * tests/test-argmatch.c: Likewise.
29762         * tests/test-argv-iter.c: Likewise.
29763         * tests/test-array-mergesort.c: Likewise.
29764         * tests/test-array_list.c: Likewise.
29765         * tests/test-array_oset.c: Likewise.
29766         * tests/test-avltree_list.c: Likewise.
29767         * tests/test-avltree_oset.c: Likewise.
29768         * tests/test-avltreehash_list.c: Likewise.
29769         * tests/test-base64.c: Likewise.
29770         * tests/test-binary-io.c: Likewise.
29771         * tests/test-bitrotate.c: Likewise.
29772         * tests/test-btowc.c: Likewise.
29773         * tests/test-byteswap.c: Likewise.
29774         * tests/test-c-ctype.c: Likewise.
29775         * tests/test-c-stack.c: Likewise.
29776         * tests/test-c-strcasecmp.c: Likewise.
29777         * tests/test-c-strcasestr.c: Likewise.
29778         * tests/test-c-strncasecmp.c: Likewise.
29779         * tests/test-c-strstr.c: Likewise.
29780         * tests/test-canonicalize-lgpl.c: Likewise.
29781         * tests/test-canonicalize.c: Likewise.
29782         * tests/test-carray_list.c: Likewise.
29783         * tests/test-ceilf1.c: Likewise.
29784         * tests/test-ceilf2.c: Likewise.
29785         * tests/test-ceill.c: Likewise.
29786         * tests/test-chown.c: Likewise.
29787         * tests/test-cloexec.c: Likewise.
29788         * tests/test-copy-acl.c: Likewise.
29789         * tests/test-copy-file.c: Likewise.
29790         * tests/test-count-one-bits.c: Likewise.
29791         * tests/test-dprintf-posix.c: Likewise.
29792         * tests/test-dup2.c: Likewise.
29793         * tests/test-dup3.c: Likewise.
29794         * tests/test-duplocale.c: Likewise.
29795         * tests/test-fbufmode.c: Likewise.
29796         * tests/test-fchdir.c: Likewise.
29797         * tests/test-fchownat.c: Likewise.
29798         * tests/test-fcntl-safer.c: Likewise.
29799         * tests/test-fcntl.c: Likewise.
29800         * tests/test-fdopendir.c: Likewise.
29801         * tests/test-fdutimensat.c: Likewise.
29802         * tests/test-fflush2.c: Likewise.
29803         * tests/test-file-has-acl.c: Likewise.
29804         * tests/test-filevercmp.c: Likewise.
29805         * tests/test-flock.c: Likewise.
29806         * tests/test-floorf1.c: Likewise.
29807         * tests/test-floorf2.c: Likewise.
29808         * tests/test-floorl.c: Likewise.
29809         * tests/test-fnmatch.c: Likewise.
29810         * tests/test-fopen.h: Likewise.
29811         * tests/test-fpending.c: Likewise.
29812         * tests/test-fprintf-posix.c: Likewise.
29813         * tests/test-fpurge.c: Likewise.
29814         * tests/test-freadable.c: Likewise.
29815         * tests/test-freadahead.c: Likewise.
29816         * tests/test-freading.c: Likewise.
29817         * tests/test-freadptr.c: Likewise.
29818         * tests/test-freadptr2.c: Likewise.
29819         * tests/test-freadseek.c: Likewise.
29820         * tests/test-freopen.c: Likewise.
29821         * tests/test-frexp.c: Likewise.
29822         * tests/test-frexpl.c: Likewise.
29823         * tests/test-fseek.c: Likewise.
29824         * tests/test-fseeko.c: Likewise.
29825         * tests/test-fstatat.c: Likewise.
29826         * tests/test-fstrcmp.c: Likewise.
29827         * tests/test-fsync.c: Likewise.
29828         * tests/test-ftell.c: Likewise.
29829         * tests/test-ftello.c: Likewise.
29830         * tests/test-func.c: Likewise.
29831         * tests/test-futimens.c: Likewise.
29832         * tests/test-fwritable.c: Likewise.
29833         * tests/test-fwriting.c: Likewise.
29834         * tests/test-getcwd.c: Likewise.
29835         * tests/test-getdate.c: Likewise.
29836         * tests/test-getdelim.c: Likewise.
29837         * tests/test-getdtablesize.c: Likewise.
29838         * tests/test-getgroups.c: Likewise.
29839         * tests/test-getline.c: Likewise.
29840         * tests/test-getndelim2.c: Likewise.
29841         * tests/test-glob.c: Likewise.
29842         * tests/test-hash.c: Likewise.
29843         * tests/test-i-ring.c: Likewise.
29844         * tests/test-iconv-utf.c: Likewise.
29845         * tests/test-iconv.c: Likewise.
29846         * tests/test-idpriv-drop.c: Likewise.
29847         * tests/test-idpriv-droptemp.c: Likewise.
29848         * tests/test-inet_ntop.c: Likewise.
29849         * tests/test-inet_pton.c: Likewise.
29850         * tests/test-isblank.c: Likewise.
29851         * tests/test-isfinite.c: Likewise.
29852         * tests/test-isinf.c: Likewise.
29853         * tests/test-isnan.c: Likewise.
29854         * tests/test-isnand.h: Likewise.
29855         * tests/test-isnanf.h: Likewise.
29856         * tests/test-isnanl.h: Likewise.
29857         * tests/test-lchown.c: Likewise.
29858         * tests/test-ldexpl.c: Likewise.
29859         * tests/test-link.c: Likewise.
29860         * tests/test-linkat.c: Likewise.
29861         * tests/test-linked_list.c: Likewise.
29862         * tests/test-linkedhash_list.c: Likewise.
29863         * tests/test-localename.c: Likewise.
29864         * tests/test-lseek.c: Likewise.
29865         * tests/test-lstat.c: Likewise.
29866         * tests/test-mbmemcasecmp.c: Likewise.
29867         * tests/test-mbmemcasecoll.c: Likewise.
29868         * tests/test-mbrtowc.c: Likewise.
29869         * tests/test-mbscasecmp.c: Likewise.
29870         * tests/test-mbscasestr1.c: Likewise.
29871         * tests/test-mbscasestr2.c: Likewise.
29872         * tests/test-mbscasestr3.c: Likewise.
29873         * tests/test-mbscasestr4.c: Likewise.
29874         * tests/test-mbschr.c: Likewise.
29875         * tests/test-mbscspn.c: Likewise.
29876         * tests/test-mbsinit.c: Likewise.
29877         * tests/test-mbsncasecmp.c: Likewise.
29878         * tests/test-mbsnrtowcs.c: Likewise.
29879         * tests/test-mbspbrk.c: Likewise.
29880         * tests/test-mbspcasecmp.c: Likewise.
29881         * tests/test-mbsrchr.c: Likewise.
29882         * tests/test-mbsrtowcs.c: Likewise.
29883         * tests/test-mbsspn.c: Likewise.
29884         * tests/test-mbsstr1.c: Likewise.
29885         * tests/test-mbsstr2.c: Likewise.
29886         * tests/test-mbsstr3.c: Likewise.
29887         * tests/test-memchr.c: Likewise.
29888         * tests/test-memchr2.c: Likewise.
29889         * tests/test-memcmp.c: Likewise.
29890         * tests/test-memmem.c: Likewise.
29891         * tests/test-memrchr.c: Likewise.
29892         * tests/test-mkdir.c: Likewise.
29893         * tests/test-mkdirat.c: Likewise.
29894         * tests/test-mkfifo.c: Likewise.
29895         * tests/test-mkfifoat.c: Likewise.
29896         * tests/test-mknod.c: Likewise.
29897         * tests/test-nanosleep.c: Likewise.
29898         * tests/test-nl_langinfo.c: Likewise.
29899         * tests/test-obstack-printf.c: Likewise.
29900         * tests/test-open.c: Likewise.
29901         * tests/test-openat.c: Likewise.
29902         * tests/test-pipe-filter-gi1.c: Likewise.
29903         * tests/test-pipe-filter-gi2-main.c: Likewise.
29904         * tests/test-pipe-filter-ii1.c: Likewise.
29905         * tests/test-pipe-filter-ii2-main.c: Likewise.
29906         * tests/test-pipe2.c: Likewise.
29907         * tests/test-popen.h: Likewise.
29908         * tests/test-posixtm.c: Likewise.
29909         * tests/test-pread.c: Likewise.
29910         * tests/test-printf-frexp.c: Likewise.
29911         * tests/test-printf-frexpl.c: Likewise.
29912         * tests/test-printf-posix.c: Likewise.
29913         * tests/test-priv-set.c: Likewise.
29914         * tests/test-quotearg.c: Likewise.
29915         * tests/test-random_r.c: Likewise.
29916         * tests/test-rawmemchr.c: Likewise.
29917         * tests/test-rbtree_list.c: Likewise.
29918         * tests/test-rbtree_oset.c: Likewise.
29919         * tests/test-rbtreehash_list.c: Likewise.
29920         * tests/test-readlink.c: Likewise.
29921         * tests/test-remove.c: Likewise.
29922         * tests/test-rename.c: Likewise.
29923         * tests/test-renameat.c: Likewise.
29924         * tests/test-rmdir.c: Likewise.
29925         * tests/test-round1.c: Likewise.
29926         * tests/test-roundf1.c: Likewise.
29927         * tests/test-roundl.c: Likewise.
29928         * tests/test-safe-alloc.c: Likewise.
29929         * tests/test-sameacls.c: Likewise.
29930         * tests/test-set-mode-acl.c: Likewise.
29931         * tests/test-setenv.c: Likewise.
29932         * tests/test-sigaction.c: Likewise.
29933         * tests/test-signbit.c: Likewise.
29934         * tests/test-sleep.c: Likewise.
29935         * tests/test-snprintf-posix.c: Likewise.
29936         * tests/test-snprintf.c: Likewise.
29937         * tests/test-sprintf-posix.c: Likewise.
29938         * tests/test-stat-time.c: Likewise.
29939         * tests/test-stat.c: Likewise.
29940         * tests/test-strcasestr.c: Likewise.
29941         * tests/test-strchrnul.c: Likewise.
29942         * tests/test-strerror.c: Likewise.
29943         * tests/test-striconv.c: Likewise.
29944         * tests/test-striconveh.c: Likewise.
29945         * tests/test-striconveha.c: Likewise.
29946         * tests/test-strsignal.c: Likewise.
29947         * tests/test-strstr.c: Likewise.
29948         * tests/test-strtod.c: Likewise.
29949         * tests/test-strverscmp.c: Likewise.
29950         * tests/test-symlink.c: Likewise.
29951         * tests/test-symlinkat.c: Likewise.
29952         * tests/test-trunc1.c: Likewise.
29953         * tests/test-trunc2.c: Likewise.
29954         * tests/test-truncf1.c: Likewise.
29955         * tests/test-truncf2.c: Likewise.
29956         * tests/test-truncl.c: Likewise.
29957         * tests/test-uname.c: Likewise.
29958         * tests/test-unlink.c: Likewise.
29959         * tests/test-unlinkat.c: Likewise.
29960         * tests/test-unsetenv.c: Likewise.
29961         * tests/test-usleep.c: Likewise.
29962         * tests/test-utimens.c: Likewise.
29963         * tests/test-utimensat.c: Likewise.
29964         * tests/test-vasnprintf-posix.c: Likewise.
29965         * tests/test-vasnprintf-posix2.c: Likewise.
29966         * tests/test-vasnprintf.c: Likewise.
29967         * tests/test-vasprintf-posix.c: Likewise.
29968         * tests/test-vasprintf.c: Likewise.
29969         * tests/test-vdprintf-posix.c: Likewise.
29970         * tests/test-vfprintf-posix.c: Likewise.
29971         * tests/test-vprintf-posix.c: Likewise.
29972         * tests/test-vsnprintf-posix.c: Likewise.
29973         * tests/test-vsnprintf.c: Likewise.
29974         * tests/test-vsprintf-posix.c: Likewise.
29975         * tests/test-wcrtomb.c: Likewise.
29976         * tests/test-wcsnrtombs.c: Likewise.
29977         * tests/test-wcsrtombs.c: Likewise.
29978         * tests/test-wctype.c: Likewise.
29979         * tests/test-wcwidth.c: Likewise.
29980         * tests/test-xfprintf-posix.c: Likewise.
29981         * tests/test-xmemdup0.c: Likewise.
29982         * tests/test-xprintf-posix.c: Likewise.
29983         * tests/test-xvasprintf.c: Likewise.
29984         * tests/unicase/test-locale-language.c: Likewise.
29985         * tests/unicase/test-mapping-part1.h: Likewise.
29986         * tests/unicase/test-predicate-part1.h: Likewise.
29987         * tests/unicase/test-u8-casecmp.c: Likewise.
29988         * tests/unicase/test-u8-casecoll.c: Likewise.
29989         * tests/unicase/test-u8-casefold.c: Likewise.
29990         * tests/unicase/test-u8-is-cased.c: Likewise.
29991         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29992         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29993         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29994         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29995         * tests/unicase/test-u8-tolower.c: Likewise.
29996         * tests/unicase/test-u8-totitle.c: Likewise.
29997         * tests/unicase/test-u8-toupper.c: Likewise.
29998         * tests/unicase/test-u16-casecmp.c: Likewise.
29999         * tests/unicase/test-u16-casecoll.c: Likewise.
30000         * tests/unicase/test-u16-casefold.c: Likewise.
30001         * tests/unicase/test-u16-is-cased.c: Likewise.
30002         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30003         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30004         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30005         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30006         * tests/unicase/test-u16-tolower.c: Likewise.
30007         * tests/unicase/test-u16-totitle.c: Likewise.
30008         * tests/unicase/test-u16-toupper.c: Likewise.
30009         * tests/unicase/test-u32-casecmp.c: Likewise.
30010         * tests/unicase/test-u32-casecoll.c: Likewise.
30011         * tests/unicase/test-u32-casefold.c: Likewise.
30012         * tests/unicase/test-u32-is-cased.c: Likewise.
30013         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30014         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30015         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30016         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30017         * tests/unicase/test-u32-tolower.c: Likewise.
30018         * tests/unicase/test-u32-totitle.c: Likewise.
30019         * tests/unicase/test-u32-toupper.c: Likewise.
30020         * tests/unicase/test-ulc-casecmp.c: Likewise.
30021         * tests/unicase/test-ulc-casecoll.c: Likewise.
30022         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30023         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30024         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30025         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30026         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30027         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30028         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30029         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30030         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30031         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30034         * tests/unictype/test-bidi_byname.c: Likewise.
30035         * tests/unictype/test-bidi_name.c: Likewise.
30036         * tests/unictype/test-bidi_of.c: Likewise.
30037         * tests/unictype/test-bidi_test.c: Likewise.
30038         * tests/unictype/test-block_list.c: Likewise.
30039         * tests/unictype/test-block_of.c: Likewise.
30040         * tests/unictype/test-block_test.c: Likewise.
30041         * tests/unictype/test-categ_and.c: Likewise.
30042         * tests/unictype/test-categ_and_not.c: Likewise.
30043         * tests/unictype/test-categ_byname.c: Likewise.
30044         * tests/unictype/test-categ_name.c: Likewise.
30045         * tests/unictype/test-categ_none.c: Likewise.
30046         * tests/unictype/test-categ_of.c: Likewise.
30047         * tests/unictype/test-categ_or.c: Likewise.
30048         * tests/unictype/test-categ_test_withtable.c: Likewise.
30049         * tests/unictype/test-combining.c: Likewise.
30050         * tests/unictype/test-decdigit.c: Likewise.
30051         * tests/unictype/test-digit.c: Likewise.
30052         * tests/unictype/test-mirror.c: Likewise.
30053         * tests/unictype/test-numeric.c: Likewise.
30054         * tests/unictype/test-pr_byname.c: Likewise.
30055         * tests/unictype/test-pr_test.c: Likewise.
30056         * tests/unictype/test-predicate-part1.h: Likewise.
30057         * tests/unictype/test-scripts.c: Likewise.
30058         * tests/unictype/test-sy_c_ident.c: Likewise.
30059         * tests/unictype/test-sy_java_ident.c: Likewise.
30060         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30061         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30062         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30063         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30064         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30065         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30066         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30067         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30068         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30069         * tests/uninorm/test-compat-decomposition.c: Likewise.
30070         * tests/uninorm/test-composition.c: Likewise.
30071         * tests/uninorm/test-decomposing-form.c: Likewise.
30072         * tests/uninorm/test-decomposition.c: Likewise.
30073         * tests/uninorm/test-u8-nfc.c: Likewise.
30074         * tests/uninorm/test-u8-nfd.c: Likewise.
30075         * tests/uninorm/test-u8-nfkc.c: Likewise.
30076         * tests/uninorm/test-u8-nfkd.c: Likewise.
30077         * tests/uninorm/test-u8-normcmp.c: Likewise.
30078         * tests/uninorm/test-u8-normcoll.c: Likewise.
30079         * tests/uninorm/test-u16-nfc.c: Likewise.
30080         * tests/uninorm/test-u16-nfd.c: Likewise.
30081         * tests/uninorm/test-u16-nfkc.c: Likewise.
30082         * tests/uninorm/test-u16-nfkd.c: Likewise.
30083         * tests/uninorm/test-u16-normcmp.c: Likewise.
30084         * tests/uninorm/test-u16-normcoll.c: Likewise.
30085         * tests/uninorm/test-u32-nfc.c: Likewise.
30086         * tests/uninorm/test-u32-nfd.c: Likewise.
30087         * tests/uninorm/test-u32-nfkc.c: Likewise.
30088         * tests/uninorm/test-u32-nfkd.c: Likewise.
30089         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30090         * tests/uninorm/test-u32-normcmp.c: Likewise.
30091         * tests/uninorm/test-u32-normcoll.c: Likewise.
30092         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30093         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30094         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30095         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30096         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30097         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30098         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30099         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30100         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30101         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30102         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30103         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30104         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30105         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30106         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30107         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30108         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30109         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30110         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30111         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30112         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30113         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30114         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30115         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30116         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30117         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30118         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30119         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30120         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30121         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30122         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30123         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30124         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30125         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30126         * tests/uniwidth/test-u8-width.c: Likewise.
30127         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30128         * tests/uniwidth/test-u16-width.c: Likewise.
30129         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30130         * tests/uniwidth/test-u32-width.c: Likewise.
30131         * tests/uniwidth/test-uc_width.c: Likewise.
30132         * tests/uniwidth/test-uc_width2.c: Likewise.
30133         * modules/acl-tests (Files): Add tests/macros.h.
30134         * modules/areadlink-tests (Files): Likewise.
30135         * modules/areadlink-with-size-tests (Files): Likewise.
30136         * modules/areadlinkat-tests (Files): Likewise.
30137         * modules/areadlinkat-with-size-tests (Files): Likewise.
30138         * modules/argmatch-tests (Files): Likewise.
30139         * modules/argv-iter-tests (Files): Likewise.
30140         * modules/array-list-tests (Files): Likewise.
30141         * modules/array-mergesort-tests (Files): Likewise.
30142         * modules/array-oset-tests (Files): Likewise.
30143         * modules/avltree-list-tests (Files): Likewise.
30144         * modules/avltree-oset-tests (Files): Likewise.
30145         * modules/avltreehash-list-tests (Files): Likewise.
30146         * modules/base64-tests (Files): Likewise.
30147         * modules/binary-io-tests (Files): Likewise.
30148         * modules/bitrotate-tests (Files): Likewise.
30149         * modules/btowc-tests (Files): Likewise.
30150         * modules/byteswap-tests (Files): Likewise.
30151         * modules/c-ctype-tests (Files): Likewise.
30152         * modules/c-stack-tests (Files): Likewise.
30153         * modules/c-strcase-tests (Files): Likewise.
30154         * modules/c-strcasestr-tests (Files): Likewise.
30155         * modules/c-strstr-tests (Files): Likewise.
30156         * modules/canonicalize-lgpl-tests (Files): Likewise.
30157         * modules/canonicalize-tests (Files): Likewise.
30158         * modules/carray-list-tests (Files): Likewise.
30159         * modules/ceilf-tests (Files): Likewise.
30160         * modules/ceill-tests (Files): Likewise.
30161         * modules/chown-tests (Files): Likewise.
30162         * modules/cloexec-tests (Files): Likewise.
30163         * modules/copy-file-tests (Files): Likewise.
30164         * modules/count-one-bits-tests (Files): Likewise.
30165         * modules/dprintf-posix-tests (Files): Likewise.
30166         * modules/dup2-tests (Files): Likewise.
30167         * modules/dup3-tests (Files): Likewise.
30168         * modules/duplocale-tests (Files): Likewise.
30169         * modules/fbufmode-tests (Files): Likewise.
30170         * modules/fchdir-tests (Files): Likewise.
30171         * modules/fcntl-safer-tests (Files): Likewise.
30172         * modules/fcntl-tests (Files): Likewise.
30173         * modules/fdopendir-tests (Files): Likewise.
30174         * modules/fdutimensat-tests (Files): Likewise.
30175         * modules/fflush-tests (Files): Likewise.
30176         * modules/filevercmp-tests (Files): Likewise.
30177         * modules/flock-tests (Files): Likewise.
30178         * modules/floorf-tests (Files): Likewise.
30179         * modules/floorl-tests (Files): Likewise.
30180         * modules/fnmatch-tests (Files): Likewise.
30181         * modules/fopen-safer-tests (Files): Likewise.
30182         * modules/fopen-tests (Files): Likewise.
30183         * modules/fpending-tests (Files): Likewise.
30184         * modules/fprintf-posix-tests (Files): Likewise.
30185         * modules/fpurge-tests (Files): Likewise.
30186         * modules/freadable-tests (Files): Likewise.
30187         * modules/freadahead-tests (Files): Likewise.
30188         * modules/freading-tests (Files): Likewise.
30189         * modules/freadptr-tests (Files): Likewise.
30190         * modules/freadseek-tests (Files): Likewise.
30191         * modules/freopen-tests (Files): Likewise.
30192         * modules/frexp-nolibm-tests (Files): Likewise.
30193         * modules/frexp-tests (Files): Likewise.
30194         * modules/frexpl-nolibm-tests (Files): Likewise.
30195         * modules/frexpl-tests (Files): Likewise.
30196         * modules/fseek-tests (Files): Likewise.
30197         * modules/fseeko-tests (Files): Likewise.
30198         * modules/fstrcmp-tests (Files): Likewise.
30199         * modules/fsync-tests (Files): Likewise.
30200         * modules/ftell-tests (Files): Likewise.
30201         * modules/ftello-tests (Files): Likewise.
30202         * modules/func-tests (Files): Likewise.
30203         * modules/futimens-tests (Files): Likewise.
30204         * modules/fwritable-tests (Files): Likewise.
30205         * modules/fwriting-tests (Files): Likewise.
30206         * modules/getcwd-tests (Files): Likewise.
30207         * modules/getdate-tests (Files): Likewise.
30208         * modules/getdelim-tests (Files): Likewise.
30209         * modules/getdtablesize-tests (Files): Likewise.
30210         * modules/getgroups-tests (Files): Likewise.
30211         * modules/getline-tests (Files): Likewise.
30212         * modules/getndelim2-tests (Files): Likewise.
30213         * modules/glob-tests (Files): Likewise.
30214         * modules/hash-tests (Files): Likewise.
30215         * modules/i-ring-tests (Files): Likewise.
30216         * modules/iconv-tests (Files): Likewise.
30217         * modules/iconv_open-utf-tests (Files): Likewise.
30218         * modules/idpriv-drop-tests (Files): Likewise.
30219         * modules/idpriv-droptemp-tests (Files): Likewise.
30220         * modules/inet_ntop-tests (Files): Likewise.
30221         * modules/inet_pton-tests (Files): Likewise.
30222         * modules/isblank-tests (Files): Likewise.
30223         * modules/isfinite-tests (Files): Likewise.
30224         * modules/isinf-tests (Files): Likewise.
30225         * modules/isnan-tests (Files): Likewise.
30226         * modules/isnand-nolibm-tests (Files): Likewise.
30227         * modules/isnand-tests (Files): Likewise.
30228         * modules/isnanf-nolibm-tests (Files): Likewise.
30229         * modules/isnanf-tests (Files): Likewise.
30230         * modules/isnanl-nolibm-tests (Files): Likewise.
30231         * modules/isnanl-tests (Files): Likewise.
30232         * modules/lchown-tests (Files): Likewise.
30233         * modules/ldexpl-tests (Files): Likewise.
30234         * modules/link-tests (Files): Likewise.
30235         * modules/linkat-tests (Files): Likewise.
30236         * modules/linked-list-tests (Files): Likewise.
30237         * modules/linkedhash-list-tests (Files): Likewise.
30238         * modules/localename-tests (Files): Likewise.
30239         * modules/lseek-tests (Files): Likewise.
30240         * modules/lstat-tests (Files): Likewise.
30241         * modules/mbmemcasecmp-tests (Files): Likewise.
30242         * modules/mbmemcasecoll-tests (Files): Likewise.
30243         * modules/mbrtowc-tests (Files): Likewise.
30244         * modules/mbscasecmp-tests (Files): Likewise.
30245         * modules/mbscasestr-tests (Files): Likewise.
30246         * modules/mbschr-tests (Files): Likewise.
30247         * modules/mbscspn-tests (Files): Likewise.
30248         * modules/mbsinit-tests (Files): Likewise.
30249         * modules/mbsncasecmp-tests (Files): Likewise.
30250         * modules/mbsnrtowcs-tests (Files): Likewise.
30251         * modules/mbspbrk-tests (Files): Likewise.
30252         * modules/mbspcasecmp-tests (Files): Likewise.
30253         * modules/mbsrchr-tests (Files): Likewise.
30254         * modules/mbsrtowcs-tests (Files): Likewise.
30255         * modules/mbsspn-tests (Files): Likewise.
30256         * modules/mbsstr-tests (Files): Likewise.
30257         * modules/memchr-tests (Files): Likewise.
30258         * modules/memchr2-tests (Files): Likewise.
30259         * modules/memcmp-tests (Files): Likewise.
30260         * modules/memmem-tests (Files): Likewise.
30261         * modules/memrchr-tests (Files): Likewise.
30262         * modules/mkdir-tests (Files): Likewise.
30263         * modules/mkfifo-tests (Files): Likewise.
30264         * modules/mkfifoat-tests (Files): Likewise.
30265         * modules/mknod-tests (Files): Likewise.
30266         * modules/nanosleep-tests (Files): Likewise.
30267         * modules/nl_langinfo-tests (Files): Likewise.
30268         * modules/obstack-printf-tests (Files): Likewise.
30269         * modules/open-tests (Files): Likewise.
30270         * modules/openat-tests (Files): Likewise.
30271         * modules/pipe-filter-gi-tests (Files): Likewise.
30272         * modules/pipe-filter-ii-tests (Files): Likewise.
30273         * modules/pipe2-tests (Files): Likewise.
30274         * modules/popen-safer-tests (Files): Likewise.
30275         * modules/popen-tests (Files): Likewise.
30276         * modules/posixtm-tests (Files): Likewise.
30277         * modules/pread-tests (Files): Likewise.
30278         * modules/printf-frexp-tests (Files): Likewise.
30279         * modules/printf-frexpl-tests (Files): Likewise.
30280         * modules/printf-posix-tests (Files): Likewise.
30281         * modules/priv-set-tests (Files): Likewise.
30282         * modules/quotearg-tests (Files): Likewise.
30283         * modules/random_r-tests (Files): Likewise.
30284         * modules/rawmemchr-tests (Files): Likewise.
30285         * modules/rbtree-list-tests (Files): Likewise.
30286         * modules/rbtree-oset-tests (Files): Likewise.
30287         * modules/rbtreehash-list-tests (Files): Likewise.
30288         * modules/readlink-tests (Files): Likewise.
30289         * modules/remove-tests (Files): Likewise.
30290         * modules/rename-tests (Files): Likewise.
30291         * modules/renameat-tests (Files): Likewise.
30292         * modules/rmdir-tests (Files): Likewise.
30293         * modules/round-tests (Files): Likewise.
30294         * modules/roundf-tests (Files): Likewise.
30295         * modules/roundl-tests (Files): Likewise.
30296         * modules/safe-alloc-tests (Files): Likewise.
30297         * modules/setenv-tests (Files): Likewise.
30298         * modules/sigaction-tests (Files): Likewise.
30299         * modules/signbit-tests (Files): Likewise.
30300         * modules/sleep-tests (Files): Likewise.
30301         * modules/snprintf-posix-tests (Files): Likewise.
30302         * modules/snprintf-tests (Files): Likewise.
30303         * modules/sprintf-posix-tests (Files): Likewise.
30304         * modules/stat-tests (Files): Likewise.
30305         * modules/stat-time-tests (Files): Likewise.
30306         * modules/strcasestr-tests (Files): Likewise.
30307         * modules/strchrnul-tests (Files): Likewise.
30308         * modules/strerror-tests (Files): Likewise.
30309         * modules/striconv-tests (Files): Likewise.
30310         * modules/striconveh-tests (Files): Likewise.
30311         * modules/striconveha-tests (Files): Likewise.
30312         * modules/strsignal-tests (Files): Likewise.
30313         * modules/strstr-tests (Files): Likewise.
30314         * modules/strtod-tests (Files): Likewise.
30315         * modules/strverscmp-tests (Files): Likewise.
30316         * modules/symlink-tests (Files): Likewise.
30317         * modules/symlinkat-tests (Files): Likewise.
30318         * modules/trunc-tests (Files): Likewise.
30319         * modules/truncf-tests (Files): Likewise.
30320         * modules/truncl-tests (Files): Likewise.
30321         * modules/uname-tests (Files): Likewise.
30322         * modules/unicase/cased-tests (Files): Likewise.
30323         * modules/unicase/ignorable-tests (Files): Likewise.
30324         * modules/unicase/locale-language-tests (Files): Likewise.
30325         * modules/unicase/tolower-tests (Files): Likewise.
30326         * modules/unicase/totitle-tests (Files): Likewise.
30327         * modules/unicase/toupper-tests (Files): Likewise.
30328         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30329         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30330         * modules/unicase/u8-casefold-tests (Files): Likewise.
30331         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30332         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30333         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30334         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30335         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30336         * modules/unicase/u8-tolower-tests (Files): Likewise.
30337         * modules/unicase/u8-totitle-tests (Files): Likewise.
30338         * modules/unicase/u8-toupper-tests (Files): Likewise.
30339         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30340         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30341         * modules/unicase/u16-casefold-tests (Files): Likewise.
30342         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30343         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30344         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30345         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30346         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30347         * modules/unicase/u16-tolower-tests (Files): Likewise.
30348         * modules/unicase/u16-totitle-tests (Files): Likewise.
30349         * modules/unicase/u16-toupper-tests (Files): Likewise.
30350         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30351         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30352         * modules/unicase/u32-casefold-tests (Files): Likewise.
30353         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30354         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30355         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30356         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30357         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30358         * modules/unicase/u32-tolower-tests (Files): Likewise.
30359         * modules/unicase/u32-totitle-tests (Files): Likewise.
30360         * modules/unicase/u32-toupper-tests (Files): Likewise.
30361         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30362         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30363         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30364         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30365         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30366         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30367         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30368         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30369         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30370         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30371         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30372         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30373         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30374         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30375         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30376         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30377         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30378         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30379         * modules/unictype/block-list-tests (Files): Likewise.
30380         * modules/unictype/block-of-tests (Files): Likewise.
30381         * modules/unictype/block-test-tests (Files): Likewise.
30382         * modules/unictype/category-C-tests (Files): Likewise.
30383         * modules/unictype/category-Cc-tests (Files): Likewise.
30384         * modules/unictype/category-Cf-tests (Files): Likewise.
30385         * modules/unictype/category-Cn-tests (Files): Likewise.
30386         * modules/unictype/category-Co-tests (Files): Likewise.
30387         * modules/unictype/category-Cs-tests (Files): Likewise.
30388         * modules/unictype/category-L-tests (Files): Likewise.
30389         * modules/unictype/category-Ll-tests (Files): Likewise.
30390         * modules/unictype/category-Lm-tests (Files): Likewise.
30391         * modules/unictype/category-Lo-tests (Files): Likewise.
30392         * modules/unictype/category-Lt-tests (Files): Likewise.
30393         * modules/unictype/category-Lu-tests (Files): Likewise.
30394         * modules/unictype/category-M-tests (Files): Likewise.
30395         * modules/unictype/category-Mc-tests (Files): Likewise.
30396         * modules/unictype/category-Me-tests (Files): Likewise.
30397         * modules/unictype/category-Mn-tests (Files): Likewise.
30398         * modules/unictype/category-N-tests (Files): Likewise.
30399         * modules/unictype/category-Nd-tests (Files): Likewise.
30400         * modules/unictype/category-Nl-tests (Files): Likewise.
30401         * modules/unictype/category-No-tests (Files): Likewise.
30402         * modules/unictype/category-P-tests (Files): Likewise.
30403         * modules/unictype/category-Pc-tests (Files): Likewise.
30404         * modules/unictype/category-Pd-tests (Files): Likewise.
30405         * modules/unictype/category-Pe-tests (Files): Likewise.
30406         * modules/unictype/category-Pf-tests (Files): Likewise.
30407         * modules/unictype/category-Pi-tests (Files): Likewise.
30408         * modules/unictype/category-Po-tests (Files): Likewise.
30409         * modules/unictype/category-Ps-tests (Files): Likewise.
30410         * modules/unictype/category-S-tests (Files): Likewise.
30411         * modules/unictype/category-Sc-tests (Files): Likewise.
30412         * modules/unictype/category-Sk-tests (Files): Likewise.
30413         * modules/unictype/category-Sm-tests (Files): Likewise.
30414         * modules/unictype/category-So-tests (Files): Likewise.
30415         * modules/unictype/category-Z-tests (Files): Likewise.
30416         * modules/unictype/category-Zl-tests (Files): Likewise.
30417         * modules/unictype/category-Zp-tests (Files): Likewise.
30418         * modules/unictype/category-Zs-tests (Files): Likewise.
30419         * modules/unictype/category-and-not-tests (Files): Likewise.
30420         * modules/unictype/category-and-tests (Files): Likewise.
30421         * modules/unictype/category-byname-tests (Files): Likewise.
30422         * modules/unictype/category-name-tests (Files): Likewise.
30423         * modules/unictype/category-none-tests (Files): Likewise.
30424         * modules/unictype/category-of-tests (Files): Likewise.
30425         * modules/unictype/category-or-tests (Files): Likewise.
30426         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30427         * modules/unictype/combining-class-tests (Files): Likewise.
30428         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30429         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30430         * modules/unictype/ctype-blank-tests (Files): Likewise.
30431         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30432         * modules/unictype/ctype-digit-tests (Files): Likewise.
30433         * modules/unictype/ctype-graph-tests (Files): Likewise.
30434         * modules/unictype/ctype-lower-tests (Files): Likewise.
30435         * modules/unictype/ctype-print-tests (Files): Likewise.
30436         * modules/unictype/ctype-punct-tests (Files): Likewise.
30437         * modules/unictype/ctype-space-tests (Files): Likewise.
30438         * modules/unictype/ctype-upper-tests (Files): Likewise.
30439         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30440         * modules/unictype/decimal-digit-tests (Files): Likewise.
30441         * modules/unictype/digit-tests (Files): Likewise.
30442         * modules/unictype/mirror-tests (Files): Likewise.
30443         * modules/unictype/numeric-tests (Files): Likewise.
30444         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30445         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30446         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30447         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30448         Likewise.
30449         * modules/unictype/property-bidi-block-separator-tests (Files):
30450         Likewise.
30451         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30452         Likewise.
30453         * modules/unictype/property-bidi-common-separator-tests (Files):
30454         Likewise.
30455         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30456         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30457         Likewise.
30458         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30459         Likewise.
30460         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30461         Likewise.
30462         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30463         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30464         Likewise.
30465         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30466         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30467         Likewise.
30468         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30469         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30470         * modules/unictype/property-bidi-segment-separator-tests (Files):
30471         Likewise.
30472         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30473         * modules/unictype/property-byname-tests (Files): Likewise.
30474         * modules/unictype/property-combining-tests (Files): Likewise.
30475         * modules/unictype/property-composite-tests (Files): Likewise.
30476         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30477         * modules/unictype/property-dash-tests (Files): Likewise.
30478         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30479         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30480         Likewise.
30481         * modules/unictype/property-deprecated-tests (Files): Likewise.
30482         * modules/unictype/property-diacritic-tests (Files): Likewise.
30483         * modules/unictype/property-extender-tests (Files): Likewise.
30484         * modules/unictype/property-format-control-tests (Files): Likewise.
30485         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30486         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30487         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30488         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30489         * modules/unictype/property-hyphen-tests (Files): Likewise.
30490         * modules/unictype/property-id-continue-tests (Files): Likewise.
30491         * modules/unictype/property-id-start-tests (Files): Likewise.
30492         * modules/unictype/property-ideographic-tests (Files): Likewise.
30493         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30494         * modules/unictype/property-ids-trinary-operator-tests (Files):
30495         Likewise.
30496         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30497         * modules/unictype/property-iso-control-tests (Files): Likewise.
30498         * modules/unictype/property-join-control-tests (Files): Likewise.
30499         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30500         * modules/unictype/property-line-separator-tests (Files): Likewise.
30501         * modules/unictype/property-logical-order-exception-tests (Files):
30502         Likewise.
30503         * modules/unictype/property-lowercase-tests (Files): Likewise.
30504         * modules/unictype/property-math-tests (Files): Likewise.
30505         * modules/unictype/property-non-break-tests (Files): Likewise.
30506         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30507         * modules/unictype/property-numeric-tests (Files): Likewise.
30508         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30509         * modules/unictype/property-other-default-ignorable-code-point-tests
30510         (Files): Likewise.
30511         * modules/unictype/property-other-grapheme-extend-tests (Files):
30512         Likewise.
30513         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30514         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30515         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30516         * modules/unictype/property-other-math-tests (Files): Likewise.
30517         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30518         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30519         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30520         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30521         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30522         * modules/unictype/property-private-use-tests (Files): Likewise.
30523         * modules/unictype/property-punctuation-tests (Files): Likewise.
30524         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30525         * modules/unictype/property-radical-tests (Files): Likewise.
30526         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30527         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30528         * modules/unictype/property-space-tests (Files): Likewise.
30529         * modules/unictype/property-terminal-punctuation-tests (Files):
30530         Likewise.
30531         * modules/unictype/property-test-tests (Files): Likewise.
30532         * modules/unictype/property-titlecase-tests (Files): Likewise.
30533         * modules/unictype/property-unassigned-code-value-tests (Files):
30534         Likewise.
30535         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30536         * modules/unictype/property-uppercase-tests (Files): Likewise.
30537         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30538         * modules/unictype/property-white-space-tests (Files): Likewise.
30539         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30540         * modules/unictype/property-xid-start-tests (Files): Likewise.
30541         * modules/unictype/property-zero-width-tests (Files): Likewise.
30542         * modules/unictype/scripts-tests (Files): Likewise.
30543         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30544         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30545         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30546         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30547         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30548         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30549         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30550         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30551         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30552         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30553         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30554         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30555         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30556         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30557         * modules/uninorm/composition-tests (Files): Likewise.
30558         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30559         * modules/uninorm/decomposition-tests (Files): Likewise.
30560         * modules/uninorm/filter-tests (Files): Likewise.
30561         * modules/uninorm/nfc-tests (Files): Likewise.
30562         * modules/uninorm/nfd-tests (Files): Likewise.
30563         * modules/uninorm/nfkc-tests (Files): Likewise.
30564         * modules/uninorm/nfkd-tests (Files): Likewise.
30565         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30566         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30567         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30568         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30569         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30570         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30571         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30572         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30573         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30574         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30575         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30576         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30577         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30578         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30579         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30580         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30581         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30582         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30583         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30584         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30585         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30586         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30587         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30588         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30589         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30590         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30591         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30592         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30593         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30594         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30595         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30596         * modules/uniwidth/u8-width-tests (Files): Likewise.
30597         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30598         * modules/uniwidth/u16-width-tests (Files): Likewise.
30599         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30600         * modules/uniwidth/u32-width-tests (Files): Likewise.
30601         * modules/uniwidth/width-tests (Files): Likewise.
30602         * modules/unlink-tests (Files): Likewise.
30603         * modules/unsetenv-tests (Files): Likewise.
30604         * modules/usleep-tests (Files): Likewise.
30605         * modules/utimens-tests (Files): Likewise.
30606         * modules/utimensat-tests (Files): Likewise.
30607         * modules/vasnprintf-posix-tests (Files): Likewise.
30608         * modules/vasnprintf-tests (Files): Likewise.
30609         * modules/vasprintf-posix-tests (Files): Likewise.
30610         * modules/vasprintf-tests (Files): Likewise.
30611         * modules/vdprintf-posix-tests (Files): Likewise.
30612         * modules/vfprintf-posix-tests (Files): Likewise.
30613         * modules/vprintf-posix-tests (Files): Likewise.
30614         * modules/vsnprintf-posix-tests (Files): Likewise.
30615         * modules/vsnprintf-tests (Files): Likewise.
30616         * modules/vsprintf-posix-tests (Files): Likewise.
30617         * modules/wcrtomb-tests (Files): Likewise.
30618         * modules/wcsnrtombs-tests (Files): Likewise.
30619         * modules/wcsrtombs-tests (Files): Likewise.
30620         * modules/wctype-tests (Files): Likewise.
30621         * modules/wcwidth-tests (Files): Likewise.
30622         * modules/xmemdup0-tests (Files): Likewise.
30623         * modules/xprintf-posix-tests (Files): Likewise.
30624         * modules/xvasprintf-tests (Files): Likewise.
30625
30626 2009-12-24  Eric Blake  <ebb9@byu.net>
30627
30628         test-nanosleep: fix typo
30629         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30630         patch.
30631         Reported by Bruno Haible.
30632
30633 2009-12-24  Bruno Haible  <bruno@clisp.org>
30634
30635         Reduce namespace pollution on glibc systems.
30636         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30637         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30638         systems.
30639         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30640         <getopt.h> on glibc systems.
30641         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30642         systems.
30643         * lib/fcntl.c: Include <unistd.h> here instead.
30644
30645 2009-12-24  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30648
30649 2009-12-24  Eric Blake  <ebb9@byu.net>
30650
30651         tests: add signature checks
30652         * tests/signature.h (SIGNATURE_CHECK): New file.
30653         * modules/atexit-tests (Files): Use it.
30654         * modules/btowc-tests (Files): Likewise.
30655         * modules/canonicalize-lgpl-tests (Files): Likewise.
30656         * modules/ceilf-tests (Files): Likewise.
30657         * modules/ceill-tests (Files): Likewise.
30658         * modules/chown-tests (Files): Likewise.
30659         * modules/dprintf-posix-tests (Files): Likewise.
30660         * modules/dup2-tests (Files): Likewise.
30661         * modules/dup3-tests (Files): Likewise.
30662         * modules/duplocale-tests (Files): Likewise.
30663         * modules/fchdir-tests (Files): Likewise.
30664         * modules/fcntl-tests (Files): Likewise.
30665         * modules/fdopendir-tests (Files): Likewise.
30666         * modules/fflush-tests (Files): Likewise.
30667         * modules/flock-tests (Files): Likewise.
30668         * modules/floorf-tests (Files): Likewise.
30669         * modules/floorl-tests (Files): Likewise.
30670         * modules/fnmatch-tests (Files): Likewise.
30671         * modules/fopen-tests (Files): Likewise.
30672         * modules/fprintf-posix-tests (Files): Likewise.
30673         * modules/freopen-tests (Files): Likewise.
30674         * modules/frexp-nolibm-tests (Files): Likewise.
30675         * modules/frexp-tests (Files): Likewise.
30676         * modules/frexpl-nolibm-tests (Files): Likewise.
30677         * modules/frexpl-tests (Files): Likewise.
30678         * modules/fseek-tests (Files): Likewise.
30679         * modules/fseeko-tests (Files): Likewise.
30680         * modules/fsync-tests (Files): Likewise.
30681         * modules/ftell-tests (Files): Likewise.
30682         * modules/ftello-tests (Files): Likewise.
30683         * modules/futimens-tests (Files): Likewise.
30684         * modules/getaddrinfo-tests (Files): Likewise.
30685         * modules/getcwd-tests (Files): Likewise.
30686         * modules/getdelim-tests (Files): Likewise.
30687         * modules/getdtablesize-tests (Files): Likewise.
30688         * modules/getgroups-tests (Files): Likewise.
30689         * modules/gethostname-tests (Files): Likewise.
30690         * modules/getline-tests (Files): Likewise.
30691         * modules/getopt-posix-tests (Files): Likewise.
30692         * modules/gettimeofday-tests (Files): Likewise.
30693         * modules/glob-tests (Files): Likewise.
30694         * modules/iconv-tests (Files): Likewise.
30695         * modules/inet_ntop-tests (Files): Likewise.
30696         * modules/inet_pton-tests (Files): Likewise.
30697         * modules/isblank-tests (Files): Likewise.
30698         * modules/lchown-tests (Files): Likewise.
30699         * modules/ldexpl-tests (Files): Likewise.
30700         * modules/link-tests (Files): Likewise.
30701         * modules/linkat-tests (Files): Likewise.
30702         * modules/lseek-tests (Files): Likewise.
30703         * modules/lstat-tests (Files): Likewise.
30704         * modules/mbrtowc-tests (Files): Likewise.
30705         * modules/mbsinit-tests (Files): Likewise.
30706         * modules/mbsnrtowcs-tests (Files): Likewise.
30707         * modules/mbsrtowcs-tests (Files): Likewise.
30708         * modules/memchr-tests (Files): Likewise.
30709         * modules/memcmp-tests (Files): Likewise.
30710         * modules/memmem-tests (Files): Likewise.
30711         * modules/memrchr-tests (Files): Likewise.
30712         * modules/mkdir-tests (Files): Likewise.
30713         * modules/mkfifo-tests (Files): Likewise.
30714         * modules/mkfifoat-tests (Files): Likewise.
30715         * modules/mknod-tests (Files): Likewise.
30716         * modules/nanosleep-tests (Files): Likewise.
30717         * modules/nl_langinfo-tests (Files): Likewise.
30718         * modules/obstack-printf-tests (Files): Likewise.
30719         * modules/open-tests (Files): Likewise.
30720         * modules/openat-tests (Files): Likewise.
30721         * modules/perror-tests (Files): Likewise.
30722         * modules/pipe2-tests (Files): Likewise.
30723         * modules/poll-tests (Files): Likewise.
30724         * modules/popen-tests (Files): Likewise.
30725         * modules/posix_spawn-tests (Files): Likewise.
30726         * modules/posix_spawnp-tests (Files): Likewise.
30727         * modules/pread-tests (Files): Likewise.
30728         * modules/printf-posix-tests (Files): Likewise.
30729         * modules/pty-tests (Files): Likewise.
30730         * modules/random_r-tests (Files): Likewise.
30731         * modules/rawmemchr-tests (Files): Likewise.
30732         * modules/readlink-tests (Files): Likewise.
30733         * modules/remove-tests (Files): Likewise.
30734         * modules/rename-tests (Files): Likewise.
30735         * modules/renameat-tests (Files): Likewise.
30736         * modules/rmdir-tests (Files): Likewise.
30737         * modules/round-tests (Files): Likewise.
30738         * modules/roundf-tests (Files): Likewise.
30739         * modules/roundl-tests (Files): Likewise.
30740         * modules/select-tests (Files): Likewise.
30741         * modules/setenv-tests (Files): Likewise.
30742         * modules/sigaction-tests (Files): Likewise.
30743         * modules/sleep-tests (Files): Likewise.
30744         * modules/snprintf-posix-tests (Files): Likewise.
30745         * modules/snprintf-tests (Files): Likewise.
30746         * modules/sprintf-posix-tests (Files): Likewise.
30747         * modules/stat-tests (Files): Likewise.
30748         * modules/strcasestr-tests (Files): Likewise.
30749         * modules/strchrnul-tests (Files): Likewise.
30750         * modules/strerror-tests (Files): Likewise.
30751         * modules/strsignal-tests (Files): Likewise.
30752         * modules/strstr-tests (Files): Likewise.
30753         * modules/strtod-tests (Files): Likewise.
30754         * modules/strverscmp-tests (Files): Likewise.
30755         * modules/symlink-tests (Files): Likewise.
30756         * modules/symlinkat-tests (Files): Likewise.
30757         * modules/times-tests (Files): Likewise.
30758         * modules/trunc-tests (Files): Likewise.
30759         * modules/truncf-tests (Files): Likewise.
30760         * modules/truncl-tests (Files): Likewise.
30761         * modules/tsearch-tests (Files): Likewise.
30762         * modules/uname-tests (Files): Likewise.
30763         * modules/unlink-tests (Files): Likewise.
30764         * modules/unsetenv-tests (Files): Likewise.
30765         * modules/usleep-tests (Files): Likewise.
30766         * modules/utimensat-tests (Files): Likewise.
30767         * modules/vasprintf-tests (Files): Likewise.
30768         * modules/vdprintf-posix-tests (Files): Likewise.
30769         * modules/vfprintf-posix-tests (Files): Likewise.
30770         * modules/vprintf-posix-tests (Files): Likewise.
30771         * modules/vsnprintf-posix-tests (Files): Likewise.
30772         * modules/vsnprintf-tests (Files): Likewise.
30773         * modules/vsprintf-posix-tests (Files): Likewise.
30774         * modules/wcrtomb-tests (Files): Likewise.
30775         * modules/wcsnrtombs-tests (Files): Likewise.
30776         * modules/wcsrtombs-tests (Files): Likewise.
30777         * modules/wcwidth-tests (Files): Likewise.
30778         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30779         * tests/test-isinf.c (isinf): Likewise.
30780         * tests/test-isnan.c (isnan): Likewise.
30781         * tests/test-signbit.c (signbit): Likewise.
30782         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30783         declaration, either as macro or with correct signature.
30784         (select): Ensure function under test is declared with correct
30785         signature in correct header.
30786         * tests/test-atexit.c (atexit): Likewise.
30787         * tests/test-btowc.c (btowc): Likewise.
30788         * tests/test-canonicalize-lgpl.c (realpath)
30789         (canonicalize_file_name): Likewise.
30790         * tests/test-ceilf1.c (ceilf): Likewise.
30791         * tests/test-ceill.c (ceill): Likewise.
30792         * tests/test-chown.c (chown): Likewise.
30793         * tests/test-dprintf-posix.c (dprintf): Likewise.
30794         * tests/test-dup2.c (dup2): Likewise.
30795         * tests/test-dup3.c (dup3): Likewise.
30796         * tests/test-duplocale.c (duplocale): Likewise.
30797         * tests/test-fchdir.c (fchdir): Likewise.
30798         * tests/test-fchownat.c (fchownat): Likewise.
30799         * tests/test-fcntl.c (fcntl): Likewise.
30800         * tests/test-fdopendir.c (fdopendir): Likewise.
30801         * tests/test-fflush.c (fflush): Likewise.
30802         * tests/test-flock.c (flock): Likewise.
30803         * tests/test-floorf1.c (floorf): Likewise.
30804         * tests/test-floorl.c (floorl): Likewise.
30805         * tests/test-fnmatch.c (fnmatch): Likewise.
30806         * tests/test-fopen.c (fopen): Likewise.
30807         * tests/test-fprintf-posix.c (fprintf): Likewise.
30808         * tests/test-freopen.c (freopen): Likewise.
30809         * tests/test-frexp.c (frexp): Likewise.
30810         * tests/test-frexpl.c (frexpl): Likewise.
30811         * tests/test-fseek.c (fseek): Likewise.
30812         * tests/test-fseeko.c (fseeko): Likewise.
30813         * tests/test-fstatat.c (fstatat): Likewise.
30814         * tests/test-fsync.c (fsync): Likewise.
30815         * tests/test-ftell.c (ftell): Likewise.
30816         * tests/test-ftello.c (ftello): Likewise.
30817         * tests/test-futimens.c (futimens): Likewise.
30818         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30819         (gai_strerror): Likewise.
30820         * tests/test-getcwd.c (getcwd): Likewise.
30821         * tests/test-getdelim.c (getdelim): Likewise.
30822         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30823         * tests/test-getgroups.c (getgroups): Likewise.
30824         * tests/test-gethostname.c (gethostname): Likewise.
30825         * tests/test-getline.c (getline): Likewise.
30826         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30827         Likewise.
30828         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30829         * tests/test-glob.c (glob, globfree): Likewise.
30830         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30831         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30832         * tests/test-inet_pton.c (inet_pton): Likewise.
30833         * tests/test-isblank.c (isblank): Likewise.
30834         * tests/test-lchown.c (lchown): Likewise.
30835         * tests/test-ldexpl.c (ldexpl): Likewise.
30836         * tests/test-link.c (link): Likewise.
30837         * tests/test-linkat.c (linkat): Likewise.
30838         * tests/test-lseek.c (lseek): Likewise.
30839         * tests/test-lstat.c (lstat): Likewise.
30840         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30841         * tests/test-mbsinit.c (mbsinit): Likewise.
30842         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30843         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30844         * tests/test-memchr.c (memchr): Likewise.
30845         * tests/test-memcmp.c (memcmp): Likewise.
30846         * tests/test-memmem.c (memmem): Likewise.
30847         * tests/test-memrchr.c (memrchr): Likewise.
30848         * tests/test-mkdir.c (mkdir): Likewise.
30849         * tests/test-mkdirat.c (mkdirat): Likewise.
30850         * tests/test-mkfifo.c (mkfifo): Likewise.
30851         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30852         * tests/test-mknod.c (mknod): Likewise.
30853         * tests/test-nanosleep.c (nanosleep): Likewise.
30854         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30855         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30856         Likewise.
30857         * tests/test-open.c (open): Likewise.
30858         * tests/test-openat.c (openat): Likewise.
30859         * tests/test-perror.c (perror): Likewise.
30860         * tests/test-pipe2.c (pipe2): Likewise.
30861         * tests/test-poll.c (poll): Likewise.
30862         * tests/test-popen.c (popen, pclose): Likewise.
30863         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30864         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30865         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30866         (posix_spawn_file_actions_destroy)
30867         (posix_spawn_file_actions_addclose)
30868         (posix_spawn_file_actions_addopen)
30869         (posix_spawn_file_actions_adddup2): Likewise.
30870         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30871         * tests/test-pread.c (pread): Likewise.
30872         * tests/test-printf-posix.c (printf): Likewise.
30873         * tests/test-pty.c (openpty, forkpty): Likewise.
30874         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30875         (random_r): Likewise.
30876         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30877         * tests/test-readlink.c (readlink): Likewise.
30878         * tests/test-remove.c (remove): Likewise.
30879         * tests/test-rename.c (rename): Likewise.
30880         * tests/test-renameat.c (renameat): Likewise.
30881         * tests/test-rmdir.c (rmdir): Likewise.
30882         * tests/test-round1.c (round): Likewise.
30883         * tests/test-roundf1.c (roundf): Likewise.
30884         * tests/test-roundl.c (roundl): Likewise.
30885         * tests/test-setenv.c (setenv): Likewise.
30886         * tests/test-sigaction.c (sigaction): Likewise.
30887         * tests/test-sleep.c (sleep): Likewise.
30888         * tests/test-snprintf.c (snprintf): Likewise.
30889         * tests/test-sprintf-posix.c (sprintf): Likewise.
30890         * tests/test-stat.c (stat): Likewise.
30891         * tests/test-stpncpy.c (stpncpy): Likewise.
30892         * tests/test-strcasestr.c (strcasestr): Likewise.
30893         * tests/test-strchrnul.c (strchrnul): Likewise.
30894         * tests/test-strerror.c (strerror): Likewise.
30895         * tests/test-strsignal.c (strsignal): Likewise.
30896         * tests/test-strstr.c (strstr): Likewise.
30897         * tests/test-strtod.c (strtod): Likewise.
30898         * tests/test-strverscmp.c (strverscmp): Likewise.
30899         * tests/test-symlink.c (symlink): Likewise.
30900         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30901         * tests/test-times.c (times): Likewise.
30902         * tests/test-trunc1.c (trunc): Likewise.
30903         * tests/test-truncf1.c (truncf): Likewise.
30904         * tests/test-truncl.c (truncl): Likewise.
30905         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30906         Likewise.
30907         * tests/test-uname.c (uname): Likewise.
30908         * tests/test-unlink.c (unlink): Likewise.
30909         * tests/test-unlinkat.c (unlinkat): Likewise.
30910         * tests/test-unsetenv.c (unsetenv): Likewise.
30911         * tests/test-usleep.c (usleep): Likewise.
30912         * tests/test-utimensat.c (utimensat): Likewise.
30913         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30914         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30915         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30916         * tests/test-vprintf-posix.c (vprintf): Likewise.
30917         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30918         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30919         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30920         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30921         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30922         * tests/test-wcwidth.c (wcwidth): Likewise.
30923
30924         build: pull in conditional headers during GNULIB_POSIXCHECK
30925         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30926         definitions from any conditionally-included headers.
30927         * lib/stdlib.in.h (includes): Likewise.
30928         * lib/unistd.in.h (includes): Likewise.
30929
30930 2009-12-24  Bruno Haible  <bruno@clisp.org>
30931
30932         * tests/test-argv-iter.c: Include header file being tested immediately
30933         after config.h.
30934         * tests/test-base64.c: Likewise.
30935         * tests/test-flock.c: Likewise.
30936         * tests/test-fsync.c: Likewise.
30937         * tests/test-getdate.c: Likewise.
30938         * tests/test-getndelim2.c: Likewise.
30939         * tests/test-isfinite.c: Likewise.
30940         * tests/test-isinf.c: Likewise.
30941         * tests/test-strerror.c: Likewise.
30942         * tests/test-strsignal.c: Likewise.
30943
30944 2009-12-23  Eric Blake  <ebb9@byu.net>
30945
30946         unistd: work around cygwin bug
30947         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30948         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30950
30951 2009-12-23  Bruno Haible  <bruno@clisp.org>
30952
30953         localename: More tests.
30954         * tests/test-localename.c (SIZEOF): New macro.
30955         (categories): New variable.
30956         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30957         test_locale_name_default): Add test w.r.t. thread locale.
30958         (test_locale_name_thread): New function.
30959         (main): Invoke it.
30960
30961         localename: Make aware of thread locale.
30962         * lib/localename.h (gl_locale_name_thread): New declaration.
30963         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30964         behaviour with respect to thread locale.
30965         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30966         <langinfo.h>, glthread/lock.h.
30967         (SIZE_BITS): New macro.
30968         (string_hash): New function.
30969         (struct hash_node): New type.
30970         (HASH_TABLE_SIZE): New macro.
30971         (struniq_hash_table, struniq_lock): New variables.
30972         (struniq): New function.
30973         (gl_locale_name_thread): New function.
30974         (gl_locale_name): Invoke it.
30975         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30976         * modules/localename (Depends-on): Add lock.
30977         Reported by Mike Gran <spk121@yahoo.com>.
30978
30979 2009-12-23  Eric Blake  <ebb9@byu.net>
30980
30981         va-args: new module
30982         * modules/va-args: New file.
30983         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30984         * MODULES.html.sh (Core language properties): Mention it.
30985
30986         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30987         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30988         named alias for __attribute__((__unused__)).
30989         * lib/chown.c: Update client.
30990         * lib/fchmodat.c: Likewise.
30991         * lib/fts.c: Likewise.
30992         * lib/getdate.y: Likewise.
30993         * lib/getgroups.c: Likewise.
30994         * lib/getopt.c: Likewise.
30995         * lib/getugroups.c: Likewise.
30996         * lib/mkdir.c: Likewise.
30997         * lib/mkfifo.c: Likewise.
30998         * lib/mkfifoat.c: Likewise.
30999         * lib/mknod.c: Likewise.
31000         * lib/mknodat.c: Likewise.
31001         * lib/readlink.c: Likewise.
31002         * lib/se-context.in.h: Likewise.
31003         * lib/se-selinux.in.h: Likewise.
31004         * lib/sockets.c: Likewise.
31005         * lib/symlink.c: Likewise.
31006         * lib/symlinkat.c: Likewise.
31007         * lib/unicodeio.c: Likewise.
31008         * lib/unistr.h: Likewise.
31009         * tests/test-areadlink.c: Likewise.
31010         * tests/test-areadlinkat.c: Likewise.
31011         * tests/test-filenamecat.c: Likewise.
31012         * tests/test-fseeko.c: Likewise.
31013         * tests/test-ftello.c: Likewise.
31014         * tests/test-getdate.c: Likewise.
31015         * tests/test-getgroups.c: Likewise.
31016         * tests/test-gethostname.c: Likewise.
31017         * tests/test-quotearg.c: Likewise.
31018         * tests/test-version-etc.c: Likewise.
31019         * tests/test-xalloc-die.c: Likewise.
31020         * tests/test-xfprintf-posix.c: Likewise.
31021         * tests/test-xprintf-posix.c: Likewise.
31022         * tests/test-xvasprintf.c: Likewise.
31023
31024         tests: avoid compiler warnings
31025         * tests/test-fcntl.c (main): Delete unused parameters.
31026         * tests/test-freopen-safer.c (main): Likewise.
31027         * tests/test-xalloc-die.c (main): Mark unused parameters.
31028         * tests/test-fseeko.c (main): Likewise.
31029         * tests/test-ftello.c (main): Likewise.
31030         * tests/test-nanosleep.c (main): Avoid declaration warning.
31031         * tests/test-sleep.c (main): Likewise.
31032         * tests/test-unsetenv.c (main): Silence warning about string
31033         literal.
31034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31035
31036 2009-12-23  Bruno Haible  <bruno@clisp.org>
31037
31038         * tests/test-localename.c (test_locale_name): New function, extracted
31039         from main. Also test mixed situations.
31040         (test_locale_name_posix, test_locale_name_environ,
31041         test_locale_name_default): New functions.
31042         (main): Invoke them all.
31043         * modules/localename-tests (configure.ac): Test for newlocale.
31044
31045 2009-12-23  Bruno Haible  <bruno@clisp.org>
31046
31047         unistd: Ensure getcwd gets declared before being overridden.
31048         * lib/unistd.in.h: Conditionally include <io.h>.
31049
31050 2009-12-22  Bruno Haible  <bruno@clisp.org>
31051
31052         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31053         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31054         (gl_WCHAR_H): Invoke it.
31055         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31056         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31057         Reported by Karl Berry <karl@freefriends.org>.
31058
31059 2009-12-22  Eric Blake  <ebb9@byu.net>
31060
31061         math, unistd: avoid redundant includes
31062         * lib/math.in.h (isnan): No need to re-include <math.h>.
31063         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31064
31065         getsubopt: work around cygwin bug
31066         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31067         avoid conflicting with system getsubopt.
31068         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31069         bug.
31070
31071         getopt: synchronize from glibc
31072         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31073         parameter order.  Adjust all callers.
31074         (_getopt_internal_r, main): Adjust quoting in error messages.
31075         Drop considerations for outdated POSIX 1003.2 error message.
31076         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31077         callers.
31078         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31079
31080         test-getopt: test stderr behavior
31081         * modules/getopt-posix-tests (Depends-on): Add dup2.
31082         * tests/test-getopt.c (ASSERT): Avoid stderr.
31083         (main): Move stderr to a temporary file.
31084         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31085         Instead, add parameter to inform caller if output occurred.
31086         (test_getopt): Adjust all existing tests to expect silence, and
31087         add new tests of leading ":".
31088         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31089         glibc shortcomings with leading "-:" or "+:" in optstring.
31090         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31091         Likewise.
31092         * doc/posix-functions/getopt.texi (getopt): Likewise.
31093
31094         test-getopt: enhance test
31095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31096         supports optind=0.
31097         * tests/test-getopt.c (OPTIND_MIN): Move...
31098         * tests/test-getopt.h (OPTIND_MIN): ...here.
31099         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31100         Require that optind=0 works, since modern BSD supports it in
31101         addition to optreset, and since coreutils expects it.
31102         (test_getopt_long_only): New test.
31103         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31104         glibc shortcomings with 'W;', and enforcement of optind=0.
31105         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31106         Likewise.
31107
31108 2009-12-21  Bruno Haible  <bruno@clisp.org>
31109
31110         localename: Improvements for MacOS X and Cygwin.
31111         * lib/localename.h (gl_locale_name_environ): New declaration.
31112         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31113         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31114         (gl_locale_name_posix): Invoke it.
31115         (gl_locale_name_default): Add comments. Use Windows native API also on
31116         Cygwin.
31117
31118 2009-12-21  Bruno Haible  <bruno@clisp.org>
31119
31120         Update list of Win32 locale ids.
31121         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31122         (LANG_SAMI): Renamed from LANG_SAAMI.
31123         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31124         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31125         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31126         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31127         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31128         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31129         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31130         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31131         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31132         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31133         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31134         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31135         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31136         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31137         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31138         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31139         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31140         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31141         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31142         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31143         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31144         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31145         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31146         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31147         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31148         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31149         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31150         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31151         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31152         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31153         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31154         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31155         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31156         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31157         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31158         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31159         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31160         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31161         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31162         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31163         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31164         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31165         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31166         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31167         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31168         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31169         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31170         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31171         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31172         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31173         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31174         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31175         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31176         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31177         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31178         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31179         Add more languages and countries for Sami, Sorbian. Add more countries
31180         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31181         for Pashto. Change country for Syriac, Tswana.
31182
31183 2009-12-21  Eric Blake  <ebb9@byu.net>
31184
31185         test-utimens: avoid spurious failure
31186         * tests/test-chown.h (nap): Factor...
31187         * tests/nap.h: ...into new file.
31188         * tests/test-lchown.h (nap): Avoid duplication.
31189         * tests/test-utimens-common.h (nap): Use shared implementation,
31190         necessary on file systems with 1-second resolution.
31191         * modules/chown-tests (Files): Include new file.
31192         * modules/fdutimensat-tests (Files): Likewise.
31193         * modules/futimens-tests (Files): Likewise.
31194         * modules/lchown-tests (Files): Likewise.
31195         * modules/openat-tests (Files): Likewise.
31196         * modules/utimens-tests (Files): Likewise.
31197         * modules/utimensat-tests (Files): Likewise.
31198
31199 2009-12-19  Eric Blake  <ebb9@byu.net>
31200
31201         futimens, utimensat: work around Linux bug
31202         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31203         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31204         * lib/utimensat.c (rpl_utimensat): Work around it.
31205         * lib/futimens.c (rpl_futimens): Adjust comment.
31206
31207         utimens: work around Linux ctime bug
31208         * lib/utimens.c (detect_ctime_bug): New helper function.
31209         (update_timespec): Differentiate between workaround needed for
31210         this bug vs. what is needed for systems that lack utimensat.
31211         (fdutimens, lutimens): Work around bug.
31212
31213         utimens: check for ctime update
31214         * tests/test-utimens-common.h (check_ctime): Define.
31215         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31216         * tests/test-futimens.h (test_futimens): Likewise.
31217         * tests/test-lutimens.h (test_lutimens): Likewise.
31218         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31219         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31220
31221 2009-12-19  Bruno Haible  <bruno@clisp.org>
31222
31223         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31224         * tests/test-dprintf-posix2.sh: New file.
31225         * tests/test-dprintf-posix2.c: New file.
31226         * modules/dprintf-posix-tests (Files): Add them.
31227         (configure.ac): Check for getrlimit and setrlimit.
31228         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31229
31230 2009-12-19  Bruno Haible  <bruno@clisp.org>
31231
31232         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31233         * tests/test-fprintf-posix3.sh: New file.
31234         * tests/test-fprintf-posix3.c: New file.
31235         * modules/fprintf-posix-tests (Files): Add them.
31236         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31237
31238 2009-12-19  Eric Blake  <ebb9@byu.net>
31239
31240         dirfd: fix prototype
31241         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31242         * lib/dirfd.c (dirfd): Likewise.
31243
31244         canonicalize: reduce memory usage
31245         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31246         allocation to size.
31247         Reported by Solar Designer <solar@openwall.com>.
31248
31249 2009-12-19  Bruno Haible  <bruno@clisp.org>
31250
31251         New module attribute 'Applicability'.
31252         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31253         * gnulib-tool: New option --extract-applicability.
31254         (func_usage): Document it.
31255         (sed_extract_prog): Recognize it.
31256         (func_get_applicability): New function.
31257         (func_import): Generalize handling of 'link-warning' module.
31258         * modules/link-warning (Applicability): New section.
31259         * modules/arg-nonnull (Applicability): New section.
31260         Repoted by Simon Josefsson <simon@josefsson.org>.
31261
31262 2009-12-19  Bruno Haible  <bruno@clisp.org>
31263
31264         fflush: tweak
31265         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31266         * lib/fseeko.c (rpl_fseeko): Likewise.
31267
31268 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31269
31270         * lib/gl_list.h: Fix typo in comment.
31271
31272 2009-12-16  Eric Blake  <ebb9@byu.net>
31273
31274         fcntl: use to simplify other modules
31275         * modules/cloexec (Depends-on): Add fcntl.
31276         * modules/fchdir (Depends-on): Likewise.
31277         * modules/fd-safer-flag (Depends-on): Likewise.
31278         * modules/unistd-safer (Depends-on): Likewise.
31279         * modules/dup3 (configure.ac): Set module indicator.
31280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31281         missing.
31282         * lib/fchdir.c (_gl_register_dup): Fix comment.
31283         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31284         * lib/dup-safer.c (dup_safer): Likewise.
31285         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31286         * lib/dup3.c (dup3): Likewise.
31287         * tests/test-fchdir.c (main): Enhance test.
31288         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31289
31290         fcntl: port portions of fcntl to mingw
31291         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31292         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31293         replacement for mingw.
31294         * modules/fcntl (Description): Update.
31295         (Depends-on): Add dup2.
31296         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31297         * modules/fcntl-h (Makefile.am): Substitute it.
31298         * lib/fcntl.in.h (fcntl): Update declaration.
31299         (F_DUPFD, F_GETFD): New macros, when needed.
31300         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31301         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31302         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31303         we now guarantee.
31304
31305         fcntl: work around cygwin bug in F_DUPFD
31306         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31307         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31308         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31309         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31310         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31311
31312         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31313         * modules/fcntl (Files): List new files.
31314         (configure.ac): Run a test.
31315         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31316         * lib/fcntl.c (rpl_fcntl): Likewise.
31317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31318         (gl_FCNTL_H): Always replace fcntl.h.
31319         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31320         * lib/fcntl.in.h (fcntl): Declare replacement.
31321         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31322         needed, plus a witness.
31323         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31324         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31325         * tests/test-fcntl.c: New file.
31326         * modules/fcntl-tests: Likewise.
31327
31328         binary-io: avoid potential compilation warning
31329         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31330         directives.
31331
31332         fflush: avoid compilation error on NetBSD
31333         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31334         between off_t and fpos_t, since the latter is sometimes a struct.
31335         * lib/fseeko.c (rpl_fseeko): Likewise.
31336         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31337
31338 2009-12-15  Eric Blake  <ebb9@byu.net>
31339
31340         fcntl-h, stdio, sys_ioctl: fix declarations
31341         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31342         function must not take arguments.
31343         * lib/sys_ioctl.in.h (ioctl): Likewise.
31344         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31345         (open): Add a link warning.
31346
31347 2009-12-15  Jim Meyering  <meyering@redhat.com>
31348
31349         areadlink, areadlink-with-size: relax license to LGPLv2+
31350         * modules/areadlink (License): Relax to LGPLv2+.
31351         * modules/areadlink-with-size (License): Likewise.
31352
31353 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31354             Bruno Haible  <bruno@clisp.org>
31355
31356         *printf: Fix memory leak.
31357         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31358         * lib/vfprintf.c (vfprintf): Likewise.
31359         * lib/dprintf.c (dprintf): Likewise.
31360         * lib/vdprintf.c (vdprintf): Likewise.
31361
31362 2009-12-14  Eric Blake  <ebb9@byu.net>
31363
31364         accept4: adjust module dependencies
31365         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31366
31367         utimens: one more try at avoiding compiler warning
31368         * lib/utimens.c (lutimens): Lower scope of result.
31369
31370 2009-12-13  Bruno Haible  <bruno@clisp.org>
31371
31372         Move the malloc checking from module 'list' to new module 'xlist'.
31373         * modules/xlist: New file.
31374         * lib/gl_xlist.h: New file.
31375         * lib/gl_xlist.c: New file.
31376         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31377         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31378         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31379         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31380         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31381         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31382         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31383         gl_sortedlist_nx_add): New declarations.
31384         (struct gl_list_implementation): Rename and change methods accordingly.
31385         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31386         (gl_list_nx_create): Renamed from gl_list_create.
31387         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31388         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31389         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31390         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31391         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31392         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31393         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31394         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31395         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31396         gl_list_create_empty.
31397         (gl_list_nx_create): Renamed from gl_list_create.
31398         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31399         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31400         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31401         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31402         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31403         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31404         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31405         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31406         * lib/gl_array_list.c: Don't include xalloc.h.
31407         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31408         NULL upon out-of-memory.
31409         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31410         out-of-memory.
31411         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31412         Change return type to 'int'.
31413         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31414         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31415         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31416         upon out-of-memory.
31417         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31418         upon out-of-memory.
31419         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31420         upon out-of-memory.
31421         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31422         upon out-of-memory.
31423         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31424         out-of-memory.
31425         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31426         Update.
31427         (gl_array_list_implementation): Update.
31428         * lib/gl_carray_list.c: Don't include xalloc.h.
31429         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31430         Return NULL upon out-of-memory.
31431         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31432         out-of-memory.
31433         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31434         Change return type to 'int'.
31435         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31436         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31437         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31438         upon out-of-memory.
31439         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31440         upon out-of-memory.
31441         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31442         out-of-memory.
31443         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31444         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31445         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31446         Update.
31447         (gl_carray_list_implementation): Update.
31448         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31449         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31450         gl_linked_create_empty. Return NULL upon out-of-memory.
31451         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31452         out-of-memory.
31453         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31454         Change return type to 'int'. Return -1 upon out-of-memory.
31455         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31456         out-of-memory.
31457         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31458         upon out-of-memory.
31459         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31460         upon out-of-memory.
31461         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31462         NULL upon out-of-memory.
31463         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31464         upon out-of-memory.
31465         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31466         out-of-memory.
31467         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31468         Update.
31469         * lib/gl_linked_list.c: Don't include xalloc.h.
31470         (gl_linked_list_implementation): Update.
31471         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31472         (add_to_bucket): Change return type to 'int'.
31473         (gl_linkedhash_list_implementation): Update.
31474         * lib/gl_anytree_list1.h (free_subtree): New function.
31475         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31476         gl_tree_create_empty. Return NULL upon out-of-memory.
31477         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31478         Change return type to 'int'. Return -1 upon out-of-memory.
31479         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31480         out-of-memory.
31481         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31482         (gl_tree_remove_node): New function, moved here from
31483         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31484         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31485         Update.
31486         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31487         malloc, not xmalloc. Return NULL upon out-of-memory.
31488         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31489         out-of-memory.
31490         (gl_tree_remove_node_from_tree): New function, extracted from
31491         gl_tree_remove_node.
31492         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31493         upon out-of-memory.
31494         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31495         out-of-memory.
31496         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31497         upon out-of-memory.
31498         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31499         upon out-of-memory.
31500         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31501         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31502         not xmalloc. Return NULL upon out-of-memory.
31503         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31504         out-of-memory.
31505         (gl_tree_remove_node_from_tree): New function, extracted from
31506         gl_tree_remove_node.
31507         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31508         upon out-of-memory.
31509         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31510         out-of-memory.
31511         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31512         upon out-of-memory.
31513         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31514         upon out-of-memory.
31515         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31516         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31517         gl_anytree_list1.h before gl_anyavltree_list2.h.
31518         (gl_avltree_list_implementation): Update.
31519         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31520         gl_anytree_list1.h before gl_anyavltree_list2.h.
31521         (gl_rbtree_list_implementation): Update.
31522         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31523         Change return type to 'int'. Return -1 upon out-of-memory. Use
31524         __builtin_expect.
31525         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31526         (gl_avltreehash_list_implementation): Update.
31527         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31528         (gl_rbtreehash_list_implementation): Update.
31529         * modules/array-list (Depends-on): Remove xalloc.
31530         * modules/carray-list (Depends-on): Likewise.
31531         * modules/linked-list (Depends-on): Likewise.
31532         * modules/linkedhash-list (Depends-on): Likewise.
31533         * modules/avltree-list (Depends-on): Likewise.
31534         * modules/rbtree-list (Depends-on): Likewise.
31535         * modules/avltreehash-list (Depends-on): Likewise.
31536         * modules/rbtreehash-list (Depends-on): Likewise.
31537
31538         * modules/xsublist: New file.
31539         * lib/gl_xsublist.h: New file.
31540         * lib/gl_xsublist.c: New file.
31541         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31542         (gl_sublist_nx_create): New declaration.
31543         * lib/gl_sublist.c: Don't include xalloc.h.
31544         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31545         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31546         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31547         Change return type to 'int'. Return -1 upon out-of-memory.
31548         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31549         upon out-of-memory.
31550         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31551         NULL upon out-of-memory.
31552         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31553         upon out-of-memory.
31554         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31555         NULL upon out-of-memory.
31556         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31557         NULL upon out-of-memory.
31558         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31559         upon out-of-memory.
31560         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31561         (gl_sublist_list_implementation): Update.
31562         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31563         upon out-of-memory.
31564         * modules/sublist (Depends-on): Remove xalloc.
31565
31566         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31567         * tests/test-carray_list.c: Likewise.
31568         * tests/test-linked_list.c: Likewise.
31569         * tests/test-linkedhash_list.c: Likewise.
31570         * tests/test-avltree_list.c: Likewise.
31571         * tests/test-rbtree_list.c: Likewise.
31572         * tests/test-avltreehash_list.c: Likewise.
31573         * tests/test-rbtreehash_list.c: Likewise.
31574         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31575         * modules/carray-list-tests (Makefile.am): Likewise.
31576         * modules/linked-list-tests (Makefile.am): Likewise.
31577         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31578         * modules/avltree-list-tests (Makefile.am): Likewise.
31579         * modules/rbtree-list-tests (Makefile.am): Likewise.
31580         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31581         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31582
31583         * NEWS: Mention the changes.
31584
31585         * lib/clean-temp.c: Include gl_xlist.h.
31586         * modules/clean-temp (Depends-on): Add xlist.
31587
31588         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31589         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31590
31591         * tests/test-array_oset.c: Include gl_xlist.h.
31592         * modules/array-oset-tests (Depends-on): Add xlist.
31593
31594         Reported by José E. Marchesi <jemarch@gnu.org>.
31595
31596 2009-12-13  Bruno Haible  <bruno@clisp.org>
31597
31598         Move the malloc checking from module 'oset' to new module 'xoset'.
31599         * modules/xoset: New file.
31600         * lib/gl_xoset.h: New file.
31601         * lib/gl_xoset.c: New file.
31602         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31603         declarations.
31604         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31605         (struct gl_oset_implementation): Rename and change methods accordingly.
31606         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31607         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31608         'int'. Mark as __warn_unused_result__.
31609         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31610         gl_oset_create_empty.
31611         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31612         'int'.
31613         * lib/gl_array_oset.c: Don't include xalloc.h.
31614         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31615         malloc, not xmalloc.
31616         (grow): Change return type to 'int'. Don't call xalloc_die.
31617         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31618         to 'int'.
31619         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31620         'int'.
31621         (gl_array_oset_implementation): Update.
31622         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31623         gl_tree_create_empty.
31624         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31625         'int'.
31626         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31628         xmalloc.
31629         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31630         not xmalloc.
31631         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31632         xmalloc.
31633         (gl_avltree_oset_implementation): Update.
31634         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31636         xmalloc.
31637         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31638         not xmalloc.
31639         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31640         xmalloc.
31641         (gl_rbtree_oset_implementation): Update.
31642         * modules/array-oset (Depends-on): Remove xalloc.
31643         * modules/avltree-oset (Depends-on): Likewise.
31644         * modules/rbtree-oset (Depends-on): Likewise.
31645         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31646         * tests/test-avltree_oset.c: Likewise.
31647         * tests/test-rbtree_oset.c: Likewise.
31648         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31649         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31650         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31651         * NEWS: Mention the change.
31652
31653 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31654
31655         maint.mk: allow a project to override release-prep commands
31656         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31657         commands into a new rule.
31658         (release-prep): New rule.
31659         (release-prep-hook): New overridable variable.
31660
31661 2009-12-13  Bruno Haible  <bruno@clisp.org>
31662
31663         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31664
31665 2009-12-13  Jim Meyering  <meyering@redhat.com>
31666
31667         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31668         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31669
31670 2009-12-12  Bruno Haible  <bruno@clisp.org>
31671
31672         duplocale: Tweak.
31673         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31674
31675 2009-12-12  Karl Berry  <karl@gnu.org>
31676
31677         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31678
31679 2009-12-12  Bruno Haible  <bruno@clisp.org>
31680
31681         * m4/po.m4: Undo incorrect untabification.
31682
31683 2009-12-12  Bruno Haible  <bruno@clisp.org>
31684
31685         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31686         * modules/c-strtod (Depends-on): Add locale.
31687         * modules/c-strtold (Depends-on): Likewise.
31688
31689 2009-12-12  Bruno Haible  <bruno@clisp.org>
31690
31691         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31692
31693 2009-12-11  Eric Blake  <ebb9@byu.net>
31694
31695         setenv: relax requirement in light of POSIX ruling
31696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31697         not NULL.
31698         * tests/test-setenv.c (main): Relax test.
31699         * tests/test-unsetenv.c (main): Likewise.
31700         * doc/posix-functions/setenv.texi (setenv): Document this.
31701         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31702
31703 2009-12-11  Bruno Haible  <bruno@clisp.org>
31704
31705         New module 'fd-safer-flag'.
31706         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31707         * lib/dup-safer.c (dup_safer_flag): Remove function.
31708         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31709         * lib/fd-safer.c (fd_safer_flag): Remove function.
31710         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31711         * modules/cloexec (configure.ac): Drop indicator macro.
31712         * modules/fd-safer-flag: New file.
31713         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31714         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31715         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31716
31717 2009-12-11  Bruno Haible  <bruno@clisp.org>
31718
31719         Tests for module 'nl_langinfo'.
31720         * modules/nl_langinfo-tests: New file.
31721         * tests/test-nl_langinfo.sh: New file.
31722         * tests/test-nl_langinfo.c: New file.
31723
31724         New module 'nl_langinfo'.
31725         * lib/nl_langinfo.c: New file.
31726         * m4/nl_langinfo.m4: New file.
31727         * modules/nl_langinfo: New file.
31728         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31729
31730 2009-12-11  Bruno Haible  <bruno@clisp.org>
31731
31732         Tests for module 'langinfo'.
31733         * modules/langinfo-tests: New file.
31734         * tests/test-langinfo.c: New file.
31735
31736         New module 'langinfo'.
31737         * lib/langinfo.in.h: New file.
31738         * m4/langinfo_h.m4: New file.
31739         * modules/langinfo: New file.
31740         * doc/posix-headers/langinfo.texi: Mention the new module.
31741
31742 2009-12-11  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/config.charset: Untabify.
31745
31746 2009-12-11  Bruno Haible  <bruno@clisp.org>
31747
31748         * modules/unistd-safer (configure.ac): Drop indicator macro.
31749
31750 2009-12-11  Bruno Haible  <bruno@clisp.org>
31751
31752         Move pipe2-safer code to its own file.
31753         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31754         * lib/pipe-safer.c (pipe2_safer): Remove function.
31755         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31756         (Makefile.am): Add it to lib_SOURCES.
31757
31758 2009-12-10  Bruno Haible  <bruno@clisp.org>
31759
31760         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31761
31762 2009-12-10  Bruno Haible  <bruno@clisp.org>
31763
31764         Declare which arguments expect non-NULL values, for GCC and clang.
31765         * build-aux/arg-nonnull.h: New file.
31766         * modules/arg-nonnull: New file.
31767         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31768         (inet_ntop, inet_pton): Use it.
31769         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31770         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31771         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31772         (open, openat): Use it.
31773         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31774         (fnmatch): Use it.
31775         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31776         (getopt, getopt_long, getopt_long_only): Use it.
31777         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31778         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31779         Use it.
31780         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31781         (iconv_open): Use it.
31782         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31783         (strtoimax, strtoumax): Use it.
31784         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31785         (duplocale): Use it.
31786         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31787         (frexp, frexpl): Use it.
31788         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31789         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31790         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31791         (tsearch, tfind, tdelete, twalk): Use it.
31792         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31793         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31794         sigpending): Use it.
31795         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31796         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31797         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31798         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31799         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31800         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31801         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31802         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31803         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31804         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31805         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31806         Use it.
31807         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31808         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31809         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31810         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31811         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31812         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31813         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31814         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31815         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31816         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31817         strtoull, unsetenv): Use it.
31818         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31819         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31820         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31821         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31822         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31823         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31824         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31825         (strcasecmp, strncasecmp): Use it.
31826         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31827         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31828         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31829         rpl_setsockopt): Use it.
31830         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31831         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31832         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31833         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31834         (gettimeofday): Use it.
31835         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31836         (times): Use it.
31837         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31838         (uname): Use it.
31839         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31840         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31841         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31842         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31843         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31844         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31845         unlinkat, write): Use it.
31846         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31847         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31848         * lib/argv-iter.h: Include arg-nonnull.h.
31849         (_ATTRIBUTE_NONNULL_): Remove macro.
31850         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31851         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31852         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31853         optimization.
31854         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31855         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31856         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31857         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31858         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31859         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31860         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31861         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31862         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31863         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31864         * modules/dirent (Depends-on): Add arg-nonnull.
31865         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31866         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31867         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31868         * modules/fnmatch (Depends-on): Add arg-nonnull.
31869         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31870         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31871         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31872         * modules/glob (Depends-on): Add arg-nonnull.
31873         (Makefile.am): Insert arg-nonnull.h into glob.h.
31874         * modules/iconv_open (Depends-on): Add arg-nonnull.
31875         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31876         * modules/inttypes (Depends-on): Add arg-nonnull.
31877         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31878         * modules/locale (Depends-on): Add arg-nonnull.
31879         (Makefile.am): Insert arg-nonnull.h into locale.h.
31880         * modules/math (Depends-on): Add arg-nonnull.
31881         (Makefile.am): Insert arg-nonnull.h into math.h.
31882         * modules/netdb (Depends-on): Add arg-nonnull.
31883         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31884         * modules/search (Depends-on): Add arg-nonnull.
31885         (Makefile.am): Insert arg-nonnull.h into search.h.
31886         * modules/signal (Depends-on): Add arg-nonnull.
31887         (Makefile.am): Insert arg-nonnull.h into signal.h.
31888         * modules/spawn (Depends-on): Add arg-nonnull.
31889         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31890         * modules/stdio (Depends-on): Add arg-nonnull.
31891         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31892         * modules/stdlib (Depends-on): Add arg-nonnull.
31893         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31894         * modules/string (Depends-on): Add arg-nonnull.
31895         (Makefile.am): Insert arg-nonnull.h into string.h.
31896         * modules/strings (Depends-on): Add arg-nonnull.
31897         (Makefile.am): Insert arg-nonnull.h into strings.h.
31898         * modules/sys_socket (Depends-on): Add arg-nonnull.
31899         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31900         * modules/sys_stat (Depends-on): Add arg-nonnull.
31901         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31902         * modules/sys_time (Depends-on): Add arg-nonnull.
31903         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31904         * modules/sys_times (Depends-on): Add arg-nonnull.
31905         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31906         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31907         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31908         * modules/time (Depends-on): Add arg-nonnull.
31909         (Makefile.am): Insert arg-nonnull.h into time.h.
31910         * modules/unistd (Depends-on): Add arg-nonnull.
31911         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31912         * modules/wchar (Depends-on): Add arg-nonnull.
31913         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31914         * modules/argv-iter (Depends-on): Add arg-nonnull.
31915         * tests/test-canonicalize.c (null_ptr): New function.
31916         (main): Use it.
31917         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31918         (main): Use it.
31919         * tests/test-memmem.c (null_ptr): New function.
31920         (main): Use it.
31921         Reported by Jim Meyering.
31922
31923 2009-12-10  Bruno Haible  <bruno@clisp.org>
31924
31925         Use spaces for indentation, not tabs.
31926         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31927         * m4/*.m4: Untabify.
31928         * build-aux/*.h: Untabify.
31929         * tests/**/*.[hc]: Untabify.
31930         * README: New section "Indent with spaces, not TABs", based on
31931         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31932         * NEWS: Mention the change.
31933
31934 2009-12-10  Bruno Haible  <bruno@clisp.org>
31935
31936         pty test: Fix link error.
31937         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31938         test_pty_LDADD.
31939
31940 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31941
31942         * modules/pty: New file.
31943         * modules/pty-tests: New file.
31944         * m4/pty.m4: New file.
31945         * tests/test-pty.c: New file.
31946         * doc/glibc-headers/pty.texi: Modified.
31947         * doc/glibc-functions/forkpty.texi: Modified.
31948         * doc/glibc-functions/openpty.texi: Modified.
31949
31950 2009-12-10  Bruno Haible  <bruno@clisp.org>
31951
31952         Avoid syntax error in C++ mode.
31953         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31954
31955 2009-12-10  Bruno Haible  <bruno@clisp.org>
31956
31957         Use sed with option -e.
31958         * gnulib-tool (func_version, func_emit_copyright_notice,
31959         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31960         option -e to sed.
31961         * modules/link-warning (Makefile.am): Likewise.
31962
31963 2009-12-10  Jim Meyering  <meyering@redhat.com>
31964
31965         mgetgroups: do not write bytes beyond end of malloc'd buffer
31966         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31967         username, we call getgroups with a one-element-shorter buffer,
31968         but still told it the length was original, max_n_groups.
31969
31970 2009-12-09  Eric Blake  <ebb9@byu.net>
31971
31972         cloexec: relax license
31973         * modules/cloexec (Maintainer): Add myself.
31974         (License): Use LGPL, not GPL.
31975
31976         link-warning: optimize generation
31977         * modules/link-warning (Makefile.am): Reduce process usage.
31978
31979 2009-12-09  Bruno Haible  <bruno@clisp.org>
31980
31981         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31982         workaround was added on 2009-11-17.
31983
31984 2009-12-09  Jim Meyering  <meyering@redhat.com>
31985             Bruno Haible  <bruno@clisp.org>
31986
31987         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31988         * modules/link-warning (Makefile.am): Make the comment-removing sed
31989         command more robust in the face of bootstrap-prepended comment lines.
31990
31991 2009-12-09  Bruno Haible  <bruno@clisp.org>
31992
31993         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31994         most one group.
31995
31996 2009-12-09  Simon Josefsson <simon@josefsson.org>
31997             Bruno Haible  <bruno@clisp.org>
31998
31999         * build-aux/link-warning.h: Add copyright notice.
32000         * modules/link-warning (Makefile.am): Generate link-warning.h from
32001         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32002         * NEWS: Mention change in link-warning module.
32003         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32004         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32005         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32006         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32007         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32008         * modules/math (Makefile.am): Add dependency to math.h.
32009         * modules/search (Makefile.am): Add dependency to search.h.
32010         * modules/signal (Makefile.am): Add dependency to signal.h.
32011         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32012         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32013         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32014         * modules/string (Makefile.am): Add dependency to string.h.
32015         * modules/strings (Makefile.am): Add dependency to strings.h.
32016         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32017         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32018         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32019         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32020         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32021         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32022         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32023         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32024         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32025
32026 2009-12-09  Bruno Haible  <bruno@clisp.org>
32027
32028         fchdir: Optimize away rpl_fstat when possible.
32029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32030         REPLACE_OPEN_DIRECTORY.
32031         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32032
32033 2009-12-09  Bruno Haible  <bruno@clisp.org>
32034
32035         * lib/fchdir.c: Update comment.
32036
32037 2009-12-09  Bruno Haible  <bruno@clisp.org>
32038
32039         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32040
32041 2009-12-08  Eric Blake  <ebb9@byu.net>
32042
32043         fchdir: avoid memory leak on re-registration.
32044         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32045
32046 2009-12-08  Jim Meyering  <meyering@redhat.com>
32047
32048         init.sh: avoid Solaris 10 /bin/sh portability problem
32049         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32050         sourced script:
32051           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32052           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32053           bar
32054         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32055         and two tests used that idiom.
32056         * tests/init.sh: Update suggested usage comments.
32057         (path_prepend_): New function, to be used in place
32058         of the --src-path=DIR option.
32059         (setup_): Move PATH-prepending code into path_prepend_.
32060         * tests/test-pread.sh: Adapt to new usage.
32061         * tests/test-xalloc-die.sh: Likewise.
32062
32063 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32064
32065         * doc/gnulib.texi (Glibc pty.h): Add.
32066         * doc/glibc-functions/forkpty.texi: Add.
32067         * doc/glibc-functions/openpty.texi: Add.
32068         Suggested by Bruno Haible.
32069
32070 2009-12-08  Eric Blake  <ebb9@byu.net>
32071
32072         fchdir: fix logic bugs
32073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32074         * tests/test-fchdir.c (main): Enhance test.
32075         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32076         is in use.
32077
32078         dup2: fix logic bugs
32079         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32080         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32081         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32082         exists.
32083         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32084
32085 2009-12-07  Eric Blake  <ebb9@byu.net>
32086
32087         unlink: fix m4 detection
32088         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32089
32090         unistd-safer: add unit test
32091         * modules/unistd-safer-tests: New file.
32092         * tests/test-dup-safer.c: Likewise.
32093         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32094         * tests/test-dup2.c (setmode): Likewise.
32095         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32096
32097         cloexec: preserve text vs. binary across dup_cloexec
32098         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32099         mode.
32100         * modules/dup2-tests (Depends-on): Add binary-io.
32101         * modules/cloexec-tests (Depends-on): Likewise.
32102         * tests/test-dup2.c (setmode, is_mode): New helpers.
32103         (main): Add tests that translation mode is preserved.
32104         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32105         Reported by Bruno Haible.
32106
32107         mgetgroups: reduce duplicate listings
32108         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32109         resulting array.
32110         * tests/test-chown.h (test_chown): Simplify client.
32111         * tests/test-lchown.h (test_lchown): Likewise.
32112
32113 2009-12-06  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32116         value.
32117
32118 2009-12-06  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/progname.c: Include stdio.h, stdlib.h.
32121         (set_program_name): Reject a NULL argument.
32122
32123 2009-12-05  Eric Blake  <ebb9@byu.net>
32124
32125         pipe2-safer: new module
32126         * modules/pipe2-safer: New file.
32127         * lib/unistd-safer.h (pipe2_safer): New prototype.
32128         * lib/unistd--.h (pipe2): New wrapper.
32129         * lib/pipe-safer.c (pipe2_safer): New function.
32130         * modules/pipe (Depends-on): Add pipe2-safer.
32131         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32132
32133         stdlib-safer: preserve cloexec flag for mkostemp[s]
32134         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32135         fd_safer_flag.
32136
32137         unistd-safer: allow preservation of cloexec status via flag
32138         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32139         prototypes.
32140         * lib/dup-safer.c (dup_safer_flag): New function.
32141         * lib/fd-safer.c (fd_safer_flag): Likewise.
32142         * modules/cloexec (configure.ac): Set witness.
32143
32144         test-dup2: enhance test
32145         * modules/dup2-tests (Depends-on): Add cloexec.
32146         * tests/test-dup2.c (main): Enhance test.
32147
32148         cloexec: add dup_cloexec
32149         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32150         header and comments.
32151         * lib/cloexec.c (set_cloexec_flag): Add comments.
32152         (dup_cloexec): New function, with mingw implementation borrowed
32153         from...
32154         * lib/w32spawn.h (dup_noinherit): ...here.
32155         * modules/execute (Depends-on): Add cloexec.
32156         * modules/pipe (Depends-on): Likewise.
32157         * modules/cloexec (Depends-on): Add dup2.
32158         * modules/cloexec-tests (Files): New file.
32159         * tests/test-cloexec.c: Likewise.
32160
32161         test-xalloc-die: fix test for mingw
32162         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32163         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32164         directory and .exe suffix off argv[0] output.
32165
32166         test-fseeko: fix test for mingw
32167         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32168         than undefining fseek, so test will pass on mingw.
32169
32170 2009-12-05  Bruno Haible  <bruno@clisp.org>
32171
32172         * lib/progname.h (set_program_name): Clarify specification.
32173         * lib/progname.c (set_program_name): Likewise.
32174         Reported by Jim Meyering.
32175
32176 2009-12-05  Jim Meyering  <meyering@redhat.com>
32177
32178         maint.mk: backslash-escape parens in default regexp
32179         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32180         backslash-escape the literal parentheses.
32181
32182         maint.mk: news-date-check: use grep -E
32183         * top/maint.mk (today): Define a Make variable, not a...
32184         (news-date-check): ...shell variable.
32185         (news-date-regexp): Use the Make variable.
32186         Use grep's -E option.  Change the failing diagnostic to mention
32187         the variable, $(news-date-regexp).
32188
32189 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32190
32191         maintainer-makefile: allow customization of NEWS entry format
32192         * top/maint.mk (news-date-regexp): New overridable variable.
32193         (news-date-check): Use it.
32194
32195 2009-12-04  Eric Blake  <ebb9@byu.net>
32196
32197         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32198         * lib/mgetgroups.h (xgetgroups): New prototype.
32199         * lib/mgetgroups.c (xgetgroups): New wrapper.
32200         (mgetgroups): Handle ENOSYS.
32201         * modules/mgetgroups (Depends-on): Add realloc.
32202         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32203
32204         mgetgroups: avoid argument promotion issues with -1
32205         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32206         for invalid gid_t.
32207         * tests/test-chown.h (getegid, test_chown): Likewise.
32208         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32209
32210 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32211
32212         exclude: Fix header file problems.
32213         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32214
32215 2009-12-01  Jim Meyering  <meyering@redhat.com>
32216
32217         fts: fts_open: do not let an empty string cause immediate failure
32218         This is required in support of GNU rm, for which the command
32219         "rm A '' B" must process and remove both A and B, in spite of
32220         the empty string argument.
32221         * lib/fts.c (fts_open): Do not let the presence of an empty string
32222         cause fts_open to fail immediately.  Most fts-using tools must be
32223         able to process all arguments, in order, and can be expected to
32224         diagnose such arguments themselves.
32225
32226 2009-11-30  Eric Blake  <ebb9@byu.net>
32227
32228         utimens: fix compilation error
32229         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32230         Declare variable at right scope.
32231
32232 2009-11-29  Jim Meyering  <meyering@redhat.com>
32233
32234         bootstrap: handle perl-5.11's changed --version output
32235         * build-aux/bootstrap (get_version): Handle perl separately,
32236         since perl-5.11's --version output is different.
32237
32238 2009-11-28  Jim Meyering  <meyering@redhat.com>
32239
32240         userspec: depend on the inttostr module, too
32241         * modules/userspec (Depends-on): Add inttostr.
32242
32243         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32244         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32245         number of MAXUID when it evaluates to (uid_t) -1.
32246         Likewise for group ID.  Reported by Matt McCutchen in
32247         <http://savannah.gnu.org/bugs/?28113>
32248
32249         userspec: reformat to use spaces, not TABs
32250         * lib/userspec.c: Expand TABs to spaces.
32251         Add Emacs' "indent-tabs-mode: nil" hint.
32252
32253 2009-11-27  Eric Blake  <ebb9@byu.net>
32254
32255         getopt-gnu: flush out another BSD bug
32256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32257         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32258         flush out BSD bug.
32259         * tests/test-getopt.h (test_getopt): End lists with NULL.
32260         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32261         (test_getopt_long_posix): Enhance test.
32262         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32263         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32264         getopt-gnu.
32265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32266         Likewise.
32267
32268 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32269
32270         * modules/idpriv-droptemp-tests (Notice): Fix text.
32271
32272 2009-11-27  Jim Meyering  <meyering@redhat.com>
32273
32274         test-xalloc-die: avoid spurious failure due to libtool argv difference
32275         In a libtool-enabled project, this test would fail due to a difference
32276         in the emitted program name, e.g.,
32277         -test-xalloc-die: memory exhausted
32278         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32279         Use program to avoid that.
32280         * modules/xalloc-die-tests (Depends-on): Add progname.
32281         * tests/test-xalloc-die.c: Include progname.h".
32282         (program_name): Remove decl.
32283         (main): Call set_program_name.
32284         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32285
32286 2009-11-26  Richard Jones  <rjones@redhat.com>
32287
32288         w32sock: leave win32 error in place.
32289         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32290
32291 2009-11-26  Eric Blake  <ebb9@byu.net>
32292
32293         init.sh: suggest to use skip_ and fail_ functions in comments
32294         * tests/init.sh: Add a sentence.
32295
32296 2009-11-25  Bruno Haible  <bruno@clisp.org>
32297
32298         init.sh: add documentation in comments
32299         * tests/init.sh: Add some developer and user documentation.
32300
32301 2009-11-26  Jim Meyering  <meyering@redhat.com>
32302
32303         init.sh: accommodate even those who specify bogus srcdir manually
32304         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32305         configure-time tests to be sanitized, so that there is no need to
32306         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32307         (with no double quotes) suffices.  However, since tests may be
32308         invoked manually, and since you may explicitly set srcdir to the
32309         name of a directory containing spaces, do quote its uses here.
32310         * tests/test-pread.sh: Likewise.
32311         Suggested by Bruno Haible.
32312
32313         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32314         * tests/test-pread.sh: Write no data into the pipe, because
32315         test-pread actually reads none.  This avoids a diagnostic,
32316         "bash: echo: write error: Broken pipe", that arises in the unusual
32317         event something is ignoring SIGPIPE, and might be interpreted
32318         as some sort of failure.  Reported by Bruno Haible.
32319
32320 2009-11-25  Jim Meyering  <meyering@redhat.com>
32321
32322         test-pread: cover failure with ESPIPE and EINVAL
32323         * tests/test-pread.c (main): Test for failure, too.
32324         * tests/test-pread.sh: Invoke with stdin on a pipe.
32325         Suggested by Eric Blake.
32326
32327         pread: improvement and fix
32328         * modules/pread (Depends-on): Depend on lseek, for portability to
32329         e.g., mingw.  Suggested by Eric Blake.
32330         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32331
32332         unistd.in.h: correct declaration of pread
32333         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32334         Reported by Richard W.M. Jones.
32335
32336         test-pread.sh: distribute the test script
32337         * modules/pread-tests (Files): Include test-pread.sh.
32338
32339         test-pread.sh: clean up
32340         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32341         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32342         That is unnecessary, since it's always ".".
32343         Suggestion from Eric Blake.
32344
32345         test-pread.sh: make executable
32346         * tests/test-pread.sh: Set executable bit.
32347         Reported by Eric Blake.
32348
32349         correct typo in test-pread.sh
32350         * tests/test-pread.sh: Add #! line.
32351
32352         test pread
32353         * tests/test-pread.c: New file.
32354         * tests/test-pread.sh: Likewise.
32355         * modules/pread-tests: Likewise.
32356
32357         pread: new module
32358         * modules/pread: New file.
32359         * lib/unistd.in.h (pread): Define/declare.
32360         * lib/pread.c (pread): New file.
32361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32362         * modules/unistd (Makefile.am): Substitute witnesses.
32363         * doc/posix-functions/pread.texi (pread): Update.
32364         * MODULES.html.sh: Add pread.
32365
32366 2009-11-25  Jim Meyering  <meyering@redhat.com>
32367
32368         tests/init.sh: new file to be used via most *.sh tests
32369         * tests/init.sh: New file.
32370
32371 2009-11-25  Eric Blake  <ebb9@byu.net>
32372
32373         utimens: work around older Linux failure with symlinks
32374         * lib/utimens.c (lutimensat_works_really): New variable.
32375         (fdutimens, lutimens): Use it to manage kernels that support
32376         nanosecond times on files, but not on symlinks.
32377         Reported by Ondřej Vašík.
32378
32379         utimes: fix configure grammar
32380         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32381
32382 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32383
32384         regex: Fix fastmap for multibyte character ranges.
32385         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32386         characters when a multibyte character range is included.
32387
32388 2009-11-22  Andy Wingo  <wingo@pobox.com>
32389
32390         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32391         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32392
32393 2009-11-24  Bruno Haible  <bruno@clisp.org>
32394
32395         doc: Most *_l functions exist in MacOS X 10.5.
32396         * doc/posix-functions/duplocale.texi: Update platforms list.
32397         * doc/posix-functions/freelocale.texi: Likewise.
32398         * doc/posix-functions/newlocale.texi: Likewise.
32399         * doc/posix-functions/uselocale.texi: Likewise.
32400         * doc/posix-functions/isalnum_l.texi: Likewise.
32401         * doc/posix-functions/isalpha_l.texi: Likewise.
32402         * doc/posix-functions/isblank_l.texi: Likewise.
32403         * doc/posix-functions/iscntrl_l.texi: Likewise.
32404         * doc/posix-functions/isdigit_l.texi: Likewise.
32405         * doc/posix-functions/isgraph_l.texi: Likewise.
32406         * doc/posix-functions/islower_l.texi: Likewise.
32407         * doc/posix-functions/isprint_l.texi: Likewise.
32408         * doc/posix-functions/ispunct_l.texi: Likewise.
32409         * doc/posix-functions/isspace_l.texi: Likewise.
32410         * doc/posix-functions/isupper_l.texi: Likewise.
32411         * doc/posix-functions/iswalnum_l.texi: Likewise.
32412         * doc/posix-functions/iswalpha_l.texi: Likewise.
32413         * doc/posix-functions/iswblank_l.texi: Likewise.
32414         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32415         * doc/posix-functions/iswctype_l.texi: Likewise.
32416         * doc/posix-functions/iswdigit_l.texi: Likewise.
32417         * doc/posix-functions/iswgraph_l.texi: Likewise.
32418         * doc/posix-functions/iswlower_l.texi: Likewise.
32419         * doc/posix-functions/iswprint_l.texi: Likewise.
32420         * doc/posix-functions/iswpunct_l.texi: Likewise.
32421         * doc/posix-functions/iswspace_l.texi: Likewise.
32422         * doc/posix-functions/iswupper_l.texi: Likewise.
32423         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32424         * doc/posix-functions/isxdigit_l.texi: Likewise.
32425         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32426         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32427         * doc/posix-functions/strcoll_l.texi: Likewise.
32428         * doc/posix-functions/strfmon_l.texi: Likewise.
32429         * doc/posix-functions/strftime_l.texi: Likewise.
32430         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32431         * doc/posix-functions/strxfrm_l.texi: Likewise.
32432         * doc/posix-functions/tolower_l.texi: Likewise.
32433         * doc/posix-functions/toupper_l.texi: Likewise.
32434         * doc/posix-functions/towctrans_l.texi: Likewise.
32435         * doc/posix-functions/towlower_l.texi: Likewise.
32436         * doc/posix-functions/towupper_l.texi: Likewise.
32437         * doc/posix-functions/wcscoll_l.texi: Likewise.
32438         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32439         * doc/posix-functions/wctrans_l.texi: Likewise.
32440         * doc/posix-functions/wctype_l.texi: Likewise.
32441         * doc/glibc-functions/strptime_l.texi: Likewise.
32442         * doc/glibc-functions/strtod_l.texi: Likewise.
32443         * doc/glibc-functions/strtof_l.texi: Likewise.
32444         * doc/glibc-functions/strtol_l.texi: Likewise.
32445         * doc/glibc-functions/strtold_l.texi: Likewise.
32446         * doc/glibc-functions/strtoll_l.texi: Likewise.
32447         * doc/glibc-functions/strtoul_l.texi: Likewise.
32448         * doc/glibc-functions/strtoull_l.texi: Likewise.
32449         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32450         * doc/glibc-functions/wcstod_l.texi: Likewise.
32451         * doc/glibc-functions/wcstof_l.texi: Likewise.
32452         * doc/glibc-functions/wcstol_l.texi: Likewise.
32453         * doc/glibc-functions/wcstold_l.texi: Likewise.
32454         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32455         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32456         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32457
32458 2009-11-24  Bruno Haible  <bruno@clisp.org>
32459
32460         duplocale: Fix logic bug.
32461         * lib/duplocale.c: Don't include <langinfo.h>.
32462         (_NL_LOCALE_NAME): Remove macro.
32463         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32464         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32465
32466 2009-11-23  Jim Meyering  <meyering@redhat.com>
32467
32468         test-update-copyright: don't hard-code /usr/bin/perl
32469         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32470         perl to print the current year.  Gilles Espinasse reported that
32471         the replaced use of perl was hard-coded as /usr/bin/perl.
32472
32473 2009-11-23  Bruno Haible  <bruno@clisp.org>
32474
32475         duplocale: Add support for glibc 2.3.x.
32476         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32477
32478 2009-11-22  Bruno Haible  <bruno@clisp.org>
32479
32480         vasnprintf: Tiny optimization.
32481         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32482         MacOS X.
32483
32484 2009-11-22  Bruno Haible  <bruno@clisp.org>
32485
32486         Tests for module 'duplocale'.
32487         * modules/duplocale-tests: New file.
32488         * tests/test-duplocale.c: New file.
32489
32490         New module 'duplocale'.
32491         * m4/duplocale.m4: New file.
32492         * lib/locale.in.h (duplocale): New declaration.
32493         * lib/duplocale.c: New file.
32494         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32495         gl_LOCALE_H_DEFAULTS): New macros.
32496         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32497         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32498         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32499         REPLACE_DUPLOCALE.
32500         * modules/duplocale: New file.
32501         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32502
32503 2009-11-22  Bruno Haible  <bruno@clisp.org>
32504
32505         * modules/locale-tests (configure.ac): Test for newlocale function.
32506         * tests/test-locale.c: When the system has extended locale functions,
32507         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32508
32509         locale: Make locale_t available when possible.
32510         * lib/locale.in.h: Include <xlocale.h> when it exists.
32511         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32512         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32513         * modules/locale (Depends-on): Add extensions.
32514         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32515         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32516
32517 2009-11-22  Bruno Haible  <bruno@clisp.org>
32518
32519         Add comments.
32520         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32521         invocation.
32522         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32523         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32524         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32525
32526 2009-11-22  Bruno Haible  <bruno@clisp.org>
32527
32528         error: account for the possibility of freopen (stdout).
32529         * lib/error.c: Include <unistd.h>.
32530         (flush_stdout): New function, extracted from error and error_at_line.
32531         Determine stdout's fd dynamically.
32532         (error, error_at_line): Invoke flush_stdout.
32533         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32534         * modules/error (Depends-on): Add unistd.
32535
32536 2009-11-22  Bruno Haible  <bruno@clisp.org>
32537
32538         diffseq: Add comment.
32539         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32540
32541 2009-11-22  Jim Meyering  <meyering@redhat.com>
32542
32543         c-stack: avoid defining an unused static function
32544         * lib/c-stack.c (find_stack_direction): Do not define this function
32545         when it will not be used.
32546
32547         diffseq: avoid spurious gcc warnings
32548         * lib/diffseq.h (IF_LINT2): Define.
32549         (compareseq): Use it to initialize two members of "part".
32550         This avoids two used-uninitialized warnings.
32551
32552 2009-11-21  Jim Meyering  <meyering@redhat.com>
32553
32554         c-stack: avoid "ignoring return value of `write'" warning
32555         * lib/c-stack.c: Include "ignore-value.h".
32556         (die): Explicitly ignore each write return value.
32557         * modules/c-stack (Depends-on): Add ignore-value.
32558
32559 2009-11-21  Bruno Haible  <bruno@clisp.org>
32560
32561         diffseq: reduce scope of variable 'best'.
32562         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32563         variable, earlier used for two different purposes.
32564
32565 2009-11-21  Jim Meyering  <meyering@redhat.com>
32566
32567         diffseq: remove useless assignment to "best"
32568         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32569         assignment.  At that point "best" is already guaranteed to be zero.
32570
32571 2009-11-20  Eric Blake  <ebb9@byu.net>
32572
32573         build: mention ftp redirector in release announcements
32574         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32575         values that used to come from cfg.mk; mention FTP redirect URL.
32576         * build-aux/announce-gen: Mention the mirror list.
32577         Suggested by Karl Berry.
32578
32579         nanosleep: improve port to mingw
32580         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32582         LIB_NANOSLEEP, but only when needed.
32583         * modules/select (Link): Document LIBSOCKET.
32584         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32585         enough.
32586
32587         nanosleep: work around cygwin bug
32588         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32589         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32590         bug.
32591         (getnow): Delete, not needed.
32592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32593         LIB_CLOCK_GETTIME.
32594         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32595         clock-time, gettime.
32596         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32597         bug.
32598         * modules/nanosleep-tests: New test.
32599         * tests/test-nanosleep.c: New file.
32600
32601         sleep: work around cygwin bug
32602         * lib/sleep.c (rpl_sleep): Work around the bug.
32603         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32604         (gl_PREREQ_SLEEP): Delete unused macro.
32605         * modules/sleep (Depends-on): Add verify.
32606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32607         * modules/unistd (Makefile.am): Substitute witness.
32608         * lib/unistd.in.h (sleep): Update prototype.
32609         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32610         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32611         * modules/sleep-tests (Depends-on): Check for alarm.
32612
32613 2009-11-20  Jim Meyering  <meyering@redhat.com>
32614
32615         maint.mk: improve sc_prohibit_magic_number_exit
32616         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32617         so it does not match uses like System.exit(1).
32618         Add comments showing how to correct all offenders.
32619
32620 2009-11-19  Eric Blake  <ebb9@byu.net>
32621
32622         xalloc-die-tests: add missing library
32623         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32624
32625         test-xvasprintf: silence compiler warnings
32626         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32627         empty string from gcc.
32628
32629 2009-11-19  Jim Meyering  <meyering@redhat.com>
32630
32631         xfreopen: new module, from coreutils
32632         * modules/xfreopen: New module.
32633         * lib/xfreopen.c: New file.
32634         * lib/xfreopen.h: New file.
32635         * MODULES.html.sh (File stream based Input/Output"): Add it.
32636
32637 2009-11-19  Eric Blake  <ebb9@byu.net>
32638
32639         manywarnings: depend on warnings
32640         * modules/manywarnings (Depends-on): Add warnings.
32641
32642         build: avoid compiler warnings
32643         * lib/select.c (rpl_select): Delete unused variable.
32644         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32645
32646 2009-11-18  Eric Blake  <ebb9@byu.net>
32647
32648         tests: avoid false negative with --with-packager
32649         * tests/test-version-etc.sh: Discard packager information.
32650         * tests/test-argp-version-etc-1.sh: Likewise.
32651         Reported by Mike Frysinger.
32652
32653         utimens: fix regression on Solaris
32654         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32655         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32656         can only change fd timestamps via futimesat.  Instead, use an
32657         additional witness macro to avoid BSD bug.
32658         Reported by Jim Meyering.
32659
32660 2009-11-17  Eric Blake  <ebb9@byu.net>
32661
32662         usleep: use it to simplify tests
32663         * modules/stat-time-tests (Depends-on): Add usleep.
32664         (configure.ac): Drop usleep check.
32665         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32666         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32667         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32668         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32669         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32670         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32671         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32672         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32673         Likewise.
32674         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32675         * tests/test-lchown.h (nap): Likewise.
32676         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32677         * tests/test-stat-time.c (nap): Likewise.
32678         * tests/test-utimens-common.h (nap): Update comments.
32679
32680         usleep: new module
32681         * modules/usleep: New file.
32682         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32683         * lib/usleep.c (usleep): Likewise.
32684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32685         * modules/unistd (Makefile.am): Substitute witnesses.
32686         * lib/unistd.in.h (usleep): Add declaration.
32687         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32688         * MODULES.html.sh (Date and time): Likewise.
32689         * modules/usleep-tests (Depends-on): New test.
32690         * tests/test-usleep.c: New file.
32691
32692         chown: work around OpenBSD bug
32693         * lib/chown.c (rpl_chown): Work around the bug.
32694         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32695         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32696         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32697         * modules/chown (Depends-on): Add stdbool.
32698         * modules/lchown (Depends-on): Likewise.
32699         * doc/posix-functions/chown.texi (chown): Document the bug.
32700         * doc/posix-functions/lchown.texi (lchown): Likewise.
32701         * tests/test-lchown.h (test_chown): Relax test.
32702
32703         mkstemp: avoid conflict with C++ keyword template
32704         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32705         * lib/mkostemp.c (mkostemp): Likewise.
32706         * lib/mkostemps.c (mkostemps): Likewise.
32707         * lib/mkstemp.c (mkstemp): Likewise.
32708         * lib/mkstemps.c (mkstemps): Likewise.
32709
32710         xalloc-die-tests: optimize
32711         * tests/test-xalloc-die.sh: Reduce number of processes.
32712
32713 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32714
32715         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32716         patch from ludo@gnu.org (Ludovic Courtès).
32717
32718 2009-11-17  Jim Meyering  <meyering@redhat.com>
32719
32720         version-etc: use proper license string
32721         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32722         * modules/version-etc-fsf: Likewise.
32723
32724 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32725
32726         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32727         printed to stdout.  Deal with EOL differences.
32728
32729 2009-11-17  Eric Blake  <ebb9@byu.net>
32730
32731         unsetenv: work around Solaris bug
32732         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32733         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32734         Reported by Jim Meyering.
32735
32736         vasnprintf: avoid compiler warnings
32737         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32738         variables.
32739         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32740
32741 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32742
32743         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32744         settings since xalloc-die is no longer the self test,
32745         xalloc-die.sh is.
32746
32747 2009-11-17  Jim Meyering  <meyering@redhat.com>
32748
32749         test-xalloc-die.sh: make the code agree with the commit log
32750         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32751         at the end, just in case you happen to have a test-xalloc-die
32752         program in some other PATH directory.
32753
32754         test-xalloc-die.sh: fix a portability bug
32755         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32756         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32757         Otherwise, argv[0] (as often seen in diagnostics) would be too
32758         system-dependent, sometimes with, and sometimes without the leading "./".
32759
32760         version-etc-fsf: relax license to LGPLv3+
32761         * modules/version-etc-fsf (License): Relax license.
32762
32763 2009-11-16  Eric Blake  <ebb9@byu.net>
32764
32765         xalloc-die-tests: avoid printing null pointer
32766         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32767         shell script.
32768         * tests/test-xalloc-die.c (program_name): Declare.
32769         * tests/test-xalloc-die.sh (tmpfiles): New file.
32770
32771         setenv, unsetenv: work around various bugs
32772         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32773         (setenv) [HAVE_SETENV]: Work around bugs.
32774         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32776         for bugs.
32777         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32778         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32780         * modules/stdlib (Makefile.am): Update substitutions.
32781         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32782         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32783         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32784         * modules/setenv-tests: New test.
32785         * modules/unsetenv-tests: Likewise.
32786         * tests/test-setenv.c: New file.
32787         * tests/test-unsetenv.c: Likewise.
32788
32789 2009-11-16  Jim Meyering  <meyering@redhat.com>
32790
32791         version-etc: relax license to LGPLv3+
32792         * modules/version-etc (License): Relax license.
32793
32794         better AC_REQUIRE expanded-before-required-warning avoidance
32795         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32796         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32797         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32798         which is no longer needed.
32799
32800 2009-11-16  Eric Blake  <ebb9@byu.net>
32801
32802         test-freading: clean up temporary file
32803         * tests/test-freading.c (main): Remove file on success, and use
32804         ASSERT more liberally.
32805         Reported by Jim Meyering.
32806
32807 2009-11-16  Jim Meyering  <meyering@redhat.com>
32808
32809         avoid new AC_REQUIRE expanded-before-required warnings
32810         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32811         merely using it.
32812         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32813         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32814
32815 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32816
32817         * tests/test-xalloc-die.c: New file.
32818         * modules/xalloc-die-tests: New file.
32819         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32820         XFAIL_TESTS so it can be appended by modules.
32821
32822 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32823
32824         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32825         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32826
32827 2009-11-14  Eric Blake  <ebb9@byu.net>
32828
32829         fnmatch: avoid compiler warning
32830         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32831         to silence compiler warning about mismatch signedness in ?:.
32832         Reported by Robert Millan.
32833
32834         intprops: add double-inclusion guard
32835         * lib/intprops.h: Allow idempotent includes.
32836         Suggested by Bruce Korb.
32837
32838         openat: detect Solaris fchownat bug
32839         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32840         penalizing glibc chownat when only lchownat is broken.
32841         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32842         trailing slash bugs.
32843         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32844         * modules/openat-tests (Files): Include more files.
32845         (Depends-on): Add mgetgroups, sleep, stat-time.
32846         (configure.ac): Add additional checks.
32847         (Makefile.am): Build new test.
32848         * tests/test-fchownat.c: New file.
32849
32850         lchown: detect Solaris and FreeBSD bug
32851         * lib/lchown.c (rpl_lchown): Work around bug.
32852         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32854         * modules/unistd (Makefile.am): Populate it.
32855         * lib/unistd.in.h (lchown): Update declaration.
32856         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32857         * modules/lchown-tests: New file.
32858         * tests/test-lchown.h (test_lchown): Likewise.
32859         * tests/test-lchown.c (main): Likewise.
32860
32861         chown: detect Solaris and FreeBSD bug
32862         * lib/chown.c (rpl_chown): Work around bug.
32863         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32864         (gl_PREREQ_CHOWN): Delete.
32865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32866         * modules/unistd (Makefile.am): Populate it.
32867         * lib/unistd.in.h (chown): Update declaration.
32868         * lib/lchown.c (chown): Update client.
32869         * modules/lchown (Depends-on): Add lstat.
32870         * doc/posix-functions/chown.texi (chown): Document the bug.
32871         * doc/posix-functions/getgroups.texi (getgroups): Document
32872         getgroups pitfall.
32873         * modules/chown-tests: New file.
32874         * tests/test-chown.h (test_chown): Likewise.
32875         * tests/test-chown.c (main): Likewise.
32876
32877 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32878
32879         gnulib-tool: correctly detect absence of m4 directories
32880         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32881
32882 2009-11-14  Jim Meyering  <meyering@redhat.com>
32883
32884         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32885         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32886
32887 2009-11-14  John W. Eaton  <jwe@gnu.org>
32888
32889         strftime.h: wrap funtion declaration in extern "C" block
32890         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32891
32892 2009-11-13  Eric Blake  <ebb9@byu.net>
32893
32894         getgroups: avoid compiler warning
32895         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32896
32897         getgroups: work around FreeBSD bug
32898         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32900         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32901         * tests/test-getgroups.c (main): Fix buffer overrun.
32902
32903         getgroups: avoid compilation failure
32904         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32905         * modules/getgroups (Depends-on): Add stdint.
32906
32907 2009-11-13  Jim Meyering  <meyering@redhat.com>
32908
32909         test-getgroups: avoid compilation failure
32910         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32911
32912 2009-11-13  Eric Blake  <ebb9@byu.net>
32913
32914         mgetgroups: new module, taken from coreutils
32915         * modules/mgetgroups: New file.
32916         * lib/mgetgroups.h: Likewise.
32917         * lib/mgetgroups.c (mgetgroups): Likewise.
32918         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32919         * MODULES.html.sh (Users and groups): Mention it.
32920
32921         getgroups: don't expose GETGROUPS_T to user
32922         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32923         an element at a time if GETGROUPS_T is wrong size.
32924         * lib/getugroups.h (getugroups): Change signature.
32925         * lib/unistd.in.h (getgroups): Likewise.
32926         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32927         signature needs fixing.
32928         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32929         AC_TYPE_GETGROUPS.
32930         * modules/group-member (Depends-on): Add getgroups.
32931         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32932         (group_member): Rely on getgroups replacement.
32933         * lib/getugroups.c (getugroups): Use gid_t.
32934         * tests/test-getgroups.c (main): Likewise.
32935         * NEWS: Mention the signature change.
32936         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32937         problem with signature.
32938         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32939         GETGROUPS_T is still useful for setgroups.
32940
32941         getgroups, getugroups: provide stubs for mingw
32942         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32943         * lib/getugroups.c (getugroups): Likewise.
32944         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32945         function.  Modernize replacement scheme.
32946         (gl_PREREQ_GETGROUPS): Delete.
32947         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32948         * modules/getgroups (configure.ac): Declare witness.
32949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32950         * modules/unistd (Depends-on): Substitute witness.
32951         * lib/unistd.in.h (getgroups): Declare replacement.
32952
32953         getgroups: avoid calling exit
32954         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32955         drop xalloc.
32956         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32957         dependencies.
32958         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32959         exiting, in the rare case of malloc failure.
32960
32961         getgroups: fix logic error
32962         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32963         has more than 20 groups.
32964         * modules/getgroups-tests: New test.
32965         * tests/test-getgroups.c: New file.
32966
32967 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32968
32969         * tests/test-base64.c: Improve.
32970
32971 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32972
32973         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32974         Blake <ebb9@byu.net>.
32975
32976 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32977
32978         * tests/test-xvasprintf.c: Add %s%s related checks.
32979
32980 2009-11-12  Eric Blake  <ebb9@byu.net>
32981
32982         version-etc: match standards.texi style
32983         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32984         and use <> only for URLs.
32985
32986 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32987
32988         fts: do not fail on a submount during traversal
32989         * lib/fts.c (fts_build): Read the stat info again after opening
32990         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32991         Original report at http://bugzilla.redhat.com/501848.
32992
32993 2009-11-12  Jim Meyering  <meyering@redhat.com>
32994
32995         bootstrap: sync from coreutils
32996         * build-aux/bootstrap (bootstrap_epilogue): New function.
32997         Use git_modules_config in one more place.  This make bootstrap's
32998         --gnulib-srcdir option more useful for testing.
32999
33000         bootstrap: generalize autoheader check
33001         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33002         AC_CONFIG_HEADERS.
33003
33004 2009-11-11  Eric Blake  <ebb9@byu.net>
33005
33006         mkfifoat: use new modules for Solaris and BSD bugs
33007         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33008         * lib/mkfifoat.c (mknodat): Split...
33009         * lib/mknodat.c (mknodat): ...into new file.
33010         * modules/mkfifoat (Files): Ship new file.
33011         (Depends-on): Add mkfifo, mknod.
33012         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33013         (Depends-on): Add symlink.
33014         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33015         redundant with test_mkfifo.h.
33016         (do_mkfifoat, do_mknodat): New helpers.
33017
33018         mknod: new module
33019         * modules/mknod: New file.
33020         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33021         * lib/mknod.c (mknod): Likewise.
33022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33023         defaults.
33024         * modules/sys_stat (Makefile.am): Substitute them.
33025         * lib/sys_stat.in.h (mknod): Declare replacement.
33026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33027         Document it.
33028         * doc/posix-functions/mknod.texi (mknod): Likewise.
33029         * modules/mknod-tests: New test.
33030         * tests/test-mknod.c: Likewise.
33031
33032         mkfifo: new module
33033         * modules/mkfifo: New file.
33034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33035         * lib/mkfifo.c (mkfifo): Likewise.
33036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33037         defaults.
33038         * modules/sys_stat (Makefile.am): Substitute them.
33039         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33040         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33041         Document it.
33042         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33043         * modules/mkfifo-tests: New test.
33044         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33045         from test-mkfifoat.c.
33046         * tests/test-mkfifo.c: New file.
33047
33048         readlink: detect FreeBSD bug
33049         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33050         slash on symlink.
33051         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33052         * tests/test-readlink.h (test_readlink): Enhance test.
33053
33054         symlink: detect FreeBSD bug
33055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33056         slash on symlink.
33057         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33058         * tests/test-symlink.h (test_symlink): Enhance test.
33059
33060 2009-11-10  Eric Blake  <ebb9@byu.net>
33061
33062         link: detect FreeBSD bug
33063         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33064         symlink.
33065         * doc/posix-functions/link.texi (link): Document the bug.
33066         * tests/test-link.h (test_link): Enhance test.
33067         * tests/test-linkat.c (main): Update caller.
33068
33069         unlink, remove: detect FreeBSD bug
33070         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33071         slash on symlink.
33072         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33073         * doc/posix-functions/remove.texi (remove): Likewise.
33074         * tests/test-unlink.h (test_unlink): Enhance test.
33075         * tests/test-remove.c (main): Likewise.
33076
33077 2009-11-09  Eric Blake  <ebb9@byu.net>
33078
33079         rename: detect FreeBSD bug
33080         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33081         slash on symlink.
33082         * modules/renameat-tests (Depends-on): Add filenamecat.
33083         * tests/test-rename.h (test_rename): Allow one more errno.
33084         * tests/test-renameat.c (main): Likewise.
33085         * doc/posix-functions/rename.texi (rename): Document the bug.
33086
33087         open: detect FreeBSD bug
33088         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33089         symlink.
33090         * doc/posix-functions/open.texi (open): Document the bug.
33091         * doc/posix-functions/utimes.texi (utimes): Likewise.
33092         * tests/test-open.h (test_open): Add parameters, and test symlink
33093         handling.
33094         * tests/test-open.c (main): Adjust caller.
33095         * tests/test-fcntl-safer.c (main): Likewise.
33096         * modules/open-tests (Depends-on): Add stdbool, symlink.
33097         * modules/fcntl-safer-tests (Depends-on): Likewise.
33098         * tests/test-openat.c (main): Add test-open tests.
33099
33100         stat: detect FreeBSD bug
33101         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33102         symlink.
33103         * doc/posix-functions/stat.texi (stat): Document the bug.
33104         * tests/test-stat.h (test_stat_func): Add argument.
33105         * tests/test-stat.c (main): Adjust caller.
33106         * tests/test-fstatat.c (main): Likewise.
33107         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33108         Reported by Jim Meyering.
33109
33110 2009-11-09  James Youngman  <jay@gnu.org>
33111
33112         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33113         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33114
33115 2009-11-08  Jim Meyering  <meyering@redhat.com>
33116
33117         utimens: remove invalid futimesat call
33118         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33119         It used the file descriptor of the target file as the DIR_FD
33120         parameter and NULL as the file name.  That caused failure with
33121         errno == EFAULT on FreeBSD-8.0-rc2
33122
33123 2009-11-07  Eric Blake  <ebb9@byu.net>
33124
33125         fflush, freadseek: use fseeko, not fseek
33126         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33127         (clear_ungetc_buffer): Avoid potential problems on large files.
33128         * lib/freadseek.c (freadseek): Likewise.
33129         * modules/freadseek (Depends-on): Add fseeko.
33130         * modules/fseek (configure.ac): Set a witness.
33131         * tests/test-fflush.c (main): Use fseeko.
33132         * tests/test-fpurge.c (fseek): Disable link warning.
33133         * tests/test-freadable.c (fseek): Likewise.
33134         * tests/test-freading.c (fseek): Likewise.
33135         * tests/test-fseeko.c (fseek): Likewise.
33136         * tests/test-ftell.c (fseek): Likewise.
33137         * tests/test-ftello.c (fseek): Likewise.
33138         * tests/test-fwritable.c (fseek): Likewise.
33139         * tests/test-fwriting.c (fseek): Likewise.
33140
33141 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33142
33143         * modules/memchr (Depends-on): Drop getpagesize dependency.
33144
33145 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33146
33147         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33148         Reported by Ludovic Courtès.
33149         * build-aux/pmccabe2html: Improve example usage.
33150         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33151
33152 2009-11-06  Jim Meyering  <meyering@redhat.com>
33153
33154         do-release-commit-and-tag: New module.
33155         Automate the release-commit and tag process.
33156         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33157         * modules/do-release-commit-and-tag: New file.
33158         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33159
33160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33161
33162         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33163         because test-select.c uses inet_pton.
33164
33165 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33166
33167         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33168         GETADDRINFO_LIB.  Bump serial number.
33169         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33170         Suggested by Eric Blake <ebb9@byu.net>.
33171
33172 2009-11-05  Eric Blake  <ebb9@byu.net>
33173
33174         strtod: detect darwin bug
33175         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33176         Reported by Leo Davis.
33177
33178         freopen-safer: new module
33179         * modules/freopen-safer: New module.
33180         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33181         * lib/freopen-safer.c (freopen_safer): New file.
33182         * lib/stdio-safer.h (freopen_safer): New declaration.
33183         * lib/stdio--.h (freopen): New override.
33184         * MODULES.html.sh (File stream based Input/Output): Mention it.
33185         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33186         freopen-safer module.
33187         * doc/posix-functions/stderr.texi (stderr): Likewise.
33188         * doc/posix-functions/stdin.texi (stdin): Likewise.
33189         * doc/posix-functions/stdout.texi (stdout): Likewise.
33190         * modules/freopen-safer-tests: New test.
33191         * tests/test-reopen-safer.c: New file.
33192
33193 2009-11-05  Jim Meyering  <meyering@redhat.com>
33194
33195         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33196         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33197
33198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33199
33200         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33201
33202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33203
33204         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33205
33206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33207
33208         Fix link error.
33209         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33210         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33211
33212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33213
33214         * tests/test-func.c: Also test value of __func__.
33215
33216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33217
33218         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33219         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33220
33221 2009-11-05  Bruno Haible  <bruno@clisp.org>
33222
33223         Fix link error.
33224         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33226         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33227
33228 2009-11-05  Bruno Haible  <bruno@clisp.org>
33229
33230         Tests for module 'inet_pton'.
33231         * modules/inet_pton-tests: New file.
33232         * tests/test-inet_pton.c: New file.
33233
33234 2009-11-05  Bruno Haible  <bruno@clisp.org>
33235
33236         Tests for module 'inet_ntop'.
33237         * modules/inet_ntop-tests: New file.
33238         * tests/test-inet_ntop.c: New file.
33239
33240 2009-11-04  Eric Blake  <ebb9@byu.net>
33241
33242         stdlib-safer: wrap all mkstemp variants
33243         * modules/mkostemp (configure.ac): Set witness.
33244         * modules/mkostemps (configure.ac): Likewise.
33245         * modules/mkstemps (configure.ac): Likewise.
33246         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33247         (mkstemps_safer): Wrap more functions.
33248         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33249         wrapping.
33250         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33251         (mkstemps_safer): Implement the wrappers.
33252
33253         mkstemps, mkostemps: new modules
33254         * modules/mkostemps: New module.
33255         * modules/mkstemps: Likewise.
33256         * lib/mkostemps.c (mkostemps): New file.
33257         * lib/mkstemps.c (mkstemps): Likewise.
33258         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33259         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33261         * modules/stdlib (Makefile.am): Substitute them.
33262         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33263         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33264         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33265         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33266         * MODULES.html.sh (File system functions): Mention them.
33267
33268         tempname: resync from glibc
33269         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33270         same values for __GT_FILE as glibc.  Abort even when assertions
33271         are disabled.
33272         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33273         match its value otherwise.  Allow idempotent inclusion.
33274         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33275         * lib/mkostemp.c (mkostemp): Likewise.
33276         * lib/mkstemp.c (mkstemp): Likewise.
33277         * lib/tmpfile.c (tmpfile): Likewise.
33278         * NEWS: Document this.
33279
33280         utimens: fix use of futimens on older Linux
33281         * lib/utimens.c (fdutimens): Use updated, rather than original,
33282         timespec to avoid bug in older Linux kernel.
33283         Reported by Simon Josefsson.
33284
33285 2009-11-04  Bruno Haible  <bruno@clisp.org>
33286
33287         Make num_processors more flexible and consistent.
33288         * lib/nproc.h (enum nproc_query): New type.
33289         (num_processors): Add a 'query' argument.
33290         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33291         (num_processors): Add a 'query' argument. Test the value of the
33292         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33293         mingw, count the number of CPUs available for the current process.
33294         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33295         Check for sched_getaffinity and sched_getaffinity_np.
33296         * modules/nproc (Depends-on): Add c-ctype, extensions.
33297         * NEWS: Mention the change.
33298
33299 2009-11-03  Bruno Haible  <bruno@clisp.org>
33300
33301         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33302
33303 2009-11-03  Jim Meyering  <meyering@redhat.com>
33304
33305         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33306         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33307         if it is defined.
33308
33309 2009-11-02  Eric Blake  <ebb9@byu.net>
33310
33311         mktime, timegm: share common declaration
33312         * lib/mktime-internal.h: New file.
33313         * lib/mktime.c: Use it rather than open-coding a declaration.
33314         * lib/timegm.c: Likewise.
33315         * modules/mktime (Files): Ship it.
33316         * modules/timegm (Files): Likewise.
33317         Suggested by Bruno Haible.
33318
33319         test-update-copyright: update test to match script changes
33320         * tests/test-update-copyright.sh: Avoid hard-coding perl
33321         location.  Don't update *.bak created by earlier runs.
33322
33323 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33324             Simon Josefsson  <simon@josefsson.org>
33325             Bruno Haible  <bruno@clisp.org>
33326
33327         Fix link error on Solaris 8.
33328         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33329         also in libnsl. Define also INET_PTON_LIB.
33330         * modules/inet_pton (Link): New section.
33331
33332 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33333             Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33336         * modules/inet_ntop (Link): New section.
33337         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33338
33339 2009-11-02  Eric Blake  <ebb9@byu.net>
33340
33341         maint: avoid compiler warnings in m4 macros
33342         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33344
33345 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33346
33347         * m4/pmccabe2html.m4: Remove file.
33348         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33349         function.  Change maintainer.
33350         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33351         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33352         Courtès).
33353
33354 2009-10-31  Eric Blake  <ebb9@byu.net>
33355
33356         fseeko: fix m4 regression
33357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33358         regression from 2009-10-27.
33359         Reported by Ralf Wildenhues.
33360
33361 2009-10-31  Jim Meyering  <meyering@redhat.com>
33362
33363         inttostr: aesthetics and improved (compile-time) safety
33364         Define inttype_is_signed rather than inttype_is_unsigned,
33365         since the sole use is via "#if inttype_is_signed".
33366         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33367         inttype_is_unsigned.
33368         * lib/offtostr.c (inttype_is_signed): Likewise.
33369         * lib/uinttostr.c (inttype_is_signed): Likewise.
33370         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33371         * lib/inttostr.c (inttostr): Use verify to cross-check the
33372         inttype_is_signed value and the signedness of the actual type.
33373         * modules/inttostr (Depends-on): Add verify.
33374
33375 2009-10-30  Eric Blake  <ebb9@byu.net>
33376
33377         build: avoid compiler warnings
33378         * lib/fchmodat.c (lchmod): Mark unused variables.
33379         * lib/getopt.c (_getopt_initialize): Likewise.
33380         * lib/mktime.c (__mktime_internal): Provide prototype.
33381         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33382         older gcc that do not understand #pragma GCC diagnostic.
33383         * lib/uinttostr.c (inttype_is_unsigned): Define.
33384         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33385
33386 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33387
33388         stat: fix compilation on AIX
33389         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33390         only see struct stat64.
33391
33392 2009-10-30  Eric Blake  <ebb9@byu.net>
33393
33394         exclude: make more robust
33395         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33396         rather than masking a coding bug.
33397         Suggested by Bruno Haible.
33398
33399 2009-10-30  Jim Meyering  <meyering@redhat.com>
33400
33401         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33402         Rather than putting #!/usr/bin/perl on the first line,
33403         start with a variant of what's recommended by "man perlrun" that
33404         invokes the first "perl" program from your shell's search path.
33405         * build-aux/gitlog-to-changelog: Replace #!... as above.
33406         Add a "Local Variables" perl mode setting.
33407         Prompted by a patch from Ludovic Courtès.
33408         Improved by Eric Blake.
33409         * build-aux/useless-if-before-free: Likewise.
33410         * build-aux/announce-gen: Likewise.
33411         * build-aux/update-copyright: Likewise.
33412
33413 2009-10-29  Eric Blake  <ebb9@byu.net>
33414
33415         filenamecat-lgpl: adjust clients
33416         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33417         filenamecat.
33418         * modules/renameat (Depends-on): Likewise.
33419
33420         filenamecat: split into filenamecat-lgpl
33421         * modules/filenamecat-lgpl: New module.
33422         * modules/filenamecat (Files): Move library-safe files into
33423         filenamecat-lgpl.
33424         (Depends-on): Add filenamecat-lgpl.
33425         (configure.ac): Declare witness.
33426         * lib/filenamecat.h (file_name_concat): Only declare when using
33427         GPL module.
33428         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33429         Move...
33430         * lib/filenamecat-lgpl.c: ...into new file.
33431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33432         (gl_FILE_NAME_CONCAT): Use it.
33433         * MODULES.html.sh (File system functions): Mention new module.
33434
33435         argp: avoid memory leak
33436         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33437         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33438         base_name, since the latter malloc()s and can call exit().
33439         Leak introduced 2006-07-03.
33440
33441         dirname-lgpl: adjust clients that don't need full dirname
33442         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33443         * modules/filenamecat (Depends-on): Likewise.
33444         * modules/linkat (Depends-on): Likewise.
33445         * modules/mkancesdirs (Depends-on): Likewise.
33446         * modules/mkdir (Depends-on): Likewise.
33447         * modules/openat (Depends-on): Likewise.
33448         * modules/savewd (Depends-on): Likewise.
33449         * modules/rename (Depends-on): Likewise.
33450         (License): Relax license.
33451         * modules/mkdir-tests (Depends-on): Drop progname.
33452         (Makefile.am): Delete unneeded LDADD.
33453         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33454
33455         dirname: split into dirname-lgpl
33456         * modules/dirname-lgpl: New module.
33457         * modules/dirname (Files): Move library-safe files into
33458         dirname-lgpl.
33459         (Depends-on): Add dirname-lgpl.
33460         (configure.ac): Declare witness.
33461         * modules/double-slash-root (License): Relax license.
33462         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33463         module.
33464         * lib/dirname.c (dir_len, mdir_name): Move...
33465         * lib/dirname-lgpl.c: ...into new file.
33466         * lib/basename.c (last_component, base_len): Move...
33467         * lib/basename-lgpl.c: ...into new file.
33468         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33469         (gl_DIRNAME): Use it.
33470         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33471         Mention new module.
33472         * modules/dirname-tests (Depends-on): Add progname.
33473         * tests/test-dirname.c (program_name): Delete.
33474
33475         mkdir: make safe for libraries
33476         * modules/mkdir (Depends-on): Drop xalloc.
33477         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33478         exit.
33479
33480         tests: avoid some compiler warnings
33481         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33482         literals.
33483         * tests/test-memchr.c (main): Avoid type mismatch.
33484         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33485         * tests/test-base64.c (main): Likewise.
33486         * tests/test-getdelim.c (main): Likewise.
33487         * tests/test-gethostname.c (main): Likewise.
33488         * tests/test-getline.c (main): Likewise.
33489         * tests/test-netinet_in.c (main): Likewise.
33490         * tests/test-select.c (open_server_socket, main): Likewise.
33491         * tests/test-select-stdin.c (main): Likewise.
33492         * tests/test-sockets.c (main): Likewise.
33493         * tests/test-strsignal.c (main): Likewise.
33494         * tests/test-sys_select.c (main): Likewise.
33495         * tests/test-sys_socket.c (main): Likewise.
33496         * tests/test-u64.c (main): Likewise.
33497         * tests/test-xfprintf-posix.c (main): Likewise.
33498         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33499
33500         sockets: avoid compiler warning
33501         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33502
33503         maint: detect usage(1) and other suspicious exits
33504         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33505
33506 2009-10-29  Jim Meyering  <meyering@redhat.com>
33507
33508         timespec: long-to-int truncation could make timespec_cmp malfunction
33509         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33510         a multiple of 2^32 nanoseconds as no difference.
33511
33512 2009-10-28  Jim Meyering  <meyering@redhat.com>
33513
33514         fprintftime: wrap macro code argument in "do {...} while(0)"
33515         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33516         cpy macro must be a statement that can be followed by a semicolon.
33517         Now that the else clause contains a comment and is hence longer
33518         than one line, I require curly braces.  That in turn requires
33519         that we wrap this code block in the standard do...while(0).
33520
33521         fprintftime: remove stray semicolon from previous change
33522         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33523
33524         fprintftime: avoid a warning about ignored fwrite return value
33525         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33526         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33527         that is unsafe.
33528         * modules/fprintftime (Depends-on): Add ignore-value.
33529
33530         exclude: avoid an unwarranted warning
33531         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33532
33533 2009-10-27  Eric Blake  <ebb9@byu.net>
33534
33535         fseek: avoid compilation failure when fflush is replaced
33536         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33537         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33538         module is in use.
33539         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33540         module is not in use; since REPLACE_FSEEK worked otherwise.
33541         (GNULIB_FTELLO): Likewise for ftell.
33542         Reported by Ian Beckwith and others.
33543
33544 2009-10-27  Bruno Haible  <bruno@clisp.org>
33545
33546         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33547         Reported by Jim Meyering.
33548
33549 2009-10-27  Jim Meyering  <jim@meyering.net>
33550             Bruno Haible  <bruno@clisp.org>
33551
33552         Avoid warning despite dropping the return value of fwrite.
33553         * lib/unicodeio.c: Include ignore-value.h.
33554         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33555         * modules/unicodeio (Depends-on): Add ignore-value.
33556
33557 2009-10-26  Eric Blake  <ebb9@byu.net>
33558
33559         areadlinkat: fix fallback path
33560         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33561         pointer and zero.
33562
33563 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33564
33565         Use a better IO block size for modern systems
33566         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33567         * lib/md2.c: Likewise.
33568         * lib/md4.c: Likewise.
33569         * lib/md5.c: Likewise.
33570         * lib/sha1.c: Likewise.
33571         * lib/sha256.c: Likewise.
33572         * lib/sha512.c: Likewise.
33573
33574 2009-10-22  Eric Blake  <ebb9@byu.net>
33575
33576         tests: avoid several compiler warnings
33577         * tests/test-getcwd.c (main): Avoid buffer underflow.
33578         * tests/test-getdate.c (main): String literals are not safe with
33579         putenv, so use setenv.  Declare unused argument.
33580         * modules/getdate-tests (Depends-on): Add setenv.
33581         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33582         problems with string literals in char *.
33583         * tests/test-hash.c (main): Avoid shadowing declaration.
33584         (insert_new): Treat string literals as char const *.
33585         * tests/test-getopt.h (test_getopt): Likewise.
33586         (getopt_loop): Alter types to minimize casting elsewhere.
33587         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33588         (test_getopt_long_posix): Likewise.
33589         (do_getopt_long): Add wrapper to minimize casting.
33590         * tests/test-atexit.c (clear_temp_file): Use void.
33591         * tests/test-areadlink-with-size.c (main): Declare unused
33592         arguments.
33593         * tests/test-areadlink.c (main): Likewise.
33594         * tests/test-areadlinkat-with-size.c (main): Likewise.
33595         * tests/test-areadlinkat.c (main): Likewise.
33596         * tests/test-canonicalize-lgpl.c (main): Likewise.
33597         * tests/test-canonicalize.c (main): Likewise.
33598         * tests/test-dirent-safer.c (main): Likewise.
33599         * tests/test-dirname.c (main): Likewise.
33600         * tests/test-dup2.c (main): Likewise.
33601         * tests/test-fchdir.c (main): Likewise.
33602         * tests/test-fcntl-h.c (main): Likewise.
33603         * tests/test-fcntl-safer.c (main): Likewise.
33604         * tests/test-fdopendir.c (main): Likewise.
33605         * tests/test-fdutimensat.c (main): Likewise.
33606         * tests/test-fflush.c (main): Likewise.
33607         * tests/test-filenamecat.c (main): Likewise.
33608         * tests/test-filevercmp.c (main): Likewise.
33609         * tests/test-fopen-safer.c (main): Likewise.
33610         * tests/test-fopen.c (main): Likewise.
33611         * tests/test-fpending.c (main): Likewise.
33612         * tests/test-fpurge.c (main): Likewise.
33613         * tests/test-freading.c (main): Likewise.
33614         * tests/test-fstatat.c (main): Likewise.
33615         * tests/test-fsync.c (main): Likewise.
33616         * tests/test-futimens.c (main): Likewise.
33617         * tests/test-getndelim2.c (main): Likewise.
33618         * tests/test-gettimeofday.c (main): Likewise.
33619         * tests/test-getopt.c (main): Likewise.
33620         * tests/test-i-ring.c (main): Likewise.
33621         * tests/test-inttypes.c (main): Likewise.
33622         * tests/test-link.c (main): Likewise.
33623         * tests/test-lstat.c (main): Likewise.
33624         * tests/test-math.c (main): Likewise.
33625         * tests/test-md5.c (main): Likewise.
33626         * tests/test-memchr2.c (main): Likewise.
33627         * tests/test-memrchr.c (main): Likewise.
33628         * tests/test-mkdir.c (main): Likewise.
33629         * tests/test-mkdirat.c (main): Likewise.
33630         * tests/test-mkfifoat.c (main): Likewise.
33631         * tests/test-open.c (main): Likewise.
33632         * tests/test-openat-safer.c (main): Likewise.
33633         * tests/test-openat.c (main): Likewise.
33634         * tests/test-quotearg.c (main): Likewise.
33635         * tests/test-rawmemchr.c (main): Likewise.
33636         * tests/test-readlink.c (main): Likewise.
33637         * tests/test-remove.c (main): Likewise.
33638         * tests/test-rename.c (main): Likewise.
33639         * tests/test-renameat.c (main): Likewise.
33640         * tests/test-rmdir.c (main): Likewise.
33641         * tests/test-sha1.c (main): Likewise.
33642         * tests/test-signal.c (main): Likewise.
33643         * tests/test-sigaction.c (main): Likewise.
33644         * tests/test-stat.c (main): Likewise.
33645         * tests/test-stat-time.c (main): Likewise.
33646         * tests/test-stddef.c (main): Likewise.
33647         * tests/test-stdint.c (main): Likewise.
33648         * tests/test-stdio.c (main): Likewise.
33649         * tests/test-stdlib.c (main): Likewise.
33650         * tests/test-strchrnul.c (main): Likewise.
33651         * tests/test-strerror.c (main): Likewise.
33652         * tests/test-string.c (main): Likewise.
33653         * tests/test-strtod.c (main): Likewise.
33654         * tests/test-strverscmp.c (main): Likewise.
33655         * tests/test-symlink.c (main): Likewise.
33656         * tests/test-symlinkat.c (main): Likewise.
33657         * tests/test-sys_stat.c (main): Likewise.
33658         * tests/test-sys_time.c (main): Likewise.
33659         * tests/test-time.c (main): Likewise.
33660         * tests/test-unistd.c (main): Likewise.
33661         * tests/test-unlink.c (main): Likewise.
33662         * tests/test-unlinkat.c (main): Likewise.
33663         * tests/test-utimens.c (main): Likewise.
33664         * tests/test-utimensat.c (main): Likewise.
33665         * tests/test-version-etc.c (main): Likewise.
33666         * tests/test-wchar.c (main): Likewise.
33667         * tests/test-wctype.c (main): Likewise.
33668         * tests/test-xprintf-posix.c (main): Likewise.
33669         * tests/test-posixtm.c (main): Likewise.
33670         (STREQ): Delete unused macro.
33671         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33672         shadowed variables.
33673         * tests/test-memchr.c (main): Likewise.
33674
33675 2009-10-21  Eric Blake  <ebb9@byu.net>
33676
33677         areadlinkat: avoid failure on older glibc
33678         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33679         rather than mis-comparing 0 against FUNC_RESULT of char*.
33680
33681 2009-10-21  Bruno Haible  <bruno@clisp.org>
33682
33683         * modules/stpncpy (License): Relicense under LGPLv2+.
33684         Reported by David Lutterkort <lutter@redhat.com>.
33685
33686 2009-10-20  Eric Blake  <ebb9@byu.net>
33687
33688         utimensat: work around Solaris 9 bug
33689         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33690         has trailing slash bugs.
33691         * tests/test-lutimens.h (test_lutimens): Enhance test.
33692         * tests/test-utimens.h (test_utimens): Likewise.
33693         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33694         * doc/posix-functions/utimes.texi (utimes): Likewise.
33695         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33696         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33697         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33698         * doc/posix-functions/futimens.texi (futimens): Likewise.
33699
33700         fdutimensat: new module
33701         * modules/fdutimensat: New file.
33702         * lib/fdutimensat.c (fdutimensat): Likewise.
33703         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33704         * MODULES.html.sh (File system functions): Mention module.
33705         * modules/fdutimensat-tests: New test.
33706         * tests/test-fdutimensat.c: Likewise.
33707
33708         doc: regenerate INSTALL
33709         * doc/INSTALL: Reflect recent autoconf update.
33710         * doc/INSTALL.ISO: Likewise.
33711         * doc/INSTALL.UTF-8: Likewise.
33712
33713 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33714
33715         acl: warn if ACL support is not detected
33716         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33717
33718 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33719
33720         * lib/nproc.h: Add extern "C" block for C++.
33721
33722 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33723             Bruno Haible  <bruno@clisp.org>
33724
33725         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33726         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33727         * doc/posix-functions/isalpha.texi: Likewise.
33728         * doc/posix-functions/isblank.texi: Likewise.
33729         * doc/posix-functions/iscntrl.texi: Likewise.
33730         * doc/posix-functions/isdigit.texi: Likewise.
33731         * doc/posix-functions/isgraph.texi: Likewise.
33732         * doc/posix-functions/islower.texi: Likewise.
33733         * doc/posix-functions/isprint.texi: Likewise.
33734         * doc/posix-functions/ispunct.texi: Likewise.
33735         * doc/posix-functions/isspace.texi: Likewise.
33736         * doc/posix-functions/isupper.texi: Likewise.
33737         * doc/posix-functions/isxdigit.texi: Likewise.
33738
33739 2009-10-18  Bruno Haible  <bruno@clisp.org>
33740
33741         Tests for module 'isblank'.
33742         * modules/isblank-tests: New file.
33743         * tests/test-isblank.c: New file.
33744
33745         New module 'isblank'.
33746         * lib/isblank.c: New file.
33747         * m4/isblank.m4: New file.
33748         * modules/isblank: New file.
33749         * doc/posix-functions/isblank.texi: Mention the new module.
33750
33751 2009-10-18  Bruno Haible  <bruno@clisp.org>
33752
33753         New module 'ctype'.
33754         * lib/ctype.in.h: New file.
33755         * m4/ctype.m4: New file.
33756         * modules/ctype: New file.
33757         * doc/posix-headers/ctype.texi: Mention the new module.
33758
33759 2009-10-18  Jim Meyering  <meyering@redhat.com>
33760
33761         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33762         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33763         right after its initialization, rather than farther down.
33764         Keeping these in close proximity makes it easier to ensure
33765         that each such variable is initialized.  E.g.,
33766
33767             LIB_CLOCK_GETTIME=
33768             AC_SUBST([LIB_CLOCK_GETTIME])
33769
33770         This change also increments these serial numbers.
33771         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33772         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33774
33775 2009-10-18  Bruno Haible  <bruno@clisp.org>
33776
33777         Don't let environment variables perturb build.
33778         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33779         (gl_PREREQ_GETHRXTIME): ... not here.
33780
33781 2009-10-18  Bruno Haible  <bruno@clisp.org>
33782
33783         Avoid symlink attack in localcharset module.
33784         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33785         (O_NOFOLLOW): Define fallback.
33786         (get_charset_aliases): Don't open the file if it is a symbolic link.
33787         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33788         gl_FCNTL_H.
33789         (gl_FCNTL_H): Require it.
33790         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33791         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33792         Reported by Fergal Glynn <fglynn@veracode.com>.
33793
33794 2009-10-18  Bruno Haible  <bruno@clisp.org>
33795
33796         Implement nproc for mingw.
33797         * lib/nproc.c: Include <windows.h>
33798         (num_processors): On native Windows platforms, try GetSystemInfo.
33799
33800 2009-10-18  Bruno Haible  <bruno@clisp.org>
33801
33802         Implement nproc for IRIX.
33803         * lib/nproc.c: Include <sys/sysmp.h>.
33804         (num_processors): On IRIX systems, try sysmp.
33805         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33806
33807 2009-10-18  Bruno Haible  <bruno@clisp.org>
33808
33809         Implement nproc for HP-UX.
33810         * lib/nproc.c: Include <sys/pstat.h>
33811         (num_processors): On HP-UX systems, try pstat_getdynamic.
33812         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33813         pstat_getdynamic.
33814
33815 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33816             Bruno Haible  <bruno@clisp.org>
33817
33818         Implement nproc for NetBSD, OpenBSD.
33819         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33820         (ARRAY_SIZE): New macro.
33821         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33822         * m4/nproc.m4: New file.
33823         * modules/nproc (Files): Add m4/nproc.m4.
33824         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33825         (Makefile.am): Instead, augment lib_SOURCES.
33826
33827 2009-10-18  Bruno Haible  <bruno@clisp.org>
33828
33829         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33830         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33831         sys/param.h.
33832
33833 2009-10-16  Eric Blake  <ebb9@byu.net>
33834
33835         utimensat: new module
33836         * modules/utimensat: New file.
33837         * lib/utimensat.c (utimensat): Likewise.
33838         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33839         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33840         so we can work around Linux bugs.
33841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33842         * modules/sys_stat (Makefile.am): Substitute them.
33843         * lib/sys_stat.in.h (utimensat): Declare it.
33844         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33845         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33846         * modules/utimensat-tests: New test.
33847         * tests/test-utimensat.c: Likewise.
33848
33849         utimens: let lutimens work on non-symlinks
33850         * lib/utimens.c (lutimens): Fall back to utimens rather than
33851         failing with ENOSYS, when file is not a symlink.
33852         (utimens): Reduce redirection.
33853         * tests/test-lutimens.h (test_lutimens): Update test to cover
33854         non-symlinks.
33855         * tests/test-utimens.h (test_utimens): Update test to cover
33856         symlinks.
33857         * tests/test-utimens.c (main): Update caller.
33858
33859         utimens: cache whether utimensat syscall works
33860         * lib/utimens.c (utimensat_works_really): New cache variable.
33861         (fdutimens, lutimens): Use it to avoid failing syscall.
33862
33863         test-stat-time, test-utimens: improve portability
33864         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33865         ext4 on alpha, and for cygwin.
33866         * tests/test-utimens-common.h: New file.
33867         (nap): Factor delays into single function.
33868         * tests/test-lutimens.h (test_lutimens): Use new header.
33869         * tests/test-futimens.h (test_futimens): Likewise.
33870         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33871         timestamps to occur from same machine, as was done previously for
33872         test_utimens.
33873         * modules/utimens-tests (Files): Ship new file.
33874         * modules/futimens-tests (Files): Likewise.
33875         Reported in part by Jim Meyering.
33876
33877         sys_stat: sort replacement declarations
33878         * lib/sys_stat.in.h: Sort declarations.
33879         * lib/futimens.c (futimens): Fix typo.
33880
33881 2009-10-15  Jim Meyering  <meyering@redhat.com>
33882
33883         don't let environment settings perturb build
33884         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33885         could cause a configure-time and/or build-time malfunction.
33886         Typically, a configure-time function-in-library test is performed
33887         via code like this:
33888
33889           LIB_VAR=
33890           AC_SUBST([LIB_VAR])
33891           prefix_saved_LIBS=$LIBS
33892             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33893                        [test "$ac_cv_search_FUNC" = "none required" ||
33894                         LIB_VAR=$ac_cv_search_FUNC])
33895           LIBS=$prefix_saved_LIBS
33896
33897         However, in each of the files affected by this change, the LIB_VAR=
33898         initialization was omitted.  Thus, when set in the environment, its
33899         value would propagate into generated Makefiles when FUNC is not found
33900         in LIB_NAME.
33901         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33904
33905 2009-10-14  Eric Blake  <ebb9@byu.net>
33906
33907         fchdir: avoid infinite recursion in mingw
33908         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33909         recursing.
33910
33911         test-stat-time: port to mingw
33912         * tests/test-stat-time.c (force_unlink): Return a value.
33913         (test_ctime) [W32]: Fix compilation error.
33914         (nap): Don't call usleep with too large an argument.  Use
33915         force_unlink.
33916         * doc/pastposix-functions/usleep.texi (usleep): Document the
33917         portability issue.
33918
33919 2009-10-13  Jim Meyering  <meyering@redhat.com>
33920
33921         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33922         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33923         * modules/pipe-filter-ii: Likewise.
33924         * modules/sys_socket-tests: Likewise.
33925         * modules/tsearch-tests: Likewise.
33926         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33927         (check): Depend on it.
33928
33929 2009-10-12  Eric Blake  <ebb9@byu.net>
33930
33931         utimens-tests: port to NFS file systems
33932         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33933         comparisons to avoid spurious failures from timestamp drift
33934         between NFS machines.
33935
33936 2009-10-12  Eric Blake  <ebb9@byu.net>
33937
33938         stat-time-tests: minor cleanups
33939         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33940         * tests/test-stat-time.c (nap): Separate assignment from call.
33941         Suggested by Paolo Bonzini and Bruno Haible.
33942
33943         sys_stat: guarantee struct timespec
33944         * lib/sys_stat.in.h (includes): Always include <time.h>
33945         * modules/sys_stat (Depends-on): Add time.
33946         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33947         mode_t permission values.
33948         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33949         get at subsecond timestamps.
33950
33951 2009-10-10  Eric Blake  <ebb9@byu.net>
33952
33953         futimens: new module
33954         * modules/futimens: New file.
33955         * lib/futimens.c (futimens): Likewise.
33956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33957         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33958         we can work around Linux bugs.
33959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33960         * modules/sys_stat (Makefile.am): Substitute them.
33961         * lib/sys_stat.in.h (futimens): Declare it.
33962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33963         * doc/posix-functions/futimens.texi (futimens): Likewise.
33964         * modules/futimens-tests: New test.
33965         * tests/test-futimens.c: Likewise.
33966
33967         utimens: introduce fdutimens
33968         * lib/utimens.h (fdutimens): New prototype.
33969         * lib/utimens.c (gl_futimens): Move guts...
33970         (fdutimens): ...to new interface.
33971         * tests/test-utimens.c (do_fdutimens): Use it.
33972
33973         utimens: add UTIME_NOW and UTIME_OMIT support
33974         * lib/utimens.c (validate_timespec, update_timespec): New helper
33975         functions.
33976         (gl_futimens, lutimens): Use them.
33977         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33978         stdbool, sys_stat.
33979         (Link): Mention resulting library dependency.
33980         * modules/utimecmp (Link): Likewise.
33981         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33982         (Makefile.am): Pick up library dependency.
33983         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33984         definition.
33985         * tests/test-sys_stat.c: Test the definitions.
33986         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33987         * NEWS: Document library dependency.
33988
33989         utimecmp: support symlink timestamps
33990         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33991         hashing when possible.  Use pathconf when available.
33992         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33993         * modules/utimecmp (Depends-on): Add lstat.
33994
33995         utimens: add lutimens interface
33996         * lib/utimens.c (lutimens): New function.
33997         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33998         * lib/utimens.h (lutimens): Declare new interface.
33999         * tests/test-utimens.c (main): Enhance test.
34000         * tests/test-lutimens.h (test_lutimens): New file.
34001         * modules/utimens-tests (Files): Distribute it.
34002         (Depends-on): Add symlink.
34003         (configure.ac): Check for usleep.
34004
34005         utimens: validate futimens usage
34006         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34007         fewer syscalls on failure later on.  Avoid compiler warning on
34008         mingw.
34009         * modules/utimens (Depends-on): Add dup2.
34010
34011         utimens: add test
34012         * modules/utimens-tests: New test.
34013         * tests/test-utimens.h: New file.
34014         * tests/test-futimens.h: Likewise.
34015         * tests/test-utimens.c: Likewise.
34016
34017         doc: mention timestamp portability issues
34018         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34019         instead.
34020         * doc/posix-functions/utime.texi (utime): Likewise.
34021         * doc/posix-functions/utimes.texi (utimes): Likewise.
34022         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34023         instead.
34024         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34025         module.
34026         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34027         Mention weakness with symlink timestamps.
34028         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34029         to utimensat/futimens instead.
34030         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34031
34032         test-dup2: enhance test
34033         * tests/test-dup2.c (main): Also check AT_FDCWD.
34034
34035         test-stat-time: avoid more spurious failures
34036         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34037         xfs; and avoid race if the two timestamps cross quantization edge.
34038
34039         relocatable: prefer 'file system' over 'filesystem'
34040         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34041         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34042         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34043         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34044         * lib/relocatable.c (compute_curr_prefix): Likewise.
34045
34046 2009-10-10  Jim Meyering  <meyering@redhat.com>
34047
34048         stat-time-tests: check for the usleep function
34049         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34050
34051 2009-10-10  Bruno Haible  <bruno@clisp.org>
34052
34053         * modules/xnanosleep: Put the Link section after the Include section.
34054
34055 2009-10-09  Eric Blake  <ebb9@byu.net>
34056
34057         dup2: work around FreeBSD 6.1 bug
34058         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34059         * doc/posix-functions/dup2.texi (dup2): Document it.
34060         Reported by Nelson H. F. Beebe and Jim Meyering.
34061
34062         test-stat-time: port to buggy NFS clients
34063         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34064         (test_ctime): Also skip test if mtime and ctime are skewed.
34065
34066         maint: prefer 'file system' over 'filesystem'
34067         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34068         * doc/posix-functions/lstat.texi (lstat): Likewise.
34069         * lib/file-has-acl.c (file_has_acl): Likewise.
34070         * lib/fwriteerror.c [TEST]: Likewise.
34071         * tests/test-areadlink.h (test_areadlink): Likewise.
34072         * tests/test-areadlinkat-with-size.c (main): Likewise.
34073         * tests/test-areadlinkat.c (main): Likewise.
34074         * tests/test-canonicalize-lgpl.c (main): Likewise.
34075         * tests/test-canonicalize.c (main): Likewise.
34076         * tests/test-fstatat.c (main): Likewise.
34077         * tests/test-linkat.c (main): Likewise.
34078         * tests/test-lstat.h (test_lstat_func): Likewise.
34079         * tests/test-mkdir.h (test_mkdir): Likewise.
34080         * tests/test-readlink.h (test_readlink): Likewise.
34081         * tests/test-remove.c (main): Likewise.
34082         * tests/test-rename.h (test_rename): Likewise.
34083         * tests/test-renameat.c (main): Likewise.
34084         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34085         * tests/test-symlink.h (test_symlink): Likewise.
34086         * tests/test-symlinkat.c (main): Likewise.
34087         * tests/test-unlink.h (test_unlink_func): Likewise.
34088         * tests/test-unlinkat.c (main): Likewise.
34089
34090         maint: make realtime library usage explicit
34091         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34092         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34093         * modules/settime (Link): Likewise.
34094         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34095
34096         test-stat-time: speed up execution
34097         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34098         warning on mingw.
34099         (nap): New helper function.
34100         (prepare_test): Use it to reduce sleep time.
34101         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34102         execution.
34103         * modules/stat-time-tests (configure.ac): Check for usleep.
34104
34105 2009-10-09  Jim Meyering  <meyering@redhat.com>
34106
34107         selinux-h: always use getfilecon wrappers
34108         * lib/getfilecon.c: New file.
34109         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34110         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34111         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34112         (fgetfilecon): Provide a stub.
34113         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34114         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34115         file unconditionally.
34116         When <selinux/selinux.h> is found, arrange to use wrappers.
34117         * modules/selinux-h (Files): Add getfilecon.c.
34118         (Makefile.am): Substitute include-next-related bits
34119         into the now-always-generated selinux/selinux.h file.
34120         * doc/glibc-functions/lgetfilecon.texi: New file.
34121         * doc/glibc-functions/fgetfilecon.texi: New file.
34122         * doc/glibc-functions/getfilecon.texi: New file.
34123         * doc/glibc-functions/getfilecon-desc.texi: New file.
34124         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34125         which to pull in the new files.
34126         * MODULES.html.sh (Misc): Add selinux-h.
34127
34128 2009-10-08  Jim Meyering  <meyering@redhat.com>
34129
34130         unistd: fix comment typo
34131         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34132
34133 2009-10-08  Eric Blake  <ebb9@byu.net>
34134
34135         areadlink: use SIZE_MAX consistently
34136         * modules/areadlink (Depends-on): Add stdint.
34137         * modules/areadlink-with-size (Depends-on): Likewise.
34138         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34139         gives NULL; drop sys/types, since unistd gives size_t; and add
34140         stdint for SIZE_MAX.
34141         (SIZE_MAX): Rely on headers.
34142         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34143         and add stdint.
34144         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34145         (SIZE_MAX): Likewise.
34146         (INITIAL_BUF_SIZE): Turn into enum.
34147         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34148
34149 2009-10-08  Jim Meyering  <meyering@redhat.com>
34150
34151         areadlinkat: avoid compilation failure
34152         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34153         Fix typo in comment.
34154
34155 2009-10-07  Eric Blake  <ebb9@byu.net>
34156
34157         areadlinkat-with-size: new module
34158         * modules/areadlinkat-with-size: New module.
34159         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34160         * lib/areadlink.h (areadlinkat): Declare it.
34161         * MODULES.html.sh (File system functions): Mention it.
34162         * modules/areadlinkat-with-size-tests: New test.
34163         * tests/test-areadlinkat-with-size.c: New file.
34164
34165         xreadlinkat: new module
34166         * modules/xreadlinkat: New module.
34167         * lib/xreadlinkat.c (xreadlinkat): New file.
34168         * lib/xreadlink.h (xreadlinkat): Declare it.
34169         * MODULES.html.sh (File system functions): Mention it.
34170
34171         areadlinkat: new module
34172         * lib/at-func.c (FUNC_FAIL): New define.
34173         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34174         * modules/areadlinkat: New module.
34175         * lib/linkat.c (areadlinkat): Move...
34176         * lib/areadlinkat.c (areadlinkat): ...to new file.
34177         * lib/areadlink.h (areadlinkat): Declare it.
34178         * modules/linkat (Depends-on): Add areadlinkat.
34179         * MODULES.html.sh (File system functions): Mention it.
34180         * modules/areadlinkat-tests: New test.
34181         * tests/test-areadlinkat.c: New file.
34182
34183         areadlink, areadlink-with-size: add tests
34184         * modules/areadlink-tests: New test.
34185         * modules/areadlink-with-size-tests: Likewise.
34186         * tests/test-areadlink.h: New file.
34187         * tests/test-areadlink.c: Likewise.
34188         * tests/test-areadlink-with-size.c: Likewise.
34189
34190         maint: minor cleanups
34191         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34192         _UNUSED_PARAMETER_ instead.
34193         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34194         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34195         * modules/linkat-tests (Files): Distribute test-link.h.
34196
34197         openat, utimens: whitespace cleanup
34198         * lib/openat.c: Prefer space throughout, rather than mix of 8
34199         spaces vs. tabs.
34200         * lib/at-func.c: Likewise.
34201         * lib/utimens.c: Likewise.
34202
34203         openat: avoid using wrong fd
34204         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34205         working directory chooses same fd.
34206         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34207
34208         mkdir, mkdirat: fix cygwin 1.5.x bug
34209         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34210         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34211         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34212         bug.
34213         (gl_PREREQ_MKDIR): Delete unused macro.
34214         * modules/mkdir (Files): Track file rename.
34215         (configure.ac): Update macro name.
34216         * modules/openat (Depends-on): Add mkdir.
34217         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34218
34219         mkdir, mkdirat: add tests
34220         * modules/mkdir-tests: New test.
34221         * tests/test-mkdir.h: New file.
34222         * tests/test-mkdir.c: Likewise.
34223         * tests/test-mkdirat.c: Likewise.
34224         * modules/openat-tests (Files): Add new files.
34225         (Makefile.am): Run new test.
34226
34227 2009-10-06  Eric Blake  <ebb9@byu.net>
34228
34229         doc: tweak *at function documentation
34230         * doc/posix-functions/faccessat.texi (faccessat): Mention
34231         known issue with replacement.
34232         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34233         * doc/posix-functions/linkat.texi (linkat): Likewise.
34234         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34235         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34236         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34237         * doc/posix-functions/renameat.texi (renameat): Likewise.
34238         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34239
34240         openat: fix GNU/Hurd bug in unlinkat
34241         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34242         broken.
34243         * doc/posix-functions/unlink.texi (unlink): Document this.
34244         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34245
34246         fdopendir: fix GNU/Hurd bug
34247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34248         allowing non-directory fds.
34249         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34251         * modules/dirent (Makefile.am): Substitute it.
34252         * lib/dirent.in.h (fdopendir): Declare replacement.
34253         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34254         * tests/test-fdopendir.c (main): Test something other than
34255         /dev/null, since on Hurd that behaves like a directory.
34256
34257         test-symlink: port to GNU/Hurd
34258         * tests/test-symlink.h (test_symlink): Relax expected errno.
34259
34260         doc: tweak more cygwin information
34261         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34262         now compatible with glibc.
34263         * doc/posix-functions/getopt.texi (getopt): Likewise.
34264
34265         getopt-gnu: add another test
34266         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34267         guarantee behavior relied on by m4.
34268         * tests/test-getopt.c (main): Use it.
34269         * modules/getopt-posix-tests (Depends-on): Add setenv.
34270         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34271
34272         getopt: fix compilation on darwin
34273         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34274         include.
34275         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34276         Reported by Ludovic Courtès.
34277
34278 2009-10-06  Bruno Haible  <bruno@clisp.org>
34279
34280         * modules/size_max (Description): Discourage its use.
34281         Reported by Simon Josefsson.
34282
34283 2009-10-06  Jim Meyering  <meyering@redhat.com>
34284
34285         linkat: avoid compilation failure
34286         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34287
34288 2009-10-05  Eric Blake  <ebb9@byu.net>
34289
34290         linkat: support Linux 2.6.17
34291         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34292         linkat on Linux, but allow cache variable override.
34293         * lib/linkat.c (rpl_linkat): Define override.
34294         * modules/linkat (Depends-on): Add symlinkat.
34295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34296         * modules/unistd (Makefile.am): Substitute it.
34297         * lib/unistd.in.h (linkat): Declare replacement.
34298         Reported by Pádraig Brady.
34299
34300         quotearg: port test to systems with C.UTF-8 locale
34301         * tests/test-quotearg.c (struct result_strings): Add another
34302         member, differentiating between C.ASCII and C.UTF-8 handling.
34303         (compare_strings): Add parameter.
34304         (main): Adjust all callers.
34305
34306         getopt: avoid clash with FreeBSD _getopt_internal
34307         * lib/getopt.in.h (_getopt_internal): Override the name.
34308         * lib/getopt_int.h (includes): Pick up any overrides.
34309         Reported by Reuben Thomas.
34310
34311         hash: allow C89 compilation
34312         * lib/hash.c (check_tuning): Move declaration before statement.
34313         Reported by Reuben Thomas.
34314
34315 2009-10-05  Karl Berry  <karl@gnu.org>
34316
34317         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34318
34319 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34320             Bruno Haible  <bruno@clisp.org>
34321
34322         * lib/uname.c (uname): Use a table-driven algorithm to compute
34323         Windows NT versions.
34324
34325 2009-10-04  Bruno Haible  <bruno@clisp.org>
34326
34327         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34328         program_invocation_short_name.
34329         * modules/progname (configure.ac): Test for presence of
34330         program_invocation_short_name.
34331         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34332
34333 2009-10-04  Bruno Haible  <bruno@clisp.org>
34334
34335         * lib/progname.c (set_program_name): Fix comment.
34336         Reported by Jim Meyering.
34337
34338 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34339             Bruno Haible  <bruno@clisp.org>
34340
34341         * lib/uname.c: Include <string.h>.
34342         (uname): Do only one call to GetVersionEx in the common case.
34343
34344 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34345             Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34348         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34349         (uname): Add support for Windows CE and various non-x86 CPU types.
34350
34351 2009-10-03  Bruno Haible  <bruno@clisp.org>
34352
34353         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34354         invocation to tests/configure.ac.
34355         Reported by Ian Beckwith <ianb@erislabs.net>.
34356
34357 2009-10-02  Eric Blake  <ebb9@byu.net>
34358
34359         fchdir: avoid compiler warning
34360         * lib/fchdir.c (canonicalize_file_name)
34361         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34362
34363         test-open: support mingw errno values
34364         * tests/test-open.h (test_open): Relax test.
34365         * tests/test-fopen.h (test_fopen): Likewise.
34366         * tests/test-openat-safer.c (main): Likewise.
34367
34368         open: fix opening directory on mingw
34369         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34370
34371         test-open: on GNU/Hurd, /dev/null is a directory
34372         * tests/test-fopen.h (main): Rename...
34373         (test_fopen): ...to this.  Use a guaranteed non-directory when
34374         confirming open behavior on trailing slash.
34375         * tests/test-openat-safer.c (main): Likewise.
34376         * tests/test-open.h (main): Likewise....
34377         (test_open): ...to this.
34378         * tests/test-fopen.c (main): Adjust caller.
34379         * tests/test-fopen-safer.c (main): Likewise.
34380         * tests/test-open.c (main): Likewise.
34381         * tests/test-fcntl-safer.c (main): Likewise.
34382         Reported by Samuel Thibault.
34383
34384         rename, fchdir: don't ignore chdir failure
34385         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34386         * lib/rename.c (rpl_rename) [W32]: Likewise.
34387         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34388         an empty destination directory if source cannot be renamed,
34389         although there is still possibility for failure.
34390         * doc/posix-functions/rename.texi (rename): Document the race.
34391         Reported by Jim Meyering.
34392
34393         maint: cleanup whitespace in recent commits
34394         * lib/rename.c (rpl_rename): Remove tabs.
34395         * tests/test-link.h (test_link): Likewise.
34396         * lib/fchdir.c (get_name): Likewise.
34397         Reported by Jim Meyering.
34398
34399 2009-10-02  Ben Pfaff  <blp@gnu.org>
34400
34401         relocatable-prog-wrapper: Add missing dependency on
34402         double-slash-root.
34403         * modules/relocatable-prog-wrapper: Add dependency.
34404         Reported by Ian Beckwith <ianb@erislabs.net>.
34405
34406 2009-10-02  Eric Blake  <ebb9@byu.net>
34407
34408         renameat: fix Solaris bugs
34409         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34410         needed fixing.
34411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34412         * modules/stdio (Makefile.am): Substitute it.
34413         * lib/stdio.in.h (renameat): Declare replacement.
34414         * lib/renameat.c (rpl_renameat): Implement fix.
34415
34416         renameat: new module
34417         * modules/renameat: New file.
34418         * lib/renameat.c (renameat): Likewise.
34419         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34421         * modules/stdio (Makefile.am): Substitute them.
34422         * lib/stdio.in.h (renameat): Declare it.
34423         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34424         * doc/posix-functions/renameat.texi (renameat): Likewise.
34425         * modules/renameat-tests: New test.
34426         * tests/test-renameat.c: Likewise.
34427
34428         rename: fix mingw bugs
34429         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34430         directory overwrite bugs.
34431
34432         rename: fix another cygwin 1.5 bug
34433         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34434         checks.
34435         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34436         unnecessary cygwin workarounds.  Also work around bug with moving
34437         full directory onto an empty one.
34438         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34439
34440         rename-dest-slash: merge into rename module
34441         * modules/rename-dest-slash (Status): Mark obsolete.
34442         (Depends-on): Add rename.
34443         (Files): Let rename do it all.
34444         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34445         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34446         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34447         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34448         * lib/rename.c (rpl_rename): Update comments.
34449
34450         rename: fix cygwin 1.5.x bugs
34451         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34452         * lib/rename.c (rpl_rename): Work around them.
34453         * modules/rename (Depends-on): Add same-inode.
34454
34455         rename: fix Solaris 10 bug
34456         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34457         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34458         was the only bug.
34459
34460         rename: fix Solaris 9 bug
34461         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34462         on non-directory.  Avoid calling exit.
34463         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34464         strdup.
34465         * modules/rename-tests (Depends-on): Drop lstat.
34466         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34467         (gl_PREREQ_RENAME): Delete unused macro.
34468
34469         rename-dest-slash: fix NetBSD bug
34470         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34471         links.
34472         * modules/rename-dest-slash (Depends-on): Add same-inode.
34473
34474         rename-tests: new test, exposes several platform bugs
34475         * modules/rename-tests: New file.
34476         * tests/test-rename.h: Likewise.
34477         * tests/test-rename.c: Likewise.
34478         * doc/posix-functions/rename.texi (rename): Improve documentation,
34479         including bugs that will eventually be fixed in gnulib.
34480
34481 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34482
34483         * lib/uname.c: Include <stdlib.h>
34484         (uname): Assume version info is available.
34485
34486 2009-10-02  Jim Meyering  <meyering@redhat.com>
34487
34488         gnu-web-doc-update: correct --help output
34489         * build-aux/gnu-web-doc-update: Make --help output relevant.
34490
34491         gnu-web-doc-update: add standard options
34492         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34493
34494         gnu-web-doc-update: New module.
34495         Use this script to automatically update the on-line web documentation
34496         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34497         * modules/gnu-web-doc-update: New file, from coreutils.
34498         * build-aux/gnu-web-doc-update: New script.
34499
34500 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34501
34502         link: LoadLibrary is not needed.
34503         * lib/link.c: Use GetModuleHandle.
34504
34505 2009-10-01  Eric Blake  <ebb9@byu.net>
34506
34507         getopt: bump serial number
34508         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34509         change.
34510
34511         tests: tighten link, rmdir, and remove tests
34512         * tests/test-link.h (includes): No need to use <config.h> here.
34513         Clean up if directory hard link was created, otherwise test for
34514         trailing '.'.
34515         * tests/test-linkat.c (main): Simplify.
34516         * tests/test-remove.c (main): Enhance test for trailing '.'.
34517         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34518
34519 2009-10-01  Jim Meyering  <meyering@redhat.com>
34520
34521         maint.mk: requiring "make major" was annoying, for a "minor" release.
34522         What is intended is "stable", to contrast with alpha and beta,
34523         so require "make stable", not "make major".
34524         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34525         (get_tool_versions): Likewise.
34526         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34527
34528 2009-09-30  Ben Pfaff  <blp@gnu.org>
34529
34530         Fix broken build of replacement for Windows tmpfile().
34531         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34532         flags argument added along with the 'mkostemp' module.
34533
34534 2009-09-28  Bruno Haible  <bruno@clisp.org>
34535
34536         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34537         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34538         to 'remove_elt'.
34539         (gl_list_remove): Update.
34540         * lib/gl_list.c (gl_list_remove): Update.
34541         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34542         to 'remove_elt'.
34543         (gl_oset_remove): Update.
34544         * lib/gl_list.c (gl_oset_remove): Update.
34545         Reported by Eric Blake.
34546
34547 2009-09-28  Eric Blake  <ebb9@byu.net>
34548
34549         doc: mention yet more cygwin 1.7 status
34550         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34551         cygwin.
34552         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34553         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34554
34555         argp: fix test failure
34556         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34557         that are not upper-case.  Pass correct range to tolower.
34558
34559 2009-09-27  Jim Meyering  <meyering@redhat.com>
34560
34561         test-yesno: work around sparc-dash here-document infelicity
34562         Without this change, the literal \177 byte in a here document
34563         would make dash 0.5.5.1-3 access uninitialized memory.
34564         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34565         Instead, use a marker, "@", and filter through tr to create the desired
34566         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34567
34568 2009-09-27  Bruno Haible  <bruno@clisp.org>
34569
34570         Disable untested support for new flavours of ACLs on AIX.
34571         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34572         progress.
34573         * lib/set-mode-acl.c (qset_acl): Likewise.
34574
34575 2008-12-07  Bruno Haible  <bruno@clisp.org>
34576
34577         Add support for new flavours of ACLs on AIX. (Untested.)
34578         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34579         (file_has_acl): Add support for newer AIX.
34580         * lib/set-mode-acl.c (qset_acl): Likewise.
34581         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34582         Rainer Tammer <tammer@tammer.net>.
34583
34584 2009-09-26  Eric Blake  <ebb9@byu.net>
34585
34586         argp: fix compilation of getopt
34587         * lib/getopt.in.h (includes): Use different guard than glibc.
34588         Reported by Sergey Poznyakoff.
34589
34590         doc: mention more cygwin 1.7 status
34591         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34592         bug.
34593         * doc/posix-functions/execl.texi (execl): Likewise.
34594         * doc/posix-functions/execle.texi (execle): Likewise.
34595         * doc/posix-functions/execlp.texi (execlp): Likewise.
34596         * doc/posix-functions/execv.texi (execv): Likewise.
34597         * doc/posix-functions/execve.texi (execve): Likewise.
34598         * doc/posix-functions/execvp.texi (execvp): Likewise.
34599         * doc/glibc-functions/canonicalize_file_name.texi
34600         (canonicalize_file_name): Cygwin 1.7 now provides this.
34601         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34602         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34603         on AT_SYMLINK_NOFOLLOW.
34604
34605 2009-09-24  Eric Blake  <ebb9@byu.net>
34606
34607         test-linkat: make test more robust
34608         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34609
34610         getopt: fix inclusion guards for cygwin
34611         * modules/getopt-posix (Depends-on): Add include-next.
34612         (Makefile.am): Substitute more items in replacement header.
34613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34614         <getopt.h>.
34615         * lib/getopt.in.h (includes): Use split inclusion guard, and
34616         prefer <getopt.h> over include <unistd.h> when one is present.
34617         (option): Also override name of 'struct option'.
34618
34619         same-inode: revert prior change; it is not yet ready
34620         * NEWS: Undo mention of this change.
34621         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34622         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34623         * lib/cycle-check.c (cycle_check): Likewise.
34624         * lib/same.c (same_name): Likewise.
34625         * lib/at-func2.c (at_func2): Likewise.
34626
34627 2009-09-23  Eric Blake  <ebb9@byu.net>
34628
34629         linkat: new module
34630         * modules/linkat: New file.
34631         * lib/at-func2.c (at_func2): Likewise.
34632         * lib/linkat.c (linkat): Likewise.
34633         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34634         * lib/openat-priv.h (at_func2): Add declaration.
34635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34636         * modules/unistd (Makefile.am): Substitute them.
34637         * lib/unistd.in.h (linkat): Declare it.
34638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34639         * doc/posix-functions/linkat.texi (linkat): Likewise.
34640         * doc/posix-functions/link.texi (link): Tweak wording.
34641         * tests/test-link.c (main): Move guts...
34642         * tests/test-link.h (test_link): ...into new file.
34643         * modules/linkat-tests: New test.
34644         * tests/test-linkat.c: Likewise.
34645         * modules/link-tests (Files): Ship new file.
34646         (Depends-on): Add stdbool.
34647
34648         dirname: add library-safe mdir_name
34649         * lib/dirname.h (mdir_name): New prototype.
34650         * lib/dirname.c (dir_name): Move guts...
34651         (mdir_name): ...to new function that avoids xalloc_die.
34652
34653         fchdir: another mingw fix
34654         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34655         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34656         on mingw (where it has not yet been ported), and make it optional
34657         elsewhere.
34658         (_gl_register_fd): Use it.
34659
34660         same-inode: make SAME_INODE tri-state, to port to mingw
34661         * NEWS: Mention this change.
34662         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34663         st_ino always being 0.
34664         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34665         * lib/cycle-check.c (cycle_check): Likewise.
34666         * lib/same.c (same_name): Likewise.
34667
34668         lstat: avoid mingw compilation error
34669         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34670         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34671         lstat ourselves.
34672         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34673         was adequate.
34674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34675         the checks for lstat.
34676         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34677
34678         link: fix test failure on Solaris 9
34679         * lib/link.c (rpl_link): Don't assume link will catch bogus
34680         trailing slash on source.
34681
34682         test-symlinkat: enhance test
34683         * tests/test-readlink.c (main): Move guts...
34684         * tests/test-readlink.h (test_readlink): ...into new file.
34685         * tests/test-symlink.c (main): Move guts...
34686         * tests/test-symlink.h (test_symlink): ...into new file.
34687         * tests/test-symlinkat.c (main): Use new files for further
34688         coverage.
34689         (do_symlink, do_readlink): New helper functions.
34690         * modules/symlink-tests (Files): Ship new file.
34691         (Depends-on): Add stdbool.
34692         * modules/readlink-tests (Files): Ship new file.
34693         (Depends-on): Add stdbool.
34694         * modules/symlinkat-tests (Files): Use new files.
34695
34696 2009-09-23  Eric Blake  <ebb9@byu.net>
34697
34698         readlink: document portability issue with symlink length
34699         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34700         systems have bogus st_size on symlinks, and mention the
34701         areadlink-with-size module.
34702         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34703         * doc/posix-functions/readlink.texi (readlink): Mention the
34704         areadlink module, and ERANGE failure.
34705         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34706         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34707
34708         readlink: fix Solaris 9 bug with trailing slash
34709         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34710         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34711         * doc/posix-functions/readlink.texi (readlink): Document this.
34712         * modules/readlink-tests: New test.
34713         * tests/test-readlink.c: Likewise.
34714
34715         readlink: fix cygwin 1.5.x bug with return type
34716         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34717         * lib/unistd.in.h (readlink): Use ssize_t.
34718         * lib/readlink.c (readlink): Likewise.
34719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34720         * modules/unistd (Makefile.am): Substitute it.
34721         * lib/unistd.in.h (readlink): Declare replacement.
34722         * doc/posix-functions/readlink.texi (readlink): Document this.
34723
34724         symlink: use throughout gnulib
34725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34726         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34727         symlink is not used.
34728         * modules/symlinkat (Depends-on): Add symlink.
34729         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34730         * modules/canonicalize-tests (Depends-on): Likewise.
34731         * modules/lstat-tests (Depends-on): Likewise.
34732         * modules/openat-tests (Depends-on): Likewise.
34733         * modules/remove-tests (Depends-on): Likewise.
34734         * modules/rmdir-tests (Depends-on): Likewise.
34735         * modules/unlink-tests (Depends-on): Likewise.
34736         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34737         * tests/test-canonicalize.c (symlink): Likewise.
34738         * tests/test-fstatat.c (symlink): Likewise.
34739         * tests/test-lstat.c (symlink): Likewise.
34740         * tests/test-remove.c (symlink): Likewise.
34741         * tests/test-rmdir.c (symlink): Likewise.
34742         * tests/test-unlink.c (symlink): Likewise.
34743         * tests/test-unlinkat.c (symlink): Likewise.
34744
34745         symlink: new module, for Solaris 9 bug
34746         * modules/symlink: New file.
34747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34748         * lib/symlink.c: Likewise.
34749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34750         * modules/unistd (Makefile.am): Substitute them.
34751         * lib/unistd.in.h (symlink): Declare replacement.
34752         * MODULES.html.sh (File system functions): Mention it.
34753         * doc/posix-functions/symlink.texi (symlink): Likewise.
34754         * modules/symlink-tests: New test.
34755         * tests/test-symlink.c: Likewise.
34756
34757 2009-09-23  Bruno Haible  <bruno@clisp.org>
34758
34759         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34760         when needed.
34761         Test case: gnulib-tool --import --with-tests atexit inttypes.
34762         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34763
34764 2009-09-23  Bruno Haible  <bruno@clisp.org>
34765
34766         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34767         subcommand, not in a subshell.
34768
34769 2009-09-22  Eric Blake  <ebb9@byu.net>
34770
34771         unistd: sort replacement declarations
34772         * lib/unistd.in.h: Sort declarations.
34773
34774         open, openat: minor optimization
34775         * lib/open.c (open): If open succeeded, len is non-zero.
34776         * lib/openat.c (rpl_openat): Likewise.
34777
34778         link-follow: ensure correct result
34779         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34780         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34781         distinguish between possible failures.
34782
34783 2009-09-21  Eric Blake  <ebb9@byu.net>
34784
34785         fts: avoid compiler warning
34786         * lib/fts.c (dirent_inode_sort_may_be_useful)
34787         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34788
34789 2009-09-19  Bruno Haible  <bruno@clisp.org>
34790
34791         * lib/progreloc.c (canonicalize_file_name): New declaration.
34792
34793 2009-09-19  Eric Blake  <ebb9@byu.net>
34794
34795         link: fix quoting
34796         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34797
34798         openat: fix openat bugs on Solaris 9
34799         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34800         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34801         * modules/openat (Depends-on): Add open.
34802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34803         * modules/fcntl-h (Makefile.am): Substitute it.
34804         * lib/fcntl.in.h (openat): Declare replacement.
34805         * doc/posix-functions/openat.texi (openat): Document this.
34806
34807         openat: move fstatat and unlinkat into correct files
34808         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34809         compiled.
34810         * lib/openat.c (fstatat, unlinkat): Move...
34811         * lib/fstatat.c (fstatat): ...into correct files.
34812         * lib/unlinkat.c (unlinkat): Likewise.
34813
34814         openat: fix unlinkat bugs on Solaris 9
34815         * lib/unlinkat.c (unlinkat): New file.
34816         * modules/openat (Depends-on): Add unlink.
34817         (Files): Distribute it.
34818         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34819         trailing slash behavior is broken.
34820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34821         * modules/unistd (Makefile.am): Substitute it.
34822         * lib/unistd.in.h (unlinkat): Declare replacement.
34823         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34824
34825         openat: fix fstatat bugs on Solaris 9
34826         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34827         stat.
34828         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34829
34830         test-unlinkat: enhance test, to expose Solaris 9 bug
34831         * tests/test-unlink.c (main): Factor guts...
34832         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34833         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34834         * tests/test-rmdir.c (main): Adjust caller.
34835         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34836         (unlinker): New helper function.
34837         (rmdirat): Enhance check.
34838         * modules/rmdir-tests (Depends-on): Add stdbool.
34839         * modules/unlink-tests (Depends-on): Likewise.
34840         (Files): Add test-unlink.h.
34841         * modules/openat-tests (Files): Likewise.
34842         (Depends-on): Add unlinkdir.
34843
34844         test-fstatat: new test, to expose Solaris 9 bugs
34845         * tests/test-stat.c (main): Factor guts...
34846         * tests/test-stat.h (test_stat_func): ...into new file.
34847         * tests/test-lstat.c (main): Factor guts...
34848         * tests/test-lstat.h (test_lstat_func): ...into new file.
34849         * tests/test-fstatat.c: New file.
34850         * modules/stat-tests (Files): Add test-stat.h.
34851         * modules/lstat-tests (Files): Add test-lstat.h.
34852         (Depends-on): Add stdbool.
34853         * modules/openat-tests (Depends-on): Add pathmax.
34854         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34855         (Makefile.am): Run new test.
34856
34857         remove: new module, for mingw and Solaris 9 bugs
34858         * modules/remove: New file.
34859         * lib/remove.c: Likewise.
34860         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34862         * modules/stdio (Makefile.am): Use them.
34863         * lib/stdio.in.h (remove): Declare replacement.
34864         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34865         * doc/posix-functions/remove.texi (remove): Likewise.
34866         * modules/remove-tests: New test.
34867         * tests/test-remove.c: Likewise.
34868
34869         unlink: new module, for Solaris 9 bug
34870         * modules/unlink: New file.
34871         * lib/unlink.c: Likewise.
34872         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34874         * modules/unistd (Makefile.am): Use them.
34875         * lib/unistd.in.h (stat): Declare replacement.
34876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34877         * doc/posix-functions/unlink.texi (unlink): Likewise.
34878         * modules/unlink-tests: New test.
34879         * tests/test-unlink.c: Likewise.
34880
34881         lstat: fix Solaris 9 bug
34882         * lib/lstat.c (lstat): Also check for trailing slash on
34883         non-symlink, non-directories.  Use stat module to simplify logic.
34884         * doc/posix-functions/lstat.texi (lstat): Document it.
34885         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34886         (configure.ac): Check for symlink.
34887         * tests/test-lstat.c (main): Add more tests.
34888
34889         stat: add as dependency to other modules
34890         * modules/chown (Depends-on): Add stat.
34891         * modules/euidaccess (Depends-on): Likewise.
34892         * modules/fchdir (Depends-on): Likewise.
34893         * modules/isdir (Depends-on): Likewise.
34894         * modules/link (Depends-on): Likewise.
34895         * modules/lstat (Depends-on): Likewise.
34896         * modules/mkdir-p (Depends-on): Likewise.
34897         * modules/modechange (Depends-on): Likewise.
34898         * modules/open (Depends-on): Likewise.
34899         * modules/readlink (Depends-on): Likewise.
34900         * modules/same (Depends-on): Likewise.
34901
34902         stat: fix Solaris 9 bug
34903         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34904         slash.
34905         * lib/stat.c (rpl_stat): Work around it.
34906         * doc/posix-functions/stat.texi (stat): Update documentation.
34907
34908         stat: new module, for mingw bug
34909         * modules/stat: New file.
34910         * lib/stat.c: Likewise.
34911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34913         * modules/sys_stat (Makefile.am): Use them.
34914         * lib/sys_stat.in.h (stat): Declare replacement.
34915         * lib/openat.c (fstatat): Deal with lstat and stat being function
34916         macros.
34917         * modules/openat (Depends-on): Add inline.
34918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34919         * doc/posix-functions/stat.texi (stat): Likewise.
34920         * modules/stat-tests: New test.
34921         * tests/test-stat.c: Likewise.
34922
34923 2009-09-19  Jim Meyering  <meyering@redhat.com>
34924
34925         syntax-check: detect unnecessary inclusion of canonicalize.h
34926         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34927
34928 2009-09-19  Eric Blake  <ebb9@byu.net>
34929
34930         canonicalize-lgpl: adjust clients to use correct header
34931         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34932         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34933         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34934         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34935         * lib/progreloc.c (includes): Likewise.
34936
34937 2009-09-19  Jim Meyering  <meyering@redhat.com>
34938
34939         test-posixtm.c: correct a comment
34940         * tests/test-posixtm.c: Correct first-line comment.
34941         Spotted by Eric Blake.
34942
34943 2009-09-16  Jim Meyering  <meyering@redhat.com>
34944
34945         posixtm-tests: make T const-correct; add a test case
34946         * tests/test-posixtm.c (T): Declare const.
34947         Add a test for -(2^31+1).
34948         Remove useless can-succeed-only-in-2002 test.
34949
34950         posixtm-tests: adjust the sole failing test
34951         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34952         expected output matches what mktime now produces.  Cross-checked via
34953         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34954
34955         posixtm: move #ifdef'd tests into a new module
34956         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34957         * tests/test-posixtm.c: ... this new file.
34958         * modules/posixtm-tests: New module.
34959
34960 2009-09-19  Eric Blake  <ebb9@byu.net>
34961
34962         openat: simplify use of at-func.c
34963         * lib/at-func.c (includes): Include prerequisites here, to
34964         simplify requirements on client files.
34965         * lib/openat-priv.h: Add double-inclusion guard.
34966         * lib/faccessat.c (includes): Simplify.
34967         * lib/fchmodat.c (includes): Likewise.
34968         * lib/fchownat.c (includes): Likewise.
34969         * lib/mkdirat.c (includes): Likewise.
34970         * lib/mkfifoat.c (includes): Likewise.
34971         * lib/symlinkat.c (includes): Likewise.
34972
34973         openat: allow return of fd 0
34974         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34975         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34976         unistd-safer.
34977         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34978         <fcntl.h>; this module does not leak fds.
34979         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34980         must be allowed to return 0, leaving openat_safer to add the
34981         safety.
34982         (openat_permissive): Avoid writing to just-opened fd 2 if
34983         restoring the current directory fails.
34984         * lib/openat-die.c (openat_restore_fail): Add comment.
34985         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34986         (save_cwd): Guarantee safe fd, but without use of open_safer.
34987         * tests/test-openat.c: New test.
34988         * modules/openat-tests (Files, Makefile.am): Distribute and build
34989         new file.
34990
34991         relocatable-prog-wrapper: fix build
34992         * modules/relocatable-prog-wrapper (Files): Update name of
34993         canonicalize m4 file, broken on 2009-09-17.
34994         Reported by emad hajjar <aleppos@hotmail.com>.
34995
34996 2009-09-19  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34999         * lib/safe-alloc.c: Likewise.
35000         Reported by Ian Beckwith <ianb@erislabs.net>.
35001
35002 2009-09-18  Bruno Haible  <bruno@clisp.org>
35003
35004         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35005         Reported by <erobles@sensacd.com.mx>.
35006
35007 2009-09-17  Eric Blake  <ebb9@byu.net>
35008
35009         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35010         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35011         slashes when checking if last component is missing.
35012         * tests/test-canonicalize.c (main): Test this.
35013
35014         canonicalize, canonicalize-lgpl: honor // if distinct from /
35015         * modules/canonicalize (Files): Add double-slash-root.m4.
35016         * modules/canonicalize-lgpl (Files): Likewise.
35017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35018         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35019         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35020         fallback definition.
35021         (canonicalize_filename_mode): Use it to protect //.
35022         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35023         (__realpath): Likewise.
35024         * tests/test-canonicalize.c (main): Test this.
35025         * tests/test-canonicalize-lgpl.c (main): Likewise.
35026         * modules/canonicalize-tests (Depends-on): Add same-inode.
35027         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35028
35029         canonicalize-lgpl: fix glibc bug with trailing slash
35030         * m4/canonicalize-lgpl.m4: Move contents...
35031         * m4/canonicalize.m4: ...here.
35032         (gl_CANONICALIZE_LGPL): Factor realpath check...
35033         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35034         glibc 2.3.5 bug, fixed 2005-04-27.
35035         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35036         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35037         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35038         * modules/canonicalize-lgpl (Files): Manage file rename.
35039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35040         * modules/stdlib (Makefile.am): Substitute witness.
35041         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35042         is needed.
35043         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35044         replacement is required.
35045         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35046         * doc/glibc-functions/canonicalize_file_name.texi
35047         (canonicalize_file_name): Document this.
35048         * doc/posix-functions/realpath.texi (realpath): Likewise.
35049
35050         canonicalize-lgpl: reject non-directory with trailing slash
35051         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35052         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35053         catches failures in glibc 2.3.5.
35054         * tests/test-canonicalize.c (main): Likewise.
35055
35056         canonicalize-lgpl: use native realpath if it works
35057         * lib/canonicalize-lgpl.c (realpath): Guard with
35058         FUNC_REALPATH_WORKS.
35059         * lib/stdlib.in.h (realpath): Make declaration optional based on
35060         HAVE_REALPATH.
35061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35062         native realpath works.
35063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35064         * modules/stdlib (Makefile.am): Substitute witness.
35065
35066         canonicalize, canonicalize-lgpl: use <stdlib.h>
35067         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35068         (Include): Mention <stdlib.h>.
35069         (configure.ac): Mention functions we provide.
35070         * modules/canonicalize (configure.ac): Likewise.
35071         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35072         realpath if canonicalize_file_name is missing.
35073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35074         * modules/stdlib (Makefile.am): Substitute witnesses.
35075         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35076         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35077         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35078         * NEWS: Document this.
35079         * doc/glibc-functions/canonicalize_file_name.texi
35080         (canonicalize_file_name): Likewise.
35081         * doc/posix-functions/realpath.texi (realpath): Likewise.
35082         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35083
35084         test-canonicalize: consolidate into single C program
35085         * tests/test-canonicalize.sh: Delete; move setup into...
35086         * tests/test-canonicalize.c (main): ...the program, making it
35087         easier to run in debugger.  Add some tests.
35088         * modules/canonicalize-tests (Files): Remove unused file.
35089         (Depends-on): Add progname.
35090         (configure.ac, Makefile.am): Simplify.
35091
35092         test-canonicalize-lgpl: consolidate into single C program
35093         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35094         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35095         easier to run in debugger.  Add some tests.
35096         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35097         (configure.ac, Makefile.am): Simplify.
35098
35099         canonicalize: avoid resolvepath
35100         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35101         unnecessary checks.
35102         * lib/canonicalize.c (includes): Simplify.
35103         (canonicalize_file_name): Drop resolvepath implementation.
35104         * modules/canonicalize (Depends-on): Drop filenamecat.
35105
35106         canonicalize: don't lose errno
35107         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35108         over calls to free.
35109
35110         canonicalize: simplify errno handling
35111         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35112         assignment.
35113
35114         canonicalize, canonicalize-lgpl: update module dependencies
35115         * modules/canonicalize (Depends-on): Add extensions, lstat,
35116         pathmax, stdlib.
35117         (Files): Drop pathmax.h.
35118         (configure.ac): Adjust macro name.
35119         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35120         lstat, stdlib, sys_stat.
35121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35122         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35123         extensions.
35124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35125         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35126         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35127         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35128         declaration, if available.
35129         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35130         we can rely on the readlink module.
35131         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35132         (includes): Use <unistd.h> unconditionally.
35133
35134 2009-09-17  Eric Blake  <ebb9@byu.net>
35135
35136         maint: make Include sections of modules consistent
35137         * modules/alloca: Use only header name; no need to list #include.
35138         * modules/alloca-opt: Likewise.
35139         * modules/arpa_inet: Likewise.
35140         * modules/canon-host: Likewise.
35141         * modules/configmake: Likewise.
35142         * modules/dirent: Likewise.
35143         * modules/eealloc: Likewise.
35144         * modules/environ: Likewise.
35145         * modules/fchdir: Likewise.
35146         * modules/fcntl: Likewise.
35147         * modules/fcntl-h: Likewise.
35148         * modules/gethrxtime: Likewise.
35149         * modules/gettime: Likewise.
35150         * modules/ignore-value: Likewise.
35151         * modules/inet_ntop: Likewise.
35152         * modules/inet_pton: Likewise.
35153         * modules/inttypes: Likewise.
35154         * modules/isnand-nolibm: Likewise.
35155         * modules/isnanf-nolibm: Likewise.
35156         * modules/mbchar: Likewise.
35157         * modules/mbfile: Likewise.
35158         * modules/mbiter: Likewise.
35159         * modules/mbuiter: Likewise.
35160         * modules/netdb: Likewise.
35161         * modules/netinet_in: Likewise.
35162         * modules/nproc: Likewise.
35163         * modules/pagealign_alloc: Likewise.
35164         * modules/poll: Likewise.
35165         * modules/printf-frexp: Likewise.
35166         * modules/pthread: Likewise.
35167         * modules/putenv: Likewise.
35168         * modules/random_r: Likewise.
35169         * modules/relocatable-prog: Likewise.
35170         * modules/search: Likewise.
35171         * modules/select: Likewise.
35172         * modules/selinux-h: Likewise.
35173         * modules/settime: Likewise.
35174         * modules/signal: Likewise.
35175         * modules/size_max: Likewise.
35176         * modules/socklen: Likewise.
35177         * modules/ssize_t: Likewise.
35178         * modules/stdarg: Likewise.
35179         * modules/stdbool: Likewise.
35180         * modules/stddef: Likewise.
35181         * modules/stdint: Likewise.
35182         * modules/stdio: Likewise.
35183         * modules/stdlib: Likewise.
35184         * modules/string: Likewise.
35185         * modules/strings: Likewise.
35186         * modules/sys_file: Likewise.
35187         * modules/sys_ioctl: Likewise.
35188         * modules/sys_select: Likewise.
35189         * modules/sys_socket: Likewise.
35190         * modules/sys_stat: Likewise.
35191         * modules/sys_time: Likewise.
35192         * modules/sys_times: Likewise.
35193         * modules/sys_utsname: Likewise.
35194         * modules/sys_wait: Likewise.
35195         * modules/sysexits: Likewise.
35196         * modules/time: Likewise.
35197         * modules/times: Likewise.
35198         * modules/tmpfile: Likewise.
35199         * modules/trim: Likewise.
35200         * modules/unistd: Likewise.
35201         * modules/wchar: Likewise.
35202         * modules/wctype: Likewise.
35203
35204 2009-09-17  Bruno Haible  <bruno@clisp.org>
35205
35206         Make getdate.y compile on QNX and NetBSD 5 / i386.
35207         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35208         TIME_T_FITS_IN_LONG_INT.
35209         * lib/getdate.y (long_time_t): New type.
35210         (relative_time): Change type of 'seconds' field to long_time_t.
35211         (get_date): Update types of local variables. Check against overflow
35212         during conversion from long_time_t to time_t.
35213         Reported by Matt Kraai <kraai@ftbfs.org>
35214         and Hasso Tepper <hasso@netbsd.org>.
35215
35216 2009-09-17  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/COPYING: Update copyright years.
35219         * modules/README: Likeiwse.
35220         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35221         Reported by Ian Beckwith <ianb@erislabs.net>.
35222
35223 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35224
35225         * users.txt: Update references for gnuit package.
35226
35227 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35228
35229         * m4/getdelim.m4: Fix typo in copyright line.
35230
35231 2009-09-17  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/atoll.c: Use the standard header with GPL copyright.
35234         * lib/argz.in.h: Likewise.
35235         * lib/glob.c: Likewise.
35236         * lib/glob-libc.h: Likewise.
35237         * lib/random_r.c: Likewise.
35238         * lib/siglist.h: Likewise.
35239         * lib/strsignal.c: Likewise.
35240         Reported by Ian Beckwith <ianb@erislabs.net>.
35241
35242 2009-09-17  Eric Blake  <ebb9@byu.net>
35243
35244         rmdir: ensure correct dependency order
35245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35246
35247 2009-09-17  Bruno Haible  <bruno@clisp.org>
35248
35249         Disable assertion that fails on NetBSD 5 / i386.
35250         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35251         Reported by Sam Steingold <sds@gnu.org>
35252         and Hasso Tepper <hasso@netbsd.org>.
35253
35254 2009-09-16  Eric Blake  <ebb9@byu.net>
35255
35256         unlinkdir: port to mingw
35257         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35258         on which no one can unlink a directory.
35259
35260         stdlib: sort witness names
35261         * modules/stdlib (Makefile.am): Sort replacements.
35262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35263         * lib/stdlib.in.h: Likewise.
35264
35265         parse-duration-tests: avoid link failure
35266         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35267         LIBINTL.
35268         Reported by Tom G. Christensen.
35269
35270         openat-tests: ensure unlinkat behaves like rmdir
35271         * tests/test-rmdir.c (main): Factor guts...
35272         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35273         * modules/rmdir-tests (Files): Ship new file.
35274         * modules/openat-tests: New test.
35275         * tests/test-unlinkat.c: Likewise.
35276
35277         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35278         * modules/rmdir-errno (Status, Notice): Now obsolete.
35279
35280         rmdir: work around cygwin 1.5.x and mingw bugs
35281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35282         * lib/rmdir.c (rmdir): Work around it.
35283         * modules/rmdir (Status, Notice): No longer obsolete.
35284         (Files): Add dos.m4.
35285         (Depends-on): Add unistd.
35286         (configure.ac): Set witnesses.
35287         (License): Relax to LGPLv2+.
35288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35289         * modules/unistd (Makefile.am): Substitute witnesses.
35290         * lib/unistd.in.h (rmdir): Declare replacement.
35291         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35292         * modules/rmdir-tests: New tests.
35293         * tests/test-rmdir.c: Likewise.
35294
35295 2009-09-15  Eric Blake  <ebb9@byu.net>
35296
35297         fchdir: improve use of replacement functions
35298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35300         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35301         REPLACE_CLOSEDIR.
35302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35303         * modules/sys_stat (Makefile.am): Substitute correct witness.
35304         * modules/dirent (Makefile.am): Likewise.
35305         * modules/unistd (Makefile.am): Likewise.
35306         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35307         * lib/unistd.in.h (dup): Likewise.
35308         * lib/sys_stat.in.h (fstat): Likewise.
35309
35310         maint: ignore gnulib-tool temp files
35311         * .gitignore: Ignore files created during gnulib-tool --test.
35312
35313 2009-09-13  Jim Meyering  <meyering@redhat.com>
35314
35315         posixtm: don't reject a time that specify "60" as the number of seconds
35316         * lib/posixtm.c (posixtime): The code to reject invalid dates
35317         would also reject a time specified with the .60 suffix.
35318         But POSIX allows that, in order to accommodate leap seconds.
35319         So don't reject it.
35320         (main): Adjust tests accordingly.
35321         * modules/posixtm (Depends-on): Add stpcpy.
35322
35323 2009-09-11  Jim Meyering  <meyering@redhat.com>
35324
35325         announce-gen: include [$release_type] in emitted Subject:
35326         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35327         e.g., [stable] in the emitted Subject: line.
35328
35329 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35330
35331         Remove obsolete macros from several modules.
35332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35333         obsolete Autoconf macros with their modern counterparts.
35334         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35335         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35339         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35341         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35342         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35343         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35344         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35346         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35347         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35348         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35350         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35351         * m4/time_r.m4 (gl_TIME_R): Likewise.
35352         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35353         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35354         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35355
35356         Fix copyright header in build-aux scripts.
35357         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35358         recommendation.
35359         * build-aux/ncftpput-ftp: Likewise.
35360         * build-aux/update-copyright: Likewise.
35361
35362 2009-09-09  Eric Blake  <ebb9@byu.net>
35363
35364         test-link: allow Linux choice of errno
35365         * tests/test-link.c (main): Relax test for alternate error.
35366
35367         strndup: fix improper m4 caching
35368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35369         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35370         (gl_PREREQ_STRNDUP): Delete.
35371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35372         * modules/string (Makefile.am): Substitute it.
35373         * lib/string.in.h (strndup): Modernize prototype.
35374
35375         getcwd: port to mingw
35376         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35377         different from the POSIX assumptions made throughout the getcwd
35378         module; fortunately, the mingw getcwd does not need replacement.
35379         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35380         * modules/getcwd-tests: New test.
35381         * tests/test-getcwd.c: Likewise.
35382
35383         link: fix platform bugs
35384         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35385         * lib/link.c (link): Work around them.  Fix related mingw bug.
35386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35387         * modules/unistd (Makefile.am): Substitute it.
35388         * lib/unistd.in.h (link): Declare replacement.
35389         * doc/posix-functions/link.texi (link): Document this.
35390         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35391
35392         test-link: consolidate into single C program, test more cases
35393         * tests/test-link.sh: Delete.
35394         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35395         at least Cygwin and Solaris.
35396         * modules/link-tests (Files): Remove unused file.
35397         (Depends-on): Add errno, sys_stat.
35398         (Makefile.am): Simplify.
35399
35400 2009-09-08  Bruno Haible  <bruno@clisp.org>
35401
35402         Work around towlower, towupper bug on mingw.
35403         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35404         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35405         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35406         * doc/posix-functions/towupper.texi: Likewise.
35407         Reported by Eric Blake.
35408
35409 2009-09-08  Jim Meyering  <meyering@redhat.com>
35410
35411         build: don't try to run autoheader if we don't use it
35412         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35413         is not used in configure.ac.
35414
35415 2009-09-08  Eric Blake  <ebb9@byu.net>
35416
35417         euidaccess: fix compilation error
35418         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35419
35420         rawmemchr: relax license
35421         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35422         okay.
35423         Reported by Jim Meyering.
35424
35425         mkfifoat: new module
35426         * modules/mkfifoat: New file.
35427         * lib/mkfifoat.c: Likewise.
35428         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35430         * modules/sys_stat (Makefile.am): Use them.
35431         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35432         * MODULES.html.sh (File system functions): Mention module.
35433         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35434         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35435         * modules/mkfifoat-tests: New test.
35436         * tests/test-mkfifoat.c: Likewise.
35437
35438         strchrnul: relax license
35439         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35440         okay.
35441         Reported by Jim Meyering.
35442
35443 2009-09-08  Eric Blake  <ebb9@byu.net>
35444
35445         fstatat: fix compilation on Solaris
35446         * lib/fstatat.c (includes): Add fcntl.h.
35447         Reported by Pádraig Brady.
35448
35449 2009-09-07  Eric Blake  <ebb9@byu.net>
35450
35451         rename: modernize replacement
35452         * modules/rename (Depends-on): Add stdio.
35453         (configure.ac): Declare witness.
35454         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35455         stdio take care of replacement.
35456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35457         * modules/stdio (Makefile.am): Substitute them.
35458         * lib/stdio.in.h (rename): Declare replacement.
35459         * lib/rename.c (includes): Allow cross-compilation to non-windows
35460         machines.
35461         * doc/posix-functions/rename.texi (rename): Improve
35462         documentation.
35463
35464         stdio: sort witness names
35465         * modules/stdio (Makefile.am): Sort replacements.
35466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35467         * lib/stdio.in.h: Likewise.
35468
35469         getcwd: minor cleanups
35470         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35471         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35472
35473         openat: provide more convenience names
35474         * modules/faccessat (configure.ac): Add C witness.
35475         * lib/unistd.in.h (readlinkat): Fix typo.
35476         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35477         convenience wrappers.
35478         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35479         wrappers in syntax checks.
35480
35481 2009-09-06  Eric Blake  <ebb9@byu.net>
35482
35483         doc: fix comments in recent patches
35484         * lib/faccessat.c: Mention correct function.
35485         * lib/fchmodat.c: Likewise.
35486         * lib/fchownat.c: Likewise.
35487         * lib/symlinkat.c: Likewise.
35488         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35489         constants.
35490
35491         faccessat, symlinkat: continue cleanup of previous patch
35492         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35493         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35494         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35496         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35497         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35498         set.
35499
35500 2009-09-06  Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35503         (fstatat): Declare if GNULIB_FSTATAT is set.
35504         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35505         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35506         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35507         * modules/fcntl-h (Files): Remove m4/openat.m4.
35508         * modules/sys_stat (Files): Remove m4/openat.m4.
35509         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35510         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35511         * modules/unistd (Files): Remove m4/openat.m4.
35512         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35513         GNULIB_OPENAT.
35514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35515         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35517         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35518         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35519         gl_OPENAT_DEFAULTS.
35520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35521         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35522         Don't require gl_OPENAT_DEFAULTS.
35523         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35524         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35525         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35526         (gl_OPENAT_DEFAULTS): Remove macro.
35527
35528 2009-09-06  Bruno Haible  <bruno@clisp.org>
35529
35530         * modules/openat (configure.ac): Remove unneeded witness.
35531
35532 2009-09-06  Bruno Haible  <bruno@clisp.org>
35533
35534         Set errno to ENOSYS when a function is entirely unsupported.
35535         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35536         EOPNOTSUPP.
35537         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35538         * modules/chown (Depends-on): Remove errno.
35539
35540 2009-09-06  Bruno Haible  <bruno@clisp.org>
35541
35542         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35543
35544 2009-09-06  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35547
35548 2009-09-06  Ben Pfaff  <blp@gnu.org>
35549             Bruno Haible  <bruno@clisp.org>
35550
35551         Work around a glibc bug in strtok_r.
35552         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35553         Undefine if UNDEFINE_STRTOK_R is set.
35554         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35556         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35558         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35559         UNDEFINE_STRTOK_R.
35560         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35561
35562 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35563
35564         exclude: minor fix
35565         * lib/exclude.c: Include wctype.h
35566
35567 2009-09-06  Akim Demaille  <demaille@gostai.com>
35568
35569         bootstrap: improve error message
35570         * build-aux/bootstrap (find_tool): Upon failure, report the list
35571         of candidates.
35572         Honor the initial value of the envvar.
35573
35574 2009-09-05  Eric Blake  <ebb9@byu.net>
35575
35576         symlinkat: new module
35577         * modules/symlinkat: New file.
35578         * lib/symlinkat.c: Likewise.
35579         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35581         * modules/unistd (Makefile.am): Use them.
35582         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35583         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35584         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35585         * MODULES.html.sh (File system functions): Mention module.
35586         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35587         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35588         * modules/symlinkat-tests: New test.
35589         * tests/test-symlinkat.c: Likewise.
35590
35591         test-openat-safer: add more checks
35592         * tests/test-openat-safer.c (main): Check more code paths.
35593
35594 2009-09-05  Jim Meyering  <meyering@redhat.com>
35595
35596         syntax-check: detect unnecessary inclusion of openat.h
35597         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35598
35599 2009-09-05  Bruno Haible  <bruno@clisp.org>
35600
35601         Support towlower, towupper.
35602         * doc/posix-functions/towlower.texi: Mention module wctype.
35603         * doc/posix-functions/towupper.texi: Likewise.
35604         * lib/wctype.in.h (towlower, towupper): New functions.
35605         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35606         (ASSERT): New macro.
35607         (e): New variable.
35608         (main): Test also towlower, towupper. Test WEOF argument.
35609         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35610
35611 2009-09-05  Bruno Haible  <bruno@clisp.org>
35612
35613         Fix conversion behaviour when the input is invalid.
35614         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35615         mark occurring in first pass of indirect conversion.
35616         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35617         input.
35618         Found by clang's static analyzer.
35619
35620 2009-09-05  Bruno Haible  <bruno@clisp.org>
35621
35622         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35623         where direct conversion is possible.
35624
35625 2009-09-04  Eric Blake  <ebb9@byu.net>
35626
35627         openat: fail with ENOENT on empty name
35628         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35629         buffer.
35630
35631         link-follow: fix logic bug in prior patch
35632         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35633         reversed sense of yes and no in prior patch.  Avoid confusing
35634         compilation failure with desired semantics.
35635
35636         link-follow: accomodate mingw and cross-compilation
35637         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35638         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35639         cross-compilation results to -1, to make linkat easier to
35640         implement when cross-compiling.  Trivially support mingw.
35641         * modules/link-follow (configure.ac): Call new name.
35642         * NEWS: Mention this.
35643
35644 2009-09-03  Eric Blake  <ebb9@byu.net>
35645
35646         faccessat: compile replacement
35647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35648         needed.
35649
35650         fts: fix compilation error
35651         * lib/fts.c (includes): Re-add "openat.h", for
35652         openat_needs_fchdir.
35653
35654         faccessat: new module
35655         * modules/faccessat: New file.
35656         * lib/faccessat.c: Likewise.
35657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35659         * modules/unistd (Makefile.am): Use it.
35660         * lib/unistd.in.h (faccessat): Declare it.
35661         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35662         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35663         * MODULES.html.sh (File system functions): Mention it.
35664         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35665         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35666
35667         euidaccess: prefer POSIX over non-standard implementation
35668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35669         * lib/euidaccess.c (euidaccess): Use it if available.
35670
35671         openat: make template easier to use
35672         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35673         AT_FUNC_F2 to be undefined.
35674         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35675         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35676         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35677         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35678         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35679         Likewise.
35680         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35681         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35682         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35683         Likewise.
35684
35685         openat: declare in POSIX headers
35686         * NEWS: Mention this.
35687         * modules/openat (configure.ac): Declare witnesses.
35688         (Depends-on): Add fcntl-h, sys_stat, unistd.
35689         (Include): Mention correct headers.
35690         * modules/fcntl-h (Depends-on): Add link-warning.
35691         (Files): Add openat.m4.
35692         (Makefile.am): Substitute witnesses.
35693         * modules/sys_stat (Files, Makefile.am): Likewise.
35694         * modules/unistd (Files, Makefile.am): Likewise.
35695         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35696         (gl_OPENAT_DEFAULTS): New macro.
35697         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35700         (SYS_STAT_H): Remove unused variable.
35701         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35702         * lib/fcntl--.h (includes): Remove unneeded header.
35703         * lib/openat-safer.c (includes): Likewise.
35704         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35705         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35706         appropriate headers.
35707         (__OPENAT_PREFIX): Delete.
35708         * lib/fcntl.in.h (openat): Provide declaration.
35709         (AT_FDCWD): Fix Solaris bug.
35710         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35711         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35712         * lib/fchmodat.c (includes):  Adjust to find declaration.
35713         * lib/fchownat.c (includes): Likewise.
35714         * lib/mkdirat.c (includes): Likewise.
35715         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35716         still visible.
35717
35718 2009-09-02  Eric Blake  <ebb9@byu.net>
35719
35720         errno: use consistently
35721         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35722         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35723         * lib/canonicalize.c (ELOOP): Likewise.
35724         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35725         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35726         * lib/lchown.c (EOPNOTSUPP): Likewise.
35727         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35728         * lib/savewd.c (ESTALE): Likewise.
35729         * lib/settime.c (ENOSYS): Likewise.
35730         * lib/utimens.c (ENOSYS): Likewise.
35731         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35732         * lib/chdir-safer.c (ELOOP): Likewise.
35733         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35734         * modules/c-stack (Depends-on): Add errno.
35735         * modules/canonicalize (Depends-on): Likewise.
35736         * modules/chdir-safer (Depends-on): Likewise.
35737         * modules/fdopendir (Depends-on): Likewise.
35738         * modules/inet_ntop (Depends-on): Likewise.
35739         * modules/inet_pton (Depends-on): Likewise.
35740         * modules/lchown (Depends-on): Likewise.
35741         * modules/openat (Depends-on): Likewise.
35742         * modules/savewd (Depends-on): Likewise.
35743         * modules/settime (Depends-on): Likewise.
35744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35745
35746         fts: avoid leaking fds
35747         * modules/fts (Depends-on): Add cloexec.
35748         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35749         flag.
35750
35751         fts: make directory fds more robust
35752         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35753         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35754
35755         backupfile, chdir-long, fts, savedir: make safer
35756         * lib/backupfile.c (includes): Use "dirent--.h", since
35757         numbered_backup can write to stderr during readdir.
35758         * lib/savedir.c (includes): Likewise.
35759         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35760         emulation can write to stderr on failure.
35761         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35762         * lib/getcwd.c: Document why opendir_safer is unused.
35763         * lib/glob.c: Likewise.
35764         * lib/scandir.c: Likewise.
35765         * lib/openat-proc.c: Likewise, for open_safer.
35766         * modules/backupfile (Depends-on): Add dirent-safer.
35767         * modules/savedir (Depends-on): Likewise.
35768         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35769         * modules/chdir-long (Depends-on): Add openat-safer.
35770
35771         openat-safer: new module
35772         * modules/openat-safer: New file.
35773         * lib/openat-safer.c: Likewise.
35774         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35775         * lib/fcntl-safer.h (openat_safer): Declare.
35776         * lib/fcntl--.h (openat): Override.
35777         * MODULES.html.sh (File descriptor based I/O): Mention it.
35778         * lib/openat.h: Add double-inclusion guards.
35779         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35780         "fcntl--.h", so we can implement openat.
35781         * modules/openat-safer-tests: New test.
35782         * tests/test-openat-safer.c: New file.
35783
35784         dirent-safer: new module
35785         * modules/dirent-safer: New file.
35786         * lib/dirent--.h: Likewise.
35787         * lib/dirent-safer.h: Likewise.
35788         * lib/opendir-safer.c: Likewise.
35789         * m4/dirent-safer.m4: Likewise.
35790         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35791         * modules/dirent-safer-tests: New test.
35792         * tests/test-dirent-safer.c: New file.
35793         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35794
35795         fdopendir: optimize on mingw
35796         * lib/unistd.in.h (_gl_directory_name): New prototype.
35797         * lib/fchdir.c (_gl_directory_name): Implement it.
35798         (fchdir): Use it to simplify implementation.
35799         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35800         fchdir, when available, to avoid calling [f]chdir().
35801
35802         fdopendir: split into its own module
35803         * lib/openat.c (fdopendir): Move...
35804         * lib/fdopendir.c: ...into new file.
35805         * modules/fdopendir: New module.
35806         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35807         * modules/openat (Depends-on): Add fdopendir.
35808         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35809         fdopendir here.
35810         * modules/savedir (Depends-on): Only need fdopendir, not full
35811         openat.
35812         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35813         * lib/openat.h (fdopendir): Drop prototype.
35814         * lib/dirent.in.h (fdopendir): Provide prototype.
35815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35816         * modules/dirent (Makefile.am): Substitute them.
35817         * MODULES.html.sh (File system functions): Mention it.
35818         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35819         * modules/fdopendir-tests: New file.
35820         * tests/test-fdopendir.c: Likewise.
35821
35822         fchdir: use more consistent macro convention
35823         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35824         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35825         REPLACE_FCHDIR, rather than relying on config.h macros.
35826         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35827         inside a single make-time REPLACE_FCHDIR block, rather than using
35828         the config.h FCHDIR_REPLACEMENT.
35829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35830         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35831         Manage fstat replacement.
35832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35833         REPLACE_FCHDIR.
35834         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35835         (Makefile.am): Substitute REPLACE_FCHDIR.
35836         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35837         FCHDIR_REPLACEMENT.
35838         * lib/dup-safer.c (dup_safer): Likewise.
35839         * lib/dup2.c (rpl_dup2): Likewise.
35840         * lib/dup3.c (rpl_dup3): Likewise.
35841         * lib/open.c (rpl_open): Likewise.
35842
35843         fchdir: simplify error handling, and support dup3
35844         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35845         stdbool, malloc-posix, realloc-posix.
35846         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35847         (ensure_dirs_slot): Return false on allocation failure.
35848         (rpl_dup2): Delete.
35849         (_gl_register_dup): New function.
35850         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35851         (_gl_register_fd): Close fd on allocation failure.
35852         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35853         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35854         prototype.
35855         (rpl_dup2_fchdir): Delete prototype.
35856         * lib/open.c (open): Update caller.
35857         * lib/dup2.c (dup2): Track fchdir metadata.
35858         * lib/dup3.c (dup3): Likewise.
35859         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35861
35862 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35863
35864         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35865         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35866         don't pass arguments to AC_OUTPUT.
35867
35868 2009-09-02  Bruno Haible  <bruno@clisp.org>
35869
35870         * modules/mkdtemp (License): Relicense under LGPLv2+.
35871         Reported by Paolo Bonzini.
35872
35873 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35874
35875         Replace uses of obsolete autoconf macros in Jim's modules.
35876         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35877         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35878         can evoke a warning from autoconf when run with -Wobsolete
35879         enabled.  They were declared obsolete for good reasons (see
35880         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35881         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35882         should not continue using the deprecated macros.
35883         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35884         obsolete Autoconf macros with modern counterparts.
35885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35886         * m4/dos.m4 (gl_AC_DOS): Likewise.
35887         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35889         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35890         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35891         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35893         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35894         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35896         Likewise.
35897         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35898         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35899         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35900         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35901         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35902         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35903
35904 2009-09-01  Eric Blake  <ebb9@byu.net>
35905
35906         fchdir: fix off-by-one bug in previous patch
35907         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35908         (_gl_unregister_fd): Delete useless if.
35909
35910 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35911
35912         maint.mk: sort the list of syntax-check rules
35913         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35914         easier to get a sense of progress when the rules are run sequentially
35915         and take a long time.
35916
35917 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35918
35919         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35920         * modules/netinet_in: Likewise.
35921         * modules/sys_file: Likewise.
35922         * modules/sys_ioctl: Likewise.
35923         * modules/sys_select: Likewise.
35924         * modules/sys_socket: Likewise.
35925         * modules/sys_stat: Likewise.
35926         * modules/sys_time: Likewise.
35927         * modules/sys_times: Likewise.
35928         * modules/sys_utsname: Likewise.
35929         * modules/sys_wait: Likewise.
35930
35931 2009-09-01  Jim Meyering  <meyering@redhat.com>
35932
35933         fts: help ensure that return values are not ignored
35934         * lib/fts_.h (__GNUC_PREREQ): Define.
35935         (__attribute_warn_unused_result__): Define.
35936         (fts_children, fts_close, fts_open, fts_read): Declare with
35937         __attribute_warn_unused_result__.
35938
35939         fts: fts_close now fails also when closing a dir file descriptor fails
35940         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35941         and propagate to caller, along with errno.
35942
35943         announce-gen: correct formatting in --help output
35944         * build-aux/announce-gen (usage): Move the one-line description in
35945         --help output "up", to where it belongs, just after Usage:.
35946
35947 2009-08-31  Eric Blake  <ebb9@byu.net>
35948
35949         fchdir: port to mingw
35950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35951         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35952         opened, then use a substitute.
35953         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35954         replacement.
35955         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35956         (_gl_register_fd): No need to check stat if open already filters
35957         all directories.
35958         (fchdir): Fix error condition to match POSIX.
35959         * modules/fchdir (Depends-on): Add sys_stat.
35960         * doc/posix-functions/open.texi (open): Document the limitation.
35961         * modules/fchdir-tests: New file.
35962         * tests/test-fchdir.c: Likewise.
35963
35964         canonicalize: allow cross-testing from cygwin to mingw
35965         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35966         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35967         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35968         Likewise.
35969         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35970         target does not support symlinks.
35971         * tests/test-canonicalize-lgpl.sh: Likewise.
35972
35973         chown: avoid compilation warning on mingw
35974         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35975         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35976         mingw.
35977         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35978         * modules/chown (Depends-on): Add errno.
35979
35980 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35981
35982         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35983         command.
35984
35985 2009-08-31  Jim Meyering  <meyering@redhat.com>
35986
35987         canonicalize: remove useless initialization
35988         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35989         initialization of local, "end".
35990
35991 2009-08-30  Bruno Haible  <bruno@clisp.org>
35992
35993         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35994         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35995         ENOSYS.
35996
35997 2009-08-30  Bruno Haible  <bruno@clisp.org>
35998
35999         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36000         /usr/xpg4/bin/tr when it exists.
36001         * tests/test-pipe-filter-gi1.sh: Likewise.
36002
36003 2009-08-30  Bruno Haible  <bruno@clisp.org>
36004
36005         Work around deficient /usr/bin/id program on Solaris.
36006         * tests/test-file-has-acl.sh (ID): New variable.
36007         * tests/test-set-mode-acl.sh (ID): Likewise.
36008         * tests/test-copy-acl.sh (ID): Likewise.
36009         * tests/test-copy-file.sh (ID): Likewise.
36010
36011 2009-08-30  Bruno Haible  <bruno@clisp.org>
36012
36013         New module 'xstriconveh'.
36014         * lib/xstriconveh.h: New file.
36015         * lib/xstriconveh.c: New file.
36016         * modules/xstriconveh: New file.
36017
36018 2009-08-30  Bruno Haible  <bruno@clisp.org>
36019
36020         Make it easier to use mem_cd_iconveh.
36021         * lib/striconveh.h (iconveh_t): New type.
36022         (iconveh_open, iconveh_close): New declarations.
36023         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36024         with a single 'const iconveh_t *' argument.
36025         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36026         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36027         with a single 'const iconveh_t *' argument.
36028         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36029         * tests/test-striconveh.c (main): Update.
36030         * NEWS: Mention the change.
36031
36032 2009-08-30  Bruno Haible  <bruno@clisp.org>
36033
36034         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36035         problem.
36036
36037 2009-08-30  Bruno Haible  <bruno@clisp.org>
36038
36039         Work around iconv_open problem on Solaris.
36040         * lib/iconv_open-solaris.gperf: New file.
36041         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36042         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36043         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36044         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36045         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36046         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36047
36048 2009-08-29  Jim Meyering  <meyering@redhat.com>
36049
36050         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36051         * top/maint.mk (cvs-check): Remove target; it was just an alias
36052         to the better-named vc-diff-check.
36053         (maintainer-distcheck): Remove rule.  It was used only from
36054         the (alpha/beta/major) target, and all of its commands but one
36055         were coreutils-specific.
36056         (vc-dist): Remove rule.
36057         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36058         Run vc-diff-check, not vc-dist.
36059         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36060
36061 2009-08-27  Bruno Haible  <bruno@clisp.org>
36062
36063         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36064         of 0.
36065
36066 2009-08-27  Bruno Haible  <bruno@clisp.org>
36067
36068         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36069         compilers.
36070         * doc/func.texi: Document the SunPRO C bug.
36071
36072 2009-08-27  Bruno Haible  <bruno@clisp.org>
36073
36074         Fix link error on Solaris.
36075         * tests/test-parse-duration.c (xstrdup): Remove function.
36076
36077 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36078
36079         ignore-value: handle pointer types, too
36080         * lib/ignore-value.h (__attribute__): Remove definition.
36081         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36082         of a more concise and more-often effective "(void) i" statement.
36083         (ignore_ptr): New function to suppress warnings from functions that
36084         return pointers, and to make it explicit that one function doesn't
36085         handle all cases.
36086
36087 2009-08-25  Bruno Haible  <bruno@clisp.org>
36088
36089         dup2: work around a Linux bug.
36090         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36091         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36092         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36093         Reported by Simon Josefsson.
36094
36095 2009-08-25  Jim Meyering  <meyering@redhat.com>
36096
36097         libguestfs uses gnulib
36098         * users.txt: Add libguestfs.
36099
36100 2009-08-24  Eric Blake  <ebb9@byu.net>
36101
36102         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36103         * lib/pipe2.c (includes): Add binary-io.h.
36104         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36105
36106 2009-08-24  Bruno Haible  <bruno@clisp.org>
36107
36108         Tolerate declared but missing accept4 syscall.
36109         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36110         available.
36111         * lib/sys_socket.in.h (accept4): If the function is already present,
36112         override it.
36113         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36114         * modules/accept4 (Makefile.am): Compile accept4.c always.
36115         Reported by Paolo Bonzini and Eric Blake.
36116
36117 2009-08-23  Bruno Haible  <bruno@clisp.org>
36118
36119         New module 'accept4'.
36120         * lib/sys_socket.in.h (accept4): New declaration.
36121         * lib/accept4.c: New file.
36122         * m4/accept4.m4: New file.
36123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36124         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36125         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36126         HAVE_ACCEPT4.
36127         * modules/accept4: New file.
36128         * doc/glibc-functions/accept4.texi: Mention the new module.
36129
36130 2009-08-24  Jim Meyering  <meyering@redhat.com>
36131
36132         progname: also set global program_invocation_name, when possible
36133         Before this change, a libtool-enabled program that calls glibc's
36134         error function would report the program name as
36135         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36136         * modules/progname (configure.ac): Check for a declaration of
36137         program_invocation_name.
36138         * lib/progname.c:  Include <errno.h>.
36139         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36140         Set program_invocation_name.
36141
36142 2009-08-23  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/dup3.c: Include <string.h>.
36145
36146 2009-08-23  Bruno Haible  <bruno@clisp.org>
36147
36148         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36149         * lib/pipe2.c (pipe2): Likewise.
36150         Suggested by Eric Blake.
36151
36152 2009-08-23  Bruno Haible  <bruno@clisp.org>
36153
36154         Tolerate declared but missing dup3 syscall.
36155         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36156         * lib/unistd.in.h (dup3): If the function is already present,
36157         override it.
36158         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36159         * modules/dup3 (Makefile.am): Compile dup3.c always.
36160         Reported by Paolo Bonzini.
36161
36162 2009-08-23  Bruno Haible  <bruno@clisp.org>
36163
36164         Tolerate declared but missing pipe2 syscall.
36165         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36166         available.
36167         * lib/unistd.in.h (pipe2): If the function is already present,
36168         override it.
36169         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36170         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36171         Reported by Paolo Bonzini.
36172
36173 2009-08-23  Bruno Haible  <bruno@clisp.org>
36174
36175         * lib/pipe2.c (pipe2): Move #ifs inside function.
36176
36177 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36178
36179         quotearg: document limitations of quote_these_too
36180         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36181         those limitations are created.
36182         * lib/quotearg.h (set_char_quoting): Document that digits and
36183         letters that are special after backslash are not permitted.
36184         (quotearg_char): Cross-reference set_char_quoting documentation.
36185
36186 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36187
36188         quotearg: implement custom_quoting_style
36189         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36190         right_quote fields.
36191         (set_custom_quoting): New public function.
36192         (quotearg_buffer_restyled): Add left_quote and right_quote
36193         arguments, handle them very much like locale quoting, and update
36194         all uses.
36195         (quotearg_n_custom): New public function.
36196         (quotearg_n_custom_mem): New public function.
36197         (quotearg_custom): New public function.
36198         (quotearg_custom_mem): New public function.
36199         * lib/quotearg.h: Prototype and document new public functions.
36200         (enum quoting_style): For escape_quoting_style and
36201         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36202         ignored even though they're otherwise like c_quoting_style.
36203         Add custom_quoting_style member and document with comparison to
36204         clocale_quoting_style.
36205         * tests/test-quotearg.c (custom_quotes): New array.
36206         (custom_results): New array.
36207         (main): Extend to test custom quoting.
36208
36209 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36210
36211         quotearg: fix right quote escaping when it's in quote_these_too
36212         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36213         quote, be sure to prepend only one backslash.
36214         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36215         (main): Test it.
36216
36217 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36218
36219         quotearg-tests: test escaping of embedded locale quotes
36220         * tests/test-quotearg.c (struct result_strings): Add member for
36221         new input.
36222         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36223         (inputs): Add new input.
36224         (results_g): Add expected results.
36225         (flag_results): Likewise.
36226         (locale_results): Likewise.
36227         (compare_strings): Check those.
36228
36229 2009-08-23  Bruno Haible  <bruno@clisp.org>
36230
36231         Tests for module 'dup3'.
36232         * modules/dup3-tests: New file.
36233         * tests/test-dup3.c: New file.
36234
36235         New module 'dup3'.
36236         * lib/unistd.in.h (dup3): New declaration.
36237         * lib/dup3.c: New file.
36238         * m4/dup3.m4: New file.
36239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36240         HAVE_DUP3.
36241         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36242         * modules/dup3: New file.
36243         * doc/glibc-functions/dup3.texi: Mention the new module.
36244
36245 2009-08-23  Bruno Haible  <bruno@clisp.org>
36246
36247         Tweak the dup2 test.
36248         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36249         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36250         the test file is still empty. Fix argument order of lseek.
36251
36252 2009-08-23  Bruno Haible  <bruno@clisp.org>
36253
36254         Avoid test link errors when the modules getopt-gnu, gettext are used.
36255         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36257
36258 2009-08-23  Bruno Haible  <bruno@clisp.org>
36259
36260         Fix getdtablesize() on mingw.
36261         * lib/getdtablesize.c (getdtablesize): Implement differently.
36262         * lib/unistd.in.h (getdtablesize): Improve comment.
36263
36264 2009-08-23  Bruno Haible  <bruno@clisp.org>
36265
36266         New module 'mkostemp'.
36267         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36268         * lib/stdlib.in.h (mksotemp): New declaration.
36269         * lib/mkostemp.c: New file, from glibc with modifications.
36270         * lib/tempname.h (GT_FILE): Remove outdated comment.
36271         (gen_tempname): Add flags argument.
36272         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36273         (__GT_FILE): Map to 1.
36274         (small_open, large_open): Remove macros.
36275         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36276         * lib/mkstemp.c (mkstemp): Update.
36277         * lib/mkdtemp.c (mkdtemp): Likewise.
36278         * m4/mkostemp.m4: New file.
36279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36280         HAVE_MKOSTEMP.
36281         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36282         HAVE_MKOSTEMP.
36283         * modules/mkostemp: New file, based on modules/mkstemp.
36284         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36285         * NEWS: Mention the change.
36286
36287 2009-08-23  Bruno Haible  <bruno@clisp.org>
36288
36289         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36290         Reported by Eric Blake.
36291
36292 2009-08-23  Bruno Haible  <bruno@clisp.org>
36293
36294         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36295         Reported by Eric Blake.
36296
36297 2009-08-23  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36300         * modules/pipe2 (Depends-on): Likewise.
36301
36302 2009-08-23  Eric Blake  <ebb9@byu.net>
36303
36304         fcntl-h: add O_TTY_INIT support
36305         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36306         * tests/test-fcntl-h.c (o): Test it.
36307         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36308
36309         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36310         * modules/fcntl: Move <fcntl.h> header replacement...
36311         * modules/fcntl-h: ...to new name, so as not to collide with
36312         like-named function.
36313         * tests/test-fcntl.c: Rename...
36314         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36315         * modules/fcntl-tests: Rename...
36316         * modules/fcntl-h-tests: ...to this.  Update test file name.
36317         * modules/chdir-long (Depends-on): Update clients.
36318         * modules/chdir-safer (Depends-on): Likewise.
36319         * modules/fcntl-safer (Depends-on): Likewise.
36320         * modules/fts (Depends-on): Likewise.
36321         * modules/mkancesdirs (Depends-on): Likewise.
36322         * modules/mkdir-p (Depends-on): Likewise.
36323         * modules/open (Depends-on): Likewise.
36324         * modules/savewd (Depends-on): Likewise.
36325         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36326         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36327
36328 2009-08-22  Bruno Haible  <bruno@clisp.org>
36329
36330         * modules/binary-io (License): Relicense under LGPL.
36331         * modules/pipe2 (License): Likewise.
36332
36333 2009-08-22  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36336         return value.
36337         * lib/pipe-filter-gi.c (filter_init): Likewise.
36338         Reported by Eric Blake.
36339
36340 2009-08-22  Bruno Haible  <bruno@clisp.org>
36341
36342         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36343         * modules/pipe (Depends-on): Add pipe2.
36344
36345 2009-08-22  Bruno Haible  <bruno@clisp.org>
36346
36347         Tests for module 'pipe2'.
36348         * modules/pipe2-tests: New file.
36349         * tests/test-pipe2.c: New file.
36350
36351         New module 'pipe2'.
36352         * lib/unistd.in.h (pipe2): New declaration.
36353         * lib/pipe2.c: New file.
36354         * m4/pipe2.m4: New file.
36355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36356         HAVE_PIPE2.
36357         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36358         * modules/pipe2: New file.
36359         * doc/glibc-functions/pipe2.texi: Mention the new module.
36360
36361 2009-08-22  Bruno Haible  <bruno@clisp.org>
36362
36363         Reference some new glibc functions.
36364         * doc/glibc-functions/accept4.texi: New file.
36365         * doc/glibc-functions/dup3.texi: New file.
36366         * doc/glibc-functions/mkostemp.texi: New file.
36367         * doc/glibc-functions/pipe2.texi: New file.
36368         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36369         (Glibc sys/socket.h): Refer to accept4.
36370         (Glibc unistd.h): Refer to dup3, pipe2.
36371         Reported by Eric Blake.
36372
36373 2009-08-22  Jim Meyering  <meyering@redhat.com>
36374             Bruno Haible  <bruno@clisp.org>
36375
36376         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36377         This makes it so packages using automake-1.11's silent-rules option
36378         can print e.g., a single "GEN    configmake.h" line, rather than
36379         the 30+ statements that perform the job.  If you want to see the
36380         actual commands, you can still run "make V=1".
36381         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36382         so that make output is abbreviated when those variables are defined
36383         appropriately.
36384         * modules/argz: Likewise.
36385         * modules/arpa_inet: Likewise.
36386         * modules/byteswap: Likewise.
36387         * modules/configmake: Likewise.
36388         * modules/dirent: Likewise.
36389         * modules/errno: Likewise.
36390         * modules/fcntl: Likewise.
36391         * modules/float: Likewise.
36392         * modules/fnmatch: Likewise.
36393         * modules/getopt-posix: Likewise.
36394         * modules/glob: Likewise.
36395         * modules/iconv_open: Likewise.
36396         * modules/inttypes: Likewise.
36397         * modules/localcharset: Likewise.
36398         * modules/locale: Likewise.
36399         * modules/math: Likewise.
36400         * modules/netdb: Likewise.
36401         * modules/netinet_in: Likewise.
36402         * modules/poll: Likewise.
36403         * modules/posix_spawnp-tests: Likewise.
36404         * modules/sched: Likewise.
36405         * modules/search: Likewise.
36406         * modules/selinux-h: Likewise.
36407         * modules/signal: Likewise.
36408         * modules/spawn: Likewise.
36409         * modules/stdarg: Likewise.
36410         * modules/stdbool: Likewise.
36411         * modules/stddef: Likewise.
36412         * modules/stdint: Likewise.
36413         * modules/stdio: Likewise.
36414         * modules/stdlib: Likewise.
36415         * modules/string: Likewise.
36416         * modules/strings: Likewise.
36417         * modules/sys_file: Likewise.
36418         * modules/sys_ioctl: Likewise.
36419         * modules/sys_select: Likewise.
36420         * modules/sys_socket: Likewise.
36421         * modules/sys_stat: Likewise.
36422         * modules/sys_time: Likewise.
36423         * modules/sys_times: Likewise.
36424         * modules/sys_utsname: Likewise.
36425         * modules/sys_wait: Likewise.
36426         * modules/sysexits: Likewise.
36427         * modules/time: Likewise.
36428         * modules/unistd: Likewise.
36429         * modules/wchar: Likewise.
36430         * modules/wctype: Likewise.
36431
36432 2009-08-22  Jim Meyering  <meyering@redhat.com>
36433
36434         announce-gen: detect write failure
36435         * build-aux/announce-gen: Add Coda at end.
36436         Remove equivalent-but-more-verbose block at top.
36437
36438 2009-08-19  Akim Demaille  <demaille@gostai.com>
36439
36440         bootstrap: --help to stdout.
36441         * bootstrap (usage): Don't send --help to stderr.
36442         Use a here doc instead of a long string.
36443
36444 2009-08-21  Eric Blake  <ebb9@byu.net>
36445
36446         test-popen-safer: split from test-popen
36447         * tests/test-popen.c (main): Move...
36448         * tests/test-popen.h: ...into new file.
36449         * tests/test-popen-safer2.c: New file.
36450         * modules/popen-tests (Files): Add test-popen.h.
36451         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36452         Suggested by Bruno Haible.
36453
36454         test-fcntl-safer: split from test-open
36455         * tests/test-open.c (main): Move...
36456         * tests/test-open.h: ...into new file.
36457         * tests/test-fcntl-safer.c: New file.
36458         * modules/open-tests (Files): Add test-open.h.
36459         * modules/fcntl-safer-tests: New file.
36460         Suggested by Bruno Haible.
36461
36462         test-fopen-safer: split from test-fopen
36463         * tests/test-fopen.c (main): Move...
36464         * tests/test-fopen.h: ...into new file.
36465         * tests/test-fopen-safer.c: New file.
36466         * modules/fopen-tests (Files): Add test-fopen.h.
36467         * modules/fopen-safer-tests: New file.
36468         Suggested by Bruno Haible.
36469
36470 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36471
36472         popen-safer: test O_CLOEXEC at run-time.
36473         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36474
36475 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36476
36477         fcntl: move more flags to the header
36478         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36479         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36480         * lib/fcntl.in.h: Do both things here.
36481
36482 2009-08-21  Jim Meyering  <meyering@redhat.com>
36483
36484         consistently remove $@-t before redirecting to it
36485         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36486         * modules/alloca-opt: Likewise.
36487         * modules/byteswap: Likewise.
36488         * modules/fnmatch: Likewise.
36489         * modules/getopt-posix: Likewise.
36490         * modules/glob: Likewise.
36491         * modules/poll: Likewise.
36492         * modules/posix_spawnp-tests: Likewise.
36493         * modules/sys_socket: Likewise.
36494         * modules/sysexits: Likewise.
36495
36496 2009-08-21  Eric Blake  <ebb9@byu.net>
36497
36498         popen: simplify access to original popen
36499         * lib/popen.c (rpl_popen): No need to worry about popen being a
36500         macro.
36501         Reported by Bruno Haible.
36502
36503 2009-08-20  Eric Blake  <ebb9@byu.net>
36504
36505         build: avoid some compiler warnings
36506         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36507         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36508         type.
36509         (new_exclude_segment, excluded_file_pattern_p)
36510         (excluded_file_name_p): Reduce scope.
36511         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36512         old-style declaration.
36513
36514 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36515
36516         * tests/test-exclude1.sh: Handle Windows EOL.
36517         * tests/test-exclude2.sh: Likewise.
36518         * tests/test-exclude3.sh: Likewise.
36519         * tests/test-exclude4.sh: Likewise.
36520         * tests/test-exclude5.sh: Likewise.
36521         * tests/test-exclude6.sh: Likewise.
36522         * tests/test-exclude7.sh: Likewise.
36523
36524 2009-08-19  Akim Demaille  <demaille@gostai.com>
36525
36526         bootstrap: find sha1sum when named gsha1sum.
36527         * bootstrap (find_tool): New.
36528         ($SHA1SUM): New.
36529         Use it.
36530
36531 2009-08-20  Jim Meyering  <meyering@redhat.com>
36532
36533         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36534         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36535         expression that converts "." in a file name to "\." in the resulting
36536         regexp.  Start with a dummy statement, so that prior shell variable
36537         definitions are expanded portably.  Reported by Simon Josefsson.
36538
36539 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36540
36541         Fix polling for writeability of a screen buffer.
36542         * lib/poll.c: Distinguish input and screen buffers for the
36543         Win32 implementation.
36544         * lib/select.c: Likewise.
36545
36546 2009-08-19  Eric Blake  <ebb9@byu.net>
36547
36548         popen-safer: prevent popen from clobbering std descriptors
36549         * modules/popen-safer: New file.
36550         * lib/popen-safer.c: Likewise.
36551         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36552         * lib/stdio--.h (popen): Provide override.
36553         * lib/stdio-safer.h (popen_safer): Provide declaration.
36554         * tests/test-popen.c (includes): Partially test this.
36555         * modules/popen-safer-tests: New file, for more tests.
36556         * tests/test-popen-safer.c: Likewise.
36557         * MODULES.html.sh (file stream based Input/Output): Mention it.
36558
36559         tests: test some of the *-safer modules
36560         * modules/fopen-safer (Depends-on): Add fopen.
36561         * modules/fcntl-safer (Depends-on): Add fcntl.
36562         * modules/stdlib-safer (Depends-on): Add stdlib.
36563         (configure.ac): Set indicator.
36564         * modules/unistd-safer (configure.ac): Likewise.
36565         * modules/tmpfile-safer (configure.ac): Likewise.
36566         (Depends-on): Add tmpfile.
36567         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36568         active.
36569         * tests/test-fopen.c (includes): Test safer versions when they are
36570         in use.
36571         * tests/test-open.c (includes): Likewise.
36572
36573         popen: fix cygwin 1.5 bug when stdin closed
36574         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36575         * modules/popen: New file.
36576         * modules/popen-tests: Likewise.
36577         * tests/test-popen.c: Likewise.
36578         * m4/popen.m4: Likewise.
36579         * lib/popen.c: Likewise.
36580         * lib/stdio.in.h (popen): New declaration.
36581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36582         * modules/stdio (Makefile.am): Likewise.
36583         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36584
36585 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36586
36587         maint.mk: give full control over update-copyright exclusions
36588         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36589         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36590         (update-copyright): Don't force inclusion of top-level
36591         ChangeLog.  Don't force exclusion of all COPYING files, but make
36592         them the default exclusion instead.
36593
36594 2009-08-16  Bruno Haible  <bruno@clisp.org>
36595
36596         Fix test failures on Solaris 10.
36597         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36598         tests when Solaris iconv() is used.
36599         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36600         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36601         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36602         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36603         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36604
36605 2009-08-16  Bruno Haible  <bruno@clisp.org>
36606
36607         Fix test failures on Solaris 10.
36608         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36609         'tr' program and pass it as first argument.
36610         * tests/test-pipe-filter-gi1.sh: Likewise.
36611         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36612         program as first argument.
36613         * tests/test-pipe-filter-gi1.c (main): Likewise.
36614
36615 2009-08-16  Eric Blake  <ebb9@byu.net>
36616
36617         fpurge: fix previous commits
36618         * modules/fpurge (Makefile.am): Make replacement conditional,
36619         partially reverting 2007-04-29 change; missed in previous
36620         attempt.
36621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36622         is missing.
36623
36624 2009-08-16  Bruno Haible  <bruno@clisp.org>
36625
36626         Clarify fpurge's effect on the file position.
36627         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36628         * tests/test-fpurge.c (main): Make a second pass for checking the file
36629         position.
36630
36631 2009-08-16  Bruno Haible  <bruno@clisp.org>
36632
36633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36634         declaration of fpurge is missing.
36635         * tests/test-fpurge.c (main): Check that the file has not more contents
36636         than expected. Close the file before removing it.
36637
36638 2009-08-15  Eric Blake  <ebb9@byu.net>
36639
36640         fpurge: don't wrap working cygwin implementation
36641         * lib/fpurge.c (fpurge): Fix comment typo.
36642         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36643         1.7 to avoid replacement.
36644         * tests/test-fpurge.c (main): Enhance test.
36645
36646 2009-08-15  Eric Blake  <ebb9@byu.net>
36647         and Jim Meyering  <meyering@redhat.com>
36648
36649         test-update-copyright: skip if perl is insufficient
36650         * tests/test-update-copyright.sh: Failure to run maintainer tool
36651         should not cause testsuite failure on cygwin 1.5.
36652
36653 2009-08-14  Eric Blake  <ebb9@byu.net>
36654
36655         doc: mention more functions added in cygwin 1.7.0
36656         * doc/posix-headers/limits.texi (limits.h): Update for recent
36657         cygwin additions.
36658         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36659         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36660         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36661         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36662         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36663
36664 2009-08-14  Eric Blake  <ebb9@byu.net>
36665
36666         maint.mk: simplify update-copyright rule
36667         * top/maint.mk (update-copyright-local): Delete, and document how
36668         to do it in cfg.mk instead.
36669         (update-copyright-exclude-regexp): Delete, and document how to do
36670         it in .x-update-copyright instead.
36671         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36672         exclude ChangeLog.
36673
36674 2009-08-14  Bruno Haible  <bruno@clisp.org>
36675
36676         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36677
36678 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36679
36680         maint.mk: support update-copyright-env
36681         * top/maint.mk (update-copyright-env): Define place-holder.
36682         (update-copyright): Expand $(update-copyright-env) before
36683         invoking update-copyright.
36684
36685 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36686
36687         update-copyright: implement forced reformatting
36688         * build-aux/update-copyright: Implement and document
36689         UPDATE_COPYRIGHT_FORCE.
36690         * tests/test-update-copyright.sh: Test it.
36691
36692 2009-08-14  Eric Blake  <ebb9@byu.net>
36693         and Bruno Haible  <bruno@clisp.org>
36694
36695         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36696         * tests/test-locale.c: Revert previous patch related to NULL.
36697         * tests/test-stdio.c: Likewise.
36698         * tests/test-stdlib.c: Likewise.
36699         * tests/test-string.c: Likewise.
36700         * tests/test-unistd.c: Likewise.
36701         * modules/time-tests (Depends-on): Add verify.
36702         * modules/wchar-tests (Depends-on): Likewise.
36703         * tests/test-time.c: Test for NULL compliance.
36704         * tests/test-wchar.c: Likewise.
36705         * modules/locale (Depends-on): Add stddef.
36706         * modules/stdio (Depends-on): Likewise.
36707         * modules/stdlib (Depends-on): Likewise.
36708         * modules/string (Depends-on): Likewise.
36709         * modules/time (Depends-on): Likewise.
36710         * modules/unistd (Depends-on): Likewise.
36711         * modules/wchar (Depends-on): Likewise.
36712         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36713         * lib/stdlib.in.h (includes): Likewise.
36714         * lib/string.in.h (includes): Likewise.
36715         * lib/time.in.h (includes): Likewise.
36716         * lib/unistd.in.h (includes): Likewise.
36717         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36718         replaced.
36719         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36720         * m4/stddef_h.m4: New file.
36721         * modules/stddef: Likewise.
36722         * lib/stddef.in.h: Likewise.
36723         * modules/stddef-tests: Likewise.
36724         * tests/test-stddef.c: Likewise.
36725         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36726         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36727         * doc/posix-headers/locale.texi (locale.h): Likewise.
36728         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36729         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36730         * doc/posix-headers/string.texi (string.h): Likewise.
36731         * doc/posix-headers/time.texi (time.h): Likewise.
36732         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36733         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36734
36735 2009-08-14  Eric Blake  <ebb9@byu.net>
36736
36737         doc: improve git diff of texinfo files
36738         * .gitattributes: Add rule for *.texi files, with hint on how to
36739         use it.
36740         Copied from m4, and based on a report by Bruno Haible.
36741
36742 2009-08-14  Bruno Haible  <bruno@clisp.org>
36743
36744         Disable multithread support by default on Cygwin 1.5.x for real.
36745         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36746
36747 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36748
36749         update-copyright: much ado about intervals
36750         * build-aux/update-copyright: Implement and document
36751         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36752         of copyright year intervals.
36753         Also, document UPDATE_COPYRIGHT_YEAR.
36754         * tests/test-update-copyright.sh: Test it.
36755
36756         update-copyright: convert 2-digit to 4-digit years
36757         * build-aux/update-copyright: Implement and document.
36758         * tests/test-update-copyright.sh: Update.
36759
36760 2009-08-14  Jim Meyering  <meyering@redhat.com>
36761
36762         test-exclude: avoid coreutils "make check" failure
36763         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36764         just as in test-argmatch.c.
36765
36766 2009-08-13  Eric Blake  <ebb9@byu.net>
36767
36768         test-dup2: fix bad assumption
36769         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36770         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36771
36772         test-version-etc: fix CRLF portability issue
36773         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36774         recognize \r.
36775         * tests/test-argp-version-etc-1.sh: Likewise.
36776
36777         getopt: update client modules
36778         * modules/argp (Depends-on): Use getopt-gnu.
36779         * modules/git-merge-changelog (Depends-on): Likewise.
36780         * modules/long-options (Depends-on): Likewise.
36781         * modules/xstrtol (Depends-on): Likewise.
36782
36783 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36784
36785         * tests/test-version-etc.sh: Don't fail on different
36786         project/version.  Don't fail on CRLF differences.  Rewrite to use
36787         multiple -e instead of multiple sed forks, suggested by Eric Blake
36788         <ebb9@byu.net>.
36789         * tests/test-argp-version-etc-1.sh: Likewise.
36790
36791 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36792
36793         * tests/test-version-etc.sh: Don't fail on different
36794         project/version.
36795
36796 2009-08-12  Bruno Haible  <bruno@clisp.org>
36797
36798         Tests for modules 'getopt-posix', 'getopt-gnu'.
36799         * modules/getopt-posix-tests: New file.
36800         * tests/test-getopt.c: New file.
36801         * tests/test-getopt.h: New file.
36802         * tests/test-getopt_long.h: New file.
36803
36804         New modules 'getopt-posix', 'getopt-gnu'.
36805         * modules/getopt-gnu: New file, renamed from modules/getopt.
36806         * modules/getopt-posix: New file.
36807         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36808         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36809         (gl_GETOPT): Remove macro.
36810         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36811         Disable the test against BSD systems that declare optreset. Test
36812         against mingw bug. Test against lack of support of optional arguments
36813         on many platforms.
36814         * doc/glibc-headers/getopt.texi: Update module name and list of
36815         relevant platforms.
36816         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36817         'getopt-gnu' and more portability problems.
36818         * NEWS: Mention the changes.
36819
36820 2009-08-12  Bruno Haible  <bruno@clisp.org>
36821
36822         Ensure that optarg etc. get declared by <unistd.h>.
36823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36824         AC_USE_SYSTEM_EXTENSIONS.
36825         * modules/getopt (Depends-on): Add 'extensions'.
36826
36827 2009-08-12  Bruno Haible  <bruno@clisp.org>
36828
36829         Avoid test link errors.
36830         * modules/pipe-filter-ii-tests (Makefile.am): Define
36831         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36832         * modules/pipe-filter-gi-tests (Makefile.am): Define
36833         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36835
36836 2009-08-12  Bruno Haible  <bruno@clisp.org>
36837
36838         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36839         gl_GETOPT_SUBSTITUTE before.
36840         (gl_GETOPT): Use it.
36841         * m4/argp.m4 (gl_ARGP): Update.
36842         Reported by Sergey Poznyakoff.
36843
36844         * m4/getopt.m4: Reorder macros.
36845         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36846         (gl_GETOPT_SUBSTITUTE): Remove macro.
36847
36848 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36849
36850         Minor improvement in gitlog-to-changelog
36851
36852         * build-aux/gitlog-to-changelog: New option `--format' makes
36853         output format string configurable.
36854
36855 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36856
36857         Optimize exclude: use hash tables for non-wildcard patterns.
36858
36859         * lib/exclude.c: Include hash.h and mbuiter.h
36860         (struct exclude_pattern, exclude_segment): New data types.
36861         (struct exclude): Rewrite.
36862         (fnmatch_pattern_has_wildcards): New function.
36863         (new_exclude_segment, free_exclude_segment): New functions.
36864         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36865         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36866         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36867         * modules/exclude: Depend on hash and mbuiter.
36868
36869         * modules/exclude-tests: New file.
36870         * tests/test-exclude.c: New file.
36871         * tests/test-exclude1.sh: New file.
36872         * tests/test-exclude2.sh: New file.
36873         * tests/test-exclude3.sh: New file.
36874         * tests/test-exclude4.sh: New file.
36875         * tests/test-exclude5.sh: New file.
36876         * tests/test-exclude6.sh: New file.
36877         * tests/test-exclude7.sh: New file.
36878
36879 2009-08-12  Bruno Haible  <bruno@clisp.org>
36880
36881         Ensure that getopt() gets declared by <unistd.h>.
36882         * lib/unistd.in.h: Conditionally include getopt.h.
36883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36884         Set GNULIB_UNISTD_H_GETOPT.
36885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36886         GNULIB_UNISTD_H_GETOPT.
36887         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36888
36889 2009-08-12  Bruno Haible  <bruno@clisp.org>
36890
36891         Clarify logic.
36892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36893         gl_replace_getopt instead of GETOPT_H.
36894
36895 2009-08-12  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/getopt.m4: Add comments.
36898
36899 2009-08-12  Bruno Haible  <bruno@clisp.org>
36900
36901         Disable multithread support by default on Cygwin 1.5.x.
36902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36903         set gl_use_threads=no if not specified otherwise.
36904
36905 2009-08-11  Bruno Haible  <bruno@clisp.org>
36906
36907         Avoid compilation error on NetBSD 5.0.
36908         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36909         * tests/test-stdio.c: Likewise.
36910         * tests/test-stdlib.c: Likewise.
36911         * tests/test-string.c: Likewise.
36912         * tests/test-unistd.c: Likewise.
36913         Reported by Greg Troxel <gdt@ir.bbn.com>
36914         at <https://savannah.gnu.org/support/?106973>.
36915
36916 2009-08-11  Bruno Haible  <bruno@clisp.org>
36917
36918         * modules/dup2-tests (Depends-on): Remove close.
36919
36920         Undo 2009-07-19 commit.
36921         * modules/acl-tests (Depends-on): Remove close.
36922         * modules/binary-io-tests (Depends-on): Likewise.
36923         * modules/closein-tests (Depends-on): Likewise.
36924         * modules/flock-tests (Depends-on): Likewise.
36925         * modules/fsync-tests (Depends-on): Likewise.
36926         * modules/lseek-tests (Depends-on): Likewise.
36927         * modules/pipe-tests (Depends-on): Likewise.
36928         * modules/posix_spawn-tests (Depends-on): Likewise.
36929         * modules/posix_spawnp-tests (Depends-on): Likewise.
36930         * modules/stat-time-tests (Depends-on): Likewise.
36931         * modules/yesno-tests (Depends-on): Likewise.
36932
36933 2009-08-10  Bruno Haible  <bruno@clisp.org>
36934
36935         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36936
36937 2009-08-10  Bruno Haible  <bruno@clisp.org>
36938
36939         Fix a gcc warning.
36940         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36941
36942 2009-08-10  Bruno Haible  <bruno@clisp.org>
36943
36944         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36945         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36946         not only the first time.
36947         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36948         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36949         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36950         is 1, not only the the first time.
36951
36952 2009-08-10  Bruno Haible  <bruno@clisp.org>
36953
36954         Make it possible to use module 'gethostname' without module 'close'.
36955         * lib/unistd.in.h (close): Evoke a link error only if
36956         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36959         * modules/unistd (Makefile.am): Substitute
36960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36961         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36963         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36965         * modules/sys_ioctl (Makefile.am): Substitute
36966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36967         * modules/socket (configure.ac): On native Windows, set
36968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36969         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36970         Reported by Sam Steingold <sds@gnu.org>.
36971
36972 2009-08-10  Bruno Haible  <bruno@clisp.org>
36973
36974         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36975         * modules/ioctl (configure.ac): Likewise.
36976
36977 2009-08-10  Bruno Haible  <bruno@clisp.org>
36978
36979         Avoid collision between gnulib wrapper and libintl wrapper.
36980         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36981         already defined in intl/printf.c.
36982         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36983         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36984
36985 2009-08-09  Bruno Haible  <bruno@clisp.org>
36986
36987         Make <sys/select.h> really self-contained, also on Solaris 10.
36988         * lib/sys_select.in.h: Include <string.h>.
36989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36990         Solaris 10 problem.
36991         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36992         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36993         Reported by Jim Meyering.
36994
36995 2009-08-09  Bruno Haible  <bruno@clisp.org>
36996
36997         Avoid warnings from 'aclocal' that are due to a use of macro name
36998         AM_XGETTEXT_OPTION that is not defined in automake.
36999         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37000         automake.
37001         * modules/error (configure.ac): Likewise.
37002         * modules/propername (configure.ac): Likewise.
37003         * modules/vasprintf (configure.ac): Likewise.
37004         * modules/verror (configure.ac): Likewise.
37005         * modules/xprintf (configure.ac): Likewise.
37006         * modules/xvasprintf (configure.ac): Likewise.
37007
37008 2009-08-08  Bruno Haible  <bruno@clisp.org>
37009
37010         Avoid compilation error in C++ mode.
37011         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37012         Reported by Sam Steingold <sds@gnu.org>.
37013
37014 2009-08-08  Bruno Haible  <bruno@clisp.org>
37015
37016         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37017         for the various Unix platforms.
37018         * doc/posix-headers/limits.texi: Update platforms list regarding
37019         HOST_NAME_MAX.
37020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37021
37022 2009-08-07  Jim Meyering  <meyering@redhat.com>
37023
37024         selinux-at: fix typo in a comment
37025         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37026         Spotted by Paolo Bonzini.
37027
37028         selinux-at: remove redundant m4 code, add documentation
37029         * modules/selinux-at (configure.ac): Remove redundant code.
37030         LIB_SELINUX is already set via the dependent module, selinux-h.
37031         (Include): Add quotes around selinux-at.h.
37032         * lib/selinux-at.h: Add documentation.
37033         Reported by Bruno Haible in
37034         http://marc.info/?l=gnulib-bug&m=124958988300749
37035
37036 2009-08-07  Bruno Haible  <bruno@clisp.org>
37037
37038         Avoid link error on MacOS X 10.3 and 10.4.
37039         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37040         on non-ELF systems.
37041         * lib/argp-pv.c (argp_program_version): Likewise.
37042         Reported by Simon Josefsson.
37043
37044 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37045
37046         * tests/test-version-etc.sh: Use $EXEEXT.
37047
37048 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37049
37050         update-copyright: update documentation to point to maint.mk
37051         * build-aux/update-copyright: Here.
37052
37053 2009-08-06  Jim Meyering  <meyering@redhat.com>
37054
37055         maint.mk: support update-copyright-local
37056         * top/maint.mk (update-copyright-local): Define place-holder.
37057         (update-copyright): Depend on $(update-copyright-local).
37058
37059 2009-08-06  Jim Meyering  <meyering@redhat.com>
37060
37061         selinux-at: new module
37062         Initially written for coreutils, this module will soon be
37063         used by findutils, too.
37064         * MODULES.html.sh [Misc]: Add selinux-at.
37065         * lib/selinux-at.h: New file, from coreutils.
37066         * lib/selinux-at.c: Likewise.
37067         * modules/selinux-at: Likewise.
37068         (License): Change from LGPL to GPL, since it depends
37069         on the GPL'd openat module.
37070
37071         doc: update README
37072         * README: Remove references to cogito.
37073         Remove cvs-repo-updating instructions from 2007.
37074         Don't imply that CVS is better if you have limited disk space.
37075
37076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37077
37078         update-copyright: support C-style comments
37079         * build-aux/update-copyright: Implement and document.
37080         * tests/test-update-copyright.sh: Test.
37081
37082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37083
37084         update-copyright: support omitted "(C)"
37085         * build-aux/update-copyright: Implement and document.  Also,
37086         allow variable whitespace before "(C)".
37087         * tests/test-update-copyright.sh: Test.
37088
37089 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37090
37091         update-copyright: don't trip on non-FSF copyright statements
37092         * build-aux/update-copyright: Fix so that the first correctly
37093         formatted FSF copyright statement is recognized no matter what
37094         appears before it.  Update documentation.
37095         * tests/test-update-copyright.sh: Test that.
37096
37097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37098
37099         update-copyright: clean up code a little
37100         * build-aux/update-copyright: Append "_re" to the name of any
37101         variable holding a regular expression.
37102         Replace "old" and "new" with "stmt" in variable names.
37103         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37104         handled correctly.
37105         Format code more consistently.
37106
37107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37108
37109         update-copyright-tests: improve portability
37110         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37111         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37112
37113 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37114
37115         update-copyright: support @copyright{} and &copy;
37116         * build-aux/update-copyright: Implement and document.
37117         * tests/test-update-copyright.sh: Test.
37118
37119 2009-08-04  Jim Meyering  <meyering@redhat.com>
37120
37121         update-copyright-tests: correctly test EOL=\r\n handling
37122         * tests/test-update-copyright.sh: Put \r at the end of some lines
37123         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37124
37125         maint.mk: make update-copyright exclusion list more configurable
37126         * top/maint.mk (update-copyright): Default to excluding COPYING,
37127         but allow an override, in case someone does want to update that file.
37128
37129         maint.mk: don't update copyright date in COPYING
37130         * top/maint.mk (update-copyright): Exclude COPYING.
37131
37132         maint.mk: add a copyright-updating rule
37133         * top/maint.mk (update-copyright): New rule.
37134         Derived from coreutils/Makefile.am.
37135
37136         update-copyright: rename some variables
37137         * build-aux/update-copyright: Rename a few variables for clarity.
37138         Tweak syntax.  List Joel E. Denny as coauthor.
37139
37140 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37141
37142         update-copyright: fix bug for 2-digit last year and add tests
37143         * build-aux/update-copyright: Fix bug.
37144         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37145         specified.
37146         * modules/update-copyright-tests: New
37147         * tests/test-update-copyright.sh: New.
37148
37149 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37150
37151         update-copyright: handle leading tabs in line prefix
37152         * build-aux/update-copyright: Count leading tabs as 8 spaces
37153         when computing margin.  This helps with the formatting of
37154         ChangeLogs, for example.
37155         Fix documentation a little.
37156
37157 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37158
37159         update-copyright: support EOL=\r\n
37160         * build-aux/update-copyright: Implement that.
37161
37162 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37163
37164         update-copyright: automatically format copyright statements
37165         * build-aux/update-copyright: Implement that.
37166         Also, be a little more predictable and safer by always failing
37167         when the full copyright format is not perfectly recognized as an
37168         unbroken whole.  Discussed at
37169         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37170         Rewrite documentation.
37171
37172 2009-08-03  Bruno Haible  <bruno@clisp.org>
37173
37174         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37175
37176 2009-08-02  Bruno Haible  <bruno@clisp.org>
37177
37178         Tests for module 'uname'.
37179         * modules/uname-tests: New file.
37180         * tests/test-uname.c: New file.
37181
37182         New module 'uname'.
37183         * lib/uname.c: New file.
37184         * m4/uname.m4: New file.
37185         * modules/uname: New file.
37186         * doc/posix-functions/uname.texi: Mention the new module.
37187
37188 2009-08-02  Bruno Haible  <bruno@clisp.org>
37189
37190         Tests for module 'sys_utsname'.
37191         * modules/sys_utsname-tests: New file.
37192         * tests/test-sys_utsname.c: New file.
37193
37194         New module 'sys_utsname'.
37195         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37196         * m4/sys_utsname_h.m4: New file.
37197         * modules/sys_utsname: New file.
37198         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37199
37200 2009-08-02  Bruno Haible  <bruno@clisp.org>
37201
37202         Implicitly initialize the sockets library.
37203         * lib/gethostname.c: Include sockets.h.
37204         (rpl_gethostname): Invoke gl_sockets_startup.
37205         * lib/socket.c: Include sockets.h.
37206         (rpl_socket): Invoke gl_sockets_startup.
37207         * modules/gethostname (Depends-on): Add sockets.
37208         * modules/socket (Depends-on): Likewise.
37209         * tests/test-poll.c: Don't include sockets.h.
37210         (main): Don't invoke gl_sockets_startup.
37211         * tests/test-select.c: Don't include sockets.h.
37212         (main): Don't invoke gl_sockets_startup.
37213
37214 2009-08-02  Bruno Haible  <bruno@clisp.org>
37215
37216         Allow multiple calls to gl_sockets_startup.
37217         * lib/sockets.c (initialized_sockets_version): New variable.
37218         (gl_sockets_startup): Do nothing if already called for this or a higher
37219         version.
37220         (gl_sockets_cleanup): Reset initialized_sockets_version.
37221
37222 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37223
37224         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37225         different project/version.
37226
37227 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37228             Bruno Haible  <bruno@clisp.org>
37229
37230         Tests for module 'pipe-filter-gi'.
37231         * modules/pipe-filter-gi-tests: New file.
37232         * tests/test-pipe-filter-gi1.sh: New file.
37233         * tests/test-pipe-filter-gi1.c: New file.
37234         * tests/test-pipe-filter-gi2.sh: New file.
37235         * tests/test-pipe-filter-gi2-main.c: New file.
37236         * tests/test-pipe-filter-gi2-child.c: New file.
37237
37238         New module 'pipe-filter-gi'.
37239         * lib/pipe-filter-gi.c: New file.
37240         * modules/pipe-filter-gi: New file.
37241
37242 2009-08-02  Bruno Haible  <bruno@clisp.org>
37243             Paolo Bonzini  <bonzini@gnu.org>
37244
37245         Tests for module 'pipe-filter-ii'.
37246         * modules/pipe-filter-ii-tests: New file.
37247         * tests/test-pipe-filter-ii1.sh: New file.
37248         * tests/test-pipe-filter-ii1.c: New file.
37249         * tests/test-pipe-filter-ii2.sh: New file.
37250         * tests/test-pipe-filter-ii2-main.c: New file.
37251         * tests/test-pipe-filter-ii2-child.c: New file.
37252
37253         New module 'pipe-filter-ii'.
37254         * lib/pipe-filter.h: New file.
37255         * lib/pipe-filter-ii.c: New file.
37256         * lib/pipe-filter-aux.h: New file.
37257         * modules/pipe-filter-ii: New file.
37258
37259 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37260
37261         * lib/gc-libgcrypt.c: Change copyright to FSF.
37262         * lib/gc-gnulib.c: Likewise.
37263
37264 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37265
37266         * lib/gethostname.c: Include limits.h.
37267
37268 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37269             Bruno Haible  <bruno@clisp.org>
37270
37271         Ensure HOST_NAME_MAX as part of the gethostname module.
37272         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37273         define also HOST_NAME_MAX.
37274         * tests/test-gethostname.c: Include <limits.h>.
37275         (main): Check also HOST_NAME_MAX.
37276         * doc/posix-headers/limits.texi: Document the mingw problem.
37277
37278 2009-08-02  Bruno Haible  <bruno@clisp.org>
37279
37280         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37281         Add comments.
37282
37283 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37284
37285         * lib/gethostname.c: Add Windows wrapper.
37286         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37287         * modules/gethostname: Depend on sys_socket & errno, for also
37288         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37289         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37290
37291 2009-07-31  Jim Meyering  <meyering@redhat.com>
37292
37293         getloadavg: fix symbol name in comment
37294         * lib/getloadavg.c: Correct a typo I introduced when adding
37295         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37296         Matt Kraai spotted the problem.
37297
37298 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37299
37300         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37301         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37302         code also if ! defined N_NAME_POINTER.
37303         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37304         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37305         but the n_name member is a 12-byte array.
37306
37307 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37308
37309         update-copyright: generalize comment handling
37310         * build-aux/update-copyright: Handle copyright statements
37311         within more comment styles.
37312         Document usage.
37313         Report any file with an external copyright holder or parse failure.
37314
37315 2009-07-29  Jim Meyering  <meyering@redhat.com>
37316
37317         mktime: correct setting of REPLACE_MKTIME
37318         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37319
37320         update-copyright: new module
37321         * modules/update-copyright: New file.
37322         * build-aux/update-copyright: New file.
37323         * MODULES.html.sh (maint+release support): Add update-copyright.
37324
37325 2009-07-27  Bruno Haible  <bruno@clisp.org>
37326
37327         Fix compilation error when <ctime> is used and mktime is replaced.
37328         * lib/time.in.h (mktime): New declaration.
37329         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37330         REPLACE_MKTIME instead of defining mktime in config.h.
37331         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37332         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37333         Reported by Ross McFarland <rwmcfa1@neces.com>.
37334
37335 2009-07-27  Bruno Haible  <bruno@clisp.org>
37336
37337         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37338         Reported by Matt Kraai <mkraai@beckman.com>.
37339
37340 2009-07-25  Jim Meyering  <meyering@redhat.com>
37341
37342         maint.mk: avoid warnings about missing files
37343         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37344         diagnostic when .prev-version does not exist.
37345         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37346         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37347         nonexistent cfg.mk.
37348         Suggestions from Simon Josefsson.
37349
37350 2009-07-25  Bruno Haible  <bruno@clisp.org>
37351
37352         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37353         defined as macros. Needed on QNX 6.4.1.
37354         Reported by Matt Kraai <mkraai@beckman.com>.
37355
37356 2009-07-23  Jim Meyering  <meyering@redhat.com>
37357
37358         maint.mk: invoke "make dist" with a working value of XZ_OPT
37359         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37360
37361 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37362
37363         Make fseeko.c compile on QNX.
37364         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37365
37366 2009-07-22  Peter Simons  <simons@cryp.to>
37367
37368         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37369         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37370         * lib/md4.h: Likewise.
37371         * lib/md5.h: Likewise.
37372         * lib/sha1.h: Likewise.
37373         * lib/sha256.h: Likewise.
37374         * lib/sha512.h: Likewise.
37375
37376         tests-sha1: don't assign literal string to 'char *' variable
37377         * tests/test-sha1.c (main): Declare locals with "const" to match
37378         attributes of the right hand side.
37379
37380 2009-07-21  Eric Blake  <ebb9@byu.net>
37381
37382         dup2: fix more mingw problems
37383         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37384         fd to itself.
37385         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37386         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37387         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37388         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37389         care of mingw bugs.
37390
37391 2009-07-21  Jim Meyering  <meyering@redhat.com>
37392
37393         vc-list-files: avoid failure when /bin/sh is dash
37394         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37395         On some Debian based systems, /bin/sh is a symlink to dash, and running
37396         this command would omit the "/" following each 'tests' prefix:
37397           dash -x build-aux/vc-list-files -C . tests
37398         That is because bash and dash work differently:
37399           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37400           bash ok
37401           dash odd
37402
37403 2009-07-21  Eric Blake  <ebb9@byu.net>
37404
37405         dup2-tests: test previous patch
37406         * modules/dup2-tests: New file.
37407         * tests/test-dup2.c: Likewise.
37408         * tests/test-open.c (main): Avoid unspecified behavior.
37409         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37410         test.
37411
37412         dup2: work around mingw and cygwin 1.5 bug
37413         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37415         * modules/unistd (Makefile.am): Substitute it.
37416         * lib/unistd.in.h (dup2): Declare the replacement.
37417         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37418         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37419         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37420         * modules/execute (Depends-on): Add dup2.
37421         * modules/fseterr (Depends-on): Likewise.
37422         * modules/pipe (Depends-on): Likewise.
37423         * modules/posix_spawn-internal (Depends-on): Likewise.
37424
37425 2009-07-21  Bruno Haible  <bruno@clisp.org>
37426
37427         * modules/.gitattributes: New file.
37428
37429 2009-07-20  Bruno Haible  <bruno@clisp.org>
37430
37431         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37432         (main): Use it.
37433
37434 2009-07-20  Eric Blake  <ebb9@byu.net>
37435
37436         test-pipe: make a bit more robust.
37437         * tests/test-pipe.c (myerr): Allow error messages regardless of
37438         what we do to stderr.
37439         (test_pipe): Rearrange to avoid deadlock.
37440         (child_main): Try a larger read, to ensure we avoided deadlock.
37441         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37442         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37443         if misused.
37444
37445 2009-07-19  Jim Meyering  <meyering@redhat.com>
37446
37447         fts: avoid false-positive cycle-detection
37448         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37449         for each new command line argument.
37450
37451 2009-07-19  Bruno Haible  <bruno@clisp.org>
37452
37453         Fix build error on mingw with the modules sys_select and unistd.
37454         * modules/acl-tests (Depends-on): Add close.
37455         * modules/binary-io-tests (Depends-on): Likewise.
37456         * modules/closein-tests (Depends-on): Likewise.
37457         * modules/flock-tests (Depends-on): Likewise.
37458         * modules/fsync-tests (Depends-on): Likewise.
37459         * modules/lseek-tests (Depends-on): Likewise.
37460         * modules/pipe-tests (Depends-on): Likewise.
37461         * modules/posix_spawn-tests (Depends-on): Likewise.
37462         * modules/posix_spawnp-tests (Depends-on): Likewise.
37463         * modules/stat-time-tests (Depends-on): Likewise.
37464         * modules/yesno-tests (Depends-on): Likewise.
37465
37466 2009-07-19  Bruno Haible  <bruno@clisp.org>
37467
37468         Unify conditionals.
37469         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37470         macros, not at the compiler macros.
37471         * lib/pipe.c: Likewise.
37472         * lib/execute.c: Likewise.
37473         * lib/spawni.c: Likewise.
37474
37475 2009-07-19  Bruno Haible  <bruno@clisp.org>
37476
37477         Fix handling of closed stdin/stdout/stderr on mingw.
37478         * lib/w32spawn.h: Include unistd.h.
37479         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37480         file descriptor with O_NOINHERIT flag.
37481         (fd_safer_noinherit): New function, based on fd-safer.c.
37482         (dup_safer_noinherit): New function, based on dup-safer.c.
37483         (undup_safer_noinherit): New function.
37484         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37485         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37486         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37487         instead of fd_safer.
37488         * tests/test-pipe.c: Include <windows.h>.
37489         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37490         result.
37491
37492         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37493         from main.
37494         (test_pipe): Pass an extra argument for disambiguation.
37495         (main): Invoke parent_main or child_main.
37496
37497         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37498         consistently.
37499
37500 2009-07-18  Eric Blake  <ebb9@byu.net>
37501
37502         test-pipe: fix mingw build
37503         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37504
37505 2009-07-18  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/pipe-tests (Makefile.am): Fix typo.
37508
37509 2009-07-18  Eric Blake  <ebb9@byu.net>
37510
37511         error: fix mingw build
37512         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37513         Reported by Bruno Haible.
37514
37515         error: avoid undefined use of stdout
37516         * lib/error.c (error, error_at_line): Check that fd 1 is open
37517         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37518         is handling faults and the close_stdout module wants to report the
37519         detection of closed stdout as an error.
37520
37521 2009-07-17  Eric Blake  <ebb9@byu.net>
37522
37523         pipe: be robust in face of closed fds
37524         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37525         should cause child to misbehave.
37526         * modules/pipe-tests: New module.
37527         * tests/test-pipe.c: New file.
37528         * tests/test-pipe.sh: New file.
37529         Reported by Akim Demaille.
37530
37531 2009-07-14  Bruno Haible  <bruno@clisp.org>
37532
37533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37534         Reported by anonymous kc.
37535
37536 2009-07-07  Jim Meyering  <meyering@redhat.com>
37537
37538         maint.mk: don't look for translatable strings in *.m4 or *.mk
37539         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37540         when searching for translatable strings.
37541
37542 2009-07-05  Jim Meyering  <meyering@redhat.com>
37543
37544         remove superfluous parentheses in STREQ definition
37545         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37546         * lib/getugroups.c (STREQ): Likewise.
37547         * lib/fnmatch.c (STREQ): Likewise.
37548         Spotted by Bruno Haible.
37549
37550 2009-07-04  Jim Meyering  <meyering@redhat.com>
37551
37552         argv-iter: new module
37553         * MODULES.html.sh: Add argv-iter.
37554         * lib/argv-iter.c, lib/argv-iter.h: New files.
37555         * modules/argv-iter: New file.
37556         * modules/argv-iter-tests: New file.
37557         * tests/test-argv-iter.c: Test it.
37558
37559 2009-07-04  Bruno Haible  <bruno@clisp.org>
37560
37561         Fix assertion.
37562         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37563         contains more exact copies of a given entry than file2, leave the extra
37564         copies unpaired rather than aborting.
37565         Reported by Eric Blake.
37566
37567 2009-07-02  Bruno Haible  <bruno@clisp.org>
37568
37569         Speedup git-merge-changelog for git cherry-pick.
37570         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37571         (entries_mapping_get): New function, extracted from compute_mapping.
37572         (entries_mapping_reverse_get): New function.
37573         (compute_mapping): Add a 'full' argument. Return the result in a
37574         'struct entries_mapping'.
37575         (main): Update. Access the mappings through entries_mapping_get.
37576         Reported by Eric Blake.
37577
37578 2009-07-02  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37581         best_i.
37582
37583 2009-07-02  Bruno Haible  <bruno@clisp.org>
37584
37585         Speed up approximate search for matching ChangeLog entries.
37586         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37587         argument. Call fstrcmp_bounded instead of fstrcmp.
37588         (compute_mapping, try_split_merged_entry, main): Update callers.
37589
37590 2009-07-02  Bruno Haible  <bruno@clisp.org>
37591
37592         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37593
37594 2009-06-30  Bruno Haible  <bruno@clisp.org>
37595
37596         Reduce the number of uc_is_cased calls.
37597         * lib/unicase.h (casing_suffix_context_t): Add
37598         'first_char_except_ignorable' field.
37599         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37600         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37601         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37602         Update initializer.
37603         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37604         case-ignorable characters.
37605         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37606         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37607         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37608         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37609         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37610
37611 2009-06-30  Bruno Haible  <bruno@clisp.org>
37612
37613         Tests for module 'unicase/ignorable'.
37614         * modules/unicase/ignorable-tests: New file.
37615         * tests/unicase/test-ignorable.c: New file, generated by
37616         gen-uni-tables.
37617
37618         Tests for module 'unicase/cased'.
37619         * modules/unicase/cased-tests: New file.
37620         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37621         * tests/unicase/test-predicate-part1.h: New file, derived from
37622         tests/unictype/test-predicate-part1.h.
37623         * tests/unicase/test-predicate-part2.h: New file, same as
37624         tests/unictype/test-predicate-part2.h.
37625
37626         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37627         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37628         (output_casing_properties): New function.
37629         (main): Call it.
37630         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37631         * lib/unicase/cased.c: Include unictype/bitmap.h.
37632         (uc_is_cased): Define through a bitmap lookup.
37633         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37634         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37635         (uc_is_case_ignorable): Define through a bitmap lookup.
37636         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37637         lib/unictype/bitmap.h.
37638         (Depends-on): Add inline. Clean up.
37639         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37640         lib/unictype/bitmap.h.
37641         (Depends-on): Add inline. Clean up.
37642         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37643         recognition.
37644         * tests/unicase/test-u16-tolower.c (main): Likewise.
37645         * tests/unicase/test-u32-tolower.c (main): Likewise.
37646
37647 2009-06-30  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37650         * lib/unicase/u16-casemap.c: Likewise.
37651         * lib/unicase/u32-casemap.c: Likewise.
37652
37653 2009-06-29  Bruno Haible  <bruno@clisp.org>
37654
37655         Define u32_casefold as a wrapper around u32_ct_casefold.
37656         * lib/unicase/u32-casefold.c: Update.
37657         * modules/unicase/u32-casefold (Depends-on): Add
37658         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37659         unicase/empty-suffix-context. Clean up.
37660
37661         Define u16_casefold as a wrapper around u16_ct_casefold.
37662         * lib/unicase/u16-casefold.c: Update.
37663         * modules/unicase/u16-casefold (Depends-on): Add
37664         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37665         unicase/empty-suffix-context. Clean up.
37666
37667         Define u8_casefold as a wrapper around u8_ct_casefold.
37668         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37669         * lib/unicase/u8-casefold.c: Update.
37670         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37672
37673         Define u32_totitle as a wrapper around u32_ct_totitle.
37674         * lib/unicase/u32-totitle.c: Update.
37675         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37676         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37677
37678         Define u16_totitle as a wrapper around u16_ct_totitle.
37679         * lib/unicase/u16-totitle.c: Update.
37680         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37681         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37682
37683         Define u8_totitle as a wrapper around u8_ct_totitle.
37684         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37685         functions.
37686         (FUNC): Delegate to U_CT_TOTITLE.
37687         * lib/unicase/u8-totitle.c: Update.
37688         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37689         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37690
37691         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37692         invocation.
37693         * modules/unicase/u32-tolower (Depends-on): Add
37694         unicase/empty-prefix-context, unicase/empty-suffix-context.
37695
37696         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37697         invocation.
37698         * modules/unicase/u16-tolower (Depends-on): Add
37699         unicase/empty-prefix-context, unicase/empty-suffix-context.
37700
37701         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37702         * modules/unicase/u8-tolower (Depends-on): Add
37703         unicase/empty-prefix-context, unicase/empty-suffix-context.
37704
37705         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37706         invocation.
37707         * modules/unicase/u32-toupper (Depends-on): Add
37708         unicase/empty-prefix-context, unicase/empty-suffix-context.
37709
37710         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37711         invocation.
37712         * modules/unicase/u16-toupper (Depends-on): Add
37713         unicase/empty-prefix-context, unicase/empty-suffix-context.
37714
37715         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37716         * modules/unicase/u8-toupper (Depends-on): Add
37717         unicase/empty-prefix-context, unicase/empty-suffix-context.
37718
37719         New module 'unicase/u32-ct-casefold'.
37720         * lib/unicase/u32-ct-casefold.c: New file.
37721         * modules/unicase/u32-ct-casefold: New file.
37722
37723         New module 'unicase/u16-ct-casefold'.
37724         * lib/unicase/u16-ct-casefold.c: New file.
37725         * modules/unicase/u16-ct-casefold: New file.
37726
37727         New module 'unicase/u8-ct-casefold'.
37728         * lib/unicase/u8-ct-casefold.c: New file.
37729         * lib/unicase/u-ct-casefold.h: New file, derived from
37730         lib/unicase/u-casefold.h.
37731         * modules/unicase/u8-ct-casefold: New file.
37732
37733         New module 'unicase/u32-ct-totitle'.
37734         * lib/unicase/u32-ct-totitle.c: New file.
37735         * modules/unicase/u32-ct-totitle: New file.
37736
37737         New module 'unicase/u16-ct-totitle'.
37738         * lib/unicase/u16-ct-totitle.c: New file.
37739         * modules/unicase/u16-ct-totitle: New file.
37740
37741         New module 'unicase/u8-ct-totitle'.
37742         * lib/unicase/u8-ct-totitle.c: New file.
37743         * lib/unicase/u-ct-totitle.h: New file, derived from
37744         lib/unicase/u-totitle.h.
37745         * modules/unicase/u8-ct-totitle: New file.
37746
37747         New module 'unicase/u32-ct-tolower'.
37748         * lib/unicase/u32-ct-tolower.c: New file.
37749         * modules/unicase/u32-ct-tolower: New file.
37750
37751         New module 'unicase/u16-ct-tolower'.
37752         * lib/unicase/u16-ct-tolower.c: New file.
37753         * modules/unicase/u16-ct-tolower: New file.
37754
37755         New module 'unicase/u8-ct-tolower'.
37756         * lib/unicase/u8-ct-tolower.c: New file.
37757         * modules/unicase/u8-ct-tolower: New file.
37758
37759         New module 'unicase/u32-ct-toupper'.
37760         * lib/unicase/u32-ct-toupper.c: New file.
37761         * modules/unicase/u32-ct-toupper: New file.
37762
37763         New module 'unicase/u16-ct-toupper'.
37764         * lib/unicase/u16-ct-toupper.c: New file.
37765         * modules/unicase/u16-ct-toupper: New file.
37766
37767         New module 'unicase/u8-ct-toupper'.
37768         * lib/unicase/u8-ct-toupper.c: New file.
37769         * modules/unicase/u8-ct-toupper: New file.
37770
37771         Add context arguments to u*_casemap functions.
37772         * lib/unicase/unicasemap.h: Include unicase.h.
37773         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37774         suffix_context arguments.
37775         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37776         functions.
37777         (FUNC): Add prefix_context and suffix_context arguments. Use
37778         uc_is_cased and uc_is_case_ignorable.
37779         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37780         * lib/unicase/u16-casemap.c: Likewise.
37781         * lib/unicase/u32-casemap.c: Likewise.
37782         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37783         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37784         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37785         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37786         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37787         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37788
37789         New module 'unicase/u32-suffix-context'.
37790         * lib/unicase/u32-suffix-context.c: New file.
37791         * modules/unicase/u32-suffix-context: New file.
37792
37793         New module 'unicase/u16-suffix-context'.
37794         * lib/unicase/u16-suffix-context.c: New file.
37795         * modules/unicase/u16-suffix-context: New file.
37796
37797         New module 'unicase/u8-suffix-context'.
37798         * lib/unicase/u8-suffix-context.c: New file.
37799         * lib/unicase/u-suffix-context.h: New file.
37800         * modules/unicase/u8-suffix-context: New file.
37801
37802         New module 'unicase/empty-suffix-context'.
37803         * lib/unicase/empty-suffix-context.c: New file.
37804         * modules/unicase/empty-suffix-context: New file.
37805
37806         New module 'unicase/u32-prefix-context'.
37807         * lib/unicase/u32-prefix-context.c: New file.
37808         * modules/unicase/u32-prefix-context: New file.
37809
37810         New module 'unicase/u16-prefix-context'.
37811         * lib/unicase/u16-prefix-context.c: New file.
37812         * modules/unicase/u16-prefix-context: New file.
37813
37814         New module 'unicase/u8-prefix-context'.
37815         * lib/unicase/u8-prefix-context.c: New file.
37816         * lib/unicase/u-prefix-context.h: New file.
37817         * lib/unicase/context.h: New file.
37818         * modules/unicase/u8-prefix-context: New file.
37819
37820         New module 'unicase/empty-prefix-context'.
37821         * lib/unicase/empty-prefix-context.c: New file.
37822         * modules/unicase/empty-prefix-context: New file.
37823
37824         New module 'unicase/ignorable'.
37825         * lib/unicase/ignorable.c: New file.
37826         * modules/unicase/ignorable: New file.
37827
37828         New module 'unicase/cased'.
37829         * lib/unicase/caseprop.h: New file.
37830         * lib/unicase/cased.c: New file.
37831         * modules/unicase/cased: New file.
37832
37833         New functions for case mapping of substrings.
37834         * lib/unicase.h (casing_prefix_context_t): New type.
37835         (unicase_empty_prefix_context): New variable.
37836         (u8_casing_prefix_context, u16_casing_prefix_context,
37837         u32_casing_prefix_context, u8_casing_prefixes_context,
37838         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37839         declarations.
37840         (casing_suffix_context_t): New type.
37841         (unicase_empty_suffix_context): New variable.
37842         (u8_casing_suffix_context, u16_casing_suffix_context,
37843         u32_casing_suffix_context, u8_casing_suffixes_context,
37844         u16_casing_suffixes_context, u32_casing_suffixes_context,
37845         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37846         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37847         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37848         declarations.
37849
37850 2009-06-28  Jim Meyering  <meyering@redhat.com>
37851
37852         boostrap: indent only with spaces
37853         * build-aux/bootstrap: Indent only with spaces, never TABs.
37854
37855         bootstrap: split long lines
37856         * build-aux/bootstrap: Keep line length < 80.
37857
37858         bootstrap: sync from coreutils
37859         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37860         just as autoreconf does.  Verify a list of prerequisite
37861         package-name,version-number pairs if defined in bootstrap.conf.
37862         Refer to README-prereq, if prerequisites are not satisfied.
37863
37864 2009-06-27  Eric Blake  <ebb9@byu.net>
37865
37866         tests: add test for bogus NULL definition
37867         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37868         * tests/test-stdlib.c: Likewise.
37869         * tests/test-string.c: Likewise.
37870         * tests/test-locale.c: Likewise.
37871         * tests/test-unistd.c: Likewise.
37872         * modules/stdio-tests (Depends-on): Add verify.
37873         * modules/stdlib-tests (Depends-on): Likewise.
37874         * modules/string-tests (Depends-on): Likewise.
37875         * modules/locale-tests (Depends-on): Likewise.
37876         * modules/unistd-tests (Depends-on): Likewise.
37877
37878 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37879
37880         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37881         self-explaining comment.
37882         * m4/selinux-selinux-h: Update serial.
37883         (gl_LIBSELINUX): New macro, adding a warning for missing development
37884         packages to code extracted from...
37885         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37886         Add warning for missing development packages here, too.
37887
37888 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37889
37890         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37891
37892 2009-06-25  Eric Blake  <ebb9@byu.net>
37893
37894         version-etc: fix regression
37895         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37896         gcc.
37897         (version_etc): Use it, to catch bugs with trailing NULL.
37898         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37899         (version_etc_va): Fix logic bug.
37900         * modules/version-etc-tests: Add test.
37901         * tests/test-version-etc.c: New file.
37902         * tests/test-version-etc.sh: Likewise.
37903
37904 2009-06-25  Sam Steingold  <sds@gnu.org>
37905
37906         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37907         mbtowc declaration.
37908
37909 2009-06-25  Eric Blake  <ebb9@byu.net>
37910
37911         fpurge: migrate into <stdio.h>
37912         * lib/fpurge.h: Delete...
37913         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37914         * lib/fpurge.c (fpurge): Change declaring header.
37915         * modules/fpurge (Files): Drop deleted file.
37916         (Depends-on): Add stdio.
37917         (configure.ac): Set witness.
37918         * modules/stdio (Makefile.am): Support fpurge macros.
37919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37920         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37921         * lib/fflush.c: Update client.
37922         * tests/test-fpurge.c: Likewise.
37923         * NEWS: Mention the change.
37924
37925 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37926
37927         * lib/argp-version-etc.c (program_authors): Add const
37928         qualifier.
37929         * lib/version-etc.c: Fix typos in the comments.
37930         * modules/argp-version-etc: Depends on version-etc.
37931
37932 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37933
37934         argp-version-etc: new module.
37935
37936         * lib/argp-version-etc.c: New file.
37937         * lib/argp-version-etc.h: New file.
37938         * modules/argp-version-etc: New file.
37939         * modules/argp-version-etc-tests: New file.
37940         * tests/test-argp-version-etc.c: New test.
37941         * tests/test-argp-version-etc-1.sh: New test.
37942
37943 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37944
37945         Provide additional interfaces and documentation for version-etc
37946         module.
37947
37948         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37949         interfaces.
37950         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37951         prototypes.
37952
37953 2009-06-24  Bruno Haible  <bruno@clisp.org>
37954
37955         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37956         HAVE_LIB${NAME} macro.
37957         Reported by Sam Steingold <sds@gnu.org>.
37958
37959 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37960
37961         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37962         needed.
37963
37964 2009-06-21  Bruno Haible  <bruno@clisp.org>
37965
37966         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37967         work.
37968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37969         together with LIB${NAME}, LTLIB${NAME}.
37970         Reported by Sam Steingold <sds@gnu.org>.
37971
37972 2009-06-20  Jim Meyering  <meyering@redhat.com>
37973
37974         tests: make sc_require_test_exit_idiom more generic
37975         * top/maint.mk (Exit_witness_file): New overridable variable.
37976         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37977         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37978
37979 2009-06-19  Jim Meyering  <meyering@redhat.com>
37980
37981         hash: reverse order of src/dst parameters in an internal interface
37982         * lib/hash.c (transfer_entries): Reverse order of parameters to
37983         put DST before SRC.  Adjust callers.
37984
37985         tests: test-hash: avoid wholesale duplication
37986         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37987         Instead, use a loop and add a single conditional.
37988
37989         tests: test-hash: allow seed selection via a command line argument
37990         * tests/test-hash.c (get_seed): New function.
37991         (main): Use it.
37992
37993 2009-06-19  Eric Blake  <ebb9@byu.net>
37994
37995         hash: avoid memory leak on allocation failure
37996         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37997         failure.  Factor repeated algorithm...
37998         (transfer_entries): ...into new helper routine.
37999         (hash_delete): React to hash_rehash return value.
38000
38001         hash: reduce memory pressure in hash_rehash no-op case
38002         * lib/hash.c (next_prime): Avoid overflow.
38003         (hash_initialize): Factor bucket size computation...
38004         (compute_bucket_size): ...into new helper function.
38005         (hash_rehash): Use new function and open coding to reduce memory
38006         pressure, and avoid a memory leak in USE_OBSTACK code.
38007         Reported by Jim Meyering.
38008
38009 2009-06-18  Eric Blake  <ebb9@byu.net>
38010
38011         hash: make rotation more obvious
38012         * modules/hash (Depends-on): Add bitrotate and stdint.
38013         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38014         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38015         (SIZE_MAX): Rely on headers for definition.
38016         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38017         (raw_hasher): Use rotr_sz.
38018         Suggested by Jim Meyering.
38019
38020         hash: fix memory leak in last patch
38021         * lib/hash.c (hash_rehash): Avoid memory leak.
38022
38023         hash: avoid no-op rehashing
38024         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38025
38026         hash: provide default callback functions
38027         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38028         (hash_initialize): Use them as defaults.
38029         * tests/test-hash.c (main): Test this.
38030
38031         hash: minor optimization
38032         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38033         when possible.
38034         (hash_initialize): Document this promise.
38035         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38036         * tests/test-hash.c (hash_compare_strings): Test this.
38037
38038 2009-06-18  Bruno Haible  <bruno@clisp.org>
38039
38040         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38041         going to be replaced anyway.
38042
38043 2009-06-18  Bruno Haible  <bruno@clisp.org>
38044
38045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38046         in one place.
38047         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38048         be replaced anyway.
38049
38050 2009-06-18  Eric Blake  <ebb9@byu.net>
38051
38052         hash: check for resize before insertion
38053         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38054         threshold before insertion, so that a pathological hash_rehash
38055         that fills every bucket can still trigger another rehash.
38056
38057 2009-06-18  Jim Meyering  <meyering@redhat.com>
38058
38059         hash-tests: add a loop around the small tests
38060         * tests/test-hash.c (main): Repeat small tests with selected
38061         small initial table sizes.
38062
38063 2009-06-17  Eric Blake  <ebb9@byu.net>
38064
38065         hash: minor cleanups
38066         * lib/hash.h (hash_entry): Make opaque, by moving...
38067         * lib/hash.c (hash_entry): ...here.
38068         (hash_insert): Clarify restrictions on what can be inserted.
38069         (hash_get_next): Clarify when it is safe to remove an element
38070         during traversal.
38071         (check_tuning): Skip verification when tuning is known safe.
38072         (hash_initialize): Clarify restrictions on tuning.
38073
38074 2009-06-17  Jim Meyering  <jim@meyering.net>
38075         and Eric Blake  <ebb9@byu.net>
38076
38077         hash-tests: new module
38078         * modules/hash-tests: New file.
38079         * tests/test-hash.c: New file.
38080
38081 2009-06-17  Eric Blake  <ebb9@byu.net>
38082
38083         strstr-simple: document new module
38084         * MODULES.html.sh: Document new module.
38085
38086         strstr, strcasestr: replace on platforms with broken memchr
38087         * modules/strstr: Split into...
38088         * modules/strstr-simple: ...new module that does not care about
38089         performance, but does care about glibc bug.
38090         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38091         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38092         if platform memchr is broken, per Debian bug 521737.
38093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38094         memchr.
38095         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38096         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38097         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38098         * modules/mountlist (Depends-on): Add strstr-simple.
38099         * modules/gen-uni-tables (Depends-on): Likewise.
38100         * modules/argz (Depends-on): Add strstr.
38101
38102 2009-06-17  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/posix_spawn-internal (Depends-on): Add errno.
38105
38106 2009-06-17  Bruno Haible  <bruno@clisp.org>
38107
38108         Define missing ESTALE on Interix 3.5.
38109         * lib/errno.in.h (ESTALE): Assign a value if missing.
38110         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38111         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38112         missing.
38113         * doc/posix-headers/errno.texi: Mention the Interix bug.
38114         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38115
38116 2009-06-15  Eric Blake  <ebb9@byu.net>
38117
38118         memchr, memchr2: add valgrind exception
38119         * lib/memchr.valgrind: New file.
38120         * lib/memchr2.valgrind: New file.
38121         * modules/memchr (Files): Distribute valgrind file.
38122         * modules/memchr2 (Files): Likewise.
38123
38124         docs: memchr is no longer obsolete
38125         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38126         * lib/string.in.h (memchr): Simplify logic.
38127
38128 2009-06-14  Jim Meyering  <meyering@redhat.com>
38129
38130         link-follow: fix the "checking..." message to not mention trailing slash
38131         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38132         never considered trailing slashes.
38133
38134 2009-06-14  Bruno Haible  <bruno@clisp.org>
38135
38136         * m4/memchr.m4: Mention also the bug on IA-64.
38137         * doc/posix-functions/memchr.texi: Likewise.
38138
38139 2009-06-12  Eric Blake  <ebb9@byu.net>
38140
38141         memchr: detect broken x86_64 and alpha implementations
38142         * modules/memchr-tests (Depends-on): Move mmap detection...
38143         * modules/memchr (Depends-on): ...here.
38144         (configure.ac): Set indicator.
38145         * lib/string.in.h (memchr): Declare replacement.
38146         * modules/string (Makefile.am): Trigger replacement.
38147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38149         bugs.
38150         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38151         * modules/getpagesize (License): Relax license.
38152
38153 2009-06-11  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/idpriv.h: Add more references.
38156
38157 2009-06-08  Bruno Haible  <bruno@clisp.org>
38158
38159         Tests for module 'idpriv-droptemp'.
38160         * modules/idpriv-droptemp-tests: New file.
38161         * tests/test-idpriv-droptemp.sh: New file.
38162         * tests/test-idpriv-droptemp.su.sh: New file.
38163         * tests/test-idpriv-droptemp.c: New file.
38164
38165         New module 'idpriv-droptemp'.
38166         * lib/idpriv-droptemp.c: New file.
38167         * modules/idpriv-droptemp: New file.
38168
38169 2009-06-08  Bruno Haible  <bruno@clisp.org>
38170
38171         Tests for module 'idpriv-drop'.
38172         * modules/idpriv-drop-tests: New file.
38173         * tests/test-idpriv-drop.sh: New file.
38174         * tests/test-idpriv-drop.su.sh: New file.
38175         * tests/test-idpriv-drop.c: New file.
38176
38177         New module 'idpriv-drop'.
38178         * lib/idpriv.h: New file.
38179         * lib-idpriv-drop.c: New file.
38180         * m4/idpriv.m4: New file.
38181         * modules/idpriv-drop: New file.
38182
38183 2009-06-08  Bruno Haible  <bruno@clisp.org>
38184
38185         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38186         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38187         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38188         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38189         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38190         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38191         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38192
38193 2009-06-08  Eric Blake  <ebb9@byu.net>
38194
38195         test-strstr: use memory fence, when possible
38196         * tests/test-strstr.c (main): Use memory fence, in order to be
38197         more likely to trigger Debian bug 521737.
38198         * modules/strstr-tests (Files): Pull in additional files.
38199
38200         memchr: no longer obsolete, for wider field testing
38201         * modules/memchr (Status, Notice): Delete, this module is no
38202         longer obsolete.
38203         * modules/vasnprintf (Depends-on): Add memchr.
38204
38205 2009-06-07  Jim Meyering  <meyering@redhat.com>
38206
38207         hash: declare some functions with the warn_unused_result attribute
38208         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38209
38210 2009-06-07  Bruno Haible  <bruno@clisp.org>
38211
38212         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38213         Reported by Eric Blake.
38214
38215 2009-06-06  Eric Blake  <ebb9@byu.net>
38216
38217         test-alignof: fix typo with long double
38218         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38219         compiler error.
38220
38221 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38222
38223         Escape non-texinfo { and }s.
38224         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38225         markup error.
38226
38227 2009-06-04  Jim Meyering  <meyering@redhat.com>
38228
38229         gitlog-to-changelog: don't infloop on an empty commit log
38230         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38231         Reported by Boris Petersen <transacid@centerim.org>.
38232
38233 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38234
38235         version-etc: extend for packagers
38236         Add three new configure options, intended for packagers:
38237           --with-packager="packager name"
38238           --with-packager-version="packager-specific version"
38239           --with-packager-bug-reports="packager bug reporting"
38240         An example with coreutils:
38241           $ ./configure \
38242             --with-packager=Gentoo \
38243             --with-packager-bug-report=http://bugs.gentoo.org/ \
38244             --with-packager-version="patchset 1.6"
38245           $ ./src/ls --version | head -n2
38246           ls (GNU coreutils) 7.1-dirty
38247           Packaged by Gentoo (patchset 1.6)
38248         Note that the bug reporting info via --help doesn't show up because
38249         coreutils uses its own custom emit_bug_reporting_address() implementation
38250         in src/system.h.  If it didn't, it'd look like:
38251           $ ./src/ls --help | tail -n4
38252           Report bugs to <bug-coreutils@gnu.org>.
38253           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38254           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38255           General help using GNU software: <http://www.gnu.org/gethelp/>.
38256         * lib/version-etc.c: Print new information, if provided.
38257         * m4/version-etc.m4: New file.
38258         * modules/version-etc (Files): Add m4/version-etc.m4.
38259         (configure.ac): Add gl_VERSION_ETC.
38260
38261 2009-05-31  Bruno Haible  <bruno@clisp.org>
38262
38263         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38264         and 'int64_t'.
38265         * modules/alignof-tests (Dependencies): Add stdint.
38266         Reported by Eric Blake.
38267
38268 2009-05-31  Bruno Haible  <bruno@clisp.org>
38269
38270         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38271         restriction due to compiler bugs.
38272         Reported by Eric Blake.
38273
38274 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38275             Bruno Haible  <bruno@clisp.org>
38276
38277         Fix test-alignof failure.
38278         * lib/alignof.h (alignof_slot): New macro.
38279         (alignof_type): New macro, with the same semantics as the previous
38280         'alignof'.
38281         (alignof): Alias to alignof_slot.
38282         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38283         check that the results are usable as constant expressions.
38284
38285 2009-05-31  Bruno Haible  <bruno@clisp.org>
38286
38287         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38288         * tests/test-memchr.c (main): Check that memchr does not read past the
38289         first occurrence of the byte.
38290         * tests/test-strstr.c (main): Update comment.
38291         Suggested by Eric Blake.
38292
38293 2009-05-30  Bruno Haible  <bruno@clisp.org>
38294
38295         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38296         detail how to use dumpbin.
38297         Reported by David Byron <dbyron@dbyron.com>.
38298
38299 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38300
38301         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38302
38303 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38304
38305         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38306
38307 2009-05-28  Bruno Haible  <bruno@clisp.org>
38308
38309         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38310         build-aux/ files.
38311
38312 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38313
38314         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38315
38316 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38317
38318         * gnulib-tool (sed_transform_main_lib_file)
38319         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38320         regexps.
38321
38322 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38323
38324         * tests/test-strstr.c: Add another self-test.
38325         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38326         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38327
38328 2009-05-23  Bruno Haible  <bruno@clisp.org>
38329
38330         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38331         change.
38332
38333 2009-05-21  Bruno Haible  <bruno@clisp.org>
38334
38335         Simplify use of mode_t varargs.
38336         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38337         uses 'mode_t' or 'int'.
38338         * lib/openat.c (openat): Likewise.
38339         * lib/open-safer.c (open_safer): Likewise.
38340         * m4/mode_t.m4: New file.
38341         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38342         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38343         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38344         * modules/open (Files): Add m4/mode_t.m4.
38345         * modules/openat (Files): Likewise.
38346         * modules/fcntl-safer (Files): Likewise.
38347         Suggested by Eric Blake.
38348
38349 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38350
38351         * doc/glibc-functions/fallocate.texi: New file.
38352         * doc/gnulib.texi: Include it.
38353
38354 2009-05-21  Eric Blake  <ebb9@byu.net>
38355             Bruno Haible  <bruno@clisp.org>
38356
38357         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38358         invocations.
38359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38360
38361 2009-05-21  Eric Blake  <ebb9@byu.net>
38362             Bruno Haible  <bruno@clisp.org>
38363
38364         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38365         include_next. Fix of 2008-11-20 commit.
38366         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38367         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38368         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38369         NEXT_MATH_H.
38370         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38371         instead of NEXT_MATH_H.
38372
38373 2009-05-21  Bruno Haible  <bruno@clisp.org>
38374
38375         Avoid redefinition warnings for SIZE_MAX.
38376         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38377         Reported by Simon Josefsson.
38378
38379 2009-05-21  Bruno Haible  <bruno@clisp.org>
38380
38381         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38382         AC_CACHE_VAL.
38383
38384 2009-05-20  Bruno Haible  <bruno@clisp.org>
38385
38386         Make zeroptr.h work on mingw.
38387         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38388         mprotect.
38389         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38390         * modules/memchr2-tests (configure.ac): Likewise.
38391         * modules/memcmp-tests (configure.ac): Likewise.
38392         * modules/memmem-tests (configure.ac): Likewise.
38393         * modules/memrchr-tests (configure.ac): Likewise.
38394         Reported by Simon Josefsson.
38395
38396 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38397
38398         * tests/test-glob.c: Include string.h for strcmp prototype.
38399
38400 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38401
38402         * modules/getdelim (Depends-on): Add explicit stdint, although it
38403         was implicitly already pulled in via realloc-posix.
38404         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38405
38406 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38407
38408         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38409         G. Christensen" <tgc@jupiterrise.com>.
38410         * m4/sys_socket_h.m4: Check for sa_family_t.
38411         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38412         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38413         * tests/test-sys_socket.c: Check that sa_family_t works.
38414
38415 2009-05-18  Eric Blake  <ebb9@byu.net>
38416
38417         maint.mk: allow gnulib_dir in VPATH build
38418         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38419
38420 2009-05-15  Jim Meyering  <meyering@redhat.com>
38421
38422         maint.mk: Give gnulib_dir a default definition.
38423         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38424         Thus, most packages no longer need to specify this variable in cfg.mk
38425
38426 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38427
38428         rename.m4: fix typos that would make non-mingw cross-configure fail
38429         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38430
38431 2009-05-13  Eric Blake  <ebb9@byu.net>
38432
38433         mmap-anon: avoid out-of-order autoconf expansion
38434         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38435         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38436         * modules/memchr-tests (Depends-on): Add extensions.
38437         * modules/memchr2-tests (Depends-on): Add extensions.
38438         * modules/memcmp-tests (Depends-on): Add extensions.
38439         * modules/memmem-tests (Depends-on): Add extensions.
38440         * modules/memrchr-tests (Depends-on): Add extensions.
38441
38442 2009-05-13  Bruno Haible  <bruno@clisp.org>
38443
38444         Make some tests ISO C 99 compliant.
38445         * tests/zerosize-ptr.h: New file.
38446         * tests/test-memchr.c: Include zerosize-ptr.h.
38447         (main): Use a zero-size object pointer instead of NULL.
38448         * tests/test-memchr2.c: Include zerosize-ptr.h.
38449         (main): Use a zero-size object pointer instead of NULL.
38450         * tests/test-memcmp.c: Include zerosize-ptr.h.
38451         (main): Use a zero-size object pointer instead of NULL.
38452         * tests/test-memmem.c: Include zerosize-ptr.h.
38453         (main): Use a zero-size object pointer instead of NULL.
38454         * tests/test-memrchr.c: Include zerosize-ptr.h.
38455         (main): Use a zero-size object pointer instead of NULL.
38456         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38457         m4/mmap-anon.m4.
38458         (Depends-on): Add getpagesize.
38459         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38460         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38461         m4/mmap-anon.m4.
38462         (Depends-on): Add getpagesize.
38463         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38464         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38465         m4/mmap-anon.m4.
38466         (Depends-on): Add getpagesize.
38467         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38468         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38469         m4/mmap-anon.m4.
38470         (Depends-on): Add getpagesize.
38471         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38472         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38473         m4/mmap-anon.m4.
38474         (Depends-on): Add getpagesize.
38475         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38476
38477 2009-05-12  Bruno Haible  <bruno@clisp.org>
38478
38479         Tests for module 'alignof'.
38480         * modules/alignof-tests: New file.
38481         * tests/test-alignof.c: New file.
38482
38483 2009-05-12  Bruno Haible  <bruno@clisp.org>
38484
38485         Fix alignof macro.
38486         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38487         vendor compilers that are always correct.
38488
38489 2009-05-12  Bruno Haible  <bruno@clisp.org>
38490
38491         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38493         not whether its fully works.
38494
38495 2009-05-12  Bruno Haible  <bruno@clisp.org>
38496
38497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38498
38499 2009-05-12  Jim Meyering  <meyering@redhat.com>
38500
38501         * top/maint.mk: Adjust backslash alignment.
38502
38503 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38504
38505         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38506
38507 2009-05-11  Eric Blake  <ebb9@byu.net>
38508
38509         argp: avoid undefined behavior
38510         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38511         macros.
38512
38513 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38514
38515         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38516         user.name to prevent git commit from complaining.
38517
38518 2009-05-10  Bruno Haible  <bruno@clisp.org>
38519
38520         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38521         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38522         it rewrites every file name only once.
38523         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38524
38525 2009-05-08  Bruno Haible  <bruno@clisp.org>
38526
38527         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38528         instead of 'max'.
38529
38530 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38531
38532         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38533         sockaddr_storage test.
38534
38535 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38536
38537         * modules/sys_socket (Makefile.am): Substitute
38538         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38539         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38540         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38541         * tests/test-sys_socket.c: Check sockaddr_storage.
38542
38543 2009-05-08  Bruno Haible  <bruno@clisp.org>
38544
38545         New module 'alignof'.
38546         * lib/alignof.h: New file.
38547         * modules/alignof: New file.
38548
38549 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38550             Bruno Haible  <bruno@clisp.org>
38551
38552         Fix test-file-has-acl on FreeBSD.
38553         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38554         mask is implicitly added.
38555         * tests/test-file-has-acl.c: Include <signal.h>.
38556         (main): Terminate the test after 5 seconds.
38557         * modules/acl-tests (configure.ac): Check for alarm function.
38558
38559 2009-05-04  Bruno Haible  <bruno@clisp.org>
38560
38561         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38563         * modules/errno (configure.ac): Drop AC_REQUIRE.
38564         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38565         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38566
38567 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38568
38569         * modules/glob-tests: New module.
38570         * tests/test-glob.c: Add.
38571
38572 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38573
38574         * modules/fnmatch-tests: New module.
38575         * tests/test-fnmatch.c: Add.
38576
38577 2009-05-04  Eric Blake  <ebb9@byu.net>
38578
38579         maint: make the new no-submodule-changes rule VPATH-safe
38580         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38581
38582 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38583             Bruno Haible  <bruno@clisp.org>
38584
38585         acl: Fix infinite loop on FreeBSD.
38586         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38587         of return value from acl_get_entry.
38588         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38589         Likewise.
38590
38591 2009-05-03  Bruno Haible  <bruno@clisp.org>
38592
38593         * lib/acl-internal.h (acl_entries): Clarify return value.
38594         * lib/acl_entries.c (acl_entries): Likewise.
38595
38596 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38597
38598         Bug fix in acl module.
38599         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38600
38601 2009-05-03  Bruno Haible  <bruno@clisp.org>
38602
38603         Create gperf-generated file in the source dir, not in the build dir.
38604         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38605         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38606         * modules/unicase/locale-language (unicase/locale-languages.h):
38607         Likewise.
38608         * modules/unicase/special-casing (unicase/special-casing-table.h):
38609         Likewise.
38610         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38611         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38612         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38613         Reported by Ralf Wildenhues.
38614
38615 2009-05-03  Bruno Haible  <bruno@clisp.org>
38616
38617         * modules/fnmatch (Description, configure.ac): Taken from
38618         fnmatch-posix.
38619         * modules/fnmatch-posix: Turn into a symbolic reference to the
38620         'fnmatch' module, and deprecate.
38621         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38622
38623 2009-05-03  Bruno Haible  <bruno@clisp.org>
38624
38625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38626         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38627         Reported by Ralf Wildenhues.
38628
38629 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38630
38631         * m4/fnmatch.m4: Fix fnmatch re-define.
38632
38633 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38634
38635         priv-set: new module and tests; adapt write-any-file
38636         * lib/priv-set.c: New file.
38637         * lib/priv-set.h: New file.
38638         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38639         * lib/write-any-file.c: Simplify by using priv-set module.
38640         * m4/priv-set.m4: New file.
38641         * modules/priv-set: New file.
38642         * modules/unlinkdir: Add dependency on priv-set module.
38643         * modules/write-any-file: Likewise.
38644
38645         Tests for module 'priv-set'.
38646         * modules/priv-set-tests: New file.
38647         * tests/test-priv-set.c: New file.
38648
38649 2009-05-03  Jim Meyering  <meyering@redhat.com>
38650             Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38653         use the converted UTF-8 variant of the name instead.
38654
38655 2009-05-03  Jim Meyering  <meyering@redhat.com>
38656
38657         tests: tighten some getdate tests
38658         * tests/test-getdate.c (main): Tighten tests: require equality,
38659         not just greater than.  Set TZ envvar to UTC0.
38660
38661 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38662
38663         getdate: correctly interpret "next monday" when run on a Monday
38664         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38665         that e.g., "next tues" (when run on a tuesday) results in a date
38666         that is one week in the future, and not today's date.
38667         I.e., add a week when the wday is the same as the current one.
38668         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38669         and earlier by Martin Bernreuther and Jan Minář.
38670         * tests/test-getdate.c (main): Check that "next DAY" is always in
38671         the future and that "last DAY" is always in the past.
38672
38673 2009-05-02  Jim Meyering  <meyering@redhat.com>
38674
38675         build: ensure that a release build fails when a submodule is unclean
38676         * top/maint.mk (no-submodule-changes): New rule.
38677         (alpha beta major): Depend on it.
38678
38679 2009-05-02  Bruno Haible  <bruno@clisp.org>
38680
38681         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38682         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38683         shell variable gl_fnmatch_required to detect which variant is
38684         requested.
38685         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38686         gl_FUNC_FNMATCH_POSIX.
38687         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38688         exclude fnmatch-posix.
38689
38690 2009-05-02  Bruno Haible  <bruno@clisp.org>
38691
38692         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38693         * modules/mbsrtowcs (License): Change to LGPLv2+.
38694         * modules/strnlen1 (License): Likewise.
38695         Reported by Simon Josefsson.
38696
38697 2009-05-02  Bruno Haible  <bruno@clisp.org>
38698
38699         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38700         "cross".
38701         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38702         gnulib-tool was called with option --source-base=lib.
38703
38704 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38705
38706         Use automake *-local hooks without commands, for extensibility.
38707         * modules/localcharset (Makefile.am): Rename install-exec-local
38708         rule to install-exec-localcharset, and make it a prerequisite of
38709         install-exec-local.  Likewise, rename the uninstall-local rule to
38710         uninstall-localcharset, and make it a prerequisite of the former.
38711
38712 2009-05-01  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38715         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38716         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38718         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38719         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38720         m4/locale-zh.m4, m4/codeset.m4.
38721
38722         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38723         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38724         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38725         m4/locale-zh.m4.
38726
38727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38728         REPLACE_WCRTOMB if mbstate_t must be replaced.
38729         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38730         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38731
38732 2009-05-01  Bruno Haible  <bruno@clisp.org>
38733
38734         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38735         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38736         dngettext, dcngettext, textdomain, bindtextdomain,
38737         bind_textdomain_codeset): Undefine before redefining.
38738
38739 2009-04-30  Bruno Haible  <bruno@clisp.org>
38740
38741         Fix bug introduced on 2009-04-25.
38742         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38743         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38744         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38745         is defined.
38746         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38747         is defined.
38748         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38749         is defined.
38750         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38751
38752 2009-04-28  Bruno Haible  <bruno@clisp.org>
38753
38754         Comment tweaks.
38755         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38756         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38757         * lib/unicase.h (u*_casexfrm): Likewise.
38758         Reported by Paolo Bonzini.
38759
38760 2009-04-28  Bruno Haible  <bruno@clisp.org>
38761
38762         Fix a compilation error.
38763         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38764         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38765         Reported by Jim Meyering.
38766
38767 2009-04-27  Bruno Haible  <bruno@clisp.org>
38768
38769         New module 'libunistring'.
38770         * modules/libunistring: New file.
38771         * m4/libunistring.m4: New file.
38772         * MODULES.html.sh (Unicode string functions): Add it.
38773
38774 2009-04-27  Eric Blake  <ebb9@byu.net>
38775
38776         maint.mk: allow package-specific header to provide <config.h>
38777         * top/maint.mk (sc_require_config_h): New variable.
38778         (sc_require_config_h, sc_require_config_h_first): Use it.
38779
38780 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38781
38782         * top/maint.mk (sc_avoid_if_before_free): Except
38783         useless-if-before-free script.
38784
38785 2009-04-27  Eric Blake  <ebb9@byu.net>
38786
38787         maintainer-makefile: depend on all required helper scripts
38788         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38789         useless-if-before-free.
38790         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38791         version, rather than assuming gnulib checkout is available.
38792         Reported by Simen Josefsson.
38793
38794 2009-04-26  Bruno Haible  <bruno@clisp.org>
38795
38796         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38797         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38798         "../" or "..".
38799
38800 2009-04-26  Bruno Haible  <bruno@clisp.org>
38801
38802         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38803         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38804         AC_LIB_HAVE_LINKFLAGS.
38805
38806 2009-04-26  Bruno Haible  <bruno@clisp.org>
38807
38808         Simplify calling convention of u*_conv_from_encoding.
38809         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38810         u32_conv_from_encoding): Expect a resultbuf argument and return the
38811         result directly as a pointer.
38812         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38813         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38814         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38815         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38816         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38817         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38818         Update.
38819         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38820         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38821         * lib/vasnprintf.c (VASNPRINTF): Update.
38822         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38823         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38824         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38825         * NEWS: Mention the change.
38826
38827 2009-04-26  Bruno Haible  <bruno@clisp.org>
38828
38829         Simplify calling convention of u*_conv_to_encoding.
38830         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38831         u32_conv_to_encoding): Expect a resultbuf argument and return the
38832         result directly as a pointer.
38833         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38834         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38835         freeing scaled_offsets if mem_iconveha failed.
38836         * lib/unicase/u-casexfrm.h (FUNC): Update.
38837         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38838         * lib/vasnprintf.c (VASNPRINTF): Update.
38839         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38840         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38841         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38842         * NEWS: Mention the change.
38843
38844 2009-04-26  Bruno Haible  <bruno@clisp.org>
38845
38846         Avoid test failures on AIX and OSF/1.
38847         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38848         malloc(0).
38849         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38850         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38851         Likewise.
38852         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38853         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38854         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38855         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38856         * doc/posix-functions/malloc.texi: Document the portability problem
38857         related to malloc(0).
38858
38859 2009-04-26  Bruno Haible  <bruno@clisp.org>
38860
38861         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38862         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38863         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38864
38865 2009-04-25  Bruno Haible  <bruno@clisp.org>
38866
38867         Avoid link error when creating a namespace clean library.
38868         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38869         as macro with arguments if already defined as an alias.
38870         * lib/signbitf.c (gl_signbitf): Don't undefine.
38871         * lib/signbitd.c (gl_signbitd): Don't undefine.
38872         * lib/signbitl.c (gl_signbitl): Don't undefine.
38873
38874 2009-04-25  Jim Meyering  <meyering@redhat.com>
38875
38876         vc-list-files: fix another quoting bug
38877         * build-aux/vc-list-files: Avoid sed backslash expansion
38878         of pathological directory names.
38879
38880 2009-04-25  Eric Blake  <ebb9@byu.net>
38881
38882         vc-list-files: fix shell quoting error
38883         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38884         timestamp.
38885
38886 2009-04-25  Jim Meyering  <meyering@redhat.com>
38887
38888         vc-list-files: restore lost functionality with subdir argument
38889         * build-aux/vc-list-files: When given a non-"." sub-directory
38890         argument, substitute the $dir/ prefix back onto each resulting name.
38891         Otherwise, coreutils' root_tests check would fail.
38892
38893 2009-04-24  Eric Blake  <ebb9@byu.net>
38894
38895         vc-list-files: ignore git symlinks
38896         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38897         than ls-files, to ignore git symlinks.
38898
38899         maint.mk: import improvements from m4
38900         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38901         (move_if_change): Delete unused macro.
38902         (news-date-check, vc-diff-check): Support VPATH builds.
38903         (announcement): Likewise.  Split --bootstrap-tools list...
38904         (boostrap-tools): ...into separate list, which can be overridden
38905         in cfg.mk.
38906         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38907         requiring dependency on useless-if-before-free module.
38908         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38909         Support VPATH builds.
38910
38911 2009-04-24  Jim Meyering  <meyering@redhat.com>
38912
38913         maint.mk: remove coreutils-specific rules and variables
38914         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38915         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38916         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38917
38918         maint.mk: remove obsolete rule
38919         * top/maint.mk (rel-check): Remove rule.
38920         (WGET, WGETFLAGS): Remove now-unused variables.
38921
38922 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38923
38924         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38925         consistency.
38926
38927         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38928         '$(PATH_SEPARATOR)' instead of ':'.
38929
38930 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38931
38932         * lib/getopt1.c (main): Use 'const' for static array.
38933
38934 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38935
38936         * top/maint.mk: Sync with coreutils.
38937         * NEWS: Explain incompatibilities.
38938
38939 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38940             Bruno Haible  <bruno@clisp.org>
38941
38942         Fix cross-compilation results.
38943         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38944         statement, as third argument of AC_TRY_RUN.
38945         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38946         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38947         Likewise.
38948         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38949         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38950         Likewise.
38951         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38953         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38954
38955 2009-04-20  Bruno Haible  <bruno@clisp.org>
38956
38957         Avoid test failure on mingw.
38958         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38959
38960 2009-04-20  Bruno Haible  <bruno@clisp.org>
38961
38962         Avoid compilation error on mingw.
38963         * modules/localename-tests (Depends-on): Add locale.
38964
38965 2009-04-19  Bruno Haible  <bruno@clisp.org>
38966
38967         Support for building a shared library on Windows platforms.
38968         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38969         (main): Test the presence of UNINORM_NFC here.
38970         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38971         (main): Test the presence of UNINORM_NFD here.
38972         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38973         (main): Test the presence of UNINORM_NFKC here.
38974         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38975         (main): Test the presence of UNINORM_NFKD here.
38976
38977 2009-04-19  Bruno Haible  <bruno@clisp.org>
38978
38979         Avoid a compiler warning.
38980         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38981         Change type of variable 'sequence'.
38982
38983 2009-04-19  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/configmake (Makefile.am): When the contents of configmake.h
38986         does not change, arrange to preserve its modification time.
38987
38988 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38989
38990         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38991         gettext domain.
38992
38993 2009-04-16  Jim Meyering  <meyering@redhat.com>
38994
38995         useless-if-before-free: improve conversion code
38996         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38997         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38998
38999 2009-04-14  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/fcntl (Depends-on): Add extensions.
39002         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39003
39004 2009-04-12  Ben Pfaff  <blp@gnu.org>
39005
39006         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39007         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39008
39009 2009-03-20  Ben Pfaff  <blp@gnu.org>
39010
39011         Make rename replace existing destinations on Windows.
39012         * m4/rename.m4: Add test for Mingw.
39013         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39014         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39015         * doc/posix-functions/rename.texi: Document.
39016
39017 2009-04-10  Bruno Haible  <bruno@clisp.org>
39018
39019         New include file "iconveh.h".
39020         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39021         * lib/striconveh.h: Include it.
39022         (enum iconv_ilseq_handler): Remove definition.
39023         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39024         striconveh.h.
39025         * lib/striconveha.c: Include striconveh.h.
39026         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39027         * modules/striconveh (Files): Add lib/iconveh.h.
39028         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39029         lib/striconveh.h.
39030
39031 2009-04-10  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/uniconv.h: Update comment.
39034
39035 2009-04-10  Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39038         always.
39039         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39040         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39041         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39042         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39043         "unistring-notinline.h", so that the function gets defined always.
39044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39045         * lib/unistr/u8-uctomb.c: Likewise.
39046         * lib/unistr/u16-mbtouc.c: Likewise.
39047         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39048         * lib/unistr/u16-uctomb.c: Likewise.
39049         * lib/unistr/u32-mbtouc.c: Likewise.
39050         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39051         * lib/unistr/u32-uctomb.c: Likewise.
39052
39053 2009-04-10  Bruno Haible  <bruno@clisp.org>
39054
39055         Mark 'utime' obsolete.
39056         * modules/utime (Status, Notice): New sections.
39057         Suggested by Jim Meyering.
39058
39059         Fix cross-compile guess for utime test.
39060         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39061         autoconf.
39062         * doc/posix-functions/utime.texi: Give more precisions.
39063         Reported by Jan <ipif@ymail.com>.
39064
39065 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39066
39067         filevercmp: correct today's change
39068         * lib/filevercmp.c: Also handle coreutils' test inputs.
39069         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39070
39071         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39072         for reporting it.
39073         * lib/filevercmp.c: Special handle for "", "." and "..".
39074         * tests/test-filevercmp.c: Enlarge the set suite.
39075
39076 2009-04-07  Jim Meyering  <meyering@redhat.com>
39077
39078         useless-if-before-free: show how to remove braced useless free, too
39079         * build-aux/useless-if-before-free: still only in a comment, though.
39080
39081 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39082
39083         maint.mk: import changes to syntax-check macros from coreutils
39084         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39085         Use them in the relevant macros.
39086
39087 2009-04-06  Bruno Haible  <bruno@clisp.org>
39088
39089         Fix unportable use of bit-fields.
39090         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39091         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39092         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39093
39094 2009-04-06  Bruno Haible  <bruno@clisp.org>
39095
39096         Avoid test failures on AIX and OSF/1.
39097         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39098         that malloc(0) = NULL.
39099         * tests/unicase/test-u8-tolower.c (check): Likewise.
39100         * tests/unicase/test-u8-totitle.c (check): Likewise.
39101         * tests/unicase/test-u8-toupper.c (check): Likewise.
39102         * tests/unicase/test-u16-casefold.c (check): Likewise.
39103         * tests/unicase/test-u16-tolower.c (check): Likewise.
39104         * tests/unicase/test-u16-totitle.c (check): Likewise.
39105         * tests/unicase/test-u16-toupper.c (check): Likewise.
39106         * tests/unicase/test-u32-casefold.c (check): Likewise.
39107         * tests/unicase/test-u32-tolower.c (check): Likewise.
39108         * tests/unicase/test-u32-totitle.c (check): Likewise.
39109         * tests/unicase/test-u32-toupper.c (check): Likewise.
39110         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39111         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39112         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39113         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39114         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39115         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39116         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39117         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39118         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39119         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39120         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39121         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39122
39123 2009-04-05  Bruno Haible  <bruno@clisp.org>
39124
39125         Work around an autoconf limitation.
39126         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39127         comment line if it would be longer than 3 KB.
39128
39129 2009-04-05  Bruno Haible  <bruno@clisp.org>
39130
39131         Avoid test failure with libiconv-1.13.
39132         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39133         of the expected test results.
39134
39135 2009-04-05  Bruno Haible  <bruno@clisp.org>
39136
39137         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39138         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39139         that it should be installed.
39140
39141 2009-04-05  Bruno Haible  <bruno@clisp.org>
39142
39143         * gnulib-tool: New option --copy-file.
39144         (func_usage): Document it.
39145         (func_dest_tmpfilename): Moved out of func_import.
39146         (func_add_file, func_update_file): New functions, extracted from
39147         func_import.
39148         (func_import): Update.
39149
39150 2009-04-05  Karl Berry  <karl@gnu.org>
39151
39152         * README: prominently mention gnulib-tool.
39153         Rearrange sections so getting the code is near the top.
39154
39155 2009-04-05  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/unicase.h: Mention u*_cmp2.
39158         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39159         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39160         * lib/unicase/ulc-casecmp.c: Likewise.
39161         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39162         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39163         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39164         unistr/u8-cmp.
39165         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39166         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39167         unistr/u16-cmp.
39168         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39169         unistr/u32-cmp.
39170
39171         * lib/uninorm.h: Mention u*_cmp2.
39172         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39173         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39174         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39175         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39176         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39177         unistr/u8-cmp.
39178         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39179         unistr/u16-cmp.
39180         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39181         unistr/u32-cmp.
39182
39183         New module 'unistr/u32-cmp2'.
39184         * lib/unistr/u32-cmp2.c: New file.
39185         * modules/unistr/u32-cmp2: New file.
39186
39187         New module 'unistr/u16-cmp2'.
39188         * lib/unistr/u16-cmp2.c: New file.
39189         * modules/unistr/u16-cmp2: New file.
39190
39191         New module 'unistr/u8-cmp2'.
39192         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39193         * lib/unistr/u8-cmp2.c: New file.
39194         * lib/unistr/u-cmp2.h: New file.
39195         * modules/unistr/u8-cmp2: New file.
39196
39197 2009-04-05  Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/unictype.h (uc_property_is_valid): New macro.
39200         * tests/unictype/test-pr_byname.c (main): Use it.
39201
39202         * lib/unistr.h: Doc fixes.
39203         * lib/uniconv.h: Doc fixes.
39204         * lib/unictype.h: Doc fixes.
39205
39206 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39207
39208         Port coreutils 7.2 to Solaris 8.
39209
39210         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39211         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39212         for Solaris 8.  This is a bit of a hack, as it means it's the
39213         caller's responsibility to add -lnsl if needed, but most likely it
39214         won't be needed since only getaddrinfo uses this and getaddrinfo
39215         isn't needed on Solaris 8.
39216
39217         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39218         problem to Solaris 8 encountered with coreutils 7.2, which
39219         resulted in a message "fnmatch.c:292: warning: passing argument 4
39220         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39221         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39222
39223 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39224
39225         * m4/ld-version-script.m4: Add FIXME comment.
39226
39227 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39228
39229         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39230         SOVERSION variable.
39231
39232 2009-04-02  Bruno Haible  <bruno@clisp.org>
39233
39234         * Makefile (info, html, dvi, pdf): Combine the rules.
39235         Suggested by Jim Meyering.
39236
39237 2009-04-01  Bruno Haible  <bruno@clisp.org>
39238
39239         * Makefile (info, html, dvi, pdf): New targets.
39240         Reported by Reuben Thomas <rrt@sc3d.org>.
39241
39242 2009-04-01  Bruno Haible  <bruno@clisp.org>
39243
39244         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39245         can be put into PATH.
39246         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39247
39248 2009-04-01  Bruno Haible  <bruno@clisp.org>
39249
39250         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39251
39252 2009-04-01  Bruno Haible  <bruno@clisp.org>
39253
39254         Rename module 'visibility'.
39255         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39256         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39257         * doc/gnulib.texi: Update.
39258         * MODULES.html.sh (Misc): Update.
39259         * NEWS: Mention the change.
39260
39261 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39262
39263         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39264         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39265         Eric Blake <ebb9@byu.net> for review.
39266         * MODULES.html.sh: Add lib-msvc-compat.
39267         * doc/gnulib.texi: Link to new section.
39268         * m4/ld-output-def.m4: New file.
39269         * doc/ld-output-def.texi: New file.
39270
39271 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39272
39273         Rename ld-version-script to lib-symbol-versions.  Suggested by
39274         Bruno Haible <bruno@clisp.org>.
39275         * modules/ld-version-script: Renamed to lib-symbol-versions.
39276         * doc/ld-version-script.texi: Fix module name.
39277         * MODULES.html.sh: Add lib-symbol-versions.
39278
39279 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39280
39281         * modules/u64-tests: New file.
39282         * tests/test-u64.c: New file.
39283
39284 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39285
39286         * MODULES.html.sh: Mention u64.
39287         * modules/u64: New module.
39288         * modules/crypto/sha512: Depend on u64 module instead of providing
39289         u64.h.
39290
39291 2009-03-27  Eric Blake  <ebb9@byu.net>
39292
39293         test-strerror: make debugging EAI_SYSTEM easier
39294         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39295         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39296         failure was EAI_SYSTEM.
39297
39298 2009-03-25  Bruno Haible  <bruno@clisp.org>
39299
39300         Fix a problem with --enable-relocatable on Solaris 7.
39301         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39302         since 2008-02-24.
39303
39304 2009-03-25  Eric Blake  <ebb9@byu.net>
39305
39306         test-sockets: avoid gcc warning
39307         * tests/test-sockets.c (main): Silence compiler warning.
39308
39309 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         New modules nproc, pthread, contributed by Glen Lenker.
39312
39313         * MODULES.html.sh: Add pthread, nproc.
39314         * lib/nproc.c: New file.
39315         * lib/nproc.h: New file.
39316         * lib/pthread.in.h: New file.
39317         * m4/pthread.m4: New file.
39318         * modules/nproc: New file.
39319         * modules/pthread: New file.
39320
39321 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39322
39323         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39324         New variable.
39325
39326 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39327
39328         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39329         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39330         * tests/test-filevercmp.c: Add tests for backup suffixes.
39331
39332 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39333
39334         * modules/stdlib (Depends-on): Add stdint, needed when defining
39335         struct random_data on, for example, HP-UX 10.20.  Reported by
39336         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39337
39338 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39339
39340         * lib/readline.c (readline): Call fflush on stdout after printing
39341         prompt.
39342
39343 2009-03-20  Bruno Haible  <bruno@clisp.org>
39344
39345         Remove dependency from 'close' module to -lws2_32 on native Windows.
39346         * lib/close-hook.h: New file.
39347         * lib/close-hook.c: New file.
39348         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39349         w32sock.h.
39350         (_gl_close_fd_maybe_socket): Remove function.
39351         (rpl_close): Invoke execute_all_close_hooks instead of
39352         _gl_close_fd_maybe_socket.
39353         * lib/sockets.c: Include close-hook.h, w32sock.h.
39354         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39355         (close_sockets_hook): New variable.
39356         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39357         (gl_sockets_cleanup): Unregister it.
39358         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39359         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39360         * modules/close-hook: New file.
39361         * modules/close (Files): Remove lib/w32sock.h.
39362         (Depends-on): Add close-hook.
39363         (Link): Remove section.
39364         * modules/sockets (Files): Add lib/w32sock.h.
39365         (Depends-on): Add close-hook.
39366         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39367         invocation.
39368         * NEWS: Mention that LIB_CLOSE is gone.
39369
39370 2009-03-23  Eric Blake  <ebb9@byu.net>
39371
39372         signal-tests: test previous patch
39373         * tests/test-signal.c: New file.
39374         * modules/signal-tests: Likewise.
39375
39376         signal.h: always support 'volatile sig_atomic_t'
39377         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39378         (gl_SIGNAL_H_DEFAULTS): Add a default.
39379         * modules/signal (Makefile.am): Substitute if needed.
39380         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39381         users can blindly add volatile.
39382         * doc/posix-headers/signal.texi (signal.h): Document it.
39383         Reported by Matthew Woehlke.
39384
39385 2009-03-23  Jim Meyering  <meyering@redhat.com>
39386
39387         pathmax: PATH_MAX: use pathconf only when available
39388         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39389         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39390         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39391         This avoids a link failure in a PSP cross-compilation environment
39392         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39393
39394         * lib/vasnprintf.c (divide): Fix typo in comment.
39395
39396 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39397
39398         * gnulib-tool (func_filter_filelist): Fix comment.
39399
39400 2009-03-20  Bruno Haible  <bruno@clisp.org>
39401
39402         Make sockets.h self-contained.
39403         * lib/sockets.c: Include sockets.h first.
39404         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39405
39406 2009-03-19  Eric Blake  <ebb9@byu.net>
39407
39408         doc: mention more functions added in cygwin 1.7.0
39409         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39410         addition.
39411         * doc/posix-functions/log2f.texi: Likewise.
39412
39413 2009-03-19  Jim Meyering  <meyering@redhat.com>
39414
39415         fsusage: avoid syntax error due to statement-before-declaration
39416         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39417         after all declarations.  Reported by Matthew Woehlke in
39418         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39419
39420 2009-03-18  Eric Blake  <ebb9@byu.net>
39421
39422         build-aux/compile: sync from automake
39423         * build-aux/compile: New file, from automake.
39424         * config/srclist.txt: Mention build-aux/compile.
39425
39426 2009-03-17  Bruno Haible  <bruno@clisp.org>
39427
39428         * lib/git-merge-changelog.c: Fix typo in comment.
39429         Reported by Reuben Thomas <rrt@sc3d.org>.
39430
39431 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39432
39433         * m4/regex.m4: update and improve help for
39434         --without-included-regex.
39435
39436 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39437
39438         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39439         failure on missing include files.
39440
39441 2009-03-17  Eric Blake  <ebb9@byu.net>
39442
39443         doc: mention more functions added in cygwin 1.7.0
39444         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39445         addition.
39446         * doc/posix-functions/fwscanf.texi: Likewise.
39447         * doc/posix-functions/swprintf.texi: Likewise.
39448         * doc/posix-functions/swscanf.texi: Likewise.
39449         * doc/posix-functions/vfwprintf.texi: Likewise.
39450         * doc/posix-functions/vfwscanf.texi: Likewise.
39451         * doc/posix-functions/vswprintf.texi: Likewise.
39452         * doc/posix-functions/vswscanf.texi: Likewise.
39453         * doc/posix-functions/vwprintf.texi: Likewise.
39454         * doc/posix-functions/vwscanf.texi: Likewise.
39455         * doc/posix-functions/wcscasecmp.texi: Likewise.
39456         * doc/posix-functions/wcsdup.texi: Likewise.
39457         * doc/posix-functions/wcsftime.texi: Likewise.
39458         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39459         * doc/posix-functions/wprintf.texi: Likewise.
39460         * doc/posix-functions/wscanf.texi: Likewise.
39461         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39462
39463 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39464
39465         maint.mk: really add $(AM_MAKEFLAGS)
39466         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39467         was inadvertently omitted in the last commit.
39468         Spotted by Bruno Haible.
39469
39470         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39471         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39472         $(AM_MAKEFLAGS)' rather than plain `make'.
39473
39474         gnulib-tool: execute $MAKE not make
39475         * gnulib-tool: Default $MAKE to 'make'.
39476         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39477         than make.  Initialize $MAKE in the do-autobuild script.
39478
39479         gnulib-tool: use $MAKE not make in generated files
39480         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39481         make, in generated files.  Initialize $MAKE in the do-autobuild
39482         script.
39483
39484         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39485
39486         GNUmakefile: disable parallelism only for multiple, recursive targets
39487         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39488         additions in the Makefile.
39489         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39490         by Automake.
39491         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39492         are listed on the command line and at least one of them is
39493         listed in $(ALL_RECURSIVE_TARGETS).
39494
39495 2009-03-14  Bruno Haible  <bruno@clisp.org>
39496
39497         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39498         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39499         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39500         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39501         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39502         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39503         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39504         unistr/u8-uctomb.
39505         * modules/unistr/u8-strchr (Depends-on): Likewise.
39506         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39507         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39508         unistr/u16-uctomb.
39509         * modules/unistr/u16-strchr (Depends-on): Likewise.
39510         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39511
39512 2009-03-12  Bruno Haible  <bruno@clisp.org>
39513
39514         Work around select() bug on Interix 3.5.
39515         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39516         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39517         * m4/select.m4: New file.
39518         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39519         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39520         * modules/select (Files): Add m4/select.m4.
39521         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39522         * modules/nanosleep (Depends-on): Add select.
39523         * modules/poll (Depends-on): Likewise.
39524         * doc/posix-functions/select.texi: Mention the Interix bug.
39525         Reported by Markus Duft <mduft@gentoo.org>.
39526
39527         * lib/select.c: Renamed from lib/winsock-select.c.
39528         * modules/select (Files): Add lib/select.c, remove
39529         lib/winsock-select.c.
39530         (configure.ac): Update.
39531
39532 2009-03-12  Jim Meyering  <meyering@redhat.com>
39533
39534         avoid gcc warnings about unused macro definitions
39535         * lib/readtokens.c (STREQ): Remove unused definition.
39536         * lib/xmalloc.c (SIZE_MAX): Likewise.
39537         * lib/openat-die.c (N_): Likewise.
39538         * lib/mountlist.c (SIZE_MAX): Remove definition.
39539         Instead, include <stdint.h>.
39540         * lib/readutmp.c: Likewise.
39541         * modules/readutmp (Depends-on): Add stdint.
39542         * modules/mountlist (Depends-on): Add stdint.
39543         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39544
39545 2009-03-10  Bruno Haible  <bruno@clisp.org>
39546
39547         Tests for module 'mbmemcasecoll'.
39548         * modules/mbmemcasecoll-tests: New file.
39549         * tests/test-mbmemcasecoll1.sh: New file.
39550         * tests/test-mbmemcasecoll2.sh: New file.
39551         * tests/test-mbmemcasecoll3.sh: New file.
39552         * tests/test-mbmemcasecoll.c: New file.
39553
39554         New module 'mbmemcasecoll'.
39555         * lib/mbmemcasecoll.h: New file.
39556         * lib/mbmemcasecoll.c: New file.
39557         * modules/mbmemcasecoll: New file.
39558
39559         * tests/test-mbmemcasecmp.h: New file, extracted from
39560         tests/test-mbmemcasecmp.c.
39561         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39562         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39563         (main): Update.
39564         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39565
39566 2009-03-09  Bruno Haible  <bruno@clisp.org>
39567
39568         Tests for module 'mbmemcasecmp'.
39569         * modules/mbmemcasecmp-tests: New file.
39570         * tests/test-mbmemcasecmp1.sh: New file.
39571         * tests/test-mbmemcasecmp2.sh: New file.
39572         * tests/test-mbmemcasecmp3.sh: New file.
39573         * tests/test-mbmemcasecmp.c: New file.
39574
39575         New module 'mbmemcasecmp'.
39576         * lib/mbmemcasecmp.h: New file.
39577         * lib/mbmemcasecmp.c: New file.
39578         * modules/mbmemcasecmp: New file.
39579
39580 2009-03-09  Bruno Haible  <bruno@clisp.org>
39581
39582         Tests for module 'unicase/ulc-casecoll'.
39583         * modules/unicase/ulc-casecoll-tests: New file.
39584         * tests/unicase/test-ulc-casecoll1.sh: New file.
39585         * tests/unicase/test-ulc-casecoll2.sh: New file.
39586         * tests/unicase/test-ulc-casecoll.c: New file.
39587
39588         New module 'unicase/ulc-casecoll'.
39589         * lib/unicase.h (ulc_casecoll): New declaration.
39590         * lib/unicase/ulc-casecoll.c: New file.
39591         * modules/unicase/ulc-casecoll: New file.
39592
39593         New module 'unicase/ulc-casexfrm'.
39594         * lib/unicase.h (ulc_casexfrm): New declaration.
39595         * lib/unicase/ulc-casexfrm.c: New file.
39596         * modules/unicase/ulc-casexfrm: New file.
39597
39598 2009-03-09  Bruno Haible  <bruno@clisp.org>
39599
39600         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39601         invocations.
39602
39603         * m4/mbscasecmp.m4: Remove file.
39604         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39605         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39606
39607         * m4/mbscasestr.m4: Remove file.
39608         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39609         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39610
39611         * m4/mbschr.m4: Remove file.
39612         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39613         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39614
39615         * m4/mbscspn.m4: Remove file.
39616         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39617         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39618
39619         * m4/mbslen.m4: Remove file.
39620         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39621         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39622
39623         * m4/mbsncasecmp.m4: Remove file.
39624         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39625         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39626
39627         * m4/mbsnlen.m4: Remove file.
39628         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39629         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39630
39631         * m4/mbspbrk.m4: Remove file.
39632         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39633         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39634
39635         * m4/mbspcasecmp.m4: Remove file.
39636         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39637         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39638
39639         * m4/mbsrchr.m4: Remove file.
39640         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39641         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39642
39643         * m4/mbssep.m4: Remove file.
39644         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39645         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39646
39647         * m4/mbsspn.m4: Remove file.
39648         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39649         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39650
39651         * m4/mbsstr.m4: Remove file.
39652         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39653         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39654
39655         * m4/mbstok_r.m4: Remove file.
39656         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39657         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39658
39659         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39660
39661         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39662         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39663
39664         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39665
39666 2009-03-08  Bruno Haible  <bruno@clisp.org>
39667
39668         Tests for module 'unicase/ulc-casecmp'.
39669         * modules/unicase/ulc-casecmp-tests: New file.
39670         * tests/unicase/test-ulc-casecmp1.sh: New file.
39671         * tests/unicase/test-ulc-casecmp2.sh: New file.
39672         * tests/unicase/test-ulc-casecmp.c: New file.
39673
39674         New module 'unicase/ulc-casecmp'.
39675         * lib/unicase.h (ulc_casecmp): New declaration.
39676         * lib/unicase/ulc-casecmp.c: New file.
39677         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39678         'const SRC_UNIT *'.
39679         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39680         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39681         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39682         * modules/unicase/ulc-casecmp: New file.
39683
39684         Tests for module 'unicase/u32-is-cased'.
39685         * modules/unicase/u32-is-cased-tests: New file.
39686         * tests/unicase/test-u32-is-cased.c: New file.
39687
39688         Tests for module 'unicase/u16-is-cased'.
39689         * modules/unicase/u16-is-cased-tests: New file.
39690         * tests/unicase/test-u16-is-cased.c: New file.
39691
39692         Tests for module 'unicase/u8-is-cased'.
39693         * modules/unicase/u8-is-cased-tests: New file.
39694         * tests/unicase/test-u8-is-cased.c: New file.
39695         * tests/unicase/test-is-cased.h: New file.
39696
39697         New module 'unicase/u32-is-cased'.
39698         * lib/unicase/u32-is-cased.c: New file.
39699         * modules/unicase/u32-is-cased: New file.
39700
39701         New module 'unicase/u16-is-cased'.
39702         * lib/unicase/u16-is-cased.c: New file.
39703         * modules/unicase/u16-is-cased: New file.
39704
39705         New module 'unicase/u8-is-cased'.
39706         * lib/unicase/u8-is-cased.c: New file.
39707         * lib/unicase/u-is-cased.h: New file.
39708         * modules/unicase/u8-is-cased: New file.
39709
39710         Tests for module 'unicase/u32-is-casefolded'.
39711         * modules/unicase/u32-is-casefolded-tests: New file.
39712         * tests/unicase/test-u32-is-casefolded.c: New file.
39713
39714         Tests for module 'unicase/u16-is-casefolded'.
39715         * modules/unicase/u16-is-casefolded-tests: New file.
39716         * tests/unicase/test-u16-is-casefolded.c: New file.
39717
39718         Tests for module 'unicase/u8-is-casefolded'.
39719         * modules/unicase/u8-is-casefolded-tests: New file.
39720         * tests/unicase/test-u8-is-casefolded.c: New file.
39721         * tests/unicase/test-is-casefolded.h: New file.
39722
39723         New module 'unicase/u32-is-casefolded'.
39724         * lib/unicase/u32-is-casefolded.c: New file.
39725         * modules/unicase/u32-is-casefolded: New file.
39726
39727         New module 'unicase/u16-is-casefolded'.
39728         * lib/unicase/u16-is-casefolded.c: New file.
39729         * modules/unicase/u16-is-casefolded: New file.
39730
39731         New module 'unicase/u8-is-casefolded'.
39732         * lib/unicase/u8-is-casefolded.c: New file.
39733         * modules/unicase/u8-is-casefolded: New file.
39734
39735         Tests for module 'unicase/u32-is-titlecase'.
39736         * modules/unicase/u32-is-titlecase-tests: New file.
39737         * tests/unicase/test-u32-is-titlecase.c: New file.
39738
39739         Tests for module 'unicase/u16-is-titlecase'.
39740         * modules/unicase/u16-is-titlecase-tests: New file.
39741         * tests/unicase/test-u16-is-titlecase.c: New file.
39742
39743         Tests for module 'unicase/u8-is-titlecase'.
39744         * modules/unicase/u8-is-titlecase-tests: New file.
39745         * tests/unicase/test-u8-is-titlecase.c: New file.
39746         * tests/unicase/test-is-titlecase.h: New file.
39747
39748         New module 'unicase/u32-is-titlecase'.
39749         * lib/unicase/u32-is-titlecase.c: New file.
39750         * modules/unicase/u32-is-titlecase: New file.
39751
39752         New module 'unicase/u16-is-titlecase'.
39753         * lib/unicase/u16-is-titlecase.c: New file.
39754         * modules/unicase/u16-is-titlecase: New file.
39755
39756         New module 'unicase/u8-is-titlecase'.
39757         * lib/unicase/u8-is-titlecase.c: New file.
39758         * modules/unicase/u8-is-titlecase: New file.
39759
39760         Tests for module 'unicase/u32-is-lowercase'.
39761         * modules/unicase/u32-is-lowercase-tests: New file.
39762         * tests/unicase/test-u32-is-lowercase.c: New file.
39763
39764         Tests for module 'unicase/u16-is-lowercase'.
39765         * modules/unicase/u16-is-lowercase-tests: New file.
39766         * tests/unicase/test-u16-is-lowercase.c: New file.
39767
39768         Tests for module 'unicase/u8-is-lowercase'.
39769         * modules/unicase/u8-is-lowercase-tests: New file.
39770         * tests/unicase/test-u8-is-lowercase.c: New file.
39771         * tests/unicase/test-is-lowercase.h: New file.
39772
39773         New module 'unicase/u32-is-lowercase'.
39774         * lib/unicase/u32-is-lowercase.c: New file.
39775         * modules/unicase/u32-is-lowercase: New file.
39776
39777         New module 'unicase/u16-is-lowercase'.
39778         * lib/unicase/u16-is-lowercase.c: New file.
39779         * modules/unicase/u16-is-lowercase: New file.
39780
39781         New module 'unicase/u8-is-lowercase'.
39782         * lib/unicase/u8-is-lowercase.c: New file.
39783         * modules/unicase/u8-is-lowercase: New file.
39784
39785         Tests for module 'unicase/u32-is-uppercase'.
39786         * modules/unicase/u32-is-uppercase-tests: New file.
39787         * tests/unicase/test-u32-is-uppercase.c: New file.
39788
39789         Tests for module 'unicase/u16-is-uppercase'.
39790         * modules/unicase/u16-is-uppercase-tests: New file.
39791         * tests/unicase/test-u16-is-uppercase.c: New file.
39792
39793         Tests for module 'unicase/u8-is-uppercase'.
39794         * modules/unicase/u8-is-uppercase-tests: New file.
39795         * tests/unicase/test-u8-is-uppercase.c: New file.
39796         * tests/unicase/test-is-uppercase.h: New file.
39797
39798         New module 'unicase/u32-is-uppercase'.
39799         * lib/unicase/u32-is-uppercase.c: New file.
39800         * modules/unicase/u32-is-uppercase: New file.
39801
39802         New module 'unicase/u16-is-uppercase'.
39803         * lib/unicase/u16-is-uppercase.c: New file.
39804         * modules/unicase/u16-is-uppercase: New file.
39805
39806         New module 'unicase/u8-is-uppercase'.
39807         * lib/unicase/u8-is-uppercase.c: New file.
39808         * modules/unicase/u8-is-uppercase: New file.
39809
39810         New module 'unicase/u32-is-invariant'.
39811         * lib/unicase/u32-is-invariant.c: New file.
39812         * modules/unicase/u32-is-invariant: New file.
39813
39814         New module 'unicase/u16-is-invariant'.
39815         * lib/unicase/u16-is-invariant.c: New file.
39816         * modules/unicase/u16-is-invariant: New file.
39817
39818         New module 'unicase/u8-is-invariant'.
39819         * lib/unicase/u8-is-invariant.c: New file.
39820         * lib/unicase/invariant.h: New file.
39821         * lib/unicase/u-is-invariant.h: New file.
39822         * modules/unicase/u8-is-invariant: New file.
39823
39824         Tests for module 'unicase/u32-casecoll'.
39825         * modules/unicase/u32-casecoll-tests: New file.
39826         * tests/unicase/test-u32-casecoll.c: New file.
39827
39828         Tests for module 'unicase/u16-casecoll'.
39829         * modules/unicase/u16-casecoll-tests: New file.
39830         * tests/unicase/test-u16-casecoll.c: New file.
39831
39832         Tests for module 'unicase/u8-casecoll'.
39833         * modules/unicase/u8-casecoll-tests: New file.
39834         * tests/unicase/test-u8-casecoll.c: New file.
39835
39836         New module 'unicase/u32-casecoll'.
39837         * lib/unicase/u32-casecoll.c: New file.
39838         * modules/unicase/u32-casecoll: New file.
39839
39840         New module 'unicase/u16-casecoll'.
39841         * lib/unicase/u16-casecoll.c: New file.
39842         * modules/unicase/u16-casecoll: New file.
39843
39844         New module 'unicase/u8-casecoll'.
39845         * lib/unicase/u8-casecoll.c: New file.
39846         * lib/unicase/u-casecoll.h: New file.
39847         * modules/unicase/u8-casecoll: New file.
39848
39849         New module 'unicase/u32-casexfrm'.
39850         * lib/unicase/u32-casexfrm.c: New file.
39851         * modules/unicase/u32-casexfrm: New file.
39852
39853         New module 'unicase/u16-casexfrm'.
39854         * lib/unicase/u16-casexfrm.c: New file.
39855         * modules/unicase/u16-casexfrm: New file.
39856
39857         New module 'unicase/u8-casexfrm'.
39858         * lib/unicase/u8-casexfrm.c: New file.
39859         * lib/unicase/u-casexfrm.h: New file.
39860         * modules/unicase/u8-casexfrm: New file.
39861
39862         Tests for module 'unicase/u32-casecmp'.
39863         * modules/unicase/u32-casecmp-tests: New file.
39864         * tests/unicase/test-u32-casecmp.c: New file.
39865
39866         Tests for module 'unicase/u16-casecmp'.
39867         * modules/unicase/u16-casecmp-tests: New file.
39868         * tests/unicase/test-u16-casecmp.c: New file.
39869
39870         Tests for module 'unicase/u8-casecmp'.
39871         * modules/unicase/u8-casecmp-tests: New file.
39872         * tests/unicase/test-u8-casecmp.c: New file.
39873         * tests/unicase/test-casecmp.h: New file.
39874
39875         New module 'unicase/u32-casecmp'.
39876         * lib/unicase/u32-casecmp.c: New file.
39877         * modules/unicase/u32-casecmp: New file.
39878
39879         New module 'unicase/u16-casecmp'.
39880         * lib/unicase/u16-casecmp.c: New file.
39881         * modules/unicase/u16-casecmp: New file.
39882
39883         New module 'unicase/u8-casecmp'.
39884         * lib/unicase/u8-casecmp.c: New file.
39885         * lib/unicase/u-casecmp.h: New file.
39886         * modules/unicase/u8-casecmp: New file.
39887
39888         Tests for module 'unicase/u32-casefold'.
39889         * modules/unicase/u32-casefold-tests: New file.
39890         * tests/unicase/test-u32-casefold.c: New file.
39891
39892         Tests for module 'unicase/u16-casefold'.
39893         * modules/unicase/u16-casefold-tests: New file.
39894         * tests/unicase/test-u16-casefold.c: New file.
39895
39896         Tests for module 'unicase/u8-casefold'.
39897         * modules/unicase/u8-casefold-tests: New file.
39898         * tests/unicase/test-u8-casefold.c: New file.
39899
39900         New module 'unicase/u32-casefold'.
39901         * lib/unicase/u32-casefold.c: New file.
39902         * modules/unicase/u32-casefold: New file.
39903
39904         New module 'unicase/u16-casefold'.
39905         * lib/unicase/u16-casefold.c: New file.
39906         * modules/unicase/u16-casefold: New file.
39907
39908         New module 'unicase/u8-casefold'.
39909         * lib/unicase/u8-casefold.c: New file.
39910         * lib/unicase/u-casefold.h: New file.
39911         * modules/unicase/u8-casefold: New file.
39912
39913         New module 'unicase/tocasefold'.
39914         * lib/unicase/casefold.h: New file.
39915         * lib/unicase/tocasefold.c: New file.
39916         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39917         * modules/unicase/tocasefold: New file.
39918
39919         Tests for module 'unicase/u32-totitle'.
39920         * modules/unicase/u32-totitle-tests: New file.
39921         * tests/unicase/test-u32-totitle.c: New file.
39922
39923         Tests for module 'unicase/u16-totitle'.
39924         * modules/unicase/u16-totitle-tests: New file.
39925         * tests/unicase/test-u16-totitle.c: New file.
39926
39927         Tests for module 'unicase/u8-totitle'.
39928         * modules/unicase/u8-totitle-tests: New file.
39929         * tests/unicase/test-u8-totitle.c: New file.
39930
39931         New module 'unicase/u32-totitle'.
39932         * lib/unicase/u32-totitle.c: New file.
39933         * modules/unicase/u32-totitle: New file.
39934
39935         New module 'unicase/u16-totitle'.
39936         * lib/unicase/u16-totitle.c: New file.
39937         * modules/unicase/u16-totitle: New file.
39938
39939         New module 'unicase/u8-totitle'.
39940         * lib/unicase/u8-totitle.c: New file.
39941         * lib/unicase/u-totitle.h: New file.
39942         * modules/unicase/u8-totitle: New file.
39943
39944         Tests for module 'unicase/u32-tolower'.
39945         * modules/unicase/u32-tolower-tests: New file.
39946         * tests/unicase/test-u32-tolower.c: New file.
39947
39948         Tests for module 'unicase/u16-tolower'.
39949         * modules/unicase/u16-tolower-tests: New file.
39950         * tests/unicase/test-u16-tolower.c: New file.
39951
39952         Tests for module 'unicase/u8-tolower'.
39953         * modules/unicase/u8-tolower-tests: New file.
39954         * tests/unicase/test-u8-tolower.c: New file.
39955
39956         New module 'unicase/u32-tolower'.
39957         * lib/unicase/u32-tolower.c: New file.
39958         * modules/unicase/u32-tolower: New file.
39959
39960         New module 'unicase/u16-tolower'.
39961         * lib/unicase/u16-tolower.c: New file.
39962         * modules/unicase/u16-tolower: New file.
39963
39964         New module 'unicase/u8-tolower'.
39965         * lib/unicase/u8-tolower.c: New file.
39966         * modules/unicase/u8-tolower: New file.
39967
39968         Tests for module 'unicase/u32-toupper'.
39969         * modules/unicase/u32-toupper-tests: New file.
39970         * tests/unicase/test-u32-toupper.c: New file.
39971
39972         Tests for module 'unicase/u16-toupper'.
39973         * modules/unicase/u16-toupper-tests: New file.
39974         * tests/unicase/test-u16-toupper.c: New file.
39975
39976         Tests for module 'unicase/u8-toupper'.
39977         * modules/unicase/u8-toupper-tests: New file.
39978         * tests/unicase/test-u8-toupper.c: New file.
39979
39980         New module 'unicase/u32-toupper'.
39981         * lib/unicase/u32-toupper.c: New file.
39982         * modules/unicase/u32-toupper: New file.
39983
39984         New module 'unicase/u16-toupper'.
39985         * lib/unicase/u16-toupper.c: New file.
39986         * modules/unicase/u16-toupper: New file.
39987
39988         New module 'unicase/u8-toupper'.
39989         * lib/unicase/u8-toupper.c: New file.
39990         * modules/unicase/u8-toupper: New file.
39991
39992         New module 'unicase/u32-casemap'.
39993         * lib/unicase/u32-casemap.c: New file.
39994         * modules/unicase/u32-casemap: New file.
39995
39996         New module 'unicase/u16-casemap'.
39997         * lib/unicase/u16-casemap.c: New file.
39998         * modules/unicase/u16-casemap: New file.
39999
40000         New module 'unicase/u8-casemap'.
40001         * lib/unicase/unicasemap.h: New file.
40002         * lib/unicase/u8-casemap.c: New file.
40003         * lib/unicase/u-casemap.h: New file.
40004         * modules/unicase/u8-casemap: New file.
40005
40006         New module 'unicase/special-casing'.
40007         * lib/unicase/special-casing.h: New file.
40008         * lib/unicase/special-casing.c: New file.
40009         * lib/unicase/special-casing-table.gperf: New file, generated by
40010         gen-uni-tables.c.
40011         * modules/unicase/special-casing: New file.
40012
40013         Tests for module 'unicase/locale-language'.
40014         * modules/unicase/locale-language-tests: New file.
40015         * tests/unicase/test-locale-language.sh: New file.
40016         * tests/unicase/test-locale-language.c: New file.
40017
40018         New module 'unicase/locale-language'.
40019         * lib/unicase/locale-language.c: New file.
40020         * lib/unicase/locale-languages.gperf: New file.
40021         * modules/unicase/locale-language: New file.
40022
40023         Generate more tables for case conversion and case folding.
40024         * lib/gen-uni-tables.c (SCC_*): New enum items.
40025         (struct special_casing_rule): New type.
40026         (casing_rules, num_casing_rules, allocated_casing_rules): New
40027         variables.
40028         (add_casing_rule, fill_casing_rules): New functions.
40029         (struct casefold_rule): New type.
40030         (casefolding_rules, num_casefolding_rules,
40031         allocated_casefolding_rules): New variables.
40032         (fill_casefolding_rules): New function.
40033         (unicode_casefold): New variable.
40034         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40035         sort_casing_rules, output_casing_rules): New functions.
40036         (main): Accept to more arguments: SpecialCasing.txt and
40037         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40038         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40039         Output mapping for casefolding.
40040
40041         * lib/unicase.h: Include stdbool.h, uninorm.h.
40042         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40043         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40044         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40045         arguments.
40046         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40047         resultp arguments.
40048         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40049         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40050         resultp arguments.
40051         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40052         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40053         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40054         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40055         declarations.
40056         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40057
40058 2009-03-08  Bruno Haible  <bruno@clisp.org>
40059
40060         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40061         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40062         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40063         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40064
40065 2009-03-07  Bruno Haible  <bruno@clisp.org>
40066
40067         Adjust u*_normcmp, u*_normcoll API.
40068         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40069         u16_normcoll, u32_normcoll): Change failure conventions.
40070         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40071         errno and return -1.
40072         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40073
40074 2009-03-07  Bruno Haible  <bruno@clisp.org>
40075
40076         Tests for module 'uninorm/u32-normcoll'.
40077         * modules/uninorm/u32-normcoll-tests: New file.
40078         * tests/uninorm/test-u32-normcoll.c: New file.
40079
40080         Tests for module 'uninorm/u16-normcoll'.
40081         * modules/uninorm/u16-normcoll-tests: New file.
40082         * tests/uninorm/test-u16-normcoll.c: New file.
40083
40084         Tests for module 'uninorm/u8-normcoll'.
40085         * modules/uninorm/u8-normcoll-tests: New file.
40086         * tests/uninorm/test-u8-normcoll.c: New file.
40087
40088 2009-03-07  Bruno Haible  <bruno@clisp.org>
40089
40090         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40091         tests/uninorm/test-u32-normcmp.c.
40092         * tests/uninorm/test-u32-normcmp.c: Include it.
40093         (test_nonascii): New function, extracted from main. Add some more
40094         tests.
40095         (main): Invoke test_ascii and test_nonascii.
40096         * modules/uninorm/u32-normcmp-tests (Files): Add
40097         tests/uninorm/test-u32-normcmp.h.
40098         (Depends-on): Remove uninorm/u32-normcmp.
40099
40100         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40101         tests/uninorm/test-u16-normcmp.c.
40102         * tests/uninorm/test-u16-normcmp.c: Include it.
40103         (test_nonascii): New function, extracted from main. Add some more
40104         tests.
40105         (main): Invoke test_ascii and test_nonascii.
40106         * modules/uninorm/u16-normcmp-tests (Files): Add
40107         tests/uninorm/test-u16-normcmp.h.
40108         (Depends-on): Remove uninorm/u16-normcmp.
40109
40110         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40111         tests/uninorm/test-u8-normcmp.c.
40112         * tests/uninorm/test-u8-normcmp.c: Include it.
40113         (test_nonascii): New function, extracted from main. Add some more
40114         tests.
40115         (main): Invoke test_ascii and test_nonascii.
40116         * modules/uninorm/u8-normcmp-tests (Files): Add
40117         tests/uninorm/test-u8-normcmp.h.
40118         (Depends-on): Remove uninorm/u8-normcmp.
40119
40120 2009-03-07  Bruno Haible  <bruno@clisp.org>
40121
40122         New module 'uninorm/u32-normcoll'.
40123         * lib/uninorm/u32-normcoll.c: New file.
40124         * modules/uninorm/u32-normcoll: New file.
40125
40126         New module 'uninorm/u16-normcoll'.
40127         * lib/uninorm/u16-normcoll.c: New file.
40128         * modules/uninorm/u16-normcoll: New file.
40129
40130         New module 'uninorm/u8-normcoll'.
40131         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40132         declarations.
40133         * lib/uninorm/u8-normcoll.c: New file.
40134         * lib/uninorm/u-normcoll.h: New file.
40135         * modules/uninorm/u8-normcoll: New file.
40136
40137         New module 'uninorm/u32-normxfrm'.
40138         * lib/uninorm/u32-normxfrm.c: New file.
40139         * modules/uninorm/u32-normxfrm: New file.
40140
40141         New module 'uninorm/u16-normxfrm'.
40142         * lib/uninorm/u16-normxfrm.c: New file.
40143         * modules/uninorm/u16-normxfrm: New file.
40144
40145         New module 'uninorm/u8-normxfrm'.
40146         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40147         declarations.
40148         * lib/uninorm/u8-normxfrm.c: New file.
40149         * lib/uninorm/u-normxfrm.h: New file.
40150         * modules/uninorm/u8-normxfrm: New file.
40151
40152 2009-03-07  Bruno Haible  <bruno@clisp.org>
40153
40154         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40155         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40156         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40157
40158 2009-03-07  Bruno Haible  <bruno@clisp.org>
40159
40160         New module 'memxfrm'.
40161         * lib/memxfrm.h: New file.
40162         * lib/memxfrm.c: New file.
40163         * modules/memxfrm: New file.
40164
40165 2009-03-07  Bruno Haible  <bruno@clisp.org>
40166
40167         New module 'memcmp2'.
40168         * lib/memcmp2.h: New file.
40169         * lib/memcmp2.c: New file.
40170         * modules/memcmp2: New file.
40171
40172 2009-03-07  Bruno Haible  <bruno@clisp.org>
40173
40174         Tests for module 'uninorm/decomposing-form'.
40175         * modules/uninorm/decomposing-form-tests: New file.
40176         * tests/uninorm/test-decomposing-form.c: New file.
40177
40178         New module 'uninorm/decomposing-form'.
40179         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40180         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40181         Add 'decomposing_variant' field.
40182         * lib/uninorm/decomposing-form.c: New file.
40183         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40184         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40185         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40186         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40187         * modules/uninorm/decomposing-form: New file.
40188         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40189         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40190
40191 2009-03-07  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40194         strings.
40195
40196 2009-03-06  Bruno Haible  <bruno@clisp.org>
40197
40198         Tests for module 'uninorm/u32-normcmp'.
40199         * tests/uninorm/test-u32-normcmp.c: New file.
40200         * modules/uninorm/u32-normcmp-tests: New file.
40201
40202         Tests for module 'uninorm/u16-normcmp'.
40203         * tests/uninorm/test-u16-normcmp.c: New file.
40204         * modules/uninorm/u16-normcmp-tests: New file.
40205
40206         Tests for module 'uninorm/u8-normcmp'.
40207         * tests/uninorm/test-u8-normcmp.c: New file.
40208         * modules/uninorm/u8-normcmp-tests: New file.
40209
40210         New module 'uninorm/u32-normcmp'.
40211         * lib/uninorm/u32-normcmp.c: New file.
40212         * modules/uninorm/u32-normcmp: New file.
40213
40214         New module 'uninorm/u16-normcmp'.
40215         * lib/uninorm/u16-normcmp.c: New file.
40216         * modules/uninorm/u16-normcmp: New file.
40217
40218         New module 'uninorm/u8-normcmp'.
40219         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40220         declarations.
40221         * lib/uninorm/u8-normcmp.c: New file.
40222         * lib/uninorm/u-normcmp.h: New file.
40223         * modules/uninorm/u8-normcmp: New file.
40224
40225 2009-03-06  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40228         Reported by Eric Blake.
40229
40230 2009-03-06  Eric Blake  <ebb9@byu.net>
40231             Bruno Haible  <bruno@clisp.org>
40232
40233         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40234         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40235         condition.
40236         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40237         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40238         condition.
40239         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40240
40241 2009-03-06  Eric Blake  <ebb9@byu.net>
40242
40243         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40244         to avoid compiler warnings.
40245         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40246
40247 2009-03-05  Bruno Haible  <bruno@clisp.org>
40248
40249         * tests/test-ftell.c (main): Disable test beyond end of file on
40250         FreeMiNT.
40251         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40252
40253 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40254
40255         * lib/filevercmp.c: Move hidden files up in ordering.
40256         * tests/test-filevercmp.c: Add tests for hidden files.
40257
40258 2009-03-04  Bruno Haible  <bruno@clisp.org>
40259
40260         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40261         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40262         AM_CFLAGS.
40263         Reported by Simon Josefsson.
40264
40265 2009-03-03  Bruno Haible  <bruno@clisp.org>
40266
40267         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40268         Reported by Simon Josefsson.
40269
40270         * doc/ld-version-script.texi: Update node reference.
40271
40272 2009-03-03  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/visibility (License): Change to 'unlimited'.
40275         Suggested by Simon Josefsson.
40276
40277 2009-03-03  Jim Meyering  <meyering@redhat.com>
40278
40279         unlinkdir: cannot_unlink_dir may modify process state
40280         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40281         it's neither thread-safe nor appropriate for use in a library.
40282
40283 2009-03-03  Eric Blake  <ebb9@byu.net>
40284
40285         test-closein: silence test under Darwin
40286         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40287         care if it dies from EPIPE or EBADF.
40288
40289 2009-03-03  Bruno Haible  <bruno@clisp.org>
40290
40291         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40292         earlier.
40293         * doc/visibility.texi: Fix @node and @section.
40294
40295 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40296
40297         * doc/gnulib.texi: Link to sections for ld version script and
40298         visibility.
40299         * doc/visibility.texi: Add @node and @section.
40300         * modules/ld-version-script: New module.
40301         * m4/ld-version-script.m4: New file.
40302         * doc/ld-version-script.texi: New file.
40303
40304 2009-03-02  David Lutterkort  <lutter@redhat.com>
40305
40306         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40308
40309 2009-03-02  Bruno Haible  <bruno@clisp.org>
40310
40311         * doc/visibility.texi: Mention libtool's -export-symbols option.
40312
40313 2009-03-02  Jim Meyering  <meyering@redhat.com>
40314
40315         announce-gen: new option: --no-print-checksums
40316         * build-aux/announce-gen (usage): Describe it.
40317         (print_checksums): Print a newline here, not in the [*] footnote.
40318         (main): Honor it.
40319
40320 2009-03-01  Bruno Haible  <bruno@clisp.org>
40321
40322         Use socklen_t in the native Windows replacements prototypes.
40323         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40324         instead of 'int'.
40325         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40326         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40327         * modules/getsockopt (Depends-on): Add socklen.
40328         * modules/setsockopt (Depends-on): Add socklen.
40329
40330 2009-03-01  Bruno Haible  <bruno@clisp.org>
40331
40332         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40333         least 4.2.
40334
40335 2009-03-01  Eric Blake  <ebb9@byu.net>
40336             Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40339         error messages.
40340         * lib/wait-process.c (wait_subprocess): Omit error message about
40341         deadly signal sent to the child of termsigp != NULL.
40342
40343 2009-03-01  Eric Blake  <ebb9@byu.net>
40344
40345         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40346
40347 2009-03-01  Bruno Haible  <bruno@clisp.org>
40348
40349         Avoid a gcc warning.
40350         * tests/test-sched.c (b): Make global.
40351         Reported by Eric Blake.
40352
40353 2009-01-19  Martin Lambers  <marlam@marlam.de>
40354
40355         Provide POSIX semantics for socket timeout options on W32.
40356         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40357         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40358         * modules/setsockopt: Depend on sys_time module for struct timeval.
40359         * modules/getsockopt: Depend on sys_time module for struct timeval.
40360
40361 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40362
40363         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40364         __USE_GNU, for consistency with netdb.in.h.
40365         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40366
40367 2009-03-01  Bruno Haible  <bruno@clisp.org>
40368
40369         More support for FreeMiNT.
40370         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40371         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40372
40373 2009-03-01  Bruno Haible  <bruno@clisp.org>
40374
40375         More support for FreeMiNT.
40376         * lib/fpurge.c (fpurge): Correct last commit.
40377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40378
40379 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40380
40381         Fix unportable awk script in vc-list-files.
40382         * build-aux/vc-list-files: In the replacement awk script, use
40383         substr with a second argument of 1, not zero.
40384         Report by Simon Josefsson.
40385
40386 2009-02-28  Bruno Haible  <bruno@clisp.org>
40387
40388         More support for FreeMiNT.
40389         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40390         to FreeMiNT today.
40391         * lib/fwriting.c (fwriting): Likewise.
40392         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40393
40394 2009-02-28  Bruno Haible  <bruno@clisp.org>
40395
40396         * tests/test-freadseek.c (main): Disable test beyond end of file on
40397         FreeMiNT.
40398         * tests/test-ftello.c (main): Likewise.
40399         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40400
40401 2009-02-28  Bruno Haible  <bruno@clisp.org>
40402
40403         Add tentative support for FreeMiNT.
40404         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40405         * lib/fpurge.c (fpurge): Likewise.
40406         * lib/freadable.c (freadable): Likewise.
40407         * lib/freading.c (freading): Likewise.
40408         * lib/freadptr.c (freadptr): Likewise.
40409         * lib/freadseek.c (freadptrinc): Likewise.
40410         * lib/fseeko.c (rpl_fseeko): Likewise.
40411         * lib/fseterr.c (fseterr): Likewise.
40412         * lib/fwritable.c (fwritable): Likewise.
40413         * lib/fwriting.c (fwriting): Likewise.
40414         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40415         Hourihane.
40416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40417
40418 2009-02-28  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40421         SIGCHLD.
40422         Reported by Jim Meyering.
40423
40424 2009-02-28  Bruno Haible  <bruno@clisp.org>
40425
40426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40427         Mention the results of these tests on various platforms.
40428         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40429         order.
40430         * doc/posix-functions/printf.texi: Likewise.
40431         * doc/posix-functions/snprintf.texi: Likewise.
40432         * doc/posix-functions/sprintf.texi: Likewise.
40433         * doc/posix-functions/vfprintf.texi: Likewise.
40434         * doc/posix-functions/vprintf.texi: Likewise.
40435         * doc/posix-functions/vsnprintf.texi: Likewise.
40436         * doc/posix-functions/vsprintf.texi: Likewise.
40437         * doc/glibc-functions/obstack_printf.texi: Likewise.
40438         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40439
40440 2009-02-28  Bruno Haible  <bruno@clisp.org>
40441
40442         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40443         Reported by Loïc Minier <lool@dooz.org>.
40444
40445 2009-02-27  Bruno Haible  <bruno@clisp.org>
40446
40447         * gnulib-tool (func_import): Make the sed expression used to create the
40448         sed script for updating the .gitignore file POSIX compliant.
40449         Reported by Eric Blake.
40450
40451 2009-02-27  Bruno Haible  <bruno@clisp.org>
40452
40453         * gnulib-tool (sed): Don't alias as "sed --posix".
40454         Reported by Eric Blake.
40455
40456 2009-02-27  Bruno Haible  <bruno@clisp.org>
40457
40458         Avoid test link errors.
40459         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40460         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40461         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40462         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40464
40465 2009-02-27  Bruno Haible  <bruno@clisp.org>
40466
40467         Avoid spurious "(cached)" in configure output.
40468         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40470         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40471         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40472         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40473         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40474         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40475         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40476         Reported by Eric Blake.
40477
40478 2009-02-27  Eric Blake  <ebb9@byu.net>
40479
40480         printf: fix regression in previous patch
40481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40482
40483 2009-02-27  Bruno Haible  <bruno@clisp.org>
40484
40485         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40486         value.
40487         * lib/stdint.in.h: Likewise.
40488         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40489
40490 2009-02-27  Eric Blake  <ebb9@byu.net>
40491
40492         doc: mention more functions added in cygwin 1.7.0
40493         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40494         addition.
40495         * doc/posix-functions/open_wmemstream.texi: Likewise.
40496         * doc/posix-functions/wcsnlen.texi: Likewise.
40497         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40498         * doc/posix-functions/wcstod.texi: Likewise.
40499         * doc/posix-functions/wcstof.texi: Likewise.
40500         * doc/posix-functions/wcstoimax.texi: Likewise.
40501         * doc/posix-functions/wcstok.texi: Likewise.
40502         * doc/posix-functions/wcstoumax.texi: Likewise.
40503
40504         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40506         * doc/posix-functions/fprintf.texi: Update.
40507         * doc/posix-functions/printf.texi: Update.
40508         * doc/posix-functions/snprintf.texi: Update.
40509         * doc/posix-functions/sprintf.texi: Update.
40510         * doc/posix-functions/vfprintf.texi: Update.
40511         * doc/posix-functions/vprintf.texi: Update.
40512         * doc/posix-functions/vsnprintf.texi: Update.
40513         * doc/posix-functions/vsprintf.texi: Update.
40514         * doc/glibc-functions/obstack_printf.texi: Update.
40515         * doc/glibc-functions/obstack_vprintf.texi: Update.
40516
40517 2009-02-26  Eric Blake  <ebb9@byu.net>
40518
40519         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40520         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40521         compilation bug by using runtime conversion.
40522         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40523         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40524         * modules/ceill-tests (Files): Use nan.h.
40525         * modules/floorl-tests (Files): Likewise.
40526         * modules/frexpl-tests (Files): Likewise.
40527         * modules/isnanl-tests (Files): Likewise.
40528         * modules/ldexpl-tests (Files): Likewise.
40529         * modules/roundl-tests (Files): Likewise.
40530         * modules/truncl-tests (Files): Likewise.
40531         * tests/test-ceill.c (main): Use a working NaN.
40532         * tests/test-floorl.c (main): Likewise.
40533         * tests/test-frexpl.c (main): Likewise.
40534         * tests/test-isnan.c (test_long_double): Likewise.
40535         * tests/test-isnanl.h (main): Likewise.
40536         * tests/test-ldexpl.h (main): Likewise.
40537         * tests/test-roundl.h (main): Likewise.
40538         * tests/test-truncl.h (main): Likewise.
40539         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40540
40541 2009-02-26  Eric Blake  <ebb9@byu.net>
40542             Bruno Haible  <bruno@clisp.org>
40543
40544         Work around a *printf bug with %ls on Solaris.
40545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40546         precision is specified, sprintf stops converting the wide string
40547         argument when the number of bytes that have been produced by this
40548         conversion equals or exceeds the precision.
40549         * doc/posix-functions/fprintf.texi: Update.
40550         * doc/posix-functions/printf.texi: Update.
40551         * doc/posix-functions/snprintf.texi: Update.
40552         * doc/posix-functions/sprintf.texi: Update.
40553         * doc/posix-functions/vfprintf.texi: Update.
40554         * doc/posix-functions/vprintf.texi: Update.
40555         * doc/posix-functions/vsnprintf.texi: Update.
40556         * doc/posix-functions/vsprintf.texi: Update.
40557         * doc/glibc-functions/obstack_printf.texi: Update.
40558         * doc/glibc-functions/obstack_vprintf.texi: Update.
40559
40560 2009-02-26  Eric Blake  <ebb9@byu.net>
40561
40562         stdlib: favor compiler check of random.h
40563         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40564         to avoid an ObjC random.h installed by Swarm.
40565
40566 2009-02-26  Bruno Haible  <bruno@clisp.org>
40567
40568         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40569         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40570         Reported by Gary V. Vaughan <gary@gnu.org>.
40571
40572 2009-02-26  Bruno Haible  <bruno@clisp.org>
40573
40574         Fix *printf behaviour regarding the %ls directive.
40575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40576         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40577         NEED_PRINTF_DIRECTIVE_LS.
40578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40579         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40581         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40582         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40583         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40584         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40589         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40593         * doc/posix-functions/fprintf.texi: Update.
40594         * doc/posix-functions/printf.texi: Update.
40595         * doc/posix-functions/snprintf.texi: Update.
40596         * doc/posix-functions/sprintf.texi: Update.
40597         * doc/posix-functions/vfprintf.texi: Update.
40598         * doc/posix-functions/vprintf.texi: Update.
40599         * doc/posix-functions/vsnprintf.texi: Update.
40600         * doc/posix-functions/vsprintf.texi: Update.
40601         * doc/glibc-functions/obstack_printf.texi: Update.
40602         * doc/glibc-functions/obstack_vprintf.texi: Update.
40603         Reported by Eric Blake.
40604
40605 2009-02-25  Bruno Haible  <bruno@clisp.org>
40606
40607         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40608         with known value.
40609         Reported by Gary V. Vaughan <gary@gnu.org>.
40610
40611 2009-02-25  Bruno Haible  <bruno@clisp.org>
40612
40613         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40614         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40615         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40616         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40617         Reported by Gary V. Vaughan <gary@gnu.org>.
40618
40619 2009-02-25  Bruno Haible  <bruno@clisp.org>
40620
40621         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40622         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40623         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40624         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40625         Reported by Gary V. Vaughan <gary@gnu.org>.
40626
40627 2009-02-25  Eric Blake  <ebb9@byu.net>
40628
40629         tests: skip fseek/ftell tests if ungetc is broken
40630         * m4/ungetc.m4: New file.
40631         * modules/fseek-tests: Split test, so ungetc dependency is
40632         separate from rest of test.
40633         * modules/fseeko-tests: Likewise.
40634         * modules/ftell-tests: Likewise.
40635         * modules/ftello-tests: Likewise.
40636         * tests/test-fseek.c (main): Isolate ungetc dependency.
40637         * tests/test-fseeko.c (main): Likewise.
40638         * tests/test-ftell.c (main): Likewise.
40639         * tests/test-ftello.c (main): Likewise.
40640         * tests/test-fseek2.sh: New file.
40641         * tests/test-fseeko2.sh: Likewise.
40642         * tests/test-ftell2.sh: Likewise.
40643         * tests/test-ftello2.sh: Likewise.
40644
40645 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40646
40647         test-getaddrinfo: fix usage of skip return code 77
40648         * tests/test-gettaddrinfo.c: Return skip code 77 only
40649         for first occurance of skip (4x77 is not 77)
40650
40651 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40652
40653         strtod: avoid C99 decl-after-statement
40654         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40655
40656 2009-02-24  Eric Blake  <ebb9@byu.net>
40657
40658         strtod: detect HP-UX 11.31 bug
40659         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40660         Reported by Gary V. Vaughan.
40661
40662 2009-02-23  Bruno Haible  <bruno@clisp.org>
40663
40664         Fix invalid read past end of memory block.
40665         * lib/vasnprintf.c (DCHAR_SET): Define.
40666         (local_wcslen): Define only when needed.
40667         (local_strnlen, local_wcsnlen): New functions.
40668         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40669         directives that involve a conversion ourselves.
40670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40671         wcsnlen, mbrtowc, wcrtomb.
40672         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40673         * tests/test-vasprintf-posix.c (test_function): Likewise.
40674         * tests/test-snprintf-posix.h (test_function): Likewise.
40675         * tests/test-sprintf-posix.h (test_function): Likewise.
40676         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40677
40678 2009-02-22  Bruno Haible  <bruno@clisp.org>
40679
40680         Implement new clarified decomposition of Hangul syllables.
40681         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40682         of type LTV, return only a pairwise decomposition.
40683         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40684         Likewise.
40685         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40686         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40687         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40688
40689 2009-02-22  Bruno Haible  <bruno@clisp.org>
40690
40691         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40692         zero-length results and shrink excess allocated memory.
40693         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40694         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40695         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40696         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40697         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40698         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40699         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40700         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40701         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40702         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40703         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40704         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40705
40706 2009-02-21  Bruno Haible  <bruno@clisp.org>
40707
40708         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40709         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40710         spaces after a period. Put a space between a macro name and its
40711         argument list. Trivial rewordings.
40712         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40713         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40714         (main): Return 0 explicitly.
40715
40716 2009-02-21  Bruno Haible  <bruno@clisp.org>
40717
40718         Tests for module 'uninorm/filter'.
40719         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40720         * modules/uninorm/filter-tests: New file.
40721
40722         New module 'uninorm/filter'.
40723         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40724         uninorm_filter_flush, uninorm_filter_free): New declarations.
40725         * lib/uninorm/uninorm-filter.c: New file.
40726         * modules/uninorm/filter: New file.
40727
40728 2009-02-21  Bruno Haible  <bruno@clisp.org>
40729
40730         Tests for module 'uninorm/nfkc'.
40731         * tests/uninorm/test-nfkc.c: New file.
40732         * tests/uninorm/test-u8-nfkc.c: New file.
40733         * tests/uninorm/test-u16-nfkc.c: New file.
40734         * tests/uninorm/test-u32-nfkc.c: New file.
40735         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40736         * tests/uninorm/test-u32-nfkc-big.c: New file.
40737         * modules/uninorm/nfkc-tests: New file.
40738
40739         New module 'uninorm/nfkc'.
40740         * lib/uninorm/nfkc.c: New file.
40741         * modules/uninorm/nfkc: New file.
40742
40743         Tests for module 'uninorm/nfkd'.
40744         * tests/uninorm/test-nfkd.c: New file.
40745         * tests/uninorm/test-u8-nfkd.c: New file.
40746         * tests/uninorm/test-u16-nfkd.c: New file.
40747         * tests/uninorm/test-u32-nfkd.c: New file.
40748         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40749         * tests/uninorm/test-u32-nfkd-big.c: New file.
40750         * modules/uninorm/nfkd-tests: New file.
40751
40752         New module 'uninorm/nfkd'.
40753         * lib/uninorm/nfkd.c: New file.
40754         * modules/uninorm/nfkd: New file.
40755
40756         Tests for module 'uninorm/nfc'.
40757         * tests/uninorm/test-nfc.c: New file.
40758         * tests/uninorm/test-u8-nfc.c: New file.
40759         * tests/uninorm/test-u16-nfc.c: New file.
40760         * tests/uninorm/test-u32-nfc.c: New file.
40761         * tests/uninorm/test-u32-nfc-big.sh: New file.
40762         * tests/uninorm/test-u32-nfc-big.c: New file.
40763         * modules/uninorm/nfc-tests: New file.
40764
40765         New module 'uninorm/nfc'.
40766         * lib/uninorm/nfc.c: New file.
40767         * modules/uninorm/nfc: New file.
40768
40769         Tests for module 'uninorm/nfd'.
40770         * tests/uninorm/test-nfd.c: New file.
40771         * tests/uninorm/test-u8-nfd.c: New file.
40772         * tests/uninorm/test-u16-nfd.c: New file.
40773         * tests/uninorm/test-u32-nfd.c: New file.
40774         * tests/uninorm/test-u32-nfd-big.sh: New file.
40775         * tests/uninorm/test-u32-nfd-big.c: New file.
40776         * tests/uninorm/test-u32-normalize-big.h: New file.
40777         * tests/uninorm/test-u32-normalize-big.c: New file.
40778         * tests/uninorm/NormalizationTest.txt: New file, created from
40779         Unicode 5.1.0 NormalizationTest.txt.
40780         * modules/uninorm/nfd-tests: New file.
40781
40782         New module 'uninorm/nfd'.
40783         * lib/uninorm/nfd.c: New file.
40784         * modules/uninorm/nfd: New file.
40785
40786         New module 'uninorm/u32-normalize'.
40787         * lib/uninorm/u32-normalize.c: New file.
40788         * modules/uninorm/u32-normalize: New file.
40789
40790         New module 'uninorm/u16-normalize'.
40791         * lib/uninorm/u16-normalize.c: New file.
40792         * modules/uninorm/u16-normalize: New file.
40793
40794         New module 'uninorm/u8-normalize'.
40795         * lib/uninorm/u8-normalize.c: New file.
40796         * lib/uninorm/normalize-internal.h: New file.
40797         * lib/uninorm/u-normalize-internal.h: New file.
40798         * modules/uninorm/u8-normalize: New file.
40799
40800         New module 'uninorm/decompose-internal'.
40801         * lib/uninorm/decompose-internal.c: New file.
40802         * modules/uninorm/decompose-internal: New file.
40803
40804         Tests for module 'uninorm/composition'.
40805         * tests/uninorm/test-composition.c: New file.
40806         * modules/uninorm/composition-tests: New file.
40807
40808         New module 'uninorm/composition'.
40809         * lib/uninorm/composition.c: New file.
40810         * lib/uninorm/composition-table.gperf: New file, generated by
40811         gen-uni-tables.
40812         * modules/uninorm/composition: New file.
40813
40814         Tests for module 'uninorm/compat-decomposition'.
40815         * tests/uninorm/test-compat-decomposition.c: New file.
40816         * modules/uninorm/compat-decomposition-tests: New file.
40817
40818         New module 'uninorm/compat-decomposition'.
40819         * lib/uninorm/decompose-internal.h: New file.
40820         * lib/uninorm/compat-decomposition.c: New file.
40821         * modules/uninorm/compat-decomposition: New file.
40822
40823         Tests for module 'uninorm/canonical-decomposition'.
40824         * tests/uninorm/test-canonical-decomposition.c: New file.
40825         * modules/uninorm/canonical-decomposition-tests: New file.
40826
40827         New module 'uninorm/canonical-decomposition'.
40828         * lib/uninorm/canonical-decomposition.c: New file.
40829         * modules/uninorm/canonical-decomposition: New file.
40830
40831         Tests for module 'uninorm/decomposition'.
40832         * tests/uninorm/test-decomposition.c: New file.
40833         * modules/uninorm/decomposition-tests: New file.
40834
40835         New module 'uninorm/decomposition'.
40836         * lib/uninorm/decomposition.c: New file.
40837         * modules/uninorm/decomposition: New file.
40838
40839         New module 'uninorm/decomposition-table'.
40840         * lib/uninorm/decomposition-table.h: New file.
40841         * lib/uninorm/decomposition-table.c: New file.
40842         * lib/uninorm/decomposition-table1.h: New file, generated by
40843         gen-uni-tables.
40844         * lib/uninorm/decomposition-table2.h: New file, generated by
40845         gen-uni-tables.
40846         * modules/uninorm/decomposition-table: New file.
40847
40848         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40849         (UC_DECOMP_*): New enumeration items.
40850         (get_decomposition): New function.
40851         (struct decomp_table): New type.
40852         (output_decomposition, output_decomposition_tables): New functions.
40853         (unicode_composition_exclusions): New variable.
40854         (fill_composition_exclusions, debug_output_composition_tables): New
40855         functions.
40856         (main): Accept one more argument. Invoke fill_composition_exclusions.
40857         Output decomposition and composition tables.
40858
40859         New module 'uninorm/base'.
40860         * lib/uninorm.h: New file.
40861         * lib/unictype.h: Update comment.
40862         * modules/uninorm/base: New file.
40863
40864 2009-02-21  David Lutterkort  <lutter@redhat.com>
40865
40866         Tests for module 'safe-alloc'.
40867         * tests/test-safe-alloc.c: New file.
40868         * modules/safe-alloc-tests: New file.
40869
40870         New module 'safe-alloc'.
40871         * lib/safe-alloc.h: New file.
40872         * lib/safe-alloc.c: New file.
40873         * m4/safe-alloc.m4: New file.
40874         * modules/safe-alloc: New file.
40875         * doc/safe-alloc.texi: New file.
40876         * doc/gnulib.texi: Include it.
40877         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40878         safe-alloc.
40879
40880 2009-02-18  Bruno Haible  <bruno@clisp.org>
40881
40882         Fix link error on non-glibc systems.
40883         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40884         variable.
40885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40886
40887 2009-02-18  Jim Meyering  <meyering@redhat.com>
40888
40889         fts: avoid used-uninitialized error due to recent change
40890         * lib/fts.c (fts_read): Guard uses of the new member,
40891         parent->fts_n_dirs_remaining, since it's not relevant for
40892         the parent of a directory specified on the command-line.
40893
40894 2009-02-17  James Youngman  <jay@gnu.org>
40895             Bruno Haible  <bruno@clisp.org>
40896
40897         * m4/include_next.m4: Reformulate comment.
40898
40899 2009-02-16  Jim Meyering  <meyering@redhat.com>
40900
40901         fts: add #if guards so that the fts_lgpl module still builds
40902         * lib/fts.c: Guard just-added hash-table-using parts with
40903         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40904         Reported by Simon Josefsson.
40905
40906 2009-02-15  Bruno Haible  <bruno@clisp.org>
40907
40908         * modules/array-mergesort-tests: New file.
40909         * tests/test-array-mergesort.c: New file.
40910
40911         New module 'array-mergesort'.
40912         * modules/array-mergesort: New file.
40913         * lib/array-mergesort.h: New file.
40914
40915 2009-02-15  Bruno Haible  <bruno@clisp.org>
40916
40917         Fix 2009-02-07 commit.
40918         * lib/gen-uni-tables.c (output_predicate, output_category,
40919         output_combclass, output_bidi_category, output_decimal_digit,
40920         output_digit, output_numeric, output_mirror, output_scripts,
40921         output_ident_category, output_simple_mapping): Fix format directives.
40922         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40923
40924 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40925
40926         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40927         fixes are available from IBM.
40928
40929 2009-02-13  Jim Meyering  <meyering@redhat.com>
40930
40931         fts: arrange not to stat non-directories in more cases
40932         This makes GNU find (when it doesn't need to stat each file)
40933         *much* more efficient at traversing reiserfs file systems.
40934         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40935         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40936         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40937         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40938         (leaf_optimization_applies): New function.
40939         (LCO_hash, LCO_compare): New helper functions.
40940         (link_count_optimize_ok): New function.
40941         (fts_stat): Initialize new member (if dir).
40942         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40943         we've just stat'ed a directory.  Skip the stat call when possible.
40944         ---
40945         Note this AFS-related exchange:
40946         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40947         and note find's pioctl call in find/fstype.c.
40948         But that is necessary only if you want to enable the
40949         optimization for AFS, and for now, I don't.
40950
40951         fts: move a function definition "up" (no semantic change)
40952         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40953         "up" to precede upcoming use of a related function.
40954
40955 2009-02-11  Jim Meyering  <meyering@redhat.com>
40956
40957         fts: correct internal computation of nlinks (optimization-related)
40958         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40959         whether the current entry is a directory, so don't test it.
40960
40961 2009-02-10  Bruno Haible  <bruno@clisp.org>
40962
40963         Tests for module 'uniwbrk/ulc-wordbreaks'.
40964         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40965         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40966         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40967
40968         Tests for module 'uniwbrk/u32-wordbreaks'.
40969         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40970         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40971
40972         Tests for module 'uniwbrk/u16-wordbreaks'.
40973         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40974         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40975
40976         Tests for module 'uniwbrk/u8-wordbreaks'.
40977         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40978         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40979
40980 2009-02-10  Bruno Haible  <bruno@clisp.org>
40981
40982         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40983         property.
40984         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40985         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40986         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40987
40988 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40989
40990         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40991         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40992
40993 2009-02-10  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40996         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40997         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40998         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40999         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41000         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41001
41002 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41003
41004         * lib/sockets.h (gl_fd_to_handle): New function.
41005
41006         * tests/test-sockets.c: Call gl_fd_to_handle.
41007
41008 2009-02-09  Bruno Haible  <bruno@clisp.org>
41009
41010         * doc/havelib.texi: Document the conventions on bi-arch systems.
41011
41012 2009-02-08  Bruno Haible  <bruno@clisp.org>
41013
41014         Document the AC_LIB_LINKFLAGS macro.
41015         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41016         * doc/gnulib.texi: Include it.
41017
41018 2009-02-08  Bruno Haible  <bruno@clisp.org>
41019
41020         Fix wrong order of sections, compared to TOC.
41021         * doc/gnulib.texi: Include relocatable-maint.texi after the
41022         "Regular expressions" node, not before.
41023
41024 2009-02-08  Bruno Haible  <bruno@clisp.org>
41025
41026         Tests for module 'unicase/totitle'.
41027         * modules/unicase/totitle-tests: New file.
41028
41029         Tests for module 'unicase/tolower'.
41030         * modules/unicase/tolower-tests: New file.
41031
41032         Tests for module 'unicase/toupper'.
41033         * modules/unicase/toupper-tests: New file.
41034         * tests/unicase/test-mapping-part1.h: New file.
41035         * tests/unicase/test-mapping-part2.h: New file.
41036
41037         New module 'unicase/totitle'.
41038         * modules/unicase/totitle: New file.
41039         * lib/unicase/totitle.c: New file.
41040
41041         New module 'unicase/tolower'.
41042         * modules/unicase/tolower: New file.
41043         * lib/unicase/tolower.c: New file.
41044
41045         New module 'unicase/toupper'.
41046         * modules/unicase/toupper: New file.
41047         * lib/unicase/toupper.c: New file.
41048         * lib/unicase/simple-mapping.h: New file.
41049
41050         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41051         (mapping_table): New structure.
41052         (output_simple_mapping): New function.
41053         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41054         * modules/gen-uni-tables (Description): Update.
41055         * lib/unicase/toupper.h: New file, automatically generated by
41056         gen-uni-tables.
41057         * lib/unicase/tolower.h: New file, automatically generated by
41058         gen-uni-tables.
41059         * lib/unicase/totitle.h: New file, automatically generated by
41060         gen-uni-tables.
41061         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41062         gen-uni-tables.
41063         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41064         gen-uni-tables.
41065         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41066         gen-uni-tables.
41067
41068         New module 'unicase/base'.
41069         * modules/unicase/base: New file.
41070         * lib/unicase.h: New file.
41071
41072 2009-02-08  Bruno Haible  <bruno@clisp.org>
41073
41074         New module 'uniwbrk/ulc-wordbreaks'.
41075         * modules/uniwbrk/ulc-wordbreaks: New file.
41076         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41077
41078         New module 'uniwbrk/u32-wordbreaks'.
41079         * modules/uniwbrk/u32-wordbreaks: New file.
41080         * lib/uniwbrk/u32-wordbreaks.c: New file.
41081
41082         New module 'uniwbrk/u16-wordbreaks'.
41083         * modules/uniwbrk/u16-wordbreaks: New file.
41084         * lib/uniwbrk/u16-wordbreaks.c: New file.
41085
41086         New module 'uniwbrk/u8-wordbreaks'.
41087         * modules/uniwbrk/u8-wordbreaks: New file.
41088         * lib/uniwbrk/u8-wordbreaks.c: New file.
41089         * lib/uniwbrk/u-wordbreaks.h: New file.
41090
41091         New module 'uniwbrk/table'.
41092         * modules/uniwbrk/table: New file.
41093         * lib/uniwbrk/wbrktable.h: New file.
41094         * lib/uniwbrk/wbrktable.c: New file.
41095
41096         New module 'uniwbrk/wordbreak-property'.
41097         * modules/uniwbrk/wordbreak-property: New file.
41098         * lib/uniwbrk/wordbreak-property.c: New file.
41099
41100         * lib/gen-uni-tables.c (WBP_*): New enum items.
41101         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41102         (unicode_org_wbp): New variable.
41103         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41104         New functions.
41105         (wbp_table): New structure.
41106         (output_wbp, output_wbrk_tables): New functions.
41107         (main): Accept additional argument. Invoke fill_org_wbp,
41108         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41109         output_wbrk_tables.
41110         * modules/gen-uni-tables (Description): Update.
41111         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41112         gen-uni-tables.
41113
41114         New module 'uniwbrk/base'.
41115         * modules/uniwbrk/base: New file.
41116         * lib/uniwbrk.h: New file.
41117
41118 2009-02-08  Bruno Haible  <bruno@clisp.org>
41119
41120         Update to Unicode 5.1.0.
41121         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41122         U+2185..U+2188.
41123         (is_property_default_ignorable_code_point): Don't include characters
41124         of category Cc or Cs and not-a-characters.
41125         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41126         U+0D79, U+109E, U+109F, U+A60C.
41127         * lib/unictype/bidi_of.h: Regenerated.
41128         * lib/unictype/blocks.h: Regenerated.
41129         * lib/unictype/categ_C.h: Regenerated.
41130         * lib/unictype/categ_Cf.h: Regenerated.
41131         * lib/unictype/categ_Cn.h: Regenerated.
41132         * lib/unictype/categ_L.h: Regenerated.
41133         * lib/unictype/categ_Ll.h: Regenerated.
41134         * lib/unictype/categ_Lm.h: Regenerated.
41135         * lib/unictype/categ_Lo.h: Regenerated.
41136         * lib/unictype/categ_Lu.h: Regenerated.
41137         * lib/unictype/categ_M.h: Regenerated.
41138         * lib/unictype/categ_Mc.h: Regenerated.
41139         * lib/unictype/categ_Me.h: Regenerated.
41140         * lib/unictype/categ_Mn.h: Regenerated.
41141         * lib/unictype/categ_N.h: Regenerated.
41142         * lib/unictype/categ_Nd.h: Regenerated.
41143         * lib/unictype/categ_Nl.h: Regenerated.
41144         * lib/unictype/categ_No.h: Regenerated.
41145         * lib/unictype/categ_P.h: Regenerated.
41146         * lib/unictype/categ_Pd.h: Regenerated.
41147         * lib/unictype/categ_Pe.h: Regenerated.
41148         * lib/unictype/categ_Pf.h: Regenerated.
41149         * lib/unictype/categ_Pi.h: Regenerated.
41150         * lib/unictype/categ_Po.h: Regenerated.
41151         * lib/unictype/categ_Ps.h: Regenerated.
41152         * lib/unictype/categ_S.h: Regenerated.
41153         * lib/unictype/categ_Sk.h: Regenerated.
41154         * lib/unictype/categ_Sm.h: Regenerated.
41155         * lib/unictype/categ_So.h: Regenerated.
41156         * lib/unictype/categ_of.h: Regenerated.
41157         * lib/unictype/combining.h: Regenerated.
41158         * lib/unictype/ctype_alnum.h: Regenerated.
41159         * lib/unictype/ctype_alpha.h: Regenerated.
41160         * lib/unictype/ctype_graph.h: Regenerated.
41161         * lib/unictype/ctype_lower.h: Regenerated.
41162         * lib/unictype/ctype_print.h: Regenerated.
41163         * lib/unictype/ctype_punct.h: Regenerated.
41164         * lib/unictype/ctype_upper.h: Regenerated.
41165         * lib/unictype/decdigit.h: Regenerated.
41166         * lib/unictype/digit.h: Regenerated.
41167         * lib/unictype/mirror.h: Regenerated.
41168         * lib/unictype/numeric.h: Regenerated.
41169         * lib/unictype/pr_alphabetic.h: Regenerated.
41170         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41171         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41172         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41173         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41174         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41175         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41176         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41177         * lib/unictype/pr_combining.h: Regenerated.
41178         * lib/unictype/pr_dash.h: Regenerated.
41179         * lib/unictype/pr_decimal_digit.h: Regenerated.
41180         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41181         * lib/unictype/pr_deprecated.h: Regenerated.
41182         * lib/unictype/pr_diacritic.h: Regenerated.
41183         * lib/unictype/pr_extender.h: Regenerated.
41184         * lib/unictype/pr_format_control.h: Regenerated.
41185         * lib/unictype/pr_grapheme_base.h: Regenerated.
41186         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41187         * lib/unictype/pr_grapheme_link.h: Regenerated.
41188         * lib/unictype/pr_id_continue.h: Regenerated.
41189         * lib/unictype/pr_id_start.h: Regenerated.
41190         * lib/unictype/pr_ideographic.h: Regenerated.
41191         * lib/unictype/pr_ignorable_control.h: Regenerated.
41192         * lib/unictype/pr_lowercase.h: Regenerated.
41193         * lib/unictype/pr_math.h: Regenerated.
41194         * lib/unictype/pr_numeric.h: Regenerated.
41195         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41196         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41197         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41198         * lib/unictype/pr_other_id_continue.h: Regenerated.
41199         * lib/unictype/pr_other_lowercase.h: Regenerated.
41200         * lib/unictype/pr_other_math.h: Regenerated.
41201         * lib/unictype/pr_punctuation.h: Regenerated.
41202         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41203         * lib/unictype/pr_soft_dotted.h: Regenerated.
41204         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41205         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41206         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41207         * lib/unictype/pr_uppercase.h: Regenerated.
41208         * lib/unictype/pr_xid_continue.h: Regenerated.
41209         * lib/unictype/pr_xid_start.h: Regenerated.
41210         * lib/unictype/pr_zero_width.h: Regenerated.
41211         * lib/unictype/scripts.h: Regenerated.
41212         * lib/unictype/scripts_byname.gperf: Regenerated.
41213         * lib/unictype/sy_java_ident.h: Regenerated.
41214         * lib/unilbrk/lbrkprop1.h: Regenerated.
41215         * lib/unilbrk/lbrkprop2.h: Regenerated.
41216         * tests/unictype/test-categ_C.c: Regenerated.
41217         * tests/unictype/test-categ_Cf.c: Regenerated.
41218         * tests/unictype/test-categ_Cn.c: Regenerated.
41219         * tests/unictype/test-categ_L.c: Regenerated.
41220         * tests/unictype/test-categ_Ll.c: Regenerated.
41221         * tests/unictype/test-categ_Lm.c: Regenerated.
41222         * tests/unictype/test-categ_Lo.c: Regenerated.
41223         * tests/unictype/test-categ_Lu.c: Regenerated.
41224         * tests/unictype/test-categ_M.c: Regenerated.
41225         * tests/unictype/test-categ_Mc.c: Regenerated.
41226         * tests/unictype/test-categ_Me.c: Regenerated.
41227         * tests/unictype/test-categ_Mn.c: Regenerated.
41228         * tests/unictype/test-categ_N.c: Regenerated.
41229         * tests/unictype/test-categ_Nd.c: Regenerated.
41230         * tests/unictype/test-categ_Nl.c: Regenerated.
41231         * tests/unictype/test-categ_No.c: Regenerated.
41232         * tests/unictype/test-categ_P.c: Regenerated.
41233         * tests/unictype/test-categ_Pd.c: Regenerated.
41234         * tests/unictype/test-categ_Pe.c: Regenerated.
41235         * tests/unictype/test-categ_Pf.c: Regenerated.
41236         * tests/unictype/test-categ_Pi.c: Regenerated.
41237         * tests/unictype/test-categ_Po.c: Regenerated.
41238         * tests/unictype/test-categ_Ps.c: Regenerated.
41239         * tests/unictype/test-categ_S.c: Regenerated.
41240         * tests/unictype/test-categ_Sk.c: Regenerated.
41241         * tests/unictype/test-categ_Sm.c: Regenerated.
41242         * tests/unictype/test-categ_So.c: Regenerated.
41243         * tests/unictype/test-ctype_alnum.c: Regenerated.
41244         * tests/unictype/test-ctype_alpha.c: Regenerated.
41245         * tests/unictype/test-ctype_graph.c: Regenerated.
41246         * tests/unictype/test-ctype_lower.c: Regenerated.
41247         * tests/unictype/test-ctype_print.c: Regenerated.
41248         * tests/unictype/test-ctype_punct.c: Regenerated.
41249         * tests/unictype/test-ctype_upper.c: Regenerated.
41250         * tests/unictype/test-decdigit.h: Regenerated.
41251         * tests/unictype/test-digit.h: Regenerated.
41252         * tests/unictype/test-numeric.h: Regenerated.
41253         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41254         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41255         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41256         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41257         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41258         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41259         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41260         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41261         * tests/unictype/test-pr_combining.c: Regenerated.
41262         * tests/unictype/test-pr_dash.c: Regenerated.
41263         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41264         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41265         * tests/unictype/test-pr_deprecated.c: Regenerated.
41266         * tests/unictype/test-pr_diacritic.c: Regenerated.
41267         * tests/unictype/test-pr_extender.c: Regenerated.
41268         * tests/unictype/test-pr_format_control.c: Regenerated.
41269         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41270         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41271         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41272         * tests/unictype/test-pr_id_continue.c: Regenerated.
41273         * tests/unictype/test-pr_id_start.c: Regenerated.
41274         * tests/unictype/test-pr_ideographic.c: Regenerated.
41275         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41276         * tests/unictype/test-pr_lowercase.c: Regenerated.
41277         * tests/unictype/test-pr_math.c: Regenerated.
41278         * tests/unictype/test-pr_numeric.c: Regenerated.
41279         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41280         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41281         Regenerated.
41282         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41283         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41284         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41285         * tests/unictype/test-pr_other_math.c: Regenerated.
41286         * tests/unictype/test-pr_punctuation.c: Regenerated.
41287         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41288         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41289         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41290         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41291         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41292         * tests/unictype/test-pr_uppercase.c: Regenerated.
41293         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41294         * tests/unictype/test-pr_xid_start.c: Regenerated.
41295         * tests/unictype/test-pr_zero_width.c: Regenerated.
41296
41297         Update to Unicode 5.1.0.
41298         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41299         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41300         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41301         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41302         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41303         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41304         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41305         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41306         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41307         (nonspacing_table_ind): Update.
41308         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41309
41310         Update to Unicode 5.1.0.
41311         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41312         code transform.
41313         * lib/uniname/uniname.c (unicode_character_name,
41314         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41315         * lib/uniname/uninames.h: Regenerated.
41316         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41317
41318 2009-02-07  Bruno Haible  <bruno@clisp.org>
41319
41320         Merge gen-ctype and gen-lbrk into a single program.
41321         * lib/gen-uni-tables.c: New file, incorporating
41322         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41323         Add directory prefixes to the names of the generated files.
41324         * lib/unictype/gen-ctype.c: Remove file.
41325         * lib/unilbrk/gen-lbrk.c: Remove file.
41326         * modules/gen-uni-tables: New file.
41327         * modules/unictype/gen-ctype: Remove file.
41328         * modules/unilbrk/gen-lbrk: Remove file.
41329
41330 2009-02-07  Bruno Haible  <bruno@clisp.org>
41331
41332         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41333
41334         New module 'unistr/u32-strcoll'.
41335         * modules/unistr/u32-strcoll: New file.
41336         * lib/unistr/u32-strcoll.c: New file.
41337
41338         New module 'unistr/u16-strcoll'.
41339         * modules/unistr/u16-strcoll: New file.
41340         * lib/unistr/u16-strcoll.c: New file.
41341
41342         New module 'unistr/u8-strcoll'.
41343         * modules/unistr/u8-strcoll: New file.
41344         * lib/unistr/u8-strcoll.c: New file.
41345         * lib/unistr/u-strcoll.h: New file.
41346
41347 2009-02-07  Bruno Haible  <bruno@clisp.org>
41348
41349         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41350         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41351         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41352         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41353         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41354         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41355
41356 2009-02-07  Bruno Haible  <bruno@clisp.org>
41357
41358         Make 64-bit clean.
41359         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41360         output_combclass, output_bidi_category, output_decimal_digit,
41361         output_digit, output_numeric, output_mirror, output_scripts,
41362         output_ident_category): Use proper width specifier in format strings.
41363
41364 2009-02-07  Bruno Haible  <bruno@clisp.org>
41365
41366         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41367         failure behaviour.
41368
41369 2009-02-07  Jim Meyering  <meyering@redhat.com>
41370
41371         regex: avoid compilation failure with upcoming gcc-4.4
41372         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41373         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41374         "... error: integer overflow in preprocessor expression".
41375
41376 2009-02-05  Ben Pfaff  <blp@gnu.org>
41377
41378         Fix link errors on Windows when close module is used.
41379         * modules/close: Add $(LIB_CLOSE) to Link section.
41380         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41381         $(LIB_CLOSE) on Windows.
41382
41383 2009-02-05  Jim Meyering  <meyering@redhat.com>
41384
41385         still avoid unused-parameter warnings, but do it cleanly
41386         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41387         (get_fs_usage): Cast to void instead.
41388         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41389         (dev_from_mount_options, read_file_system_list): Cast to void.
41390         Prompted by Bruno Haible.
41391
41392 2009-02-04  Jim Meyering  <meyering@redhat.com>
41393
41394         fsusage.c: correct copyright year
41395         * lib/fsusage.c: Reflect year in which the change is pushed into
41396
41397         avoid misc. warnings
41398         * lib/fsusage.c (UNUSED_PARAM): Define.
41399         (get_fs_usage): Mark parameter "disk" as unused.
41400         * lib/getugroups.c (getgrent): Use "void" in prototype.
41401         * lib/mountlist.c: Mark unused parameters.
41402         (read_file_system_list): Declare a local with "const".
41403         * lib/nanosleep.c (getnow): Declare static.
41404         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41405
41406         dirfd: set errno upon failure
41407         * lib/dirfd.c: Include <errno.h>.
41408         Set errno to ENOTSUP when returning -1.
41409         * modules/dirfd (Depends-on): Add errno.
41410         Suggested by John Kodis <kodis@comcast.net>.
41411
41412 2009-02-01  Bruno Haible  <bruno@clisp.org>
41413
41414         Don't assume sizeof (long) >= sizeof (void *).
41415         * lib/memcmp.c: Include stdint.h.
41416         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41417         srcp2 to 'const byte *'.
41418         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41419         types to uintptr_t.
41420         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41421         * modules/memcmp (Depends-on): Add stdint.
41422         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41423
41424 2009-01-30  Eric Blake  <ebb9@byu.net>
41425
41426         fix more require-before-expand issues
41427         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41428         expand, AC_PROG_AWK.
41429         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41430
41431 2009-01-28  Eric Blake  <ebb9@byu.net>
41432
41433         version-etc: use consistent URL formatting
41434         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41435         Improve formatting.  Use fputs for string without %.
41436
41437 2009-01-28  Jim Meyering  <meyering@redhat.com>
41438
41439         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41440         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41441         "underquoted definition of NAME" from autoconf-2.59.
41442
41443 2009-01-28  Bruno Haible  <bruno@clisp.org>
41444
41445         * doc/gnulib.texi: Add "Obsolete modules" to index.
41446
41447 2009-01-28  Jim Meyering  <meyering@redhat.com>
41448
41449         useless-if-before-free: recognize more variants
41450         * build-aux/useless-if-before-free: Also recognize e.g.,
41451         if (NULL != p) free (p);
41452
41453 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41454
41455         test-getaddrinfo: skip (don't fail) this test when there's no network
41456         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41457         on the presumption that it means you lack network access.
41458
41459 2009-01-26  Jim Meyering  <meyering@redhat.com>
41460
41461         fflush: avoid warnings on modern systems
41462         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41463         pos and result, into scopes where they're used.
41464
41465 2009-01-26  Eric Blake  <ebb9@byu.net>
41466
41467         Silence warning reintroduced by recent extensions patch.
41468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41469         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41470         autoconf.
41471
41472         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41473         * m4/00gnulib.m4: New file.
41474         * gnulib-tool (func_get_filelist): Always use it.
41475         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41476         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41477
41478 2009-01-25  Bruno Haible  <bruno@clisp.org>
41479
41480         Make test-quotearg work on MacOS X and AIX.
41481         * tests/test-quotearg.sh: New file.
41482         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41483         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41484         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41485         include <libintl.h>.
41486         (fake_locale): Remove variable.
41487         (gettext, dgettext, dcgettext): Remove functions.
41488         (main): Instead of setting a fake locale, set a real locale. Call
41489         textdomain and bindtextdomain.
41490         * modules/quotearg-tests (Files): Add the new files.
41491         (Depends-on): Add gettext, setenv, unsetenv.
41492         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41493         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41494         Augment TESTS_ENVIRONMENT.
41495
41496 2009-01-25  Bruno Haible  <bruno@clisp.org>
41497
41498         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41499         fr_FR.ISO8859-1 locale on MacOS X.
41500         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41501         ja_JP.eucJP locale on MacOS X.
41502         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41503         zh_CN.GB18030 locale on MacOS X.
41504
41505 2009-01-25  Bruno Haible  <bruno@clisp.org>
41506
41507         Avoid link errors on MacOS X 10.3.
41508         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41509         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41510
41511 2009-01-25  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41514         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41515         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41516         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41517         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41518         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41519         posix_spawnattr_init, posix_spawnattr_setsigmask,
41520         posix_spawnattr_setflags, posix_spawnattr_destroy.
41521
41522         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41523         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41524         * modules/execute (Files): Remove m4/posix_spawn.m4.
41525         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41526         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41527         posix_spawnattr_init, posix_spawnattr_setsigmask,
41528         posix_spawnattr_setflags, posix_spawnattr_destroy.
41529
41530 2009-01-25  Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/glthread/threadlib.c: Include <stdlib.h>.
41533
41534 2009-01-25  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/glthread/threadlib.c (dummy): New declaration.
41537
41538 2009-01-25  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41541         multibyte characters also for the GB18030 encoding. Don't crash when
41542         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41543
41544 2009-01-25  Bruno Haible  <bruno@clisp.org>
41545
41546         Avoid redefining 'struct random_data' on OSF/1 5.1.
41547         * lib/stdlib.in.h: Include <random.h> if it exists.
41548         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41549         HAVE_RANDOM_H. Include <random.h> when testing whether
41550         'struct random_data' exists.
41551         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41552
41553 2009-01-25  Bruno Haible  <bruno@clisp.org>
41554
41555         Don't install charset.alias on MacOS X >= 10.3.
41556         * lib/localcharset.c (DARWIN7): New macro.
41557         (get_charset_aliases): Hardcode the result for Darwin7.
41558         * modules/localcharset (install-exec-local): Don't install
41559         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41560
41561 2009-01-25  Bruno Haible  <bruno@clisp.org>
41562
41563         Don't install charset.alias on mingw and Cygwin.
41564         * modules/localcharset (install-exec-local): Don't install
41565         charset.alias on mingw and Cygwin, if the file does not yet exist.
41566         The result for these platforms is hardcoded in localcharset.c.
41567
41568 2009-01-25  Bruno Haible  <bruno@clisp.org>
41569
41570         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41572         before requiring AC_USE_SYSTEM_EXTENSIONS.
41573
41574 2009-01-25  Jim Meyering  <meyering@redhat.com>
41575
41576         c-strtod: avoid warnings
41577         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41578         "assignment discards qualifiers from pointer target type" warnings.
41579
41580 2009-01-24  Bruno Haible  <bruno@clisp.org>
41581
41582         Add support for non-UTF-8 locales on MacOS X.
41583         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41584         canonical encodings. For Darwin 7 and newer, don't map traditional
41585         encodings to UTF-8.
41586         Reported by Vincent Lefevre <vincent@vinc17.org>
41587         at <http://savannah.gnu.org/bugs/?25235>.
41588
41589 2009-01-24  Bruno Haible  <bruno@clisp.org>
41590
41591         * doc/gnulib.texi (Obsolete modules): New section.
41592         Reported by Mike Frysinger <vapier@gentoo.org>.
41593
41594 2009-01-24  Bruno Haible  <bruno@clisp.org>
41595
41596         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41597         (%.dvi): New rule.
41598
41599 2009-01-24  Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41602         Reported by Eric Blake.
41603
41604 2009-01-24  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41607         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41608         Reported by Gary V. Vaughan <gary@gnu.org>.
41609
41610 2009-01-24  Bruno Haible  <bruno@clisp.org>
41611
41612         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41613
41614 2009-01-23  Bruno Haible  <bruno@clisp.org>
41615
41616         Make c-strtod, c-strtold usable in libraries.
41617         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41618         (C_STRTOD): Call strdup instead of xstrdup.
41619         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41620         * modules/c-strtold (Depends-on): Likewise.
41621         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41622         * NEWS: Mention the change.
41623         Reported by Michael Gold <mgold@ncf.ca>.
41624
41625 2009-01-23  Jim Meyering  <meyering@redhat.com>
41626
41627         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41628         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41629         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41630
41631 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41632
41633         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41634         GNU CoreUtils.
41635         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41636         * modules/version-etc (Description): Update.
41637
41638 2009-01-22  Bruno Haible  <bruno@clisp.org>
41639
41640         Cache the C locale object.
41641         * lib/c-strtod.c (c_locale_cache): New variable.
41642         (c_locale): New function.
41643         (C_STRTOD): Use it, and don't call freelocale.
41644         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41645         Suggested by Paolo Bonzini.
41646
41647 2009-01-21  Bruno Haible  <bruno@clisp.org>
41648
41649         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41650         conditions other than overflow.
41651
41652 2009-01-21  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/c-strtod.c: Include errno.h.
41655         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41656         value from STRTOD_L and STRTOD.
41657
41658 2009-01-21  Bruno Haible  <bruno@clisp.org>
41659         and Jim Meyering  <meyering@redhat.com>
41660
41661         nanosleep: skip configure test (fail it) for apple universal builds
41662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41663         universal builds, assume that nanosleep does not work.
41664         * modules/nanosleep (Depends-on): Add multiarch.
41665
41666         mktime: skip configure test (fail it) for apple universal builds
41667         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41668         universal builds, assume that mktime does not work.
41669         * modules/mktime (Depends-on): Add multiarch.
41670
41671 2009-01-21  Eric Blake  <ebb9@byu.net>
41672
41673         multiarch: avoid expand-before-require warning
41674         * modules/multiarch (configure.ac): Require, rather than expand,
41675         gl_MULTIARCH.
41676         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41677         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41678         enforce that all clients require it.  Partial reversion of
41679         2008-12-29 patch.
41680
41681         error: avoid expand-before-require warning
41682         * modules/errno (configure.ac): Require, rather than expand,
41683         gl_HEADER_ERRNO_H.
41684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41685         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41686         enforce that all clients require it.
41687
41688         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41689         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41690         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41691         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41692
41693 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41694
41695         Revert:
41696         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41697
41698         regex: do not depend on obsolete modules.
41699         * modules/regex: Remove memcmp and memmove.
41700
41701 2009-01-20  Bruno Haible  <bruno@clisp.org>
41702
41703         Make the 'link' module link on Windows NT 4.
41704         * lib/link.c (_WIN32_WINNT): Don't define.
41705         (CreateHardLinkFuncType): New type.
41706         (CreateHardLinkFunc, initialized): New variables.
41707         (initialize): New function.
41708         (link): Invoke CreateHardLink indirectly through the function pointer.
41709
41710 2009-01-20  Bruno Haible  <bruno@clisp.org>
41711
41712         Fix compilation failure on mingw.
41713         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41714
41715 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41716
41717         * doc/c-strtod.texi: Mention a couple of restrictions.
41718
41719 2009-01-20  Jim Meyering  <meyering@redhat.com>
41720
41721         gettimeofday: move more declarations out of functions
41722         * lib/gettimeofday.c: Move extern declarations of tzset and
41723         gmtime out of containing functions.  Prompted by Bruno Haible.
41724
41725 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41726
41727         regex: do not depend on obsolete modules.
41728         * modules/regex: Remove memcmp and memmove.
41729
41730 2009-01-19  Bruno Haible  <bruno@clisp.org>
41731
41732         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41733         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41734         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41735         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41736         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41737
41738 2009-01-19  Bruno Haible  <bruno@clisp.org>
41739
41740         * tests/test-link.c: Include <errno.h>.
41741         (main): Exit with code 77 when a hard link cannot be created due to
41742         the file system.
41743         * tests/test-link.sh: Skip test when a hard link cannot be created due
41744         to the file system.
41745         Suggested by Eric Blake.
41746
41747 2009-01-19  Martin Lambers  <marlam@marlam.de>
41748
41749         * modules/link-tests: New file.
41750         * tests/test-link.sh: New file.
41751         * tests/test-link.c: New file.
41752
41753 2009-01-19  Eric Blake  <ebb9@byu.net>
41754
41755         doc: mention another function added in cygwin 1.7.0
41756         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41757         Another new function in cygwin 1.7.
41758
41759 2009-01-19  Bruno Haible  <bruno@clisp.org>
41760
41761         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41762         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41763         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41764         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41765         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41766         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41768         * m4/md4.m4 (gl_MD4): Likewise.
41769         * m4/md5.m4 (gl_MD5): Likewise.
41770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41771         * m4/sha1.m4 (gl_SHA1): Likewise.
41772         * m4/sha256.m4 (gl_SHA256): Likewise.
41773         * m4/sha512.m4 (gl_SHA512): Likewise.
41774
41775 2009-01-19  Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/uniname/uniname-tests (Depends-on): Add progname.
41778         * tests/uniname/test-uninames.c: Include progname.h.
41779         (main): Call set_program_name.
41780
41781         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41782         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41783         (main): Call set_program_name.
41784
41785         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41786         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41787         (main): Call set_program_name.
41788
41789         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41790         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41791         (main): Call set_program_name.
41792
41793         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41794         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41795         (main): Call set_program_name.
41796
41797         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41798         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41799         (main): Call set_program_name.
41800
41801         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41802         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41803         (main): Call set_program_name.
41804
41805         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41806         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41807         (main): Call set_program_name.
41808
41809         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41810         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41811         (main): Call set_program_name.
41812
41813 2009-01-19  Eric Blake  <ebb9@byu.net>
41814
41815         test-unistd: test previous patch
41816         * tests/test-unistd.c: Test *_FILENO macros.
41817
41818         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41819         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41820         Guarantee a definition.
41821         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41822         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41823         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41824         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41825         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41826         Likewise.
41827         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41828         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41829         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41830         Likewise.
41831         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41832         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41833         (STDERR_FILENO): Likewise.
41834         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41835         (STDERR_FILENO): Likewise.
41836         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41837         (STDERR_FILENO): Likewise.
41838         Reported by Elbert Pol.
41839
41840 2009-01-19  Eric Blake  <ebb9@byu.net>
41841
41842         doc: mention more functions added in cygwin 1.7.0
41843         * doc/posix-functions/abort.texi (abort): Update wording related
41844         to cygwin.
41845         * doc/posix-functions/daylight.texi (daylight): Likewise.
41846         * doc/posix-functions/optarg.texi (optarg): Likewise.
41847         * doc/posix-functions/optarg.texi (opterr): Likewise.
41848         * doc/posix-functions/optarg.texi (optind): Likewise.
41849         * doc/posix-functions/optarg.texi (optopt): Likewise.
41850         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41851         worked in 1.5.x, and was withdrawn in 1.7.
41852         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41853         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41854         cygwin versions.
41855         * doc/posix-functions/perror.texi (perror): Likewise.
41856         * doc/posix-functions/printf.texi (printf): Likewise.
41857         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41858         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41859         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41860         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41861         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41862         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41863         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41864         Likewise.
41865         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41866         Likewise.
41867         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41868         this function.
41869         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41870         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41871         Likewise.
41872         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41873         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41874         * doc/posix-functions/confstr.texi (confstr): Likewise.
41875         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41876         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41877         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41878         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41879         * doc/posix-functions/fputws.texi (fputws): Likewise.
41880         * doc/posix-functions/fwide.texi (fwide): Likewise.
41881         * doc/posix-functions/getwc.texi (getwc): Likewise.
41882         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41883         * doc/posix-functions/putwc.texi (putwc): Likewise.
41884         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41885         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41886         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41887         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41888         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41889         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41890         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41891         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41892         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41893         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41894         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41895
41896 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41897
41898         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41899         * lib/ioctl.c: Include <sys/ioctl.h>.
41900
41901 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41902
41903         * modules/getdate-tests (Depends-on): Add progname.
41904         * tests/test-getdate.c: Use progname module, to avoid link errors
41905         on non-glibc systems.
41906
41907 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41908
41909         * modules/filenamecat-tests (Depends-on): Add progname.
41910         * modules/fstrcmp-tests (Depends-on): Likewise.
41911
41912         * tests/test-filenamecat.c: Use progname module, to avoid link
41913         errors on non-glibc systems.
41914         * tests/test-fstrcmp.c: Likewise.
41915
41916 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41917
41918         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41919         * lib/gettimeofday.c: Move extern declaration out of function.
41920
41921 2009-01-18  Bruno Haible  <bruno@clisp.org>
41922
41923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41924         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41925         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41926
41927 2009-01-18  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/strftime.c (MEMPCPY): Remove unused macro.
41930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41931
41932 2009-01-18  Martin Lambers  <marlam@marlam.de>
41933
41934         New module 'link'.
41935         * lib/unistd.in.h (link): New declaration.
41936         * lib/link.c: New file.
41937         * m4/link.m4: New file.
41938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41939         HAVE_LINK.
41940         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41941         * modules/link: New file.
41942         * doc/posix-functions/link.texi: Mention the new module.
41943
41944 2009-01-18  Bruno Haible  <bruno@clisp.org>
41945
41946         * tests/test-avltree_list.c (main): Call set_program_name.
41947         * tests/test-avltree_oset.c (main): Likewise.
41948         * tests/test-obstack-printf.c: Include progname.h.
41949         (main): Call set_program_name.
41950         * tests/test-quotearg.c: Include progname.h.
41951         (main): Call set_program_name.
41952         * tests/test-xmemdup0.c: Include progname.h.
41953         (main): Call set_program_name.
41954
41955 2009-01-18  Bruno Haible  <bruno@clisp.org>
41956
41957         New module 'alphasort'.
41958         * lib/dirent.in.h (alphasort): New declaration.
41959         * lib/alphasort.c: New file, from glibc with modifications.
41960         * m4/alphasort.m4: New file.
41961         * modules/alphasort: New file.
41962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41963         HAVE_ALPHASORT.
41964         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41965         HAVE_ALPHASORT.
41966         * doc/posix-functions/alphasort.texi: Mention the new module and the
41967         portability problems.
41968
41969 2009-01-18  Bruno Haible  <bruno@clisp.org>
41970
41971         New module 'scandir'.
41972         * lib/dirent.in.h (scandir): New declaration.
41973         * lib/scandir.c: New file, from glibc with modifications.
41974         * m4/scandir.m4: New file.
41975         * modules/scandir: New file.
41976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41977         HAVE_SCANDIR.
41978         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41979         HAVE_SCANDIR.
41980         * doc/posix-functions/scandir.texi: Mention the new module and the
41981         portability problems.
41982
41983 2009-01-17  Bruno Haible  <bruno@clisp.org>
41984
41985         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41986         Update documentation.
41987         (func_remove_suffix): Escape all dots in the suffix. Update
41988         documentation.
41989         (func_filter_filelist): Update documentation.
41990         Reported by Ralf Wildenhues.
41991
41992 2009-01-17  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/dprintf-posix-tests: New file.
41995         * tests/test-dprintf-posix.sh: New file.
41996         * tests/test-dprintf-posix.c: New file.
41997
41998         New modules 'dprintf', 'dprintf-posix'.
41999         * lib/stdio.in.h (dprintf): New declaration.
42000         * lib/dprintf.c: New file.
42001         * m4/dprintf.m4: New file.
42002         * m4/dprintf-posix.m4: New file.
42003         * modules/dprintf: New file.
42004         * modules/dprintf-posix: New file.
42005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42006         HAVE_DPRINTF, REPLACE_DPRINTF.
42007         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42008         HAVE_DPRINTF, REPLACE_DPRINTF.
42009         * doc/posix-functions/dprintf.texi: Mention the new modules.
42010
42011 2009-01-17  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/vdprintf-posix-tests: New file.
42014         * tests/test-vdprintf-posix.sh: New file.
42015         * tests/test-vdprintf-posix.c: New file.
42016
42017         New modules 'vdprintf', 'vdprintf-posix'.
42018         * lib/stdio.in.h (vdprintf): New declaration.
42019         * lib/vdprintf.c: New file.
42020         * m4/vdprintf.m4: New file.
42021         * m4/vdprintf-posix.m4: New file.
42022         * modules/vdprintf: New file.
42023         * modules/vdprintf-posix: New file.
42024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42025         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42026         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42027         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42028         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42029
42030 2009-01-17  Bruno Haible  <bruno@clisp.org>
42031
42032         Fix replacement of fopen on mingw.
42033         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42034         mingw.
42035
42036 2009-01-17  Bruno Haible  <bruno@clisp.org>
42037
42038         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42039         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42040
42041 2009-01-17  Bruno Haible  <bruno@clisp.org>
42042
42043         Avoid test-fflush2.sh failure on mingw.
42044         * tests/test-fflush2.c: Include binary-io.h.
42045         (main): Put standard input into binary mode.
42046         * modules/fflush-tests (Depends-on): Add binary-io.
42047
42048 2009-01-17  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/wchar.in.h: In another particular situation, include only the
42051         system's <wchar.h> file.
42052         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42053         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42054         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42055
42056 2009-01-17  Bruno Haible  <bruno@clisp.org>
42057
42058         Support for stripping executables in --enable-relocatable.
42059         * build-aux/install-reloc: Expect one more argument, or an environment
42060         variable RELOC_STRIP_PROG. If set, strip the destination program and
42061         its wrapper.
42062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42063         RELOC_STRIP_PROG.
42064         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42065         to set RELOCATABLE_STRIP.
42066         * NEWS: Mention the new Makefile requirement.
42067
42068 2009-01-17  Bruno Haible  <bruno@clisp.org>
42069
42070         * build-aux/install-reloc: Remove debugging information left over by
42071         C compiler on MacOS X.
42072
42073 2009-01-17  Bruno Haible  <bruno@clisp.org>
42074
42075         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42076         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42077         _NSGetExecutablePath.
42078
42079 2009-01-16  Jim Meyering  <meyering@redhat.com>
42080
42081         strerror: avoid warnings about discarding "const"
42082         * lib/strerror.c (rpl_strerror): Instead of returning a const
42083         string from each and every "case", use a variable, and add a single
42084         cast after the switch.
42085
42086 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42087
42088         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42089
42090 2009-01-16  Bruno Haible  <bruno@clisp.org>
42091
42092         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42093         array initializer syntax that also works in C++ mode.
42094         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42095
42096 2009-01-16  Jim Meyering  <meyering@redhat.com>
42097
42098         poll: suppress a warning
42099         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42100         to ignore "...unsigned expression < 0 is always false" warnings.
42101
42102 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42103
42104         poll: remove declarations of unused variables
42105         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42106         sockbuf and optlen.
42107
42108 2009-01-15  Bruno Haible  <bruno@clisp.org>
42109
42110         Make fflush-after-ungetc POSIX compliant on BSD systems.
42111         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42112         (clear_ungetc_buffer): Implement also for other systems.
42113         (rpl_fflush): On glibc systems, invoke
42114         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42115         clear_ungetc_buffer after fetching the stream's position, not before.
42116
42117 2009-01-15  Bruno Haible  <bruno@clisp.org>
42118
42119         Make fflush-after-ungetc POSIX compliant on glibc systems.
42120         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42121         after ungetc.
42122         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42123         (rpl_fflush): On glibc systems, simply call the system's fflush
42124         function after clearing the ungetc buffer.
42125         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42126         Instead, lseek only to the end of file, then use the system's fseeko
42127         for the rest. On glibc systems, reset the EOF indicator bit.
42128
42129 2009-01-15  Jim Meyering  <meyering@redhat.com>
42130
42131         openmp.m4: revert quote-adding change, for portability to older autoconf
42132         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42133         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42134         Simon Josefsson noticed the problem when using autoconf-2.61.
42135
42136 2009-01-15  Bruno Haible  <bruno@clisp.org>
42137
42138         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42139         * tests/test-fflush2.c (ASSERT): Always fail.
42140         (main): Add two tests for fflush() after ungetc(), taking into account
42141         the Austin Group's clarification.
42142         Suggested by Eric Blake.
42143
42144 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42145
42146         mktime.m4: remove K&R-style function prototypes
42147         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42148         for the Sun C++ compiler.
42149
42150 2009-01-14  Bruno Haible  <bruno@clisp.org>
42151
42152         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42153         while including <wchar.h>.
42154         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42155         the system's <wchar.h> file.
42156         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42157
42158 2009-01-14  Bruno Haible  <bruno@clisp.org>
42159
42160         * m4/csharp.m4: Don't mention gettext on the serial number line.
42161         * m4/csharpexec.m4: Likewise.
42162         * m4/eaccess.m4: Likewise.
42163         * m4/javaexec.m4: Likewise.
42164         * m4/sig_atomic_t.m4: Likewise.
42165         * m4/tmpdir.m4: Likewise.
42166         * m4/intldir.m4: Bump gettext version.
42167         * m4/lib-ld.m4: Likewise.
42168
42169 2009-01-14  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/progname.c (set_program_name): Add more comments.
42172         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42173
42174 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42175
42176         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42177         were sys/stat.h does not define it.
42178
42179 2009-01-14  Jim Meyering  <meyering@redhat.com>
42180
42181         many *.m4 files: improve m4 quoting
42182         99% of this change was performed by running the following commands:
42183         git ls-files | grep '\.m4$' | xargs perl -pi \
42184           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42185           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42186           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42187           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42188         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42189         The remainder were to add Copyright dates, increment serial numbers,
42190         undo some changes in comments, exclude m4/intl.m4, and add quotes
42191         around the "1" in ",1" where the unusual spacing prohibited the
42192         above regexps from doing the job.  For more details, see
42193         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42194         * m4/acl.m4: Modified.
42195         * m4/afs.m4: Likewise.
42196         * m4/alloca.m4: Likewise.
42197         * m4/argp.m4: Likewise.
42198         * m4/argz.m4: Likewise.
42199         * m4/atexit.m4: Likewise.
42200         * m4/bison-i18n.m4: Likewise.
42201         * m4/bison.m4: Likewise.
42202         * m4/byteswap.m4: Likewise.
42203         * m4/c-stack.m4: Likewise.
42204         * m4/c-strtod.m4: Likewise.
42205         * m4/calloc.m4: Likewise.
42206         * m4/canonicalize-lgpl.m4: Likewise.
42207         * m4/chown.m4: Likewise.
42208         * m4/clock_time.m4: Likewise.
42209         * m4/codeset.m4: Likewise.
42210         * m4/copy-file.m4: Likewise.
42211         * m4/csharp.m4: Likewise.
42212         * m4/csharpcomp.m4: Likewise.
42213         * m4/csharpexec.m4: Likewise.
42214         * m4/d-ino.m4: Likewise.
42215         * m4/d-type.m4: Likewise.
42216         * m4/dirfd.m4: Likewise.
42217         * m4/double-slash-root.m4: Likewise.
42218         * m4/eaccess.m4: Likewise.
42219         * m4/eealloc.m4: Likewise.
42220         * m4/environ.m4: Likewise.
42221         * m4/errno_h.m4: Likewise.
42222         * m4/euidaccess.m4: Likewise.
42223         * m4/execute.m4: Likewise.
42224         * m4/fatal-signal.m4: Likewise.
42225         * m4/fchdir.m4: Likewise.
42226         * m4/fcntl_h.m4: Likewise.
42227         * m4/fileblocks.m4: Likewise.
42228         * m4/filenamecat.m4: Likewise.
42229         * m4/findprog.m4: Likewise.
42230         * m4/flexmember.m4: Likewise.
42231         * m4/fnmatch.m4: Likewise.
42232         * m4/fopen.m4: Likewise.
42233         * m4/fpending.m4: Likewise.
42234         * m4/fprintf-posix.m4: Likewise.
42235         * m4/free.m4: Likewise.
42236         * m4/frexp.m4: Likewise.
42237         * m4/frexpl.m4: Likewise.
42238         * m4/fsusage.m4: Likewise.
42239         * m4/ftruncate.m4: Likewise.
42240         * m4/gc-camellia.m4: Likewise.
42241         * m4/gc-random.m4: Likewise.
42242         * m4/gc.m4: Likewise.
42243         * m4/getaddrinfo.m4: Likewise.
42244         * m4/getcwd-abort-bug.m4: Likewise.
42245         * m4/getcwd-path-max.m4: Likewise.
42246         * m4/getdate.m4: Likewise.
42247         * m4/getdomainname.m4: Likewise.
42248         * m4/getgroups.m4: Likewise.
42249         * m4/gethostname.m4: Likewise.
42250         * m4/gethrxtime.m4: Likewise.
42251         * m4/getline.m4: Likewise.
42252         * m4/getloadavg.m4: Likewise.
42253         * m4/getndelim2.m4: Likewise.
42254         * m4/getpass.m4: Likewise.
42255         * m4/gettext.m4: Likewise.
42256         * m4/gettime.m4: Likewise.
42257         * m4/gettimeofday.m4: Likewise.
42258         * m4/gnulib-common.m4: Likewise.
42259         * m4/group-member.m4: Likewise.
42260         * m4/host-os.m4: Likewise.
42261         * m4/iconv.m4: Likewise.
42262         * m4/iconv_open.m4: Likewise.
42263         * m4/inet_ntop.m4: Likewise.
42264         * m4/inet_pton.m4: Likewise.
42265         * m4/inline.m4: Likewise.
42266         * m4/intldir.m4: Likewise.
42267         * m4/intlmacosx.m4: Likewise.
42268         * m4/intmax.m4: Likewise.
42269         * m4/intmax_t.m4: Likewise.
42270         * m4/inttypes.m4: Likewise.
42271         * m4/inttypes_h.m4: Likewise.
42272         * m4/inttypes-pri.m4: Likewise.
42273         * m4/isapipe.m4: Likewise.
42274         * m4/isnand.m4: Likewise.
42275         * m4/isnanf.m4: Likewise.
42276         * m4/isnanl.m4: Likewise.
42277         * m4/javacomp.m4: Likewise.
42278         * m4/javaexec.m4: Likewise.
42279         * m4/jm-winsz1.m4: Likewise.
42280         * m4/jm-winsz2.m4: Likewise.
42281         * m4/lchown.m4: Likewise.
42282         * m4/lcmessage.m4: Likewise.
42283         * m4/ldexpl.m4: Likewise.
42284         * m4/lib-ld.m4: Likewise.
42285         * m4/lib-link.m4: Likewise.
42286         * m4/libsigsegv.m4: Likewise.
42287         * m4/link-follow.m4: Likewise.
42288         * m4/localcharset.m4: Likewise.
42289         * m4/locale-fr.m4: Likewise.
42290         * m4/locale-ja.m4: Likewise.
42291         * m4/locale-tr.m4: Likewise.
42292         * m4/locale-zh.m4: Likewise.
42293         * m4/lock.m4: Likewise.
42294         * m4/longlong.m4: Likewise.
42295         * m4/ls-mntd-fs.m4: Likewise.
42296         * m4/lstat.m4: Likewise.
42297         * m4/malloc.m4: Likewise.
42298         * m4/mathl.m4: Likewise.
42299         * m4/mbrtowc.m4: Likewise.
42300         * m4/mbstate_t.m4: Likewise.
42301         * m4/mbswidth.m4: Likewise.
42302         * m4/memchr.m4: Likewise.
42303         * m4/memcmp.m4: Likewise.
42304         * m4/memcpy.m4: Likewise.
42305         * m4/memmem.m4: Likewise.
42306         * m4/memmove.m4: Likewise.
42307         * m4/mempcpy.m4: Likewise.
42308         * m4/memrchr.m4: Likewise.
42309         * m4/memset.m4: Likewise.
42310         * m4/minmax.m4: Likewise.
42311         * m4/mkdir-slash.m4: Likewise.
42312         * m4/mkdtemp.m4: Likewise.
42313         * m4/mktime.m4: Likewise.
42314         * m4/mmap-anon.m4: Likewise.
42315         * m4/mountlist.m4: Likewise.
42316         * m4/nanosleep.m4: Likewise.
42317         * m4/nls.m4: Likewise.
42318         * m4/nocrash.m4: Likewise.
42319         * m4/open.m4: Likewise.
42320         * m4/openat.m4: Likewise.
42321         * m4/openmp.m4: Likewise.
42322         * m4/pathmax.m4: Likewise.
42323         * m4/perl.m4: Likewise.
42324         * m4/physmem.m4: Likewise.
42325         * m4/pipe.m4: Likewise.
42326         * m4/po.m4: Likewise.
42327         * m4/poll.m4: Likewise.
42328         * m4/posixtm.m4: Likewise.
42329         * m4/posixver.m4: Likewise.
42330         * m4/printf-frexp.m4: Likewise.
42331         * m4/printf-frexpl.m4: Likewise.
42332         * m4/printf-posix.m4: Likewise.
42333         * m4/printf-posix-rpl.m4: Likewise.
42334         * m4/printf.m4: Likewise.
42335         * m4/progtest.m4: Likewise.
42336         * m4/putenv.m4: Likewise.
42337         * m4/readline.m4: Likewise.
42338         * m4/readlink.m4: Likewise.
42339         * m4/readutmp.m4: Likewise.
42340         * m4/realloc.m4: Likewise.
42341         * m4/regex.m4: Likewise.
42342         * m4/relocatable.m4: Likewise.
42343         * m4/relocatable-lib.m4: Likewise.
42344         * m4/rename-dest-slash.m4: Likewise.
42345         * m4/rename.m4: Likewise.
42346         * m4/rmdir-errno.m4: Likewise.
42347         * m4/rmdir.m4: Likewise.
42348         * m4/roundf.m4: Likewise.
42349         * m4/roundl.m4: Likewise.
42350         * m4/rpmatch.m4: Likewise.
42351         * m4/save-cwd.m4: Likewise.
42352         * m4/selinux-selinux-h.m4: Likewise.
42353         * m4/setenv.m4: Likewise.
42354         * m4/settime.m4: Likewise.
42355         * m4/sig2str.m4: Likewise.
42356         * m4/sig_atomic_t.m4: Likewise.
42357         * m4/signalblocking.m4: Likewise.
42358         * m4/signbit.m4: Likewise.
42359         * m4/sigpipe.m4: Likewise.
42360         * m4/sockets.m4: Likewise.
42361         * m4/sockpfaf.m4: Likewise.
42362         * m4/st_dm_mode.m4: Likewise.
42363         * m4/stat-time.m4: Likewise.
42364         * m4/stdbool.m4: Likewise.
42365         * m4/stdint.m4: Likewise.
42366         * m4/stdint_h.m4: Likewise.
42367         * m4/stpcpy.m4: Likewise.
42368         * m4/stpncpy.m4: Likewise.
42369         * m4/strcase.m4: Likewise.
42370         * m4/strchrnul.m4: Likewise.
42371         * m4/strcspn.m4: Likewise.
42372         * m4/strdup.m4: Likewise.
42373         * m4/strftime.m4: Likewise.
42374         * m4/strndup.m4: Likewise.
42375         * m4/strnlen.m4: Likewise.
42376         * m4/strpbrk.m4: Likewise.
42377         * m4/strptime.m4: Likewise.
42378         * m4/strsep.m4: Likewise.
42379         * m4/strtod.m4: Likewise.
42380         * m4/strtoimax.m4: Likewise.
42381         * m4/strtok_r.m4: Likewise.
42382         * m4/strtol.m4: Likewise.
42383         * m4/strtoll.m4: Likewise.
42384         * m4/strtoul.m4: Likewise.
42385         * m4/strtoull.m4: Likewise.
42386         * m4/strtoumax.m4: Likewise.
42387         * m4/strverscmp.m4: Likewise.
42388         * m4/threadlib.m4: Likewise.
42389         * m4/timegm.m4: Likewise.
42390         * m4/tm_gmtoff.m4: Likewise.
42391         * m4/tmpdir.m4: Likewise.
42392         * m4/tmpfile.m4: Likewise.
42393         * m4/tzset.m4: Likewise.
42394         * m4/uintmax_t.m4: Likewise.
42395         * m4/unlinkdir.m4: Likewise.
42396         * m4/unlocked-io.m4: Likewise.
42397         * m4/uptime.m4: Likewise.
42398         * m4/userspec.m4: Likewise.
42399         * m4/utimbuf.m4: Likewise.
42400         * m4/utime.m4: Likewise.
42401         * m4/utimes-null.m4: Likewise.
42402         * m4/utimes.m4: Likewise.
42403         * m4/vararrays.m4: Likewise.
42404         * m4/vasnprintf.m4: Likewise.
42405         * m4/vfprintf-posix.m4: Likewise.
42406         * m4/vprintf-posix.m4: Likewise.
42407         * m4/wait-process.m4: Likewise.
42408         * m4/wchar_t.m4: Likewise.
42409         * m4/wint_t.m4: Likewise.
42410         * m4/write-any-file.m4: Likewise.
42411         * m4/yield.m4: Likewise.
42412
42413 2009-01-13  Bruno Haible  <bruno@clisp.org>
42414
42415         Avoid test-copy-file.sh failures when ACL support insufficient.
42416         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42417         TESTS_ENVIRONMENT.
42418         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42419         Reported by Jim Meyering.
42420
42421 2009-01-13  Bruno Haible  <bruno@clisp.org>
42422
42423         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42424         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42425         * modules/unistdio/u8-printf-parse (Files): Likewise.
42426         * modules/unistdio/u32-printf-parse (Files): Likewise.
42427         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42428
42429 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42430
42431         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42432         and m4/inttypes_h.m4 too.
42433
42434 2009-01-12  Eric Blake  <ebb9@byu.net>
42435
42436         tests: IRIX 6.2 cc can't compile -0.0 into .data
42437         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42438         rather than at compile-time.
42439         * tests/test-floorl.c (minus_zero): Likewise.
42440         * tests/test-frexpl.c (minus_zero): Likewise.
42441         * tests/test-isnan.c (minus_zerol): Likewise.
42442         * tests/test-isnanl.h (minus_zero): Likewise.
42443         * tests/test-ldexpl.c (minus_zero): Likewise.
42444         * tests/test-roundl.c (minus_zero): Likewise.
42445         * tests/test-signbit.c (minus_zerol): Likewise.
42446         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42447         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42448         * tests/test-truncl.c (minus_zero): Likewise.
42449         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42450         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42451         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42452
42453 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42454
42455         regex: fix glibc bug 9697
42456         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42457         handling.
42458
42459 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42460
42461         regex: fix glibc bug 697
42462         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42463         being NULL also if there are no backreferences.
42464
42465 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42466
42467         regex: merge glibc changes
42468         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42469         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42470         re_string_skip_chars, re_string_reconstruct): Likewise.
42471         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42472
42473 2009-01-07  Jim Meyering  <meyering@redhat.com>
42474
42475         poll: filter through cppi
42476         * lib/poll.c: Indent cpp directives to reflect nesting.
42477
42478 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42479
42480         poll: don't return uninitialized
42481         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42482
42483 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42484
42485         avoid compile failure on AIX 6.1
42486         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42487         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42488
42489 2009-01-04  Jim Meyering  <meyering@redhat.com>
42490
42491         remove duplicate inclusion of <stdio.h>
42492         * tests/test-fprintf-posix.c: Likewise.
42493         * tests/test-printf-posix.c: Likewise.
42494         * tests/test-snprintf-posix.c: Likewise.
42495         * tests/test-sprintf-posix.c: Likewise.
42496         * tests/test-vasprintf-posix.c: Likewise.
42497         * tests/test-vfprintf-posix.c: Likewise.
42498         * tests/test-vprintf-posix.c: Likewise.
42499         * tests/test-vsnprintf-posix.c: Likewise.
42500         * tests/test-vsprintf-posix.c: Likewise.
42501
42502 2009-01-03  Jim Meyering  <meyering@redhat.com>
42503
42504         gnulib-tool: fix sed-based filtering
42505         * gnulib-tool (func_filter_filelist): Remove extra backslash
42506         in sed_fff_filter definition.
42507
42508 2009-01-02  Jim Meyering  <meyering@redhat.com>
42509
42510         strftime: avoid compilation failure on Solaris 2.6
42511         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42512         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42513         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42514         be available.  Reported by Tom G. Christensen.  Details in
42515         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42516
42517 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42518             Bruno Haible  <bruno@clisp.org>
42519
42520         Speed up gnulib-tool by doing more string processing through shell
42521         built-ins.
42522         * gnulib-tool (fast_func_append): New variable.
42523         (func_remove_prefix, func_remove_suffix): New functions.
42524         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42525         (func_filter_filelist): New function.
42526         (func_get_dependencies): Use func_remove_suffix instead of sed.
42527         (func_get_automake_snippet): Use func_filter_filelist instead of a
42528         subshell and sed invocation.
42529
42530 2009-01-01  Bruno Haible  <bruno@clisp.org>
42531
42532         Fix a security bug.
42533         * gnulib-tool (func_import, import, update): Don't allow the characters
42534         '"', '$', '`', '\' in macro arguments that become part of commands that
42535         are evaluated.
42536
42537 2009-01-01  Bruno Haible  <bruno@clisp.org>
42538
42539         * gnulib-tool (func_reset_sigpipe): Add more comments.
42540
42541 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42542
42543         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42544         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42545         already know the answer.
42546
42547 2009-01-01  Jim Meyering  <meyering@redhat.com>
42548
42549         * lib/version-etc.c (version_etc_va): Update copyright year.
42550
42551 2008-12-30  Bruno Haible  <bruno@clisp.org>
42552
42553         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42554         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42555         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42556
42557 2008-12-29  Eric Blake  <ebb9@byu.net>
42558
42559         multiarch: avoid autoconf AC_REQUIRE bug
42560         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42561         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42562         2.63 and older.
42563         Reported by Bruno Haible, and analyzed in
42564         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42565
42566 2008-12-29  Bruno Haible  <bruno@clisp.org>
42567
42568         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42569         files in subdirectories correctly.
42570         Reported by Ralf Wildenhues.
42571
42572 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42573
42574         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42575         rather than 'join FILE -', for Solaris join.
42576
42577 2008-12-29  Bruno Haible  <bruno@clisp.org>
42578
42579         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42580         quoting.
42581         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42582         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42583         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42584         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42585         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42586         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42587         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42588         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42589         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42590         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42591         * m4/nls.m4 (AM_NLS): Likewise.
42592         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42593         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42594         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42595         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42596         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42597         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42598         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42599         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42600         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42601         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42602         * m4/xsize.m4 (gl_XSIZE): Likewise.
42603         Suggested by Jim Meyering.
42604
42605 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42606
42607         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42608         * lib/parse-duration.c: use a switch instead of cascading if's.
42609
42610 2008-12-29  Eric Blake  <ebb9@byu.net>
42611
42612         wchar.h: supply WEOF on Irix 5.3
42613         * lib/wchar.in.h (wint_t): Also supply WEOF.
42614         * lib/wctype.in.h (wint_t): Likewise.
42615         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42616         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42617         Reported by Tom G. Christensen.
42618
42619 2008-12-26  Bruno Haible  <bruno@clisp.org>
42620
42621         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42622         i486, i586, i686.
42623
42624 2008-12-26  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42627
42628 2008-12-26  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42631         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42632         not __STDC_CONSTANT_MACROS.
42633         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42634
42635 2008-12-25  Bruno Haible  <bruno@clisp.org>
42636
42637         Add support for universal builds to vasnprintf.
42638         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42639         universal builds, guess no.
42640         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42641         * modules/vasprintf-posix (Depends-on): Likewise.
42642         * modules/fprintf-posix (Depends-on): Likewise.
42643         * modules/vfprintf-posix (Depends-on): Likewise.
42644         * modules/snprintf-posix (Depends-on): Likewise.
42645         * modules/vsnprintf-posix (Depends-on): Likewise.
42646         * modules/sprintf-posix (Depends-on): Likewise.
42647         * modules/vsprintf-posix (Depends-on): Likewise.
42648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42649         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42650         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42655
42656         Add support for universal builds to <inttypes.h>.
42657         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42658         _SCNu64_PREFIX): In Apple
42659         universal builds, define directly, using _LP64.
42660         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42661         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42662         * modules/inttypes (Depends-on): Add multiarch.
42663         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42664
42665         Add support for universal builds to <stdint.h>.
42666         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42667         universal builds, define directly, using _LP64.
42668         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42669         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42670         and size_t.
42671         * modules/stdint (Depends-on): Add multiarch.
42672         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42673
42674         New module 'multiarch'.
42675         * modules/multiarch: New file.
42676         * m4/multiarch.m4: New file.
42677
42678 2008-12-25  Bruno Haible  <bruno@clisp.org>
42679
42680         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42681
42682 2008-12-25  Bruno Haible  <bruno@clisp.org>
42683
42684         * modules/btowc (License): Relicense under LGPLv2+.
42685         * modules/mbsinit (License): Likewise.
42686         * modules/mbrtowc (License): Likewise.
42687         * modules/wcrtomb (License): Likewise.
42688         * modules/streq (License): Likewise.
42689         Reported by David Lutterkort <lutter@redhat.com>.
42690
42691 2008-12-23  Bruno Haible  <bruno@clisp.org>
42692
42693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42694
42695 2008-12-23  Bruno Haible  <bruno@clisp.org>
42696
42697         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42699         GETADDRINFO_LIB, not in LIBS.
42700         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42701         * modules/canon-host (Link): Likewise.
42702         * NEWS: Mention the change.
42703         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42704         GETADDRINFO_LIB.
42705
42706 2008-12-22  Bruno Haible  <bruno@clisp.org>
42707
42708         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42709         * doc/posix-functions/iswalpha_l.texi: Likewise.
42710         * doc/posix-functions/iswblank_l.texi: Likewise.
42711         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42712         * doc/posix-functions/iswctype_l.texi: Likewise.
42713         * doc/posix-functions/iswdigit_l.texi: Likewise.
42714         * doc/posix-functions/iswgraph_l.texi: Likewise.
42715         * doc/posix-functions/iswlower_l.texi: Likewise.
42716         * doc/posix-functions/iswprint_l.texi: Likewise.
42717         * doc/posix-functions/iswpunct_l.texi: Likewise.
42718         * doc/posix-functions/iswspace_l.texi: Likewise.
42719         * doc/posix-functions/iswupper_l.texi: Likewise.
42720         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42721         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42722         * doc/posix-functions/open_wmemstream.texi: Likewise.
42723         * doc/posix-functions/swscanf.texi: Likewise.
42724         * doc/posix-functions/towctrans_l.texi: Likewise.
42725         * doc/posix-functions/towlower.texi: Likewise.
42726         * doc/posix-functions/towlower_l.texi: Likewise.
42727         * doc/posix-functions/towupper.texi: Likewise.
42728         * doc/posix-functions/towupper_l.texi: Likewise.
42729         * doc/posix-functions/vfwprintf.texi: Likewise.
42730         * doc/posix-functions/vfwscanf.texi: Likewise.
42731         * doc/posix-functions/vswscanf.texi: Likewise.
42732         * doc/posix-functions/vwprintf.texi: Likewise.
42733         * doc/posix-functions/vwscanf.texi: Likewise.
42734         * doc/posix-functions/wcpcpy.texi: Likewise.
42735         * doc/posix-functions/wcpncpy.texi: Likewise.
42736         * doc/posix-functions/wcscasecmp.texi: Likewise.
42737         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42738         * doc/posix-functions/wcscoll_l.texi: Likewise.
42739         * doc/posix-functions/wcsdup.texi: Likewise.
42740         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42741         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42742         * doc/posix-functions/wcsnlen.texi: Likewise.
42743         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42744         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42745         * doc/posix-functions/wctrans_l.texi: Likewise.
42746         * doc/posix-functions/wctype_l.texi: Likewise.
42747         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42748         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42749         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42750         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42751         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42752         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42753         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42754         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42755         * doc/glibc-functions/wcschrnul.texi: Likewise.
42756         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42757         * doc/glibc-functions/wcstod_l.texi: Likewise.
42758         * doc/glibc-functions/wcstof_l.texi: Likewise.
42759         * doc/glibc-functions/wcstol_l.texi: Likewise.
42760         * doc/glibc-functions/wcstold_l.texi: Likewise.
42761         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42762         * doc/glibc-functions/wcstoq.texi: Likewise.
42763         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42764         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42765         * doc/glibc-functions/wcstouq.texi: Likewise.
42766         * doc/glibc-functions/wmempcpy.texi: Likewise.
42767
42768 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42769             Eric Blake  <ebb9@byu.net>
42770             Paolo Bonzini  <bonzini@gnu.org>
42771             Bruno Haible  <bruno@clisp.org>
42772
42773         Make c-stack work on Haiku.
42774         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42775         (c_stack_action): Use SA_ONSTACK flag.
42776
42777 2008-12-22  Bruno Haible  <bruno@clisp.org>
42778
42779         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42780
42781 2008-12-22  Bruno Haible  <bruno@clisp.org>
42782
42783         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42784         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42785         being overridden.
42786         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42787         New macros.
42788         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42790         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42791         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42792
42793 2008-12-22  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42796         from test code.
42797
42798 2008-12-22  Eric Blake  <ebb9@byu.net>
42799
42800         Avoid gcc warnings on cygwin.
42801         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42802         Avoid unused variable.
42803         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42804         Likewise.
42805
42806 2008-12-22  Bruno Haible  <bruno@clisp.org>
42807
42808         Remove HAVE_MBRTOWC conditionals.
42809         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42810         (mbscasecmp): Assume mbrtowc function.
42811         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42812         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42813         * lib/mbschr.c: Include mbuiter.h unconditionally.
42814         (mbschr): Assume mbrtowc function.
42815         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42816         (mbscspn): Assume mbrtowc function.
42817         * lib/mbslen.c: Include mbuiter.h unconditionally.
42818         (mbslen): Assume mbrtowc function.
42819         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42820         (mbsncasecmp): Assume mbrtowc function.
42821         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42822         (mbsnlen): Assume mbrtowc function.
42823         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42824         (mbspbrk): Assume mbrtowc function.
42825         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42826         (mbspcasecmp): Assume mbrtowc function.
42827         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42828         (mbsrchr): Assume mbrtowc function.
42829         * lib/mbssep.c: Include mbuiter.h unconditionally.
42830         (mbssep): Assume mbrtowc function.
42831         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42832         (mbsspn): Assume mbrtowc function.
42833         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42834         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42835         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42836         (mbstok_r): Assume mbrtowc function.
42837         * lib/propername.c: Include mbuiter.h unconditionally.
42838         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42839         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42840         (trim2): Assume mbrtowc function.
42841         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42842         (mbsnwidth): Assume mbrtowc function.
42843         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42844         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42845         fallback definitions.
42846         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42847
42848 2008-12-22  Bruno Haible  <bruno@clisp.org>
42849
42850         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42851
42852 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42853
42854         * modules/regex: Request emulations for the mb*/wc* functions we need.
42855         * m4/regex.m4: Don't look for those functions here.
42856         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42857
42858 2008-12-22  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42861
42862 2008-12-21  Bruno Haible  <bruno@clisp.org>
42863
42864         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42865         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42866         (Include): Remove conditionalization.
42867         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42868         (Include): Remove conditionalization.
42869         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42870         (Include): Remove conditionalization.
42871         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42872         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42873         * NEWS: Mention the change.
42874         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42875         via Sergey Poznyakoff <gray@gnu.org.ua>.
42876
42877 2008-12-21  Bruno Haible  <bruno@clisp.org>
42878
42879         * MODULES.html.sh (Extended multibyte and wide character utilities
42880         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42881         wcrtomb, wcsrtombs.
42882         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42883         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42884         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42885         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42886
42887 2008-12-21  Bruno Haible  <bruno@clisp.org>
42888
42889         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42890
42891 2008-12-21  Bruno Haible  <bruno@clisp.org>
42892
42893         * modules/wcsnrtombs-tests: New file.
42894         * tests/test-wcsnrtombs1.sh: New file.
42895         * tests/test-wcsnrtombs2.sh: New file.
42896         * tests/test-wcsnrtombs3.sh: New file.
42897         * tests/test-wcsnrtombs4.sh: New file.
42898         * tests/test-wcsnrtombs.c: New file.
42899
42900         New module 'wcsnrtombs'.
42901         * lib/wchar.in.h (wcsnrtombs): New declaration.
42902         * lib/wcsnrtombs.c: New file.
42903         * lib/wcsrtombs-state.c: New file.
42904         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42905         (internal_state): Remove variable.
42906         * m4/wcsnrtombs.m4: New file.
42907         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42908         compilation units.
42909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42910         HAVE_WCSNRTOMBS.
42911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42912         HAVE_WCSNRTOMBS.
42913         * modules/wcsnrtombs: New file.
42914         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42915         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42916
42917 2008-12-21  Bruno Haible  <bruno@clisp.org>
42918
42919         * modules/wcsrtombs-tests: New file.
42920         * tests/test-wcsrtombs1.sh: New file.
42921         * tests/test-wcsrtombs2.sh: New file.
42922         * tests/test-wcsrtombs3.sh: New file.
42923         * tests/test-wcsrtombs4.sh: New file.
42924         * tests/test-wcsrtombs.c: New file.
42925
42926         New module 'wcsrtombs'.
42927         * lib/wchar.in.h (wcsrtombs): New declaration.
42928         * lib/wcsrtombs.c: New file.
42929         * m4/wcsrtombs.m4: New file.
42930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42931         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42933         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42934         * modules/wcsrtombs: New file.
42935         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42936         bugs.
42937
42938 2008-12-21  Bruno Haible  <bruno@clisp.org>
42939
42940         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42941         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42943         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42944         if not correct.
42945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42946         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42947         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42948         m4/locale-zh.m4, m4/codeset.m4.
42949         * doc/posix-functions/wcrtomb.texi: Document the bug.
42950
42951 2008-12-21  Bruno Haible  <bruno@clisp.org>
42952
42953         Work around a btowc() bug on IRIX 6.5.
42954         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42955         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42956         REPLACE_WTOBC if not.
42957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42958         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42959         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42960
42961 2008-12-21  Bruno Haible  <bruno@clisp.org>
42962
42963         * modules/wcrtomb-tests: New file.
42964         * tests/test-wcrtomb.sh: New file.
42965         * tests/test-wcrtomb.c: New file.
42966
42967         New module 'wcrtomb'.
42968         * lib/wchar.in.h (wcrtomb): New declaration.
42969         * lib/wcrtomb.c: New file.
42970         * m4/wcrtomb.m4: New file.
42971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42972         HAVE_WCRTOMB.
42973         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42974         HAVE_WCRTOMB.
42975         * modules/wcrtomb: New file.
42976         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42977
42978 2008-12-21  Bruno Haible  <bruno@clisp.org>
42979
42980         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42981         * modules/mbsrtowcs (Files): Likewise.
42982         * modules/wctob (Files): Likewise.
42983         * modules/c-strcase-tests (Files): Likewise.
42984         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42985         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42986         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42987         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42988         * modules/vasnprintf-posix-tests (Files): Likewise.
42989
42990 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42991
42992         gitlog-to-changelog: pass all command-line arguments to git-log
42993         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42994         it is sometimes convenient to filter the commits in various ways.
42995         gitlog-to-changelog only allows --since to specify a start date,
42996         but git-log itself supports many other filtering mechanisms.
42997         At the moment, I want to filter by branch name.  Rather than
42998         adding a --branch option to gitlog-to-changelog, it seems more
42999         flexible to simply pass all options directly to git-log and let
43000         git do the work.  Notice that this effectively makes --since a
43001         redundant option for gitlog-to-changelog, but removing it would
43002         require current usage to change since calls would then require
43003         an additional '--'.
43004
43005 2008-12-21  Bruno Haible  <bruno@clisp.org>
43006
43007         * modules/mbsnrtowcs-tests: New file.
43008         * tests/test-mbsnrtowcs1.sh: New file.
43009         * tests/test-mbsnrtowcs2.sh: New file.
43010         * tests/test-mbsnrtowcs3.sh: New file.
43011         * tests/test-mbsnrtowcs4.sh: New file.
43012         * tests/test-mbsnrtowcs.c: New file.
43013
43014         New module 'mbsnrtowcs'.
43015         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43016         * lib/mbsnrtowcs.c: New file.
43017         * lib/mbsrtowcs-state.c: New file.
43018         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43019         (internal_state): Remove variable.
43020         * m4/mbsnrtowcs.m4: New file.
43021         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43022         compilation units.
43023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43024         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43025         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43026         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43027         * modules/mbsnrtowcs: New file.
43028         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43029         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43030         portability problem.
43031
43032 2008-12-21  Bruno Haible  <bruno@clisp.org>
43033
43034         Work around mbsrtowcs bug.
43035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43036         (gl_FUNC_MBSRTOWCS): Invoke it.
43037         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43038         m4/locale-zh.m4.
43039         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43040
43041 2008-12-21  Bruno Haible  <bruno@clisp.org>
43042
43043         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43044
43045 2008-12-21  Bruno Haible  <bruno@clisp.org>
43046
43047         Update doc for AIX.
43048         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43049         16-bit wchar_t type.
43050         * doc/posix-functions/btowc.texi: Likewise.
43051         * doc/posix-functions/fgetwc.texi: Likewise.
43052         * doc/posix-functions/fgetws.texi: Likewise.
43053         * doc/posix-functions/fputwc.texi: Likewise.
43054         * doc/posix-functions/fputws.texi: Likewise.
43055         * doc/posix-functions/fwide.texi: Likewise.
43056         * doc/posix-functions/fwprintf.texi: Likewise.
43057         * doc/posix-functions/fwscanf.texi: Likewise.
43058         * doc/posix-functions/getwchar.texi: Likewise.
43059         * doc/posix-functions/getwc.texi: Likewise.
43060         * doc/posix-functions/iswalnum.texi: Likewise.
43061         * doc/posix-functions/iswalpha.texi: Likewise.
43062         * doc/posix-functions/iswblank.texi: Likewise.
43063         * doc/posix-functions/iswcntrl.texi: Likewise.
43064         * doc/posix-functions/iswctype.texi: Likewise.
43065         * doc/posix-functions/iswdigit.texi: Likewise.
43066         * doc/posix-functions/iswgraph.texi: Likewise.
43067         * doc/posix-functions/iswlower.texi: Likewise.
43068         * doc/posix-functions/iswprint.texi: Likewise.
43069         * doc/posix-functions/iswpunct.texi: Likewise.
43070         * doc/posix-functions/iswspace.texi: Likewise.
43071         * doc/posix-functions/iswupper.texi: Likewise.
43072         * doc/posix-functions/iswxdigit.texi: Likewise.
43073         * doc/posix-functions/mbrtowc.texi: Likewise.
43074         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43075         * doc/posix-functions/mbstowcs.texi: Likewise.
43076         * doc/posix-functions/mbtowc.texi: Likewise.
43077         * doc/posix-functions/putwchar.texi: Likewise.
43078         * doc/posix-functions/putwc.texi: Likewise.
43079         * doc/posix-functions/swprintf.texi: Likewise.
43080         * doc/posix-functions/tolower.texi: Likewise.
43081         * doc/posix-functions/toupper.texi: Likewise.
43082         * doc/posix-functions/towctrans.texi: Likewise.
43083         * doc/posix-functions/ungetwc.texi: Likewise.
43084         * doc/posix-functions/vswprintf.texi: Likewise.
43085         * doc/posix-functions/wcrtomb.texi: Likewise.
43086         * doc/posix-functions/wcscat.texi: Likewise.
43087         * doc/posix-functions/wcschr.texi: Likewise.
43088         * doc/posix-functions/wcscmp.texi: Likewise.
43089         * doc/posix-functions/wcscoll.texi: Likewise.
43090         * doc/posix-functions/wcscpy.texi: Likewise.
43091         * doc/posix-functions/wcscspn.texi: Likewise.
43092         * doc/posix-functions/wcsftime.texi: Likewise.
43093         * doc/posix-functions/wcslen.texi: Likewise.
43094         * doc/posix-functions/wcsncat.texi: Likewise.
43095         * doc/posix-functions/wcsncmp.texi: Likewise.
43096         * doc/posix-functions/wcsncpy.texi: Likewise.
43097         * doc/posix-functions/wcspbrk.texi: Likewise.
43098         * doc/posix-functions/wcsrchr.texi: Likewise.
43099         * doc/posix-functions/wcsrtombs.texi: Likewise.
43100         * doc/posix-functions/wcsspn.texi: Likewise.
43101         * doc/posix-functions/wcsstr.texi: Likewise.
43102         * doc/posix-functions/wcstod.texi: Likewise.
43103         * doc/posix-functions/wcstof.texi: Likewise.
43104         * doc/posix-functions/wcstoimax.texi: Likewise.
43105         * doc/posix-functions/wcstok.texi: Likewise.
43106         * doc/posix-functions/wcstold.texi: Likewise.
43107         * doc/posix-functions/wcstoll.texi: Likewise.
43108         * doc/posix-functions/wcstol.texi: Likewise.
43109         * doc/posix-functions/wcstombs.texi: Likewise.
43110         * doc/posix-functions/wcstoull.texi: Likewise.
43111         * doc/posix-functions/wcstoul.texi: Likewise.
43112         * doc/posix-functions/wcstoumax.texi: Likewise.
43113         * doc/posix-functions/wcswidth.texi: Likewise.
43114         * doc/posix-functions/wcsxfrm.texi: Likewise.
43115         * doc/posix-functions/wctob.texi: Likewise.
43116         * doc/posix-functions/wctomb.texi: Likewise.
43117         * doc/posix-functions/wctrans.texi: Likewise.
43118         * doc/posix-functions/wctype.texi: Likewise.
43119         * doc/posix-functions/wcwidth.texi: Likewise.
43120         * doc/posix-functions/wmemchr.texi: Likewise.
43121         * doc/posix-functions/wmemcmp.texi: Likewise.
43122         * doc/posix-functions/wmemcpy.texi: Likewise.
43123         * doc/posix-functions/wmemmove.texi: Likewise.
43124         * doc/posix-functions/wmemset.texi: Likewise.
43125         * doc/posix-functions/wprintf.texi: Likewise.
43126         * doc/posix-functions/wscanf.texi: Likewise.
43127
43128 2008-12-21  Bruno Haible  <bruno@clisp.org>
43129
43130         Update doc for HP-UX 11.11.
43131         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43132         in HP-UX version 11.00, not in all versions of HP-UX 11.
43133         * doc/posix-functions/fwide.texi: Likewise.
43134         * doc/posix-functions/fwprintf.texi: Likewise.
43135         * doc/posix-functions/fwscanf.texi: Likewise.
43136         * doc/posix-functions/inet_ntop.texi: Likewise.
43137         * doc/posix-functions/inet_pton.texi: Likewise.
43138         * doc/posix-functions/mbrlen.texi: Likewise.
43139         * doc/posix-functions/mbrtowc.texi: Likewise.
43140         * doc/posix-functions/mbsinit.texi: Likewise.
43141         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43142         * doc/posix-functions/swprintf.texi: Likewise.
43143         * doc/posix-functions/swscanf.texi: Likewise.
43144         * doc/posix-functions/towctrans.texi: Likewise.
43145         * doc/posix-functions/vfwprintf.texi: Likewise.
43146         * doc/posix-functions/vswprintf.texi: Likewise.
43147         * doc/posix-functions/vwprintf.texi: Likewise.
43148         * doc/posix-functions/wcrtomb.texi: Likewise.
43149         * doc/posix-functions/wcsrtombs.texi: Likewise.
43150         * doc/posix-functions/wcsstr.texi: Likewise.
43151         * doc/posix-functions/wctob.texi: Likewise.
43152         * doc/posix-functions/wctrans.texi: Likewise.
43153         * doc/posix-functions/wmemchr.texi: Likewise.
43154         * doc/posix-functions/wmemcmp.texi: Likewise.
43155         * doc/posix-functions/wmemcpy.texi: Likewise.
43156         * doc/posix-functions/wmemmove.texi: Likewise.
43157         * doc/posix-functions/wmemset.texi: Likewise.
43158         * doc/posix-functions/wprintf.texi: Likewise.
43159         * doc/posix-functions/wscanf.texi: Likewise.
43160
43161 2008-12-21  Bruno Haible  <bruno@clisp.org>
43162
43163         Work around a portability problem.
43164         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43165         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43166
43167 2008-12-20  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43170         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43171         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43173         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43174
43175         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43176         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43177         set.
43178         (GNULIB_defined_mbstate_t): New macro.
43179         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43180         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43181         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43182         reuses the system's mbrtowc function but works around the bugs.
43183         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43184         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43185         macros.
43186         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43187         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43188         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43189         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43190         REPLACE_MBSINIT if mbsinit needs to be overridden.
43191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43192         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43193         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43194         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43195         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43196         m4/locale-zh.m4.
43197         (Depends): Add mbsinit.
43198         * modules/mbsinit (Depends): Add mbrtowc.
43199         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43200
43201 2008-12-20  Bruno Haible  <bruno@clisp.org>
43202
43203         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43204         so that there are no conversion errors on AIX.
43205         * tests/test-mbsrtowcs.c (main): LIkewise.
43206
43207 2008-12-20  Bruno Haible  <bruno@clisp.org>
43208
43209         Work around wctob bug on Solaris <= 9.
43210         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43211         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43213         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43214         * modules/wctob (Files): Add m4/locale-fr.m4.
43215         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43216
43217 2008-12-20  Bruno Haible  <bruno@clisp.org>
43218
43219         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43220         /dev/null.
43221         * tests/test-select-in.sh: Likewise.
43222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43223
43224 2008-12-20  Bruno Haible  <bruno@clisp.org>
43225
43226         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43227         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43228         Cygwin 1.5.x.
43229
43230 2008-12-20  Bruno Haible  <bruno@clisp.org>
43231
43232         Ensure mbstate_t is defined on HP-UX 11.11.
43233         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43234         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43235         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43236         AC_USE_SYSTEM_EXTENSIONS.
43237         * modules/fnmatch (Depends-on): Add extensions.
43238         * modules/mbrlen (Depends-on): Likewise.
43239         * modules/mbrtowc (Depends-on): Likewise.
43240         * modules/mbsinit (Depends-on): Likewise.
43241         * modules/mbsrtowcs (Depends-on): Likewise.
43242         * modules/mbswidth (Depends-on): Likewise.
43243         * modules/quotearg (Depends-on): Likewise.
43244         * modules/strftime (Depends-on): Likewise.
43245
43246 2008-12-20  Bruno Haible  <bruno@clisp.org>
43247
43248         Ensure wctob is declared on IRIX 6.5.
43249         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43250         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43251         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43253         of HAVE_WCTOB.
43254         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43255         HAVE_WCTOB.
43256         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43257
43258 2008-12-19  Bruno Haible  <bruno@clisp.org>
43259
43260         * modules/mbsrtowcs-tests: New file.
43261         * tests/test-mbsrtowcs1.sh: New file.
43262         * tests/test-mbsrtowcs2.sh: New file.
43263         * tests/test-mbsrtowcs3.sh: New file.
43264         * tests/test-mbsrtowcs4.sh: New file.
43265         * tests/test-mbsrtowcs.c: New file.
43266
43267         New module 'mbsrtowcs'.
43268         * lib/wchar.in.h (mbsrtowcs): New declaration.
43269         * lib/mbsrtowcs.c: New file.
43270         * m4/mbsrtowcs.m4: New file.
43271         * modules/mbsrtowcs: New file.
43272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43273         HAVE_MBSRTOWCS.
43274         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43275         HAVE_MBSRTOWCS.
43276         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43277
43278 2008-12-19  Bruno Haible  <bruno@clisp.org>
43279
43280         New module 'mbrlen'.
43281         * lib/wchar.in.h (mbrlen): New declaration.
43282         * lib/mbrlen.c: New file.
43283         * m4/mbrlen.m4: New file.
43284         * modules/mbrlen: New file.
43285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43286         HAVE_MBRLEN.
43287         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43288         HAVE_MBRLEN.
43289         * doc/posix-functions/mbrlen.texi: Document the new module.
43290
43291 2008-12-19  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43294         * modules/mbrtowc (Depends-on): Add verify.
43295         Suggested by Paul Eggert.
43296
43297 2008-12-18  Bruno Haible  <bruno@clisp.org>
43298
43299         * modules/mbsinit-tests: New file.
43300         * tests/test-mbsinit.sh: New file.
43301         * tests/test-mbsinit.c: New file.
43302
43303 2008-12-18  Bruno Haible  <bruno@clisp.org>
43304
43305         * modules/mbrtowc-tests: New file.
43306         * tests/test-mbrtowc1.sh: New file.
43307         * tests/test-mbrtowc2.sh: New file.
43308         * tests/test-mbrtowc3.sh: New file.
43309         * tests/test-mbrtowc4.sh: New file.
43310         * tests/test-mbrtowc.c: New file.
43311
43312         New module 'mbrtowc'.
43313         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43314         mbsinit and mbrtowc.
43315         (mbrtowc): New declaration.
43316         * lib/mbrtowc.c: New file.
43317         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43318         * modules/mbrtowc: New file.
43319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43320         HAVE_MBRTOWC.
43321         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43322         HAVE_MBRTOWC.
43323         * doc/posix-functions/mbrtowc.texi: Document the new module.
43324
43325 2008-12-18  Bruno Haible  <bruno@clisp.org>
43326
43327         New module 'wctob'.
43328         * lib/wchar.in.h (wctob): New declaration.
43329         * lib/wctob.c: New file.
43330         * m4/wctob.m4: New file.
43331         * modules/wctob: New file.
43332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43333         HAVE_WCTOB.
43334         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43335         * doc/posix-functions/wctob.texi: Document the new module.
43336
43337 2008-12-18  Bruno Haible  <bruno@clisp.org>
43338
43339         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43340         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43341
43342 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43343
43344         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43345         G. Christensen" <tgc@jupiterrise.com>.
43346
43347         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43348         G. Christensen" <tgc@jupiterrise.com>.
43349
43350         * lib/flock.c: Need to include string.h.  Reported by "Tom
43351         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43352         <ebb9@byu.net>.
43353
43354 2008-12-18  Bruno Haible  <bruno@clisp.org>
43355
43356         * m4/locale-ja.m4: New file, from GNU gettext.
43357
43358 2008-12-17  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43361         Suggested by Eric Blake.
43362
43363 2008-12-17  Bruno Haible  <bruno@clisp.org>
43364
43365         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43366
43367 2008-12-17  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43370         * modules/mbsinit (Depends-on): Add verify.
43371         Suggested by Paul Eggert.
43372
43373 2008-12-17  Bruno Haible  <bruno@clisp.org>
43374
43375         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43376         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43377         gl_FUNC_MBRTOWC.
43378         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43379         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43380         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43381         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43382         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43383         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43384         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43385         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43386         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43387         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43388         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43389         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43390         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43391         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43392         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43393         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43394         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43395         * modules/trim (configure.ac): Likewise.
43396
43397 2008-12-17  Bruno Haible  <bruno@clisp.org>
43398
43399         * modules/btowc-tests: New file.
43400         * tests/test-btowc1.sh: New file.
43401         * tests/test-btowc2.sh: New file.
43402         * tests/test-btowc.c: New file.
43403
43404         New module 'btowc'.
43405         * lib/wchar.in.h (btowc): New declaration.
43406         * lib/btowc.c: New file.
43407         * m4/btowc.m4: New file.
43408         * modules/btowc: New file.
43409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43410         HAVE_BTOWC.
43411         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43412         * doc/posix-functions/btowc.texi: Document the new module.
43413
43414 2008-12-17  Bruno Haible  <bruno@clisp.org>
43415
43416         New module 'mbsinit'.
43417         * lib/wchar.in.h (mbsinit): New declaration.
43418         * lib/mbsinit.c: New file.
43419         * m4/mbsinit.m4: New file.
43420         * modules/mbsinit: New file.
43421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43422         HAVE_MBSINIT.
43423         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43424         HAVE_MBSINIT.
43425         * doc/posix-functions/mbsinit.texi: Document the new module.
43426
43427 2008-12-16  Bruno Haible  <bruno@clisp.org>
43428
43429         * lib/unistd.in.h: Add comment.
43430         * tests/test-environ.c: Don't include <stdlib.h>.
43431
43432 2008-12-16  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/parse-duration.h (parse_duration): Document return value
43435         convention.
43436         * lib/parse-duration.c: Include specification header first. Add
43437         comments.
43438         (_): Remove macro.
43439         (parse_year_month_day, parse_hour_minute_second): Move side effects
43440         outside of strchr call.
43441         (parse_non_iso8601): Move side effects outside of isspace call.
43442         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43443         call.
43444
43445 2008-12-16  Bruno Haible  <bruno@clisp.org>
43446
43447         * tests/test-parse-duration.sh: Produce no output when the test
43448         succeeds.
43449
43450 2008-12-16  Bruno Haible  <bruno@clisp.org>
43451
43452         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43453         expressions.
43454
43455 2008-12-15  Bruno Haible  <bruno@clisp.org>
43456
43457         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43458         * doc/glibc-functions/flistxattr.texi: Likewise.
43459         * doc/glibc-functions/fopencookie.texi: Likewise.
43460         * doc/glibc-functions/fremovexattr.texi: Likewise.
43461         * doc/glibc-functions/fsetxattr.texi: Likewise.
43462         * doc/glibc-functions/getxattr.texi: Likewise.
43463         * doc/glibc-functions/lgetxattr.texi: Likewise.
43464         * doc/glibc-functions/listxattr.texi: Likewise.
43465         * doc/glibc-functions/llistxattr.texi: Likewise.
43466         * doc/glibc-functions/lremovexattr.texi: Likewise.
43467         * doc/glibc-functions/lsetxattr.texi: Likewise.
43468         * doc/glibc-functions/removexattr.texi: Likewise.
43469         * doc/glibc-functions/setxattr.texi: Likewise.
43470         * doc/posix-functions/open_memstream.texi: Likewise.
43471
43472 2008-12-15  Eric Blake  <ebb9@byu.net>
43473
43474         Update doc for cygwin 1.7.
43475         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43476         functions.
43477         * doc/posix-functions/fchmodat.texi: Likewise.
43478         * doc/posix-functions/fchownat.texi: Likewise.
43479         * doc/posix-functions/fdopendir.texi: Likewise.
43480         * doc/posix-functions/fmemopen.texi: Likewise.
43481         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43482         * doc/posix-functions/fstatat.texi: Likewise.
43483         * doc/posix-functions/futimens.texi: Likewise.
43484         * doc/posix-functions/gai_strerror.texi: Likewise.
43485         * doc/posix-functions/getaddrinfo.texi: Likewise.
43486         * doc/posix-functions/getnameinfo.texi: Likewise.
43487         * doc/posix-functions/if_freenameindex.texi: Likewise.
43488         * doc/posix-functions/if_indextoname.texi: Likewise.
43489         * doc/posix-functions/if_nameindex.texi: Likewise.
43490         * doc/posix-functions/if_nametoindex.texi: Likewise.
43491         * doc/posix-functions/insque.texi: Likewise.
43492         * doc/posix-functions/linkat.texi: Likewise.
43493         * doc/posix-functions/llrint.texi: Likewise.
43494         * doc/posix-functions/llrintf.texi: Likewise.
43495         * doc/posix-functions/llrintl.texi: Likewise.
43496         * doc/posix-functions/lockf.texi: Likewise.
43497         * doc/posix-functions/lrintl.texi: Likewise.
43498         * doc/posix-functions/mkdirat.texi: Likewise.
43499         * doc/posix-functions/mkfifoat.texi: Likewise.
43500         * doc/posix-functions/mknodat.texi: Likewise.
43501         * doc/posix-functions/mq_close.texi: Likewise.
43502         * doc/posix-functions/mq_getattr.texi: Likewise.
43503         * doc/posix-functions/mq_notify.texi: Likewise.
43504         * doc/posix-functions/mq_open.texi: Likewise.
43505         * doc/posix-functions/mq_receive.texi: Likewise.
43506         * doc/posix-functions/mq_send.texi: Likewise.
43507         * doc/posix-functions/mq_setattr.texi: Likewise.
43508         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43509         * doc/posix-functions/mq_timedsend.texi: Likewise.
43510         * doc/posix-functions/mq_unlink.texi: Likewise.
43511         * doc/posix-functions/open_memstream.texi: Likewise.
43512         * doc/posix-functions/openat.texi: Likewise.
43513         * doc/posix-functions/posix_fadvise.texi: Likewise.
43514         * doc/posix-functions/posix_fallocate.texi: Likewise.
43515         * doc/posix-functions/posix_madvise.texi: Likewise.
43516         * doc/posix-functions/posix_memalign.texi: Likewise.
43517         * doc/posix-functions/posix_openpt.texi: Likewise.
43518         * doc/posix-functions/readlinkat.texi: Likewise.
43519         * doc/posix-functions/remque.texi: Likewise.
43520         * doc/posix-functions/renameat.texi: Likewise.
43521         * doc/posix-functions/rintl.texi: Likewise.
43522         * doc/posix-functions/sem_unlink.texi: Likewise.
43523         * doc/posix-functions/shm_open.texi: Likewise.
43524         * doc/posix-functions/shm_unlink.texi: Likewise.
43525         * doc/posix-functions/signgam.texi: Likewise.
43526         * doc/posix-functions/sigset.texi: Likewise.
43527         * doc/posix-functions/stpcpy.texi: Likewise.
43528         * doc/posix-functions/stpncpy.texi: Likewise.
43529         * doc/posix-functions/strerror.texi: Likewise.
43530         * doc/posix-functions/strtod.texi: Likewise.
43531         * doc/posix-functions/symlinkat.texi: Likewise.
43532         * doc/posix-functions/unlinkat.texi: Likewise.
43533         * doc/posix-functions/utimensat.texi: Likewise.
43534         * doc/glibc-functions/bindresvport.texi: Likewise.
43535         * doc/glibc-functions/dn_expand.texi: Likewise.
43536         * doc/glibc-functions/exp10.texi: Likewise.
43537         * doc/glibc-functions/exp10f.texi: Likewise.
43538         * doc/glibc-functions/fgetxattr.texi: Likewise.
43539         * doc/glibc-functions/flistxattr.texi: Likewise.
43540         * doc/glibc-functions/fopencookie.texi: Likewise.
43541         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43542         * doc/glibc-functions/fremovexattr.texi: Likewise.
43543         * doc/glibc-functions/fsetxattr.texi: Likewise.
43544         * doc/glibc-functions/getifaddrs.texi: Likewise.
43545         * doc/glibc-functions/getxattr.texi: Likewise.
43546         * doc/glibc-functions/lgetxattr.texi: Likewise.
43547         * doc/glibc-functions/listxattr.texi: Likewise.
43548         * doc/glibc-functions/llistxattr.texi: Likewise.
43549         * doc/glibc-functions/lremovexattr.texi: Likewise.
43550         * doc/glibc-functions/lsetxattr.texi: Likewise.
43551         * doc/glibc-functions/pow10.texi: Likewise.
43552         * doc/glibc-functions/pow10f.texi: Likewise.
43553         * doc/glibc-functions/rcmd_af.texi: Likewise.
43554         * doc/glibc-functions/removexattr.texi: Likewise.
43555         * doc/glibc-functions/res_init.texi: Likewise.
43556         * doc/glibc-functions/res_mkquery.texi: Likewise.
43557         * doc/glibc-functions/res_query.texi: Likewise.
43558         * doc/glibc-functions/res_querydomain.texi: Likewise.
43559         * doc/glibc-functions/res_send.texi: Likewise.
43560         * doc/glibc-functions/rresvport_af.texi: Likewise.
43561         * doc/glibc-functions/setxattr.texi: Likewise.
43562         * doc/glibc-functions/strcasestr.texi: Likewise.
43563
43564 2008-12-15  Bruno Haible  <bruno@clisp.org>
43565
43566         Fix compilation error on OSF/1 4.0.
43567         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43568         <sys/time.h>, simply delegate to the system header.
43569         Reported by Daniel Richard G. <oss@teragram.com>.
43570
43571 2008-12-15  Bruno Haible  <bruno@clisp.org>
43572
43573         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43574         * doc/posix-functions/fchmodat.texi: Likewise.
43575         * doc/posix-functions/fchownat.texi: Likewise.
43576         * doc/posix-functions/fdopendir.texi: Likewise.
43577         * doc/posix-functions/fstatat.texi: Likewise.
43578         * doc/posix-functions/mkdirat.texi: Likewise.
43579         * doc/posix-functions/unlinkat.texi: Likewise.
43580
43581 2008-12-14  Bruno Haible  <bruno@clisp.org>
43582
43583         Update doc for POSIX:2008.
43584         * doc/posix-functions/faccessat.texi: New file.
43585         * doc/posix-functions/fchmodat.texi: New file.
43586         * doc/posix-functions/fchownat.texi: New file.
43587         * doc/posix-functions/fdopendir.texi: New file.
43588         * doc/posix-functions/fstatat.texi: New file.
43589         * doc/posix-functions/futimens.texi: New file.
43590         * doc/posix-functions/linkat.texi: New file.
43591         * doc/posix-functions/mkdirat.texi: New file.
43592         * doc/posix-functions/mkfifoat.texi: New file.
43593         * doc/posix-functions/mknodat.texi: New file.
43594         * doc/posix-functions/open_wmemstream.texi: New file.
43595         * doc/posix-functions/openat.texi: New file.
43596         * doc/posix-functions/psiginfo.texi: New file.
43597         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43598         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43599         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43600         * doc/posix-functions/readlinkat.texi: New file.
43601         * doc/posix-functions/renameat.texi: New file.
43602         * doc/posix-functions/strerror_l.texi: New file.
43603         * doc/posix-functions/symlinkat.texi: New file.
43604         * doc/posix-functions/unlinkat.texi: New file.
43605         * doc/posix-functions/utimensat.texi: New file.
43606         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43607
43608 2008-12-14  Bruno Haible  <bruno@clisp.org>
43609
43610         Update doc for POSIX:2008.
43611         * doc/posix-functions/alphasort.texi: Renamed from
43612         doc/glibc-functions/alphasort.texi.
43613         * doc/posix-functions/dirfd.texi: Renamed from
43614         doc/glibc-functions/dirfd.texi.
43615         * doc/posix-functions/dprintf.texi: Renamed from
43616         doc/glibc-functions/dprintf.texi.
43617         * doc/posix-functions/duplocale.texi: Renamed from
43618         doc/glibc-functions/duplocale.texi.
43619         * doc/posix-functions/fexecve.texi: Renamed from
43620         doc/glibc-functions/fexecve.texi.
43621         * doc/posix-functions/fmemopen.texi: Renamed from
43622         doc/glibc-functions/fmemopen.texi.
43623         * doc/posix-functions/freelocale.texi: Renamed from
43624         doc/glibc-functions/freelocale.texi.
43625         * doc/posix-functions/getdate_err.texi: Renamed from
43626         doc/glibc-functions/getdate_err.texi.
43627         * doc/posix-functions/isalnum_l.texi: Renamed from
43628         doc/glibc-functions/isalnum_l.texi.
43629         * doc/posix-functions/isalpha_l.texi: Renamed from
43630         doc/glibc-functions/isalpha_l.texi.
43631         * doc/posix-functions/isblank_l.texi: Renamed from
43632         doc/glibc-functions/isblank_l.texi.
43633         * doc/posix-functions/iscntrl_l.texi: Renamed from
43634         doc/glibc-functions/iscntrl_l.texi.
43635         * doc/posix-functions/isdigit_l.texi: Renamed from
43636         doc/glibc-functions/isdigit_l.texi.
43637         * doc/posix-functions/isgraph_l.texi: Renamed from
43638         doc/glibc-functions/isgraph_l.texi.
43639         * doc/posix-functions/islower_l.texi: Renamed from
43640         doc/glibc-functions/islower_l.texi.
43641         * doc/posix-functions/isprint_l.texi: Renamed from
43642         doc/glibc-functions/isprint_l.texi.
43643         * doc/posix-functions/ispunct_l.texi: Renamed from
43644         doc/glibc-functions/ispunct_l.texi.
43645         * doc/posix-functions/isspace_l.texi: Renamed from
43646         doc/glibc-functions/isspace_l.texi.
43647         * doc/posix-functions/isupper_l.texi: Renamed from
43648         doc/glibc-functions/isupper_l.texi.
43649         * doc/posix-functions/iswalnum_l.texi: Renamed from
43650         doc/glibc-functions/iswalnum_l.texi.
43651         * doc/posix-functions/iswalpha_l.texi: Renamed from
43652         doc/glibc-functions/iswalpha_l.texi.
43653         * doc/posix-functions/iswblank_l.texi: Renamed from
43654         doc/glibc-functions/iswblank_l.texi.
43655         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43656         doc/glibc-functions/iswcntrl_l.texi.
43657         * doc/posix-functions/iswctype_l.texi: Renamed from
43658         doc/glibc-functions/iswctype_l.texi.
43659         * doc/posix-functions/iswdigit_l.texi: Renamed from
43660         doc/glibc-functions/iswdigit_l.texi.
43661         * doc/posix-functions/iswgraph_l.texi: Renamed from
43662         doc/glibc-functions/iswgraph_l.texi.
43663         * doc/posix-functions/iswlower_l.texi: Renamed from
43664         doc/glibc-functions/iswlower_l.texi.
43665         * doc/posix-functions/iswprint_l.texi: Renamed from
43666         doc/glibc-functions/iswprint_l.texi.
43667         * doc/posix-functions/iswpunct_l.texi: Renamed from
43668         doc/glibc-functions/iswpunct_l.texi.
43669         * doc/posix-functions/iswspace_l.texi: Renamed from
43670         doc/glibc-functions/iswspace_l.texi.
43671         * doc/posix-functions/iswupper_l.texi: Renamed from
43672         doc/glibc-functions/iswupper_l.texi.
43673         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43674         doc/glibc-functions/iswxdigit_l.texi.
43675         * doc/posix-functions/isxdigit_l.texi: Renamed from
43676         doc/glibc-functions/isxdigit_l.texi.
43677         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43678         doc/glibc-functions/mbsnrtowcs.texi.
43679         * doc/posix-functions/mkdtemp.texi: Renamed from
43680         doc/glibc-functions/mkdtemp.texi.
43681         * doc/posix-functions/newlocale.texi: Renamed from
43682         doc/glibc-functions/newlocale.texi.
43683         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43684         doc/glibc-functions/nl_langinfo_l.texi.
43685         * doc/posix-functions/open_memstream.texi: Renamed from
43686         doc/glibc-functions/open_memstream.texi.
43687         * doc/posix-functions/opterr.texi: Renamed from
43688         doc/glibc-functions/opterr.texi.
43689         * doc/posix-functions/optind.texi: Renamed from
43690         doc/glibc-functions/optind.texi.
43691         * doc/posix-functions/optopt.texi: Renamed from
43692         doc/glibc-functions/optopt.texi.
43693         * doc/posix-functions/psignal.texi: Renamed from
43694         doc/glibc-functions/psignal.texi.
43695         * doc/posix-functions/scandir.texi: Renamed from
43696         doc/glibc-functions/scandir.texi.
43697         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43698         doc/glibc-functions/sched_get_priority_min.texi.
43699         * doc/posix-functions/signgam.texi: Renamed from
43700         doc/glibc-functions/signgam.texi.
43701         * doc/posix-functions/stpcpy.texi: Renamed from
43702         doc/glibc-functions/stpcpy.texi.
43703         * doc/posix-functions/stpncpy.texi: Renamed from
43704         doc/glibc-functions/stpncpy.texi.
43705         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43706         doc/glibc-functions/strcasecmp_l.texi.
43707         * doc/posix-functions/strcoll_l.texi: Renamed from
43708         doc/glibc-functions/strcoll_l.texi.
43709         * doc/posix-functions/strfmon_l.texi: Renamed from
43710         doc/glibc-functions/strfmon_l.texi.
43711         * doc/posix-functions/strftime_l.texi: Renamed from
43712         doc/glibc-functions/strftime_l.texi.
43713         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43714         doc/glibc-functions/strncasecmp_l.texi.
43715         * doc/posix-functions/strndup.texi: Renamed from
43716         doc/glibc-functions/strndup.texi.
43717         * doc/posix-functions/strnlen.texi: Renamed from
43718         doc/glibc-functions/strnlen.texi.
43719         * doc/posix-functions/strsignal.texi: Renamed from
43720         doc/glibc-functions/strsignal.texi.
43721         * doc/posix-functions/strxfrm_l.texi: Renamed from
43722         doc/glibc-functions/strxfrm_l.texi.
43723         * doc/posix-functions/timer_gettime.texi: Renamed from
43724         doc/glibc-functions/timer_gettime.texi.
43725         * doc/posix-functions/tolower_l.texi: Renamed from
43726         doc/glibc-functions/tolower_l.texi.
43727         * doc/posix-functions/toupper_l.texi: Renamed from
43728         doc/glibc-functions/toupper_l.texi.
43729         * doc/posix-functions/towctrans_l.texi: Renamed from
43730         doc/glibc-functions/towctrans_l.texi.
43731         * doc/posix-functions/towlower_l.texi: Renamed from
43732         doc/glibc-functions/towlower_l.texi.
43733         * doc/posix-functions/towupper_l.texi: Renamed from
43734         doc/glibc-functions/towupper_l.texi.
43735         * doc/posix-functions/uselocale.texi: Renamed from
43736         doc/glibc-functions/uselocale.texi.
43737         * doc/posix-functions/vdprintf.texi: Renamed from
43738         doc/glibc-functions/vdprintf.texi.
43739         * doc/posix-functions/wcpcpy.texi:
43740         Renamed from doc/glibc-functions/wcpcpy.texi.
43741         * doc/posix-functions/wcpncpy.texi: Renamed from
43742         doc/glibc-functions/wcpncpy.texi.
43743         * doc/posix-functions/wcscasecmp.texi: Renamed from
43744         doc/glibc-functions/wcscasecmp.texi.
43745         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43746         doc/glibc-functions/wcscasecmp_l.texi.
43747         * doc/posix-functions/wcscoll_l.texi: Renamed from
43748         doc/glibc-functions/wcscoll_l.texi.
43749         * doc/posix-functions/wcsdup.texi: Renamed from
43750         doc/glibc-functions/wcsdup.texi.
43751         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43752         doc/glibc-functions/wcsncasecmp.texi.
43753         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43754         doc/glibc-functions/wcsncasecmp_l.texi.
43755         * doc/posix-functions/wcsnlen.texi: Renamed from
43756         doc/glibc-functions/wcsnlen.texi.
43757         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43758         doc/glibc-functions/wcsnrtombs.texi.
43759         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43760         doc/glibc-functions/wcsxfrm_l.texi.
43761         * doc/posix-functions/wctrans_l.texi: Renamed from
43762         doc/glibc-functions/wctrans_l.texi.
43763         * doc/posix-functions/wctype_l.texi: Renamed from
43764         doc/glibc-functions/wctype_l.texi.
43765         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43766         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43767         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43768         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43769         these subsections.
43770         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43771         Remove sections.
43772
43773 2008-12-14  Bruno Haible  <bruno@clisp.org>
43774
43775         Update doc for POSIX:2008.
43776         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43777
43778 2008-12-14  Bruno Haible  <bruno@clisp.org>
43779
43780         Update doc for POSIX:2008.
43781         * doc/pastposix-functions/bcmp.texi: Renamed from
43782         doc/posix-functions/bcmp.texi.
43783         * doc/pastposix-functions/bcopy.texi: Renamed from
43784         doc/posix-functions/bcopy.texi.
43785         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43786         doc/posix-functions/bsd_signal.texi.
43787         * doc/pastposix-functions/bzero.texi: Renamed from
43788         doc/posix-functions/bzero.texi.
43789         * doc/pastposix-functions/ecvt.texi: Renamed from
43790         doc/posix-functions/ecvt.texi.
43791         * doc/pastposix-functions/fcvt.texi: Renamed from
43792         doc/posix-functions/fcvt.texi.
43793         * doc/pastposix-functions/ftime.texi: Renamed from
43794         doc/posix-functions/ftime.texi.
43795         * doc/pastposix-functions/gcvt.texi: Renamed from
43796         doc/posix-functions/gcvt.texi.
43797         * doc/pastposix-functions/getcontext.texi: Renamed from
43798         doc/posix-functions/getcontext.texi.
43799         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43800         doc/posix-functions/gethostbyaddr.texi.
43801         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43802         doc/posix-functions/gethostbyname.texi.
43803         * doc/pastposix-functions/getwd.texi: Renamed from
43804         doc/posix-functions/getwd.texi.
43805         * doc/pastposix-functions/h_errno.texi: Renamed from
43806         doc/posix-functions/h_errno.texi.
43807         * doc/pastposix-functions/index.texi: Renamed from
43808         doc/posix-functions/index.texi.
43809         * doc/pastposix-functions/makecontext.texi: Renamed from
43810         doc/posix-functions/makecontext.texi.
43811         * doc/pastposix-functions/mktemp.texi: Renamed from
43812         doc/posix-functions/mktemp.texi.
43813         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43814         doc/posix-functions/pthread_attr_getstackaddr.texi.
43815         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43816         doc/posix-functions/pthread_attr_setstackaddr.texi.
43817         * doc/pastposix-functions/rindex.texi: Renamed from
43818         doc/posix-functions/rindex.texi.
43819         * doc/pastposix-functions/scalb.texi: Renamed from
43820         doc/posix-functions/scalb.texi.
43821         * doc/pastposix-functions/setcontext.texi: Renamed from
43822         doc/posix-functions/setcontext.texi.
43823         * doc/pastposix-functions/swapcontext.texi: Renamed from
43824         doc/posix-functions/swapcontext.texi.
43825         * doc/pastposix-functions/ualarm.texi: Renamed from
43826         doc/posix-functions/ualarm.texi.
43827         * doc/pastposix-functions/usleep.texi: Renamed from
43828         doc/posix-functions/usleep.texi.
43829         * doc/pastposix-functions/vfork.texi: Renamed from
43830         doc/posix-functions/vfork.texi.
43831         * doc/pastposix-functions/wcswcs.texi: Renamed from
43832         doc/posix-functions/wcswcs.texi.
43833         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43834         (Function Substitutes): Update.
43835
43836 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43837
43838         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43839         m4/strerror.m4.
43840
43841 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43842             Bruno Haible  <bruno@clisp.org>
43843
43844         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43845
43846 2008-12-13  Bruno Haible  <bruno@clisp.org>
43847
43848         * modules/strtoull (Depends-on): Remove unistd.
43849
43850 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43851
43852         * modules/strtoull (Depends-on): Add stdlib.
43853
43854 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43855
43856         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43857
43858 2008-12-10  Jim Meyering  <meyering@redhat.com>
43859
43860         gl_ASSERT: don't say assertions are disabled when they're not
43861         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43862         "checking whether to enable assertions... no", when they are in
43863         fact enabled.  This is solely a bug in the output of configure.
43864         In spite of saying "no", NDEBUG was not defined in that case.
43865         Also, as noted by Eric Blake, leave assertions enabled upon
43866         --enable-assert=INVALID.
43867
43868 2008-12-10  Bruno Haible  <bruno@clisp.org>
43869
43870         Change MODULES.html to refer to POSIX:2008 where possible.
43871         * MODULES.html.sh (POSIX2008_URL): New variable.
43872         (posix_headers): Remove sys/timeb, ucontext.
43873         (posix2001_headers): New variable.
43874         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43875         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43876         index, makecontext, mktemp, pthread_attr_getstackaddr,
43877         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43878         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43879         (posix2001_functions): New variable.
43880         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43881         otherwise.
43882
43883 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43884
43885         add missing include to parse-duration.c
43886         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43887         * modules/parse-duration (Depends-on): Add xalloc.
43888
43889         fix sed script reading maint.mk
43890         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43891         (syntax-check-rules): Use it.
43892
43893 2008-12-09  Bruno Haible  <bruno@clisp.org>
43894
43895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43896         MacOS X 10.4/PowerPC.
43897         Reported by Simon Josefsson.
43898
43899 2008-12-08  Jim Meyering  <meyering@redhat.com>
43900
43901         work around mingw's lack of some S_IF definitions
43902         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43903         Reported by Simon Josefsson.
43904
43905 2008-12-08  Bruno Haible  <bruno@clisp.org>
43906
43907         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43908         applied to variables. Needed on MacOS X 10.4/PowerPC.
43909         Reported by Simon Josefsson.
43910
43911 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43912         and Eric Blake  <ebb9@byu.net>
43913
43914         assert: honor --enable-assert
43915         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43916         order to honor --enable-assert, rather than treating it as a
43917         synonym for --disable-assert.
43918
43919 2008-12-08  Jim Meyering  <meyering@redhat.com>
43920
43921         * lib/posixtm.c: Remove now-useless declaration of mktime.
43922
43923         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43924
43925 2008-12-07  Bruno Haible  <bruno@clisp.org>
43926
43927         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43928         test_once): Mark functions as static.
43929         * tests/test-tls.c (test_tls): Likewise.
43930
43931 2008-12-07  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43934         iconv_register_autodetect.
43935
43936 2008-12-07  Jim Meyering  <meyering@redhat.com>
43937
43938         posixtm.c: avoid a warning
43939         * lib/posixtm.c (posixtime): Don't initialize tm0.
43940         It's no longer needed to placate gcc4's -Wuninitialized,
43941         and the attempt to placate would elicit a new warning.
43942
43943         unicodeio.c: mark unused parameters
43944         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43945         (fallback_failure_callback): Likewise.
43946
43947 2008-12-07  Bruno Haible  <bruno@clisp.org>
43948
43949         * gnulib-tool (func_create_testdir): When building the tests
43950         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43951         Reported by Simon Josefsson.
43952
43953 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43954
43955         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43956
43957 2008-12-06  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43960         Suggested by Eric Blake.
43961
43962 2008-12-06  Bruno Haible  <bruno@clisp.org>
43963
43964         Fix a c-stack test failure on MacOS X.
43965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43966         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43967         handler for SIGBUS as well.
43968         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43969         install a signal handler for SIGBUS as well.
43970         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43971
43972 2008-12-06  Bruno Haible  <bruno@clisp.org>
43973
43974         Advocacy documentation.
43975         * doc/gnulib-intro.texi (Benefits): New section.
43976         * doc/gnulib.texi: Update.
43977
43978 2008-12-06  Bruno Haible  <bruno@clisp.org>
43979
43980         Document the 'manywarnings' module.
43981         * doc/manywarnings.texi: New file.
43982         * doc/gnulib.texi: Include it.
43983
43984 2008-12-05  Eric Blake  <ebb9@byu.net>
43985
43986         tests: silence some gcc warnings
43987         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43988         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43989         type mismatches.
43990
43991 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43992             Bruno Haible  <bruno@clisp.org>
43993
43994         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43995
43996 2008-11-29  Jim Meyering  <meyering@redhat.com>
43997
43998         unicodeio.c: mark unused parameters
43999         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44000         (fallback_failure_callback): Likewise.
44001
44002         fts: fix a thinko
44003         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44004         (set_stat_type): Return S_IF*-valued "type" directly.
44005         Prompted by James Youngman's spotting a related bug.
44006         Confirmed by further testing through find.
44007
44008         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44009         * lib/fts.c (D_TYPE): Define.
44010         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44011         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44012         (s_ifmt_shift_bits): New function.
44013         (set_stat_type): New function.
44014         (fts_build): When not calling fts_stat, call set_stat_type
44015         to propagate dirent.d_type info to fts_read caller.
44016         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44017         fts_statp->st_mode type information may be valid.
44018
44019 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44020
44021         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44022         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44023         <sds@gnu.org>.
44024
44025 2008-11-20  Bruno Haible  <bruno@clisp.org>
44026
44027         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44028         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44029         INCLUDE_NEXT.
44030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44031         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44032         * modules/math (Makefile.am): Substitute
44033         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44035
44036 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44037             Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/stdint.in.h: Define all type macros so that their expansion is
44040         a single typedef'ed token. Fixes a compilation failure in Boost which
44041         does "using ::int8_t;".
44042
44043 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44044
44045         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44046         gl_MANYWARN_ALL_GCC.
44047         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44048         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44049         * modules/manywarnings: New file.
44050         * MODULES.html.sh: Mention manywarnings module.
44051
44052 2008-11-18  Bruno Haible  <bruno@clisp.org>
44053
44054         * doc/gnulib-tool.texi (Unit tests): New section.
44055
44056 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44057
44058         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44059         paths like 'lib/po/foo.po'.
44060
44061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44062
44063         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44064         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44065
44066 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44067
44068         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44069         parameter works.
44070
44071 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44072
44073         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44074
44075 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44076
44077         * modules/parse-duration-tests: New file.
44078         * tests/test-parse-duration.sh: New file.
44079         * tests/test-parse-duration.c: New file.
44080
44081         New module 'parse-duration'.
44082         * lib/parse-duration.h: New file.
44083         * lib/parse-duration.c: New file.
44084         * modules/parse-duration: New file.
44085
44086 2008-11-17  Bruno Haible  <bruno@clisp.org>
44087
44088         * tests/test-select-out.sh: Comment out the first pipe test.
44089         Reported by Simon Josefsson.
44090
44091 2008-11-17  Bruno Haible  <bruno@clisp.org>
44092
44093         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44095         gl_HOSTENT.
44096
44097 2008-11-17  Bruno Haible  <bruno@clisp.org>
44098
44099         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44100         -lnetwork and -lnet. Needed for Haiku and BeOS.
44101
44102 2008-11-16  Bruno Haible  <bruno@clisp.org>
44103
44104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44105
44106 2008-11-16  Bruno Haible  <bruno@clisp.org>
44107
44108         Avoid test failure on Haiku.
44109         * tests/test-fsync.c: Include <errno.h>.
44110         (main): Don't require that fsync (0) fails.
44111
44112 2008-11-15  Bruno Haible  <bruno@clisp.org>
44113
44114         New module 'hostent'.
44115         * modules/hostent: New file.
44116         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44117
44118 2008-11-15  Bruno Haible  <bruno@clisp.org>
44119
44120         New module 'servent'.
44121         * modules/servent: New file.
44122         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44123
44124 2008-11-15  Bruno Haible  <bruno@clisp.org>
44125
44126         Avoid generating same test program with two different rules.
44127         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44128         test-frexp to test-frexp-nolibm.
44129         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44130         test-frexpl to test-frexpl-nolibm.
44131
44132 2008-11-15  Bruno Haible  <bruno@clisp.org>
44133
44134         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44135         $(FREXPL_LIBM).
44136
44137 2008-11-15  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/netdb.in.h: Activate the definitions also when the system's
44140         <netdb.h> has 'struct addrinfo'.
44141         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44142         EAI_OVERFLOW or AI_NUMERICSERV.
44143         * doc/posix-headers/netdb.texi: Document the problem.
44144
44145 2008-11-15  Bruno Haible  <bruno@clisp.org>
44146
44147         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44148
44149         Make the 'sched' module work on platforms where <sched.h> exists but
44150         is incomplete (such as Haiku).
44151         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44152         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44153         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44154         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44155         HAVE_STRUCT_SCHED_PARAM.
44156         * modules/sched (Depends-on): Add include_next.
44157         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44158         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44159         * doc/posix-headers/sched.texi: Document the issue.
44160
44161 2008-11-13  Jim Meyering  <meyering@redhat.com>
44162
44163         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44164         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44165         test would fail due to the difference in the Report bugs to ...
44166         line.  The expected address is empty, "<>", while the actual
44167         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44168
44169 2008-11-12  Bruno Haible  <bruno@clisp.org>
44170
44171         lstat: don't compile lstat.c on systems lacking lstat
44172         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44173         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44174         Reported by Daniel P. Berrange via Jim Meyering.
44175
44176 2008-11-12  Jim Meyering  <meyering@redhat.com>
44177
44178         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44179
44180 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44181
44182         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44183         instead.
44184
44185 2008-11-12  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/unicodeio.c: Include unistr.h.
44188         (utf8_wctomb): Remove function.
44189         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44190
44191 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44192
44193         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44194         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44195         <bruno@clisp.org>.
44196         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44197
44198 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44199
44200         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44201         * doc/gnulib.texi: Add section for warnings.
44202
44203 2008-11-11  Bruno Haible  <bruno@clisp.org>
44204
44205         * lib/sockets.h: Add a comment.
44206
44207 2008-11-11  Karl Berry  <karl@gnu.org>
44208
44209         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44210
44211 2008-11-11  Eric Blake  <ebb9@byu.net>
44212
44213         fdl.texi: avoid git symlinks
44214         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44215
44216 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44217
44218         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44219
44220 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44221
44222         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44223         (gl_WARN_ADD): Substitute $2 if literal.
44224
44225 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44226
44227         * m4/warning.m4: Remove.
44228
44229 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44230
44231         * m4/warnings.m4: Almost complete rewrite. :-)
44232
44233 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44234
44235         * modules/warnings: New module.
44236         * m4/warnings.m4: New file.
44237         * MODULES.html.sh: Mention warnings module.
44238         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44239         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44240
44241 2008-11-10  Eric Blake  <ebb9@byu.net>
44242
44243         fdl.texi: make a symlink to the latest version
44244         * doc/standards.texi: Revert today's earlier change.
44245         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44246         * doc/fdl.texi: ...and replace this with a symlink to the newer
44247         fdl-1.3.texi.
44248
44249 2008-11-10  Bruno Haible  <bruno@clisp.org>
44250
44251         * tests/test-select-fd.c (main): Accept the result file name as fourth
44252         argument.
44253         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44254         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44255
44256 2008-11-10  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44259         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44260         as autoconf-substituted macros.
44261         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44263         gl_NETDB_H_DEFAULTS. Set these variables.
44264         * modules/netdb (Makefile.am): Substitute these variables.
44265
44266 2008-11-10  Eric Blake  <ebb9@byu.net>
44267
44268         standards.texi: include correct file for FDL 1.3
44269         * doc/standards.texi (GNU Free Documentation License): Change
44270         include file to pull in FDL 1.3, not 1.2.
44271
44272         fdl.texi: revert accidental change to license
44273         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44274
44275 2008-11-10  Bruno Haible  <bruno@clisp.org>
44276
44277         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44278         cross-compiling guesses also when the native compile gives no result.
44279
44280 2008-11-10  Bruno Haible  <bruno@clisp.org>
44281
44282         * lib/spawni.c (__spawni): Force variable into the stack.
44283
44284 2008-11-10  Bruno Haible  <bruno@clisp.org>
44285
44286         Add support for Haiku.
44287         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44288         glibc and BeOS, but also on Haiku.
44289         * lib/fpurge.c (fpurge): Likewise.
44290         * lib/freadable.c (freadable): Likewise.
44291         * lib/freadahead.c (freadahead): Likewise.
44292         * lib/freading.c (freading): Likewise.
44293         * lib/freadptr.c (freadptr): Likewise.
44294         * lib/freadseek.c (freadptrinc): Likewise.
44295         * lib/fseeko.c (rpl_fseeko): Likewise.
44296         * lib/fseterr.c (fseterr): Likewise.
44297         * lib/fwritable.c (fwritable): Likewise.
44298         * lib/fwriting.c (fwriting): Likewise.
44299         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44300
44301 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44302
44303         * lib/config.charset: Treat Haiku like BeOS.
44304
44305 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44306
44307         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44308         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44309
44310 2008-11-08  Bruno Haible  <bruno@clisp.org>
44311
44312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44313         AC_CACHE_CHECK.
44314
44315 2008-11-08  Bruno Haible  <bruno@clisp.org>
44316
44317         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44318
44319 2008-11-08  Bruno Haible  <bruno@clisp.org>
44320
44321         * tests/test-select-fd.c: New file.
44322         * tests/test-select-in.sh: New file.
44323         * tests/test-select-out.sh: New file.
44324         * tests/test-select-stdin.c: New file.
44325         * modules/select-tests (Files): Add the new files.
44326         (Depends-on): Add gettimeofday.
44327         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44328         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44329         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44330
44331 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44332             Bruno Haible  <bruno@clisp.org>
44333
44334         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44335
44336 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44337
44338         * build-aux/pmccabe2html: Added support for C++ source files.
44339
44340 2008-11-05  Ben Pfaff  <blp@gnu.org>
44341
44342         Fix lib/close.c build on Windows.
44343         * modules/close (Files): Add lib/w32sock.h.
44344
44345 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44346
44347         Accept Bison's NEWS format.
44348         * build-aux/announce-gen (print_news_deltas): Tweak
44349         $re_prefix.
44350
44351 2008-11-04  Bruno Haible  <bruno@clisp.org>
44352
44353         * modules/random_r (Maintainer): Add glibc.
44354
44355 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44356
44357         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44358         by karl@freefriends.org (Karl Berry).
44359         * doc/alloca.texi: Likewise.
44360         * doc/c-ctype.texi: Likewise.
44361         * doc/c-strcase.texi: Likewise.
44362         * doc/c-strcaseeq.texi: Likewise.
44363         * doc/c-strcasestr.texi: Likewise.
44364         * doc/c-strstr.texi: Likewise.
44365         * doc/c-strtod.texi: Likewise.
44366         * doc/c-strtold.texi: Likewise.
44367         * doc/ctime.texi: Likewise.
44368         * doc/error.texi: Likewise.
44369         * doc/fdl.texi: Likewise.
44370         * doc/gcd.texi: Likewise.
44371         * doc/getdate.texi: Likewise.
44372         * doc/gnulib-intro.texi: Likewise.
44373         * doc/gnulib-tool.texi: Likewise.
44374         * doc/gnulib.texi: Likewise.
44375         * doc/inet_ntoa.texi: Likewise.
44376         * doc/maintain.texi: Likewise.
44377         * doc/make-stds.texi: Likewise.
44378         * doc/quote.texi: Likewise.
44379         * doc/regexprops-generic.texi: Likewise.
44380         * doc/standards.texi: Likewise.
44381         * doc/verify.texi: Likewise.
44382         * doc/visibility.texi: Likewise.
44383         * doc/gnulib.texi (GNU Free Documentation License): Include
44384         fdl-1.3.texi instead of fdl.texi.
44385
44386 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44387
44388         * doc/fdl-1.3.texi: New file, from
44389         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44390         * modules/fdl-1.3: Add.
44391         * MODULES.html.sh: Add fdl-1.3.
44392
44393 2008-11-03  Bruno Haible  <bruno@clisp.org>
44394
44395         Make determination of absolute name of header file work with AIX xlc.
44396         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44397         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44398         preprocessing.
44399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44400         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44401
44402 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44403
44404         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44405         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44406         <ludo@gnu.org>.
44407
44408 2008-11-02  Bruno Haible  <bruno@clisp.org>
44409
44410         Mark 'strpbrk' obsolete.
44411         * modules/strpbrk (Status, Notice): New sections.
44412         * modules/strtok_r (Depends-on): Add strpbrk.
44413
44414 2008-11-02  Bruno Haible  <bruno@clisp.org>
44415
44416         Mark 'strdup' obsolete.
44417         * modules/strdup (Status, Notice): New sections.
44418         * modules/findprog (Depends-on): Add strdup.
44419         * modules/getaddrinfo (Depends-on): Likewise.
44420         * modules/localename (Depends-on): Likewise.
44421         * modules/relocatable-lib (Depends-on): Likewise.
44422         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44423         * modules/relocatable-prog (Depends-on): Likewise.
44424         * modules/trim (Depends-on): Likewise.
44425         * modules/unictype/gen-ctype (Depends-on): Likewise.
44426         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44427
44428 2008-11-02  Bruno Haible  <bruno@clisp.org>
44429
44430         Mark 'strcspn' obsolete.
44431         * modules/strcspn (Status, Notice): New sections.
44432
44433 2008-11-02  Bruno Haible  <bruno@clisp.org>
44434
44435         Mark 'rmdir' obsolete.
44436         * modules/rmdir (Status, Notice): New sections.
44437         * modules/clean-temp (Depends-on): Add rmdir.
44438         * modules/openat (Depends-on): Likewise.
44439
44440 2008-11-02  Bruno Haible  <bruno@clisp.org>
44441
44442         Mark 'raise' obsolete.
44443         * modules/raise (Status, Notice): New sections.
44444         (Include): Specify <signal.h>.
44445         * modules/stdio (Depends-on): Add raise.
44446         * modules/write (Depends-on): Likewise.
44447
44448 2008-11-02  Bruno Haible  <bruno@clisp.org>
44449
44450         Mark 'memset' obsolete.
44451         * modules/memset (Status, Notice): New sections.
44452
44453 2008-11-02  Bruno Haible  <bruno@clisp.org>
44454
44455         Mark 'memmove' obsolete.
44456         * modules/memmove (Status, Notice): New sections.
44457         * modules/argp (Depends-on): Add memmove.
44458         * modules/argz (Depends-on): Likewise.
44459         * modules/canonicalize (Depends-on): Likewise.
44460         * modules/canonicalize-lgpl (Depends-on): Likewise.
44461         * modules/fts (Depends-on): Likewise.
44462         * modules/getcwd (Depends-on): Likewise.
44463         * modules/human (Depends-on): Likewise.
44464         * modules/regex (Depends-on): Likewise.
44465         * modules/striconveh (Depends-on): Likewise.
44466         * modules/trim (Depends-on): Likewise.
44467         * modules/unistr/u8-move (Depends-on): Likewise.
44468         * modules/unistr/u16-move (Depends-on): Likewise.
44469         * modules/unistr/u32-move (Depends-on): Likewise.
44470
44471 2008-11-02  Bruno Haible  <bruno@clisp.org>
44472
44473         Mark 'memcpy' obsolete.
44474         * modules/memcpy (Status, Notice): New sections.
44475
44476 2008-11-02  Bruno Haible  <bruno@clisp.org>
44477
44478         Mark 'memcmp' obsolete.
44479         * modules/memcmp (Status, Notice): New sections.
44480         * modules/argmatch (Depends-on): Add memchr.
44481         * modules/backupfile (Depends-on): Likewise.
44482         * modules/c-strcasestr (Depends-on): Likewise.
44483         * modules/crypto/des (Depends-on): Likewise.
44484         * modules/csharpcomp (Depends-on): Likewise.
44485         * modules/fnmatch (Depends-on): Likewise.
44486         * modules/git-merge-changelog (Depends-on): Likewise.
44487         * modules/isnand (Depends-on): Likewise.
44488         * modules/isnand-nolibm (Depends-on): Likewise.
44489         * modules/isnanf (Depends-on): Likewise.
44490         * modules/isnanf-nolibm (Depends-on): Likewise.
44491         * modules/isnanl (Depends-on): Likewise.
44492         * modules/isnanl-nolibm (Depends-on): Likewise.
44493         * modules/mbchar (Depends-on): Likewise.
44494         * modules/memcoll (Depends-on): Likewise.
44495         * modules/quotearg (Depends-on): Likewise.
44496         * modules/regex (Depends-on): Likewise.
44497         * modules/relocatable-prog (Depends-on): Likewise.
44498         * modules/same (Depends-on): Likewise.
44499         * modules/signbit (Depends-on): Likewise.
44500         * modules/strcasestr-simple (Depends-on): Likewise.
44501         * modules/unictype/gen-ctype (Depends-on): Likewise.
44502         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44503         * modules/uniname/uniname (Depends-on): Likewise.
44504         * modules/unistr/u8-cmp (Depends-on): Likewise.
44505
44506 2008-11-02  Bruno Haible  <bruno@clisp.org>
44507
44508         Mark 'memchr' obsolete.
44509         * modules/memchr (Status, Notice): New sections.
44510         * modules/argp (Depends-on): Add memchr.
44511         * modules/base64 (Depends-on): Likewise.
44512         * modules/c-strcasestr (Depends-on): Likewise.
44513         * modules/chdir-long (Depends-on): Likewise.
44514         * modules/fnmatch (Depends-on): Likewise.
44515         * modules/getsubopt (Depends-on): Likewise.
44516         * modules/git-merge-changelog (Depends-on): Likewise.
44517         * modules/glob (Depends-on): Likewise.
44518         * modules/strcasestr-simple (Depends-on): Likewise.
44519         * modules/strnlen (Depends-on): Likewise.
44520
44521 2008-11-02  Bruno Haible  <bruno@clisp.org>
44522
44523         Mark 'atexit' obsolete.
44524         * modules/atexit (Status, Notice): New sections.
44525         * modules/chdir-long (Depends-on): Add atexit.
44526         * modules/wait-process (Depends-on): Likewise.
44527
44528 2008-11-02  Bruno Haible  <bruno@clisp.org>
44529
44530         * gnulib-tool: New option --with-obsolete.
44531         (func_usage): Document it.
44532         (func_modules_transitive_closure): Drop obsolete dependencies if
44533         incobsolete is not true.
44534         (func_import): Read and save the incobsolete variable to the cache.
44535
44536 2008-11-02  Bruno Haible  <bruno@clisp.org>
44537
44538         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44539         * gnulib-tool: New option --extract-status.
44540         (func_usage): Document it.
44541         (sed_extract_prog): Recognize it.
44542         (func_get_status): New function.
44543
44544 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44545
44546         * modules/sockets (License): Change from LGPL to LGPLv2+.
44547
44548 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44549
44550         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44551
44552 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44553
44554         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44555         Mention times and sys_times.
44556         * modules/sys_times, modules/sys_times-tests: New modules.
44557         * modules/times, modules/times-tests: Likewise
44558         * m4/sys_times_h.m4: New file.
44559         * lib/sys_times.in.h: Likewise
44560         * lib/times.c: Likewise.
44561         * tests/test-sys_times.c: Likewise.
44562         * tests/test-times.c: Likewise.
44563         * doc/posix-headers/sys_times.texi: Update.
44564         * doc/posix-functions/times.texi: Update.
44565
44566 2008-10-28  Jim Meyering  <meyering@redhat.com>
44567
44568         * modules/tempname (Depends-on): Add lstat.
44569
44570         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44571
44572 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44573
44574         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44575         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44576         using idiom used elsewhere in gnulib.
44577
44578 2008-10-27  Jim Meyering  <meyering@redhat.com>
44579
44580         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44581
44582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44583
44584         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44585         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44586         programs.
44587         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44588
44589 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44590
44591         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44592
44593 2008-10-27  Bruno Haible  <bruno@clisp.org>
44594
44595         * tests/test-lstat.c: Include <stdio.h>.
44596
44597 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44598
44599         * modules/lstat-tests: New module.
44600         * tests/test-lstat.c: New file.
44601
44602 2008-10-26  Jim Meyering  <meyering@redhat.com>
44603
44604         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44605
44606 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44607             Bruno Haible  <bruno@clisp.org>
44608
44609         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44610         * modules/configmake (Include): Add a note that the include must come
44611         after all system headers.
44612         * lib/javaversion.c: Include configmake.h after all other includes.
44613
44614 2008-10-26  Bruno Haible  <bruno@clisp.org>
44615
44616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44617         HAVE_STRUCT_RANDOM_DATA to 1.
44618         (gl_STDLIB_H): Simplify.
44619
44620 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44621
44622         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44623         substitute HAVE_STRUCT_RANDOM_DATA.
44624         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44625         random_data.
44626         * modules/stdlib (Makefile.am): Substitute
44627         HAVE_STRUCT_RANDOM_DATA.
44628
44629 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44630
44631         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44632         * doc/gnulib-intro.texi (Copyright): Likewise.
44633
44634 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44635
44636         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44637         findings.
44638
44639 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44640             Bruno Haible  <bruno@clisp.org>
44641
44642         * lib/unistd.in.h: Include <winsock2.h>.
44643         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44644         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44645         Provide dummy declarations.
44646         (gethostname): Override.
44647         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44648         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44649         gl_PREREQ_SYS_H_WINSOCK2.
44650         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44651         * doc/posix-functions/gethostname.texi: More details.
44652
44653 2008-10-25  Bruno Haible  <bruno@clisp.org>
44654
44655         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44656         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44657         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44658
44659         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44660         here ...
44661         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44662         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44663         gl_UNISTD_H_DEFAULTS.
44664
44665 2008-10-25  Eric Blake  <ebb9@byu.net>
44666
44667         signbit: avoid spurious compiler failure
44668         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44669         declarations inside function.
44670
44671 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44672             Bruno Haible  <bruno@clisp.org>
44673
44674         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44675         * modules/random_r (Depends-on): Add stdint.
44676
44677 2008-10-24  Bruno Haible  <bruno@clisp.org>
44678
44679         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44680         Eggert.
44681         * modules/strerror (License): Likewise.
44682
44683 2008-10-24  Jim Meyering  <meyering@redhat.com>
44684
44685         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44686         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44687
44688 2008-10-24  Eric Blake  <ebb9@byu.net>
44689
44690         getgroups: fix compilation when getgroups is available
44691         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44692         but with <config.h> override of getgroups disabled.
44693
44694 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44695
44696         * doc/gnulib.texi (Header files): Add note about C++ problems.
44697         Explained by Bruno Haible <bruno@clisp.org>.
44698
44699 2008-10-23  Bruno Haible  <bruno@clisp.org>
44700
44701         Define a dummy SA_NODEFER macro on Interix.
44702         * lib/signal.in.h (SA_NODEFER): Define fallback.
44703         Reported by Aleksey Cheusov <cheusov@tut.by> via
44704         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44705
44706 2008-10-23  Bruno Haible  <bruno@clisp.org>
44707
44708         * modules/freadahead (License): Change to LGPLv2+.
44709         Suggested by Simon Josefsson.
44710
44711 2008-10-23  Jim Meyering  <meyering@redhat.com>
44712
44713         random_r: new module
44714         * modules/random_r: New file.
44715         * m4/random_r.m4: New file.
44716         * lib/random_r.c: New file, from glibc.
44717         * modules/random_r-tests: New file.
44718         * tests/test-random_r.c: New file.
44719         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44720          Declare.
44721         (RAND_MAX): Define.
44722         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44723         * modules/stdlib: Substitute them, too.
44724         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44725         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44726         * doc/glibc-functions/random_r.texi: Likewise.
44727         * doc/glibc-functions/setstate_r.texi: Likewise.
44728         * doc/glibc-functions/srandom_r.texi: Likewise.
44729         * config/srclist.txt: Mention it.
44730
44731 2008-10-23  David Lutterkort  <lutter@redhat.com>
44732
44733         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44734         link requirement
44735
44736 2008-10-23  Jim Meyering  <meyering@redhat.com>
44737
44738         selinux-h: mark parameters of stub functions as intentionally unused
44739         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44740         * lib/se-context.in.h: Likewise.
44741
44742 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44743
44744         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44745
44746 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44747
44748         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44749
44750 2008-10-22  Eric Blake  <ebb9@byu.net>
44751
44752         glthread/thread: avoid compiler warning
44753         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44754         Add unreachable abort to silence compiler.
44755
44756 2008-10-22  Eric Blake  <ebb9@byu.net>
44757
44758         netdb: also supply struct addrinfo for cygwin 1.5.x
44759         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44760         older cygwin.
44761         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44762         cygwin.
44763         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44764
44765 2008-10-22  Bruno Haible  <bruno@clisp.org>
44766
44767         * users.txt: Update entry about pspp.
44768
44769 2008-10-21  Bruno Haible  <bruno@clisp.org>
44770
44771         Simplification.
44772         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44773         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44774
44775         Simplification.
44776         * lib/ioctl.c (ioctl): Don't undefine.
44777         * lib/socket.c (socket): Don't undefine.
44778
44779         Remove unused module indicator macros.
44780         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44781         GNULIB_$1 as a C macro.
44782
44783         * doc/posix-functions/close.texi: Undo last change.
44784         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44785         Windows platforms.
44786
44787 2008-10-21  Bruno Haible  <bruno@clisp.org>
44788
44789         Add gethostname() declaration to <unistd.h>.
44790         * lib/unistd.in.h (gethostname): New declaration.
44791         * lib/gethostname.c: Include <unistd.h>.
44792         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44793         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44795         and HAVE_GETHOSTNAME.
44796         * modules/gethostname (Depends-on): Add unistd.
44797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44798         (Include): Specify <unistd.h>.
44799         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44800         HAVE_GETHOSTNAME.
44801         * tests/test-gethostname.c: Include <unistd.h> first.
44802
44803 2008-10-21  Bruno Haible  <bruno@clisp.org>
44804
44805         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44806         * modules/select-tests (Depends-on): Likewise.
44807         Reported by Simon Josefsson.
44808
44809 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44810
44811         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44812         * lib/accept.c: New file, based on winsock.c.
44813         * lib/bind.c: New file, based on winsock.c.
44814         * lib/connect.c: New file, based on winsock.c.
44815         * lib/getpeername.c: New file, based on winsock.c.
44816         * lib/getsockname.c: New file, based on winsock.c.
44817         * lib/getsockopt.c: New file, based on winsock.c.
44818         * lib/ioctl.c: New file, based on winsock.c.
44819         * lib/listen.c: New file, based on winsock.c.
44820         * lib/recv.c: New file, based on winsock.c.
44821         * lib/recvfrom.c: New file, based on winsock.c.
44822         * lib/send.c: New file, based on winsock.c.
44823         * lib/sendto.c: New file, based on winsock.c.
44824         * lib/setsockopt.c: New file, based on winsock.c.
44825         * lib/shutdown.c: New file, based on winsock.c.
44826         * lib/socket.c: New file, based on winsock.c.
44827         * lib/w32sock.h: New file, based on winsock.c.
44828         * lib/winsock.c: Remove file.
44829         * modules/accept: Likewise.
44830         * modules/bind: Likewise.
44831         * modules/connect: Likewise.
44832         * modules/getpeername: Likewise.
44833         * modules/getsockname: Likewise.
44834         * modules/getsockopt: Likewise.
44835         * modules/ioctl: Likewise.
44836         * modules/listen: Likewise.
44837         * modules/recv: Likewise.
44838         * modules/recvfrom: Likewise.
44839         * modules/send: Likewise.
44840         * modules/sendto: Likewise.
44841         * modules/setsockopt: Likewise.
44842         * modules/shutdown: Likewise.
44843         * modules/socket: Use socket.c instead of winsock.c.
44844         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44845         * doc/posix-functions/accept.texi: Doc fix.
44846         * doc/posix-functions/bind.texi: Doc fix.
44847         * doc/posix-functions/close.texi: Doc fix.
44848         * doc/posix-functions/connect.texi: Doc fix.
44849         * doc/posix-functions/getpeername.texi: Doc fix.
44850         * doc/posix-functions/getsockname.texi: Doc fix.
44851         * doc/posix-functions/getsockopt.texi: Doc fix.
44852         * doc/posix-functions/ioctl.texi: Doc fix.
44853         * doc/posix-functions/listen.texi: Doc fix.
44854         * doc/posix-functions/recv.texi: Doc fix.
44855         * doc/posix-functions/recvfrom.texi: Doc fix.
44856         * doc/posix-functions/send.texi: Doc fix.
44857         * doc/posix-functions/sendto.texi: Doc fix.
44858         * doc/posix-functions/setsockopt.texi: Doc fix.
44859         * doc/posix-functions/shutdown.texi: Doc fix.
44860         * doc/posix-functions/socket.texi: Doc fix.
44861
44862 2008-10-20  Bruno Haible  <bruno@clisp.org>
44863
44864         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44865         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44866         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44867         as an alias for SIGABRT.
44868         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44869         (sigaction): Map it to SIGABRT.
44870         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44871
44872 2008-10-20  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/fts.c: Don't include lstat.h.
44875         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44876
44877         Move the lstat() declaration to <sys/stat.h>.
44878         * lib/lstat.h: Remove file.
44879         * lib/sys_stat.in.h: Add special invocation convention.
44880         (lstat): New declaration.
44881         * lib/lstat.c (orig_lstat): New function.
44882         (rpl_lstat): Use orig_lstat instead of lstat.
44883         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44884         AC_C_INLINE. Set REPLACE_LSTAT.
44885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44886         and REPLACE_LSTAT.
44887         * modules/lstat (Files): Remove lib/lstat.h.
44888         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44889         (Include): Specify <sys/stat.h> instead of lstat.h.
44890         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44891         REPLACE_LSTAT.
44892         * NEWS: Mention the change.
44893
44894 2008-10-20  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/posix_spawn-tests: New file.
44897         * tests/test-posix_spawn3.c: New file.
44898
44899 2008-10-20  Bruno Haible  <bruno@clisp.org>
44900
44901         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44902         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44903         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44904         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44905         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44906
44907 2008-10-20  Bruno Haible  <bruno@clisp.org>
44908
44909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44910         of posix_spawn on AIX 5.3.
44911
44912 2008-10-20  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44915
44916 2008-10-20  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44919         of AC_LANG_PROGRAM.
44920
44921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44922
44923         * lib/netdb.in.h: Don't define GNU specific constants until they
44924         are supported or needed.  Reported by Bruno Haible
44925         <bruno@clisp.org>.
44926
44927 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44928
44929         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44930
44931 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44932
44933         * lib/getaddrinfo.h: Remove file.
44934         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44935         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44936         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44937         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44938         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44939         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44940         * tests/test-getaddrinfo.c: Likewise.
44941         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44942         * NEWS: Mention change.
44943
44944 2008-10-19  Bruno Haible  <bruno@clisp.org>
44945
44946         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44947
44948 2008-10-19  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/wait-process.c: Include simply <sys/wait.h>.
44951         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44952         WIFSTOPPED): Remove fallback definitions.
44953         * modules/wait-process (Depends-on): Add sys_wait.
44954
44955         New module 'sys_wait'.
44956         * modules/sys_wait: New file.
44957         * lib/sys_wait.in.h: New file, partially copied from
44958         lib/wait-process.c.
44959         * m4/sys_wait_h.m4: New file.
44960         * doc/posix-headers/sys_wait.texi: Mention the new module.
44961
44962 2008-10-19  Bruno Haible  <bruno@clisp.org>
44963
44964         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44965
44966 2008-10-19  Bruno Haible  <bruno@clisp.org>
44967
44968         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44969         * lib/wait-process.c (WAIT_T): Remove type.
44970         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44971         (wait_subprocess): Update.
44972
44973 2008-10-19  Bruno Haible  <bruno@clisp.org>
44974
44975         New module 'atoll'.
44976         * modules/atoll: New file.
44977         * lib/stdlib.in.h (atoll): New declaration.
44978         * lib/atoll.c: New file, from glibc with modifications.
44979         * m4/atoll.m4: New file.
44980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44981         HAVE_ATOLL.
44982         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44983         * doc/posix-functions/atoll.texi: Mention the new module.
44984
44985 2008-10-19  Bruno Haible  <bruno@clisp.org>
44986
44987         Add strtoull() declaration to <stdlib.h>.
44988         * lib/stdlib.in.h (strtoull): New declaration.
44989         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44990         Set HAVE_STRTOULL.
44991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44992         HAVE_STRTOULL.
44993         * modules/strtoull (Depends-on): Add stdlib.
44994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44995         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44996         HAVE_STRTOULL.
44997
44998 2008-10-19  Bruno Haible  <bruno@clisp.org>
44999
45000         Add strtoll() declaration to <stdlib.h>.
45001         * lib/stdlib.in.h (strtoll): New declaration.
45002         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45003         Set HAVE_STRTOLL.
45004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45005         HAVE_STRTOLL.
45006         * modules/strtoll (Depends-on): Add stdlib.
45007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45008         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45009
45010 2008-10-19  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/bcopy (Depends-on): Add strings.
45013         (Include): Specify <strings.h>.
45014
45015 2008-10-19  Bruno Haible  <bruno@clisp.org>
45016
45017         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45018
45019 2008-10-19  Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45022         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45023         mingw.
45024
45025 2008-10-19  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/atanl.c: Don't include isnanl.h.
45028         * lib/cosl.c: Likewise.
45029         * lib/ldexpl.c: Likewise.
45030         * lib/logl.c: Likewise.
45031         * lib/sinl.c: Likewise.
45032         * lib/sqrtl.c: Likewise.
45033         * lib/tanl.c: Likewise.
45034
45035         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45036         * lib/isnanf.h: Remove file.
45037         * lib/isnand.h: Remove file.
45038         * lib/isnanl.h: Remove file.
45039         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45040         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45041         macros.
45042         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45043         HAVE_ISNANF, don't define it as a C macro.
45044         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45045         HAVE_ISNAND, don't define it as a C macro.
45046         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45047         HAVE_ISNANL, don't define it as a C macro.
45048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45049         HAVE_ISNAN[FDL].
45050         * modules/isnanf (Files): Remove lib/isnanf.h.
45051         (Depends-on): Add math.
45052         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45053         (Include): Specify <math.h> instead of isnanf.h.
45054         * modules/isnand (Files): Remove lib/isnand.h.
45055         (Depends-on): Add math.
45056         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45057         (Include): Specify <math.h> instead of isnand.h.
45058         * modules/isnanl (Files): Remove lib/isnanl.h.
45059         (Depends-on): Add math.
45060         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45061         (Include): Specify <math.h> instead of isnanl.h.
45062         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45063         HAVE_ISNAN[FDL].
45064         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45065         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45066         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45067         * NEWS: Mention the change.
45068
45069 2008-10-18  Bruno Haible  <bruno@clisp.org>
45070
45071         Add getusershell(), setusershell(), endusershell() declarations to
45072         <unistd.h>.
45073         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45074         declarations.
45075         * lib/getusershell.c: Include unistd.h.
45076         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45077         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45078         HAVE_GETUSERSHELL.
45079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45080         and HAVE_GETUSERSHELL.
45081         * modules/getusershell (Depends-on): Add unistd, extensions.
45082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45083         (Include): Specify <unistd.h>.
45084         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45085         HAVE_GETUSERSHELL.
45086
45087 2008-10-18  Bruno Haible  <bruno@clisp.org>
45088
45089         Add a getloadavg() declaration to <stdlib.h>.
45090         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45091         getloadavg declaration.
45092         (getloadavg): New declaration.
45093         * lib/getloadavg.c: Include <stdlib.h> first.
45094         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45095         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45096         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45098         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45099         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45101         (Include): Specify <stdlib.h>.
45102         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45103         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45104
45105 2008-10-18  Bruno Haible  <bruno@clisp.org>
45106
45107         * lib/dirchownmod.c: Don't include lchmod.h.
45108
45109         Move the lchmod() declaration to <sys/stat.h>.
45110         * lib/lchmod.h: Remove file.
45111         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45112         (lchmod): New declaration, moved here from lib/lchown.h.
45113         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45114         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45116         and HAVE_LCHMOD.
45117         * modules/lchmod (Files): Remove lib/lchmod.h.
45118         (Depends-on): Add sys_stat, extensions.
45119         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45120         (Include): Specify <sys/stat.h> instead of lchmod.h.
45121         * modules/sys_stat (Depends-on): Add link-warning.
45122         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45123         definition of GL_LINK_WARNING.
45124         * NEWS: Mention the change.
45125
45126 2008-10-18  Bruno Haible  <bruno@clisp.org>
45127
45128         * lib/fchdir.c: Don't include dirfd.h.
45129         * lib/fts.c: Likewise.
45130         * lib/getcwd.c: Likewise.
45131         * lib/glob.c: Likewise.
45132
45133         Move the dirfd() declaration to <dirent.h>.
45134         * lib/dirfd.h: Remove file.
45135         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45136         (dirfd): New declaration.
45137         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45138         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45139         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45140         HAVE_DECL_DIRFD.
45141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45142         HAVE_DECL_DIRFD.
45143         * modules/dirfd (Files): Remove lib/dirfd.h.
45144         (Depends-on): Add dirent, extensions.
45145         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45146         (Include): Specify <dirent.h> instead of dirfd.h.
45147         * modules/dirent (Depends-on): Add link-warning.
45148         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45149         definition of GL_LINK_WARNING.
45150         * NEWS: Mention the change.
45151
45152 2008-10-18  Bruno Haible  <bruno@clisp.org>
45153
45154         Move the euidaccess() declaration to <unistd.h>.
45155         * lib/euidaccess.h: Remove file.
45156         * lib/unistd.in.h (euidaccess): New declaration.
45157         * lib/euidaccess.c: Don't include euidaccess.h.
45158         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45159         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45161         and HAVE_EUIDACCESS.
45162         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45163         (Depends-on): Add unistd.
45164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45165         (Include): Specify <unistd.h> instead of euidaccess.h.
45166         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45167         HAVE_EUIDACCESS.
45168         * NEWS: Mention the change.
45169
45170 2008-10-18  Bruno Haible  <bruno@clisp.org>
45171
45172         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45173
45174         Move the getdomainname() declaration to <unistd.h>.
45175         * lib/getdomainname.h: Remove file.
45176         * lib/unistd.in.h (getdomainname): New declaration.
45177         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45178         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45179         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45180         HAVE_GETDOMAINNAME.
45181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45182         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45183         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45184         (Depends-on): Add unistd, extensions.
45185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45186         (Includes): Specify <unistd.h> instead of getdomainname.h.
45187         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45188         HAVE_GETDOMAINNAME.
45189         * NEWS: Mention the change.
45190
45191 2008-10-18  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/dirent: New file.
45194         * m4/dirent_h.m4: New file.
45195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45196         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45197         * modules/fchdir (Files): Remove lib/dirent.in.h.
45198         (Depends-on): Add dirent.
45199         (Makefile.am): Move rules to modules/dirent.
45200         * doc/posix-headers/dirent.texi: Mention the new module.
45201
45202 2008-10-18  Bruno Haible  <bruno@clisp.org>
45203
45204         Avoid -Wunused-parameter warnings in public gnulib header files.
45205         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45206         macro.
45207         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45208
45209 2008-10-18  Bruno Haible  <bruno@clisp.org>
45210
45211         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45212         * doc/glibc-functions/error.texi: Mention the module 'error'.
45213         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45214         * doc/glibc-functions/getdomainname.texi: Mention the module
45215         'getdomainname'.
45216         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45217         * doc/glibc-functions/getpagesize.texi: Mention the module
45218         'getpagesize'.
45219         * doc/glibc-functions/getusershell.texi: Mention the module
45220         'getusershell'.
45221         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45222         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45223         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45224         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45225         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45226         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45227         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45228         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45229         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45230         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45231         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45232         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45233         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45234         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45235
45236 2008-10-17  Bruno Haible  <bruno@clisp.org>
45237
45238         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45239         HP-UX and IRIX, use -0.0L.
45240         * tests/test-ceill.c (minus_zero): Likewise.
45241         * tests/test-floorl.c (minus_zero): Likewise.
45242         * tests/test-frexpl.c (minus_zero): Likewise.
45243         * tests/test-isnan.c (minus_zerol): Likewise.
45244         * tests/test-isnanl.h (minus_zero): Likewise.
45245         * tests/test-ldexpl.c (minus_zero): Likewise.
45246         * tests/test-roundl.c (minus_zero): Likewise.
45247         * tests/test-signbit.c (minus_zerol): Likewise.
45248         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45249         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45250         * tests/test-truncl.c (minus_zero): Likewise.
45251         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45252         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45253         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45254         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45255
45256 2008-10-17  Bruno Haible  <bruno@clisp.org>
45257
45258         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45259         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45260         that it gets activated only for gcc >= 3.0.
45261         * lib/dirent.in.h: Likewise.
45262         * lib/errno.in.h: Likewise.
45263         * lib/fcntl.in.h: Likewise.
45264         * lib/float.in.h: Likewise.
45265         * lib/iconv.in.h: Likewise.
45266         * lib/inttypes.in.h: Likewise.
45267         * lib/locale.in.h: Likewise.
45268         * lib/math.in.h: Likewise.
45269         * lib/netdb.in.h: Likewise.
45270         * lib/netinet_in.in.h: Likewise.
45271         * lib/search.in.h: Likewise.
45272         * lib/signal.in.h: Likewise.
45273         * lib/spawn.in.h: Likewise.
45274         * lib/stdarg.in.h: Likewise.
45275         * lib/stdint.in.h: Likewise.
45276         * lib/stdio.in.h: Likewise.
45277         * lib/stdlib.in.h: Likewise.
45278         * lib/string.in.h: Likewise.
45279         * lib/strings.in.h: Likewise.
45280         * lib/sys_file.in.h: Likewise.
45281         * lib/sys_ioctl.in.h: Likewise.
45282         * lib/sys_select.in.h: Likewise.
45283         * lib/sys_socket.in.h: Likewise.
45284         * lib/sys_stat.in.h: Likewise.
45285         * lib/sys_time.in.h: Likewise.
45286         * lib/sysexits.in.h: Likewise.
45287         * lib/time.in.h: Likewise.
45288         * lib/unistd.in.h: Likewise.
45289         * lib/wchar.in.h: Likewise.
45290         * lib/wctype.in.h: Likewise.
45291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45292
45293 2008-10-17  Jim Meyering  <meyering@redhat.com>
45294
45295         ignore-value: don't depend on inline module
45296         * modules/ignore-value (Depends-on): Remove 'inline'.
45297         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45298         Suggestion from Bruno Haible.
45299
45300 2008-10-17  Bruno Haible  <bruno@clisp.org>
45301
45302         New implementation of condition variables for Win32.
45303         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45304         (gl_linked_waitqueue_t): New type.
45305         (gl_cond_t): Use it.
45306         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45307         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45308         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45309         (glthread_cond_init_func, glthread_cond_wait_func,
45310         glthread_cond_timedwait_func, glthread_cond_signal_func,
45311         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45312         Reimplemented on the basis of gl_linked_waitqueue_t.
45313         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45314         gl_waitqueue_t.
45315         (gl_rwlock_t): Update.
45316         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45317
45318 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45319
45320         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45321         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45322
45323 2008-10-17  Jim Meyering  <meyering@redhat.com>
45324
45325         ignore-value: new module
45326         * modules/ignore-value: New file.
45327         * lib/ignore-value.h: New file.
45328         * MODULES.html.sh (Compiler warning management): New section,
45329         just for this module.  More to come.
45330
45331 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45332
45333         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45334         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45335         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45336
45337 2008-10-16  Jim Meyering  <meyering@redhat.com>
45338
45339         openat-die.c: avoid 'no previous prototype' warning
45340         * lib/openat-die.c: Include "openat.h".
45341         Reported by Reuben Thomas <rrt@sc3d.org>.
45342
45343 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45344
45345         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45346         * lib/netdb.in.h: Fix typo.
45347         Reported by Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/netdb.in.h: Include sys/socket.h for platforms without
45350         netdb.h, to get structures like hostent on MinGW.
45351         * modules/netdb (Depends-on): Add sys_socket.
45352
45353 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45354
45355         * modules/netdb, modules/netdb-tests: New file.
45356         * m4/netdb_h.m4: New file.
45357         * lib/netdb.in.h: Add, currently just an empty file pending
45358         definitions.
45359         * tests/test-netdb.c: New file.
45360         * doc/posix-headers/netdb.texi: Mention that we replace it if
45361         needed.
45362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45363         netdb.
45364
45365 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45366
45367         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45368         with code.
45369
45370 2008-10-13  Bruno Haible  <bruno@clisp.org>
45371
45372         * lib/glthread/cond.c (glthread_cond_wait_func,
45373         glthread_cond_timedwait_func): Add a comment.
45374
45375 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45376
45377         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45378         * tests/test-select.c: Likewise,
45379
45380 2008-10-13  Bruno Haible  <bruno@clisp.org>
45381
45382         * lib/glthread/cond.c (glthread_cond_wait_func,
45383         glthread_cond_timedwait_func): Fix variable name.
45384         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45385
45386 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45387
45388         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45390         struct sockaddr.sa_len.
45391         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45392
45393 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45394
45395         * build-aux/pmccabe2html: Add css and css_url parameters.
45396
45397 2008-10-12  Bruno Haible  <bruno@clisp.org>
45398
45399         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45400         calling aclx_get.
45401         Reported by Rainer Tammer <tammer@tammer.net>.
45402
45403 2008-10-12  Bruno Haible  <bruno@clisp.org>
45404
45405         Use msvcrt aware primitives for creation/termination of Win32 threads.
45406         * lib/glthread/thread.c: Include <process.h>.
45407         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45408         (wrapper_func): Update signature.
45409         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45410
45411 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45412             Bruno Haible  <bruno@clisp.org>
45413
45414         Provide a Win32 implementation of the 'cond' module.
45415         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45416         * lib/glthread/cond.c (glthread_cond_init_func,
45417         glthread_cond_wait_func, glthread_cond_timedwait_func,
45418         glthread_cond_signal_func, glthread_cond_broadcast_func,
45419         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45420         * modules/cond (Dependencies): Add gettimeofday.
45421
45422 2008-10-11  Bruno Haible  <bruno@clisp.org>
45423
45424         Make sleep work on older versions of mingw.
45425         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45426         only whether it exists.
45427         * doc/posix-functions/sleep.texi: Mention the problem with older
45428         versions of mingw.
45429
45430 2008-10-11  Bruno Haible  <bruno@clisp.org>
45431
45432         New module 'shutdown'.
45433         * modules/shutdown: New file.
45434         * lib/sys_socket.in.h (shutdown): New declaration.
45435         * lib/winsock.c (shutdown): New function.
45436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45437         GNULIB_SHUTDOWN.
45438         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45439         * doc/posix-functions/shutdown.texi: Document the new module.
45440
45441 2008-10-11  Jim Meyering  <meyering@redhat.com>
45442
45443         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45444
45445 2008-10-11  Bruno Haible  <bruno@clisp.org>
45446
45447         New module 'fclose'.
45448         * modules/fclose: New file.
45449         * lib/stdio.in.h (fclose): New declaration.
45450         * lib/fclose.c: New file.
45451         * m4/fclose.m4: New file.
45452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45453         REPLACE_FCLOSE.
45454         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45455         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45456         REPLACE_FCLOSE.
45457         * modules/close (Depends-on): fclose.
45458         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45459
45460 2008-10-11  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45463         set errno and don't call _close.
45464
45465 2008-10-10  Bruno Haible  <bruno@clisp.org>
45466
45467         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45468         ACL, not afterwards. Fixes test failure on Cygwin.
45469
45470 2008-10-09  Ben Pfaff  <blp@gnu.org>
45471
45472         * build-aux/announce-gen: Fix gnulib version related part of usage
45473         message.  Die with a useful error message if no tarballs are
45474         found.
45475
45476 2008-10-10  Jim Meyering  <meyering@redhat.com>
45477
45478         bootstrap: use git's --depth=N option only if it's supported
45479         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45480         recognize the --depth option.  Reported by Pádraig Brady.
45481
45482 2008-10-09  Bruno Haible  <bruno@clisp.org>
45483
45484         New module 'ioctl'.
45485         * modules/ioctl: New file.
45486         * lib/sys_socket.in.h (ioctl): Remove declaration.
45487         * lib/winsock.c: Include <sys/ioctl.h>.
45488         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45489         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45490         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45491         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45492         * doc/posix-functions/ioctl.texi: Mention the new module.
45493
45494 2008-10-09  Bruno Haible  <bruno@clisp.org>
45495
45496         New module 'sys_ioctl'.
45497         * lib/sys_ioctl.in.h: New file.
45498         * m4/sys_ioctl_h.m4: New file.
45499         * modules/sys_ioctl: New file.
45500         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45501
45502 2008-10-09  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45505         * lib/winsock.c: Include <stdarg.h>.
45506         (rpl_ioctl): Change to second argument 'int' and then varargs.
45507
45508 2008-10-09  Bruno Haible  <bruno@clisp.org>
45509
45510         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45511         when the sys_socket module is present and the system has <winsock2.h>.
45512
45513 2008-10-09  Bruno Haible  <bruno@clisp.org>
45514
45515         * doc/posix-functions/close.texi: Mention module 'close' instead of
45516         module 'sys_socket'.
45517
45518 2008-10-09  Bruno Haible  <bruno@clisp.org>
45519
45520         * doc/glibc-headers/sys_ioctl.texi: New file.
45521         * doc/gnulib.texi: Include it.
45522
45523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45524             Bruno Haible  <bruno@clisp.org>
45525
45526         Combine the two replacements of 'close'.
45527         * lib/sys_socket.in.h (close): Define to a reminder to include
45528         <unistd.h>.
45529         (_gl_close_fd_maybe_socket): New declaration.
45530         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45531         * lib/winsock.c (close): Remove undefinition.
45532         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45533         needed for the gnulib module 'close'.
45534         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45535         define to an error symbol or to a warning, if suitable.
45536         * lib/close.c: Include <sys/socket.h>.
45537         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45538         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45539         UNISTD_H_HAVE_WINSOCK2_H.
45540         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45542         UNISTD_H_HAVE_WINSOCK2_H.
45543         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45544         (configure.ac): Set a module indicator.
45545         (Makefile.am): Substitute GNULIB_CLOSE.
45546         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45547         * modules/poll-tests (Depends-on): Add close.
45548         * modules/select-tests (Depends-on): Likewise.
45549
45550 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45551             Bruno Haible  <bruno@clisp.org>
45552
45553         New module 'close'.
45554         * modules/close: New file.
45555         * lib/unistd.in.h (close): Move declaration out of the
45556         FCHDIR_REPLACEMENT scope.
45557         (_gl_unregister_fd): New declaration.
45558         * lib/close.c: New file.
45559         * lib/fchdir.c (rpl_close): Remove function.
45560         * m4/close.m4: New file.
45561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45562         close.
45563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45564         REPLACE_CLOSE.
45565         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45566         REPLACE_CLOSE.
45567         * modules/fchdir (Depends-on): Add close.
45568
45569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45570             Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/fcntl.in.h (open): Simplify conditionals.
45573         (_gl_register_fd): New declaration.
45574         * lib/fchdir.c (rpl_open): Remove function.
45575         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45576         also.
45577         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45579         open.
45580
45581 2008-10-09  Jim Meyering  <meyering@redhat.com>
45582
45583         GNUmakefile: use the more name-space-friendly "_version"
45584         * top/GNUmakefile (_dummy): Update.
45585         (_version): Rename from "version".
45586
45587 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45588             Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45591         rpl_close.
45592         (_gl_register_fd): New function, extracted from rpl_open.
45593         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45594         (rpl_open, rpl_opendir): Use _gl_register_fd.
45595
45596 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45597
45598         Fix organization of 'open' replacement.
45599         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45600         (gl_FUNC_OPEN): Use it.
45601         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45602
45603 2008-10-08  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45606
45607 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45608
45609         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45610         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45611         listen).
45612
45613 2008-10-08  Eric Blake  <ebb9@byu.net>
45614
45615         GNUmakefile: add 'make version' target
45616         * top/GNUmakefile (_curr-ver): Split version update rules...
45617         (version): ...into a target.
45618
45619 2008-10-07  Bruno Haible  <bruno@clisp.org>
45620
45621         Use a more portable replacement expression for -0.0L.
45622         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45623         instead of -0.0L. Fix m4 quotation.
45624
45625         * tests/test-signbit.c: Include <float.h>.
45626         (minus_zero): New variable.
45627         (test_signbitl): Use minus_zero instead of -zero.
45628         * modules/signbit-tests (Depends-on): Add float.
45629
45630         * tests/test-ceill.c: Include <float.h>.
45631         (zero): Remove variable.
45632         (minus_zero): New variable.
45633         (main): Use minus_zero instead of -zero.
45634         * modules/ceill-tests (Depends-on): Add float.
45635
45636         * tests/test-floorl.c: Include <float.h>.
45637         (zero): Remove variable.
45638         (minus_zero): New variable.
45639         (main): Use minus_zero instead of -zero.
45640         * modules/floorl-tests (Depends-on): Add float.
45641
45642         * tests/test-roundl.c: Include <float.h>.
45643         (zero): Remove variable.
45644         (minus_zero): New variable.
45645         (main): Use minus_zero instead of -zero.
45646         * modules/roundl-tests (Depends-on): Add float.
45647
45648         * tests/test-truncl.c: Include <float.h>.
45649         (zero): Remove variable.
45650         (minus_zero): New variable.
45651         (main): Use minus_zero instead of -zero.
45652         * modules/truncl-tests (Depends-on): Add float.
45653
45654         * tests/test-frexpl.c (zero): Remove variable.
45655         (minus_zero): New variable.
45656         (main): Use minus_zero instead of -zero.
45657         * modules/frexpl-tests (Depends-on): Add float.
45658
45659         * tests/test-isnan.c (zerol): Remove variable.
45660         (minus_zerol): New variable.
45661         (test_long_double): Use minus_zerol instead of -zerol.
45662         * modules/isnan-tests (Depends-on): Add float.
45663
45664         * tests/test-isnanl.h (zero): Remove variable.
45665         (minus_zero): New variable.
45666         (main): Use minus_zero instead of -zero.
45667         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45668         * modules/isnanl-tests (Depends-on): Add float.
45669
45670         * tests/test-ldexpl.c (zero): Remove variable.
45671         (minus_zero): New variable.
45672         (main): Use minus_zero instead of -zero.
45673         * modules/ldexpl-tests (Depends-on): Add float.
45674
45675         * tests/test-snprintf-posix.h (zerol): Remove variable.
45676         (minus_zerol): New variable.
45677         (test_function): Use minus_zerol instead of -zerol.
45678         * modules/snprintf-posix-tests (Depends-on): Add float.
45679         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45680
45681         * tests/test-sprintf-posix.h (zerol): Remove variable.
45682         (minus_zerol): New variable.
45683         (test_function): Use minus_zerol instead of -zerol.
45684         * modules/sprintf-posix-tests (Depends-on): Add float.
45685         * modules/vsprintf-posix-tests (Depends-on): Add float.
45686
45687         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45688         (minus_zerol): New variable.
45689         (test_function): Use minus_zerol instead of -zerol.
45690         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45691
45692         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45693         (minus_zerol): New variable.
45694         (test_function): Use minus_zerol instead of -zerol.
45695         * modules/vasprintf-posix-tests (Depends-on): Add float.
45696
45697 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45698
45699         * MODULES.html.sh (Support for building documentation): Mention
45700         pmccabe2html.  Sort entries.
45701
45702         Add pmccabe2html module, from gnupdf.
45703         * build-aux/pmccabe.css: New file.
45704         * build-aux/pmccabe2html: New file.
45705         * m4/pmccabe2html.m4: New file.
45706         * modules/pmccabe2html: New file.
45707
45708 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45709
45710         flock: new module
45711         * MODULES.html.sh: Add to list of modules.
45712         * lib/flock.c: flock implementation for Windows and Unix systems
45713         which have fcntl.
45714         * doc/glibc-functions/flock.texi: Update documentation.
45715         * lib/sys_file.in.h: <sys/file.h> header file.
45716         * m4/flock.m4: M4 macros.
45717         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45718         * modules/flock: flock module.
45719         * modules/flock-tests: flock tests module.
45720         * modules/sys_file: sys/file.h module.
45721         * tests/test-flock.c: test suite for flock.
45722
45723 2008-10-06  Jim Meyering  <meyering@redhat.com>
45724
45725         bootstrap: check for LT_INIT more portably still ;-)
45726         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45727         Spotted by Bruno Haible.
45728
45729 2008-10-06  Eric Blake  <ebb9@byu.net>
45730
45731         test-signbit: avoid tripping Irix cc bug on -0.0L
45732         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45733         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45734         entire testsuite consistent and avoids an Irix 6.2 bug.
45735
45736 2008-10-05  Bruno Haible  <bruno@clisp.org>
45737             Jim Meyering  <jim@meyering.net>
45738
45739         Add an option for ignoring EPIPE during close_stdout.
45740         * lib/closeout.h: Include <stdbool.h>.
45741         (close_stdout_set_ignore_EPIPE): New declaration.
45742         * lib/closeout.c: Include <stdbool.h>.
45743         (ignore_EPIPE): New variable.
45744         (close_stdout_set_ignore_EPIPE): New function.
45745         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45746         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45747         failure.
45748         * modules/closeout (Depends-on): Add stdbool.
45749
45750 2008-10-05  Bruno Haible  <bruno@clisp.org>
45751
45752         * modules/accept: New file.
45753         * modules/bind: New file.
45754         * modules/connect: New file.
45755         * modules/getpeername: New file.
45756         * modules/getsockname: New file.
45757         * modules/getsockopt: New file.
45758         * modules/listen: New file.
45759         * modules/recv: New file.
45760         * modules/recvfrom: New file.
45761         * modules/send: New file.
45762         * modules/sendto: New file.
45763         * modules/setsockopt: New file.
45764         * modules/socket: New file.
45765         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45766         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45767         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45768         the particular module is requested. Add a link warning when the
45769         particular module is not requested.
45770         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45771         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45772         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45773         the particular module is requested.
45774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45775         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45776         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45777         * modules/sys_socket (Depends-on): Add link-warning.
45778         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45779         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45780         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45781         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45782         GL_LINK_WARNING.
45783         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45784         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45785         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45786         * doc/posix-functions/getpeername.texi: Mention the new module
45787         'getpeername'.
45788         * doc/posix-functions/getsockname.texi: Mention the new module
45789         'getsockname'.
45790         * doc/posix-functions/getsockopt.texi: Mention the new module
45791         'getsockopt'.
45792         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45793         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45794         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45795         * doc/posix-functions/send.texi: Mention the new module 'send'.
45796         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45797         * doc/posix-functions/setsockopt.texi: Mention the new module
45798         'setsockopt'.
45799         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45800         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45801         listen, connect, accept.
45802         * modules/select-tests (Depends-on): Likewise.
45803
45804 2008-10-05  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/winsock.c (strerror): Remove unused #undef.
45807         (rpl_close): Remove unused local variable.
45808
45809         * modules/sys_socket (Depends-on); Add errno.
45810
45811 2008-10-05  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45814         (select): Add a link warning when the 'select' module is not used.
45815         * modules/sys_select (Depends-on): Add link-warning.
45816         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45817         Suggested by Paolo Bonzini.
45818
45819 2008-10-05  Jim Meyering  <meyering@redhat.com>
45820
45821         bootstrap: check for LT_INIT more portably
45822         * build-aux/bootstrap: Avoid using grep -E, since it's not
45823         portable enough.  Suggestion from Bruno Haible.
45824
45825 2008-10-05  Bruno Haible  <bruno@clisp.org>
45826
45827         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45828         as being fixed by gnulib.
45829
45830 2008-10-05  Bruno Haible  <bruno@clisp.org>
45831
45832         * modules/select-tests: New file, mostly copied from
45833         modules/sys_select-tests.
45834         * tests/test-select.c: New file, mostly copied from
45835         tests/test-sys_select.c.
45836         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45837         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45838         (Makefile.am): Remove test_sys_select_LDADD.
45839
45840         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45841         to an undefined symbol, for an error message.
45842         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45843         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45844         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45845         winsock-select.c here.
45846         * modules/sys_select (Files): Remove lib/winsock-select.c.
45847         (Depends-on): Remove alloca.
45848         (Makefile.am): Substitute GNULIB_SELECT.
45849         * modules/select: New file.
45850         * doc/posix-functions/select.texi: Update.
45851
45852 2008-10-05  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45855         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45856         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45857         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45858         getdtablesize.
45859         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45860         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45861
45862 2008-10-05  Bruno Haible  <bruno@clisp.org>
45863
45864         * modules/getdtablesize-tests: New file.
45865         * tests/test-getdtablesize.c: New file.
45866
45867         New module 'getdtablesize'.
45868         * lib/unistd.in.h (getdtablesize): New declaration.
45869         * lib/getdtablesize.c: New file.
45870         * m4/getdtablesize.m4: New file.
45871         * modules/getdtablesize: New file.
45872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45873         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45874         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45875         HAVE_GETDTABLESIZE.
45876         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45877
45878 2008-10-05  Bruno Haible  <bruno@clisp.org>
45879
45880         * modules/sched (Makefile.am): Fix typo.
45881         Reported by Simon Josefsson.
45882
45883 2008-10-05  Jim Meyering  <meyering@redhat.com>
45884
45885         bootstrap: check for LT_INIT, too
45886         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45887         are deprecated.  Suggestion from Ralf Wildenhues.
45888
45889 2008-10-05  Bruno Haible  <bruno@clisp.org>
45890
45891         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45892         overriding them by ours.
45893         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45894
45895 2008-10-05  Jim Meyering  <meyering@redhat.com>
45896
45897         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45898         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45899         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45900
45901 2008-10-04  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/dup2 (License): Change to LGPLv2+.
45904         * modules/sleep (License): Likewise.
45905         * modules/perror (License): Likewise.
45906         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45907         Blake.
45908         * modules/signal (License): Likewise.
45909         * modules/sigprocmask (License): Likewise.
45910         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45911         Meyering.
45912
45913 2008-10-04  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45916         Reported by Rainer Tammer <tammer@tammer.net>.
45917
45918 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45919             Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45922         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45923         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45924
45925 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45926
45927         filevercmp: new module
45928         * lib/filevercmp.h: New function filevercmp comparing version strings.
45929         * lib/filevercmp.c: Implementation of filevercmp function.
45930         * modules/filevercmp: Module metadata.
45931         * tests/test-filevercmp.c: Unit test for new module.
45932         * modules/filevercmp-tests: Unit test metadata.
45933         * MODULES.html.sh: Add filevercmp module.
45934
45935 2008-10-03  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/c-ctype.h: Add comment.
45938         Reported by Jim Meyering.
45939
45940 2008-10-02  Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45943
45944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45945
45946         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45947         name of bootstrap.conf accordingly.
45948
45949 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45950
45951         * build-aux/bootstrap: Install git-merge-changelog configuration
45952         items into .gitconfig if needed.
45953
45954 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45955
45956         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45957         git repository, and initialize/update it accordingly.
45958
45959 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45960
45961         * modules/fsync-tests: New file.
45962         * tests/test-fsync.c: New file.
45963
45964         New module 'fsync'.
45965         * lib/fsync.c: New file.
45966         * m4/fsync.m4: New file.
45967         * modules/fsync: New file.
45968         * lib/unistd.in.h (fsync): New declaration.
45969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45970         GNULIB_FSYNC and HAVE_FSYNC.
45971         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45972         * MODULES.html.sh (posix_functions): Add fsync.
45973         * doc/posix-functions/fsync.texi: Mention the new module.
45974
45975 2008-10-02  Jim Meyering  <meyering@redhat.com>
45976
45977         fts.c: sync with similar code from coreutils' remove.c
45978         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45979         Guard also with "#if defined __linux__", since for now at least,
45980         this code is Linux-kernel-specific.
45981
45982 2008-10-02  Jim Meyering  <meyering@redhat.com>
45983
45984         fts: bug fixes
45985         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45986         Include <sys/vfs.h>, not <sys/statfs.h>.
45987
45988         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45989         Include <sys/vfs.h>, not <sys/statfs.h>.
45990
45991 2008-10-01  Bruno Haible  <bruno@clisp.org>
45992
45993         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45995         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45996         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45997         * doc/posix-functions/posix_spawnp.texi: Likewise.
45998         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45999         whether posix_spawn actually works.
46000         * m4/pipe.m4 (gl_PIPE): Likewise.
46001         * modules/execute (Files): Add m4/posix_spawn.m4.
46002         * modules/pipe (Files): Add m4/posix_spawn.m4.
46003         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46004
46005 2008-10-01  Jim Meyering  <meyering@redhat.com>
46006
46007         remove trailing spaces
46008         * NEWS: Likewise.
46009         * lib/poll.c (poll): Likewise.
46010         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46011         * lib/winsock.c (rpl_close): Likewise.
46012         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46013         * modules/yield: Likewise.
46014         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46015         * tests/test-sys_select.c (connect_to_socket): Likewise.
46016
46017         fts.c: adjust a new interface to be more generally useful
46018         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46019         (fts_build): Adjust caller.
46020
46021 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46022
46023         * modules/cond-tests: New file.
46024         * tests/test-cond.c: New file.
46025
46026 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46027             Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/cond (Dependencies): Add errno, time.
46030         * lib/glthread/cond.h: Include <time.h>.
46031         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46032         across platforms.
46033
46034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46035             Bruno Haible  <bruno@clisp.org>
46036
46037         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46038
46039 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46040             Bruno Haible  <bruno@clisp.org>
46041
46042         * modules/tls-tests (Depends-on): Add thread, yield.
46043         (configure.ac): Remove all checks.
46044         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46045         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46046         gl_thread_self): Remove definitions. Include glthread/thread.h and
46047         glthread/yield.h instead.
46048         (test_tls): Pass an additional NULL argument to gl_thread_join.
46049
46050 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46051             Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/lock-tests (Depends-on): Add thread, yield.
46054         (configure.ac): Remove all checks.
46055         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46056         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46057         gl_thread_self): Remove definitions. Include glthread/thread.h and
46058         glthread/yield.h instead.
46059         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46060         additional NULL argument to gl_thread_join.
46061
46062 2008-09-30  Bruno Haible  <bruno@clisp.org>
46063
46064         Fix the Win32 implementation of the 'thread' module.
46065         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46066         pointer type.
46067         (gl_thread_self): Invoke gl_thread_self_func.
46068         (gl_thread_self_func): New declaration.
46069         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46070         (do_init_self_key, init_self_key): New functions.
46071         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46072         Remove some fields.
46073         (running_threads, running_lock): Remove variables.
46074         (get_current_thread_handle): New function.
46075         (gl_thread_self_func, wrapper_func, glthread_create_func,
46076         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46077         simplified.
46078
46079 2008-09-30  Bruno Haible  <bruno@clisp.org>
46080
46081         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46082         files.
46083
46084 2008-09-30  Jim Meyering  <meyering@redhat.com>
46085
46086         fts.m4: correct the test for statfs.f_type
46087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46088         when checking for statfs.f_type.
46089
46090 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46091
46092         tests: avoid some compiler warnings
46093         * tests/test-memchr.c (main): Pass NULL indirectly.
46094         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46095
46096 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46097
46098         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46099         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46100         exactly specified dayshifts.
46101         (dayshift): New rule.
46102         (rel): Add dayshift.
46103         (relative_time_table) [tomorrow, yesterday, today, now]:
46104         Use tDAY_SHIFT in place of tDAY_UNIT.
46105         * tests/test-getdate.c: Add tests for now-disallowed countable
46106         dayshifts, e.g., "4 yesterday ago".
46107
46108 2008-09-29  Bruno Haible  <bruno@clisp.org>
46109
46110         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46111         * tests/test-posix_spawn1.in.sh: Renamed from
46112         tests/test-posix_spawn.in.sh.
46113         * tests/test-posix_spawn2.c: New file.
46114         * tests/test-posix_spawn2.in.sh: New file.
46115         * modules/posix_spawnp-tests (Files): Update.
46116         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46117
46118 2008-09-29  Bruno Haible  <bruno@clisp.org>
46119
46120         Propagate effects of putenv/setenv/unsetenv to child processes.
46121         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46122         * lib/pipe.c (create_pipe): Likewise.
46123
46124 2008-09-29  Bruno Haible  <bruno@clisp.org>
46125
46126         Enable use of shell scripts as executables in mingw.
46127         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46128         run the program as a shell script.
46129         * lib/pipe.c (create_pipe): Likewise.
46130         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46131         resulting array.
46132
46133 2008-09-29  Eric Blake  <ebb9@byu.net>
46134
46135         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46136
46137 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46138
46139         * doc/posix-functions/accept.texi: Update mingw problems.
46140         * doc/posix-functions/bind.texi: Update mingw problems.
46141         * doc/posix-functions/close.texi: Update mingw problems.
46142         * doc/posix-functions/connect.texi: Update mingw problems.
46143         * doc/posix-functions/getpeername.texi: Update mingw problems.
46144         * doc/posix-functions/getsockname.texi: Update mingw problems.
46145         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46146         * doc/posix-functions/ioctl.texi: Update mingw problems.
46147         * doc/posix-functions/listen.texi: Update mingw problems.
46148         * doc/posix-functions/recv.texi: Update mingw problems.
46149         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46150         * doc/posix-functions/select.texi: Update mingw problems.
46151         * doc/posix-functions/send.texi: Update mingw problems.
46152         * doc/posix-functions/sendto.texi: Update mingw problems.
46153         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46154         * doc/posix-functions/socket.texi: Update mingw problems.
46155
46156 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46157             Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/sys_select.in.h: Include sys/time.h.
46160         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46161         * modules/sys_select: Depend on sys_time.
46162         * tests/test-sys_select.c: Test that sys/select.h defines struct
46163         timeval fully.
46164
46165 2008-09-29  Bruno Haible  <bruno@clisp.org>
46166
46167         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46168         * lib/sys_select.in.h: Likewise.
46169
46170 2008-09-29  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46173
46174 2008-09-29  Bruno Haible  <bruno@clisp.org>
46175
46176         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46177         Set LIBSOCKET instead of augmenting LIBS.
46178         * modules/sockets (Link): New section.
46179         * modules/sockets-tests (test_sockets_LDADD): New variable.
46180         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46181         * modules/poll-tests (test_poll_LDADD): New variable.
46182         * NEWS: Document the change.
46183
46184 2008-09-29  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46187         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46188         ARPA_INET_H directly.
46189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46190
46191 2008-09-28  Bruno Haible  <bruno@clisp.org>
46192
46193         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46194         from gl_HEADER_SYS_SOCKET.
46195         (gl_HEADER_SYS_SOCKET): Invoke it.
46196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46197
46198 2008-09-28  Bruno Haible  <bruno@clisp.org>
46199
46200         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46201         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46202         Needed on OSF/1 4.0.
46203
46204 2008-09-28  Bruno Haible  <bruno@clisp.org>
46205
46206         Override open more carefully.
46207         * lib/open.c (orig_open): New function.
46208         (rpl_open): Use orig_open instead of open.
46209         * lib/fcntl.in.h: Add special invocation convention.
46210         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46211         (gl_FUNC_OPEN): Invoke it.
46212
46213         Override freopen more carefully.
46214         * lib/freopen.c (orig_freopen): New function.
46215         (rpl_freopen): Use orig_freopen instead of freopen.
46216         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46217         (gl_FUNC_FREOPEN): Invoke it.
46218
46219         Override fopen more carefully.
46220         * lib/fopen.c (orig_fopen): New function.
46221         (rpl_fopen): Use orig_fopen instead of fopen.
46222         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46223         (gl_FUNC_FOPEN): Invoke it.
46224         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46225
46226 2008-09-28  Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46229         SIGPIPE.
46230
46231 2008-09-28  Bruno Haible  <bruno@clisp.org>
46232
46233         * tests/test-sigaction.c (handler, main): Disable the check whether
46234         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46235         glibc systems with LinuxThreads.
46236
46237 2008-09-28  Bruno Haible  <bruno@clisp.org>
46238
46239         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46240
46241         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46242         with AIX xlc.
46243         * lib/fcntl.in.h (open): Likewise.
46244         Reported by Rainer Tammer <tammer@tammer.net>.
46245
46246 2008-09-28  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/posix_spawnp-tests: New file.
46249         * tests/test-posix_spawn.c: New file.
46250         * tests/test-posix_spawn.in.sh: New file.
46251
46252         New module 'posix_spawnp'.
46253         * modules/posix_spawnp: New file.
46254         * lib/spawnp.c: New file, from GNU libc with modifications.
46255         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46256
46257         New module 'posix_spawn'.
46258         * modules/posix_spawn: New file.
46259         * lib/spawn.c: New file, from GNU libc with modifications.
46260         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46261
46262         New module 'posix_spawnattr_destroy'.
46263         * modules/posix_spawnattr_destroy: New file.
46264         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46265         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46266         module.
46267
46268         New module 'posix_spawnattr_setsigmask'.
46269         * modules/posix_spawnattr_setsigmask: New file.
46270         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46271         modifications.
46272         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46273         new module.
46274
46275         New module 'posix_spawnattr_getsigmask'.
46276         * modules/posix_spawnattr_getsigmask: New file.
46277         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46278         modifications.
46279         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46280         new module.
46281
46282         New module 'posix_spawnattr_setsigdefault'.
46283         * modules/posix_spawnattr_setsigdefault: New file.
46284         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46285         modifications.
46286         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46287         new module.
46288
46289         New module 'posix_spawnattr_getsigdefault'.
46290         * modules/posix_spawnattr_getsigdefault: New file.
46291         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46292         modifications.
46293         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46294         new module.
46295
46296         New module 'posix_spawnattr_setschedpolicy'.
46297         * modules/posix_spawnattr_setschedpolicy: New file.
46298         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46299         modifications.
46300         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46301         new module.
46302
46303         New module 'posix_spawnattr_getschedpolicy'.
46304         * modules/posix_spawnattr_getschedpolicy: New file.
46305         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46306         modifications.
46307         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46308         new module.
46309
46310         New module 'posix_spawnattr_setschedparam'.
46311         * modules/posix_spawnattr_setschedparam: New file.
46312         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46313         modifications.
46314         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46315         new module.
46316
46317         New module 'posix_spawnattr_getschedparam'.
46318         * modules/posix_spawnattr_getschedparam: New file.
46319         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46320         modifications.
46321         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46322         new module.
46323
46324         New module 'posix_spawnattr_setpgroup'.
46325         * modules/posix_spawnattr_setpgroup: New file.
46326         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46327         modifications.
46328         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46329         module.
46330
46331         New module 'posix_spawnattr_getpgroup'.
46332         * modules/posix_spawnattr_getpgroup: New file.
46333         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46334         modifications.
46335         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46336         module.
46337
46338         New module 'posix_spawnattr_setflags'.
46339         * modules/posix_spawnattr_setflags: New file.
46340         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46341         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46342         module.
46343
46344         New module 'posix_spawnattr_getflags'.
46345         * modules/posix_spawnattr_getflags: New file.
46346         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46347         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46348         module.
46349
46350         New module 'posix_spawnattr_init'.
46351         * modules/posix_spawnattr_init: New file.
46352         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46353         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46354         module.
46355
46356         New module 'posix_spawn_file_actions_destroy'.
46357         * modules/posix_spawn_file_actions_destroy: New file.
46358         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46359         modifications.
46360         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46361         the new module.
46362
46363         New module 'posix_spawn_file_actions_addopen'.
46364         * modules/posix_spawn_file_actions_addopen: New file.
46365         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46366         modifications.
46367         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46368         the new module.
46369
46370         New module 'posix_spawn_file_actions_adddup2'.
46371         * modules/posix_spawn_file_actions_adddup2: New file.
46372         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46373         modifications.
46374         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46375         the new module.
46376
46377         New module 'posix_spawn_file_actions_addclose'.
46378         * modules/posix_spawn_file_actions_addclose: New file.
46379         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46380         modifications.
46381         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46382         the new module.
46383
46384         New module 'posix_spawn_file_actions_init'.
46385         * modules/posix_spawn_file_actions_init: New file.
46386         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46387         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46388         new module.
46389
46390         New module 'posix_spawn-internal'.
46391         * modules/posix_spawn-internal: New file.
46392         * lib/spawn_int.h: New file, from GNU libc with modifications.
46393         * lib/spawni.c: New file, from GNU libc with modifications.
46394         * m4/posix_spawn.m4: New file.
46395
46396         New module 'spawn'.
46397         * modules/spawn: New file.
46398         * lib/spawn.in.h: New file, from GNU libc with modifications.
46399         * m4/spawn_h.m4: New file.
46400         * doc/posix-headers/spawn.texi: Mention the new module.
46401
46402 2008-09-28  Bruno Haible  <bruno@clisp.org>
46403
46404         * modules/sched-tests: New file.
46405         * tests/test-sched.c: New file.
46406
46407         New module 'sched'.
46408         * modules/sched: New file.
46409         * lib/sched.in.h: New file.
46410         * m4/sched_h.m4: New file.
46411         * doc/posix-headers/sched.texi: Mention the new module.
46412
46413 2008-09-27  Eric Blake  <ebb9@byu.net>
46414
46415         Fix previous patch, and tweak references to $0.
46416         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46417         (func_version, func_gnulib_dir): Don't call this program
46418         gnulib-tool.
46419         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46420         with using $0 in function.
46421         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46422         (func_fatal_error): Reuse the name the user invoked us with.
46423
46424 2008-09-27  Bruno Haible  <bruno@clisp.org>
46425
46426         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46427         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46428         (gl_ICONV_H): Not here.
46429         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46430         instead of assigning ICONV_H directly.
46431
46432         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46434         WCHAR_H directly.
46435
46436 2008-09-27  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46439         * modules/arpa_inet (Depends-on): Add link-warning.
46440         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46441         * modules/unistd (Makefile.am): Likewise.
46442
46443 2008-09-26  Bruno Haible  <bruno@clisp.org>
46444
46445         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46446         variables.
46447         (func_version): Essentially copied from gnulib-tool.
46448         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46449         func_readlink): Copied from gnulib-tool.
46450
46451 2008-09-26  Bruno Haible  <bruno@clisp.org>
46452
46453         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46454         invoking git-version-gen.
46455
46456 2008-09-26  Bruno Haible  <bruno@clisp.org>
46457
46458         * posix-modules: Update to directory names changed on 2008-01-19.
46459         Remove commas in output before splitting into words. No more need to
46460         avoid 'ftruncate' since 2007-02-19.
46461
46462 2008-09-26  Bruno Haible  <bruno@clisp.org>
46463
46464         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46465
46466 2008-09-26  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46469         * modules/fwriteerror (Depends-on): Add errno.
46470
46471 2008-09-26  Bruno Haible  <bruno@clisp.org>
46472
46473         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46474         * tests/test-vc-list-files-cvs.sh: Likewise.
46475
46476 2008-09-26  Bruno Haible  <bruno@clisp.org>
46477
46478         * doc/posix-headers/sys_resource.texi: Reorder items.
46479
46480 2008-09-26  Jim Meyering  <meyering@redhat.com>
46481
46482         fts: tweak inode comparison function
46483         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46484         inode numbers, as documented.
46485
46486         fts: sort dirent entries on inode number before traversing
46487         This avoids a quadratic, seek-related performance penalty when
46488         operating on a directory containing many entries (measurable at 10k;
46489         3.5 hours at 2 million entries with a cold cache) on certain types
46490         of file systems, including ext3 and ext4, but not tmpfs.
46491         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46492         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46493         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46494         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46495         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46496         (fts_build): Set the stat.st_ino member from D_INO.
46497         If it is likely to be useful, sort dirent entries on inode number.
46498
46499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46500         and the struct statfs.f_type member.
46501         * modules/fts (Depends-on): Add d-ino.
46502
46503 2008-09-26  Bruno Haible  <bruno@clisp.org>
46504
46505         * modules/sigpipe-die (Depends-on): Add sigpipe.
46506
46507         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46508         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46509         and GNULIB_STDIO_H_SIGPIPE are set.
46510         * lib/stdio-write.c: New file.
46511         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46512         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46513         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46514         REPLACE_STDIO_WRITE_FUNCS.
46515         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46516         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46517         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46518         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46519         * modules/stdio (Files): Add lib/stdio-write.c.
46520         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46521         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46522         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46523         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46524         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46525         REPLACE_FPRINTF_POSIX.
46526         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46527         REPLACE_PRINTF_POSIX.
46528         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46529         REPLACE_VFPRINTF_POSIX.
46530         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46531         REPLACE_VPRINTF_POSIX.
46532         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46533         SIGPIPE issue.
46534         * doc/posix-functions/fputc.texi: Likewise.
46535         * doc/posix-functions/fputs.texi: Likewise.
46536         * doc/posix-functions/fwrite.texi: Likewise.
46537         * doc/posix-functions/printf.texi: Likewise.
46538         * doc/posix-functions/putc.texi: Likewise.
46539         * doc/posix-functions/putchar.texi: Likewise.
46540         * doc/posix-functions/puts.texi: Likewise.
46541         * doc/posix-functions/vfprintf.texi: Likewise.
46542         * doc/posix-functions/vprintf.texi: Likewise.
46543
46544         * modules/safe-write (Depends-on): Add write.
46545
46546         * modules/sigpipe-tests: New file.
46547         * tests/test-sigpipe.c: New file.
46548         * tests/test-sigpipe.sh: New file.
46549
46550         * modules/write: New file.
46551         * lib/unistd.in.h: Include <sys/types.h>.
46552         (write): New declaration.
46553         * lib/write.c: New file.
46554         * m4/write.m4: New file.
46555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46556         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46557         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46558         GNULIB_WRITE, REPLACE_WRITE.
46559         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46560         and the SIGPIPE issue.
46561
46562         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46563         (raise): New declaration.
46564         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46565         (ext_signal): New function.
46566         (rpl_raise): New function.
46567         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46568         GNULIB_SIGNAL_H_SIGPIPE.
46569         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46570         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46571
46572         * modules/sigpipe: New file.
46573         * m4/sigpipe.m4: New file.
46574
46575 2008-09-25  Derek Price  <derek@ximbiot.com>
46576             Bruno Haible  <bruno@clisp.org>
46577
46578         * gnulib-tool (func_import): Report all license incompatibilities, not
46579         just the first one.
46580
46581 2008-09-25  Bruno Haible  <bruno@clisp.org>
46582
46583         * gnulib-tool (func_import): When computing the edits, consider not
46584         only the Makefile.ams that exist but also those that will be generated.
46585
46586 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46587
46588         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46589         fixes gnulib-tool --test warning about duplicate dependency.
46590
46591 2008-09-25  Bruno Haible  <bruno@clisp.org>
46592
46593         * gnulib-tool: Don't ask the user to perform edits in the generated
46594         Makefile.ams.
46595         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46596         apply to the Makefile.am being generated.
46597         (func_emit_tests_Makefile_am): Execute edits that apply to the
46598         Makefile.am being generated.
46599         (func_import): Setup list of Makefile.am edits before emitting the
46600         Makefile.ams, not at the end.
46601         (func_create_testdir): Update.
46602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46603
46604 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46605
46606         * gnulib-tool (func_import): Store the --tests-base option in the
46607         comment in gnulib-cache.m4.
46608
46609 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46610
46611         * NEWS: Document increased portability that sys_select now provides.
46612
46613         * lib/sys_select.in.h: Install select wrapper.
46614         * lib/sys_socket.in.h: Use more descriptive name when there is no
46615         select wrapper.
46616         * lib/winsock-select.c: New.
46617         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46618         Require gl_HEADER_SYS_SOCKET.
46619         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46620         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46621         * tests/test-sys_select.c: Add functional tests.
46622
46623 2008-09-24  Eric Blake  <ebb9@byu.net>
46624
46625         open, fopen: close fd leak in last patch
46626         * lib/open.c (rpl_open): Close fd before returning error.
46627         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46628         * doc/posix-functions/open.texi (open): Document that Irix also
46629         has the bug.
46630         * doc/posix-functions/fopen.texi (fopen): Likewise.
46631         Reported by Paolo Bonzini.
46632
46633 2008-09-24  Bruno Haible  <bruno@clisp.org>
46634
46635         Ensure that a filename ending in a slash cannot be used to access a
46636         non-directory.
46637         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46638         to check whether it's really a directory.
46639         * lib/fopen.c: Include fcntl.h, unistd.h.
46640         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46641         and fdopen().
46642         * modules/fopen (Depends-on): Add unistd.
46643         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46644         * tests/test-fopen.c (main): Likewise.
46645         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46646         * doc/posix-functions/fopen.texi: Likewise.
46647         Reported by Eric Blake.
46648
46649 2008-09-23  Eric Blake  <ebb9@byu.net>
46650
46651         c-stack: avoid compiler optimizations when provoking overflow
46652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46653         recursion harder to optimize, to ensure a stack overflow occurs.
46654         * tests/test-c-stack.c (recurse): Likewise.
46655         Borrowed from libsigsegv.
46656
46657         c-stack: work around Irix sigaltstack bug
46658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46659         whether sigaltstack uses wrong end of stack_t (copied in part from
46660         libsigsegv).
46661         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46662         Irix bug, without requiring an over-allocation.
46663         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46664         bug.
46665
46666         fopen: document mingw bug on directories
46667         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46668         not allowing a stream visiting a directory, even though reading
46669         from such a stream is not portable.
46670
46671 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46672
46673         * lib/poll.c: Rewrite.
46674         * modules/poll: Depend on alloca.
46675
46676 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46677
46678         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46679         instead define prototypes for a full set of wrappers.  Ensure
46680         that Cygwin does not use the compatibility code, which is only
46681         for MinGW.
46682         * lib/winsock.c: New.
46683         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46684         * modules/sys_socket: Add lib/winsock.c.
46685
46686         * modules/poll-tests: Add errno and perror.
46687         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46688
46689 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46690
46691         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46692
46693 2008-09-23  Bruno Haible  <bruno@clisp.org>
46694
46695         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46696         * doc/glibc-functions/*: Likewise.
46697
46698 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46699
46700         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46701         success.
46702
46703 2008-09-22  Eric Blake  <ebb9@byu.net>
46704             Bruno Haible  <bruno@clisp.org>
46705
46706         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46707         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46708         supply %A but mishandle pseudo-NaN.
46709         Reported by Simon Josefsson.
46710
46711 2008-09-21  Bruno Haible  <bruno@clisp.org>
46712
46713         * tests/test-lock.c (main): Tweak skip message.
46714         * tests/test-tls.c (main): Likewise.
46715
46716 2008-09-21  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46719         whether 'struct sigaction' has sa_sigaction here...
46720         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46721         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46722
46723 2008-09-21  Bruno Haible  <bruno@clisp.org>
46724
46725         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46726         section.
46727         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46728         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46729         the new section.
46730         (Support for obsolete systems lacking POSIX:2001): New section.
46731         (String handling <string.h>): Move strdup to the new section.
46732         Suggested by Simon Josefsson and Paolo Bonzini.
46733
46734 2008-09-21  Bruno Haible  <bruno@clisp.org>
46735
46736         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46737         exponents in %e and %g results on 'long double'. Needed for mingw's
46738         improved *printf functions.
46739         * tests/test-vasprintf-posix.c (test_function): Likewise.
46740         * tests/test-snprintf-posix.h (test_function): Likewise.
46741         * tests/test-sprintf-posix.h (test_function): Likewise.
46742         Reported by Eric Blake.
46743
46744 2008-09-21  Bruno Haible  <bruno@clisp.org>
46745
46746         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46747         * tests/test-sprintf-posix.h (test_function): Likewise.
46748
46749 2008-09-21  Bruno Haible  <bruno@clisp.org>
46750
46751         * modules/getpass (Depends-on): Add strdup-posix.
46752
46753         New module 'strdup-posix'.
46754         * modules/strdup-posix: New file.
46755         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46756         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46758         REPLACE_STRDUP.
46759         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46760         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46762         strdup-posix.
46763
46764         * modules/strdup (Depends-on): Remove malloc-posix.
46765
46766 2008-09-20  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46769         Wildenhues.
46770
46771 2008-09-20  Bruno Haible  <bruno@clisp.org>
46772
46773         Ensure that wint_t gets defined on IRIX 5.3.
46774         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46775         * lib/wctype.in.h (wint_t): Likewise.
46776         (__wctype_wint_t): Remove type.
46777         (isw*): Use wint_t instead of __wctype_wint_t.
46778         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46779         * modules/wchar (Files): Add m4/wint_t.m4.
46780         (Makefile.am): Substitute HAVE_WINT_T.
46781         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46782         * tests/test-wctype.c: Check that wint_t is defined.
46783         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46784         * doc/posix-headers/wctype.texi: Likewise.
46785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46786
46787 2008-09-18  Bruno Haible  <bruno@clisp.org>
46788
46789         * gnulib-tool (func_exit): Update comment.
46790
46791 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46792
46793         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46794         assumes strdup exists and does not depend on strdup to return
46795         ENOMEM on out of memory conditions.
46796
46797 2008-09-18  Bruno Haible  <bruno@clisp.org>
46798
46799         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46800         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46801         digits for the exponent.
46802
46803 2008-09-18  Jim Meyering  <meyering@redhat.com>
46804             Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/vasnprintf.c (decimal_point_char): Define also if
46807         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46808
46809 2008-09-16  Bruno Haible  <bruno@clisp.org>
46810         and Eric Blake  <ebb9@byu.net>
46811
46812         vasnprintf: support Irix 5.3
46813         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46814         that mishandle long double infinity.
46815         Reported by Tom G. Christensen.
46816
46817 2008-09-16  Bruno Haible  <bruno@clisp.org>
46818
46819         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46820         Solaris 9.
46821         * doc/glibc-functions/alphasort.texi: Likewise.
46822         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46823
46824 2008-09-16  Jim Meyering  <meyering@redhat.com>
46825
46826         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46827         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46828         a umask modification leak out of a subshell.  Otherwise, the
46829         opensolaris /bin/sh would be accepted and thus cause unwarranted
46830         failures in the coreutils test suite.
46831
46832 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46833
46834         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46835         to succeed.
46836
46837 2008-09-16  Jim Meyering  <meyering@redhat.com>
46838
46839         avoid spurious test failure when library is built without ACL support
46840         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46841         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46842         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46843         * tests/test-copy-acl.sh: Likewise.
46844
46845 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46846
46847         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46848         based on character occurrence counts.
46849
46850 2008-09-15  Eric Blake  <ebb9@byu.net>
46851
46852         tests: avoid some compiler warnings
46853         * tests/test-memchr.c (main): Pass NULL indirectly.
46854         * tests/test-closein.c (main): Avoid unused variable.
46855
46856 2008-09-15  Bruno Haible  <bruno@clisp.org>
46857
46858         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46859         are missing on OpenBSD 4.0 individually.
46860         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46861
46862 2008-09-15  Bruno Haible  <bruno@clisp.org>
46863
46864         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46865         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46866         * doc/posix-functions/perror.texi: Likewise.
46867         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46868         is missing.
46869         Reported by Eric Blake.
46870
46871         * lib/errno.in.h: Use replacement values >= 2000.
46872         Reported by Eric Blake.
46873
46874 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46875
46876         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46877         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46878         limit.
46879         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46880         compareseq was aborted.
46881
46882 2008-09-14  Bruno Haible  <bruno@clisp.org>
46883
46884         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46885         yvec_edit_count.
46886         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46887         (fstrcmp_bounded): Simplify result computation accordingly.
46888
46889 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890
46891         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46892         (fstrcmp): Define in terms of fstrcmp_bounded.
46893         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46894         lower_bound argument.
46895         Return quickly if the result is certainly < lower_bound.
46896         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46897
46898 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46899
46900         * lib/diffseq.h (EARLY_ABORT): New macro.
46901         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46902         evaluates to true.
46903
46904 2008-09-14  Bruno Haible  <bruno@clisp.org>
46905
46906         * modules/perror-tests: New file.
46907         * tests/test-perror.sh: New file.
46908         * tests/test-perror.c: New file.
46909
46910         New module 'perror'.
46911         * lib/stdio.in.h (perror): New declaration.
46912         * lib/perror.c: New file.
46913         * m4/perror.m4: New file.
46914         * modules/perror: New file.
46915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46916         * doc/posix-functions/perror.texi: Mention the perror module.
46917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46918         REPLACE_PERROR.
46919         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46920         REPLACE_PERROR.
46921
46922 2008-09-14  Bruno Haible  <bruno@clisp.org>
46923
46924         * modules/stdio (Makefile.am): Reorder to match the order in
46925         lib/stdio.in.h.
46926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46927
46928 2008-09-13  Bruno Haible  <bruno@clisp.org>
46929
46930         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46931
46932 2008-09-13  Bruno Haible  <bruno@clisp.org>
46933
46934         Extend strerror to cover the added errno values.
46935         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46936         (rpl_strerror): Provide error messages for the added errno values and
46937         for the WSA* values.
46938         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46939         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46940         strerror.
46941         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46942         * modules/strerror (Depends-on): Add errno.
46943         * doc/posix-functions/strerror.texi: Document the change.
46944         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46945         and EOVERFLOW.
46946
46947 2008-09-13  Bruno Haible  <bruno@clisp.org>
46948
46949         * modules/EOVERFLOW: Remove file.
46950         * m4/eoverflow.m4: Remove file.
46951         * modules/EOVERFLOW-tests: Remove file.
46952         * tests/test-EOVERFLOW.c: Remove file.
46953         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46954         * modules/ftell (Depends-on): Likewise.
46955         * modules/getdelim (Depends-on): Likewise.
46956         * modules/getugroups (Depends-on): Likewise.
46957         * modules/poll (Depends-on): Likewise.
46958         * modules/snprintf (Depends-on): Likewise.
46959         * modules/sprintf-posix (Depends-on): Likewise.
46960         * modules/vasnprintf (Depends-on): Likewise.
46961         * modules/vasprintf (Depends-on): Likewise.
46962         * modules/vfprintf-posix (Depends-on): Likewise.
46963         * modules/vsnprintf (Depends-on): Likewise.
46964         * modules/vsprintf-posix (Depends-on): Likewise.
46965         * modules/xvasprintf (Depends-on): Likewise.
46966         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46967         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46968         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46969         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46971         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46972         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46973         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46975         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46976         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46977         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46978         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46979         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46980         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46981         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46982         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46983         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46984         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46985         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46986         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46987         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46988         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46989         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46990         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46991         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46992         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46993         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46994         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46995         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46996         * MODULES.html.sh: Remove EOVERFLOW.
46997         * NEWS: Mention the change.
46998
46999 2008-09-13  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/errno-tests: New file.
47002         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47003
47004         * lib/errno.in.h: New file.
47005         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47006         * modules/errno: New file.
47007         * doc/posix-headers/errno.texi: Update documentation.
47008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47009
47010 2008-09-13  Bruno Haible  <bruno@clisp.org>
47011
47012         * tests/test-poll.c: Use #if for native Windows, rather than testing
47013         __MSVCRT__.
47014
47015 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47016             Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/glob.c: Don't include <pwd.h> on native Windows.
47019         (WINDOWS32): New macro.
47020         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47021
47022 2008-09-13  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47025         (ETIMEDOUT): Remove macro.
47026         (glthread_cond_timedwait_multithreaded): New declaration.
47027         (glthread_cond_timedwait): Use it.
47028         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47029         (glthread_cond_timedwait_multithreaded): New function.
47030
47031 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47032
47033         * modules/poll-tests: Do not check for io.h.
47034         * tests/test-poll.c: Check for __MSVCRT__ instead.
47035
47036 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47037
47038         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47039         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47040         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47041
47042 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47043
47044         * modules/poll-tests: New.
47045         * tests/test-poll.c: New.
47046
47047 2008-09-12  Eric Blake  <ebb9@byu.net>
47048
47049         frexp: test for NetBSD failure on -0.0
47050         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47051         not all, bugs from NetBSD 3.0 have been fixed.
47052         * doc/posix-functions/frexp.texi (frexp): Document bug.
47053         Reported by Thomas Klausner.
47054
47055         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47057         literal -0.0.
47058         Reported by Jonathan C. Patschke <jp@centtech.com>.
47059
47060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47061
47062         * lib/glthread/cond.h: Use dummy implementation also if
47063         USE_WIN32_THREADS.
47064
47065 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47066
47067         * modules/fnmatch-posix (License): Change to LGPLv2+.
47068         * modules/fnmatch-gnu (License): Likewise.
47069
47070 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47071
47072         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47073
47074 2008-09-11  Jim Meyering  <meyering@redhat.com>
47075
47076         * users.txt: Add gtk-vnc.
47077
47078 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47079
47080         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47081         rotate amounts.
47082
47083         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47084         required for 16-bit and 8-bit rotates.
47085         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47086         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47087         UINT8_MAX instead of hard-coded constants.
47088         Suggested by Paul Eggert.
47089
47090 2008-09-07  Bruno Haible  <bruno@clisp.org>
47091
47092         * tests/test-striconveh.c (main): Check behaviour when converting from
47093         UTF-7.
47094
47095         Make striconveh work better with stateful encodings.
47096         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47097         that iconv does not increment the inptr when returning -1/EINVAL.
47098
47099 2008-09-07  Bruno Haible  <bruno@clisp.org>
47100
47101         * build-aux/config.rpath: Update according to libtool-2.2.6.
47102         * build-aux/config.libpath: Likewise.
47103
47104 2008-09-06  Bruno Haible  <bruno@clisp.org>
47105
47106         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47107         * lib/freadptr.c (freadptr): Likewise.
47108         * lib/freadseek.c (freadptrinc): Likewise.
47109         Reported by Simon Josefsson.
47110
47111 2008-09-06  Bruno Haible  <bruno@clisp.org>
47112
47113         * modules/freadptr (License): Change to LGPLv2+.
47114         * modules/freadseek (License): Likewise.
47115         Suggested by Eric Blake.
47116
47117         * modules/memchr2 (License): Change to LGPLv2+.
47118         Approved by Eric Blake.
47119
47120 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47121             Bruno Haible  <bruno@clisp.org>
47122
47123         Make gnulib-tool work with native 'sed' on AIX.
47124         * gnulib-tool (sed_noop): New variable.
47125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47126         func_add_or_update, func_create_testdir): Use it to initialize sed
47127         script variables.
47128         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47129
47130 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47131             Bruno Haible  <bruno@clisp.org>
47132
47133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47134         also works after #include directives.
47135
47136 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47137
47138         getdate.y: reject an out-of-range timezone value
47139         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47140         the range [-24...+24].  When specified with only one or two digits,
47141         * tests/test-getdate.c: Tests for the fix.
47142         * doc/getdate.texi: Document this change.
47143
47144 2008-09-03  Bruno Haible  <bruno@clisp.org>
47145
47146         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47147
47148 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47149
47150         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47151         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47152         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47153         Blake <ebb9@byu.net>.
47154
47155         * tests/test-bitrotate.c: Add more test vectors.
47156
47157 2008-09-02  Eric Blake  <ebb9@byu.net>
47158
47159         vasnprintf-posix: handle large precision via %.*d
47160         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47161         when handling it ourselves.
47162         * tests/test-vasnprintf-posix.c (test_function): Add test.
47163         * tests/test-snprintf-posix.h (test_function): Likewise.
47164         * tests/test-sprintf-posix.h (test_function): Likewise.
47165         * tests/test-vasprintf-posix.c (test_function): Likewise.
47166         Reported by Alain Guibert.
47167
47168 2008-09-01  Eric Blake  <ebb9@byu.net>
47169
47170         c-stack: make configure-time check more robust
47171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47172         successful sigaction call.
47173         Reported by Tom G. Christensen.
47174
47175 2008-09-01  Bruno Haible  <bruno@clisp.org>
47176
47177         New module 'findprog-lgpl'.
47178         * modules/findprog-lgpl: New file.
47179         * lib/findprog-lgpl.c: New file.
47180         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47181         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47182         to decide whether to use strdup or xstrdup, concatenated_filename or
47183         xconcatenated_filename.
47184
47185 2008-09-01  Bruno Haible  <bruno@clisp.org>
47186
47187         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47188         'xconcat-filename' (GPL).
47189         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47190         (License): Change to LGPLv2+.
47191         * modules/xconcat-filename: New file.
47192         * lib/concat-filename.h (concatenated_filename): Change specification.
47193         (xconcatenated_filename): New declaration.
47194         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47195         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47196         memory situations.
47197         * lib/xconcat-filename.c: New file.
47198         * NEWS: Mention the change.
47199         * lib/findprog.c: Include concat-filename.h, not filename.h.
47200         (find_in_path): Use xconcatenated_filename instead of
47201         concatenated_filename.
47202         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47203         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47204         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47205         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47206         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47207         instead of concatenated_filename.
47208         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47209         (execute_java_class): Use xconcatenated_filename instead of
47210         concatenated_filename.
47211         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47212         * modules/javacomp (Depends-on): Likewise.
47213         * modules/javaexec (Depends-on): Likewise.
47214
47215 2008-09-01  Bruno Haible  <bruno@clisp.org>
47216
47217         Split module 'filename' into 'filename' and 'concat-filename'.
47218         * modules/filename: Keep only lib/filename.h.
47219         (License): Change to LGPLv2+.
47220         * modules/concat-filename: New file, extracted from modules/filename.
47221         * lib/filename.h (concatenated_filename): Remove declaration.
47222         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47223         * lib/concat-filename.c: Include concat-filename.h.
47224         * NEWS: Mention the change.
47225
47226 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47227
47228         * lib/bitrotate.h (rotl8, rotr8): Add.
47229
47230         * modules/bitrotate (configure.ac): Need
47231         AC_REQUIRE([AC_C_INLINE]).
47232         (Description): Mention stdint.h.  Reported by Bruno Haible
47233         <bruno@clisp.org>.
47234
47235         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47236         Paolo Bonzini <bonzini@gnu.org>.
47237
47238 2008-08-31  Bruno Haible  <bruno@clisp.org>
47239
47240         Assume Solaris specific bi-arch conventions on Solaris systems.
47241         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47242         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47244         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47245         like acl_libdirstem.
47246         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47247         acl_libdirstem.
47248         * NEWS: Mention the change.
47249         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47250
47251 2008-08-31  Jim Meyering  <meyering@redhat.com>
47252
47253         * lib/strftime.h: Add comments describing the two added arguments.
47254
47255         remove duplicate #include directives
47256         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47257         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47258
47259 2008-08-31  Bruno Haible  <bruno@clisp.org>
47260
47261         New module 'sigpipe-die'.
47262         * modules/sigpipe-die: New file.
47263         * lib/sigpipe-die.h: New file.
47264         * lib/sigpipe-die.c: New file.
47265         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47266
47267 2008-08-31  Bruno Haible  <bruno@clisp.org>
47268
47269         Don't override previously installed signal handlers.
47270         * lib/fatal-signal.c (saved_sigactions): New variable.
47271         (uninstall_handlers): Reset the signal to the saved handler, not
47272         to SIG_DFL (except when ignored).
47273         (install_handlers): Save the previous handlers.
47274
47275 2008-08-30  Bruno Haible  <bruno@clisp.org>
47276
47277         * gnulib-tool (func_reset_sigpipe): New function.
47278         (func_get_automake_snippet, func_modules_transitive_closure,
47279         func_import): Invoke it before a join command that reads from stdin,
47280         to avoid "echo: write error: Broken pipe" error messages on stderr.
47281         Reported by Sam Steingold <sds@gnu.org>.
47282
47283 2008-08-30  Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47286         Code copied from m4/open.m4.
47287         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47288         access and the filename ends in a slash. Code copied from lib/open.c.
47289         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47290         * tests/test-fopen.c (main): Check against bug with trailing slash.
47291
47292 2008-08-29  Bruno Haible  <bruno@clisp.org>
47293
47294         Avoid some "gcc -pedantic" warnings.
47295         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47296         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47297         * lib/dirent.in.h: Likewise.
47298         * lib/fcntl.in.h: Likewise.
47299         * lib/float.in.h: Likewise.
47300         * lib/iconv.in.h: Likewise.
47301         * lib/inttypes.in.h: Likewise.
47302         * lib/locale.in.h: Likewise.
47303         * lib/math.in.h: Likewise.
47304         * lib/netinet_in.in.h: Likewise.
47305         * lib/search.in.h: Likewise.
47306         * lib/signal.in.h: Likewise.
47307         * lib/stdarg.in.h: Likewise.
47308         * lib/stdint.in.h: Likewise.
47309         * lib/stdio.in.h: Likewise.
47310         * lib/stdlib.in.h: Likewise.
47311         * lib/string.in.h: Likewise.
47312         * lib/strings.in.h: Likewise.
47313         * lib/sys_select.in.h: Likewise.
47314         * lib/sys_socket.in.h: Likewise.
47315         * lib/sys_stat.in.h: Likewise.
47316         * lib/sys_time.in.h: Likewise.
47317         * lib/sysexits.in.h: Likewise.
47318         * lib/time.in.h: Likewise.
47319         * lib/unistd.in.h: Likewise.
47320         * lib/wchar.in.h: Likewise.
47321         * lib/wctype.in.h: Likewise.
47322         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47323         * modules/fchdir (Makefile.am): Likewise.
47324         * modules/fcntl (Makefile.am): Likewise.
47325         * modules/float (Makefile.am): Likewise.
47326         * modules/iconv_open (Makefile.am): Likewise.
47327         * modules/inttypes (Makefile.am): Likewise.
47328         * modules/locale (Makefile.am): Likewise.
47329         * modules/math (Makefile.am): Likewise.
47330         * modules/netinet_in (Makefile.am): Likewise.
47331         * modules/search (Makefile.am): Likewise.
47332         * modules/signal (Makefile.am): Likewise.
47333         * modules/stdarg (Makefile.am): Likewise.
47334         * modules/stdint (Makefile.am): Likewise.
47335         * modules/stdio (Makefile.am): Likewise.
47336         * modules/stdlib (Makefile.am): Likewise.
47337         * modules/string (Makefile.am): Likewise.
47338         * modules/strings (Makefile.am): Likewise.
47339         * modules/sys_select (Makefile.am): Likewise.
47340         * modules/sys_socket (Makefile.am): Likewise.
47341         * modules/sys_stat (Makefile.am): Likewise.
47342         * modules/sys_time (Makefile.am): Likewise.
47343         * modules/sysexits (Makefile.am): Likewise.
47344         * modules/time (Makefile.am): Likewise.
47345         * modules/unistd (Makefile.am): Likewise.
47346         * modules/wchar (Makefile.am): Likewise.
47347         * modules/wctype (Makefile.am): Likewise.
47348         Reported by Reuben Thomas <rrt@sc3d.org>.
47349
47350 2008-08-29  Bruno Haible  <bruno@clisp.org>
47351
47352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47353         any more.
47354
47355 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47356
47357         * MODULES.html.sh (Misc): Add bitrotate.
47358
47359         * modules/bitrotate: New file.
47360
47361         * lib/bitrotate.h: New file.
47362
47363         * modules/bitrotate-tests: New file.
47364
47365         * tests/test-bitrotate.c: New file.
47366
47367         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47368         on the bitrotate module.
47369
47370         * lib/arctwo.c: Use new bitrotate module.
47371
47372 2008-08-29  Jim Meyering  <meyering@redhat.com>
47373
47374         bootstrap: merge changes from coreutils
47375         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47376         of copied files.  Remove a kludge, now that this is fixed.
47377         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47378         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47379         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47380
47381 2008-08-29  Bruno Haible  <bruno@clisp.org>
47382
47383         * MODULES.html.sh: Remove --cvs-urls option.
47384
47385 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47386
47387         maint.mk: adjust to file name change
47388         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47389
47390 2008-08-28  Jim Meyering  <meyering@redhat.com>
47391
47392         * modules/getndelim2 (License): Relicense to LGPLv2+.
47393         Approved by Richard Stallman for the version of 1995, and by
47394         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47395
47396 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47397
47398         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47399         dummy if one is not available.  Do not touch them if
47400         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47401         (getc_maybe_unlocked): New.
47402         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47403
47404 2008-08-26  Eric Blake  <ebb9@byu.net>
47405
47406         doc/INSTALL: resync from autoconf
47407         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47408         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47409         moving...
47410         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47411         * INSTALL: Regenerate.
47412         * INSTALL.ISO: New file.
47413         * INSTALL.UTF-8: Likewise.
47414
47415 2008-08-26  Jim Meyering  <meyering@redhat.com>
47416
47417         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47418         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47419         these definitions conditional, so that they may be overridden, too.
47420
47421 2008-08-26  Bruno Haible  <bruno@clisp.org>
47422
47423         Generate INSTALL file variants with prettier quotes.
47424         * doc/Makefile (INSTALL_PRELUDE): New macro.
47425         (INSTALL): Use it.
47426         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47427
47428 2008-08-26  Bruno Haible  <bruno@clisp.org>
47429
47430         Run makeinfo in an English locale.
47431         * doc/Makefile (MAKEINFO): New variable.
47432
47433 2008-08-26  Bruno Haible  <bruno@clisp.org>
47434
47435         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47436         Suggested by Eric Blake.
47437
47438 2008-08-25  Bruno Haible  <bruno@clisp.org>
47439
47440         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47441
47442 2008-08-25  Eric Blake  <ebb9@byu.net>
47443
47444         c-stack: test that stack overflow can be caught
47445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47446         that platform allows handling stack overflow; at least OS/2 EMX
47447         has sigaltstack, but crashes before transferring control to
47448         handler on stack overflow.
47449         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47450         check for HAVE_STACK_OVERFLOW_HANDLING.
47451         Reported by Elbert Pol.
47452
47453 2008-08-25  Bruno Haible  <bruno@clisp.org>
47454
47455         * doc/posix-functions/strftime.texi: Fix description of strftime
47456         module.
47457
47458 2008-08-24  Bruno Haible  <bruno@clisp.org>
47459
47460         * tests/uniwidth/test-uc_width2.c: New file.
47461         * tests/uniwidth/test-uc_width2.sh: New file.
47462         * modules/uniwidth/width-tests (Files): Add the new files.
47463         (TESTS): Add uniwidth/test-uc_width2.sh.
47464         (TESTS_ENVIRONMENT): New variable.
47465         (check_PROGRAMS): Add test-uc_width2.
47466         (test_uc_width2_SOURCES): New variable.
47467
47468         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47469         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47470         not 0x00AB.
47471         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47472
47473 2008-08-22  Eric Blake  <ebb9@byu.net>
47474
47475         test-lock, test-tls: mention why a test is skipped
47476         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47477         skipped.
47478         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47479
47480         count-one-bits: relax license
47481         * modules/count-one-bits (License): Relicense to LGPLv2+.
47482         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47483
47484 2008-08-22  Andreas Schwab  <schwab@suse.de>
47485
47486         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47487         Remove spurious space in assignment.
47488
47489 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47490
47491         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47492         Paul Eggert <eggert@CS.UCLA.EDU>.
47493
47494 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47495
47496         * modules/gettext: Add m4/threadlib.m4.
47497
47498 2008-08-19  Eric Blake  <ebb9@byu.net>
47499
47500         test-c-stack: fix compilation failure on FreeBSD 5.0
47501         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47502         headers before <sys/resource.h>.
47503         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47504         the bug.
47505         Reported by Nelson H. F. Beebe.
47506
47507         strverscmp: migrate from "strverscmp.h" to <string.h>
47508         * modules/string (Makefile.am): Add new hooks.
47509         * modules/strverscmp (Files): Remove strverscmp.h.
47510         (Depends-on): Add string.
47511         (configure.ac): Add indicator.
47512         (Include): Mention new header.
47513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47514         defaults.
47515         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47516         results.
47517         * lib/strverscmp.h: Delete.
47518         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47519         * tests/test-strverscmp.c (includes): Adjust client.
47520         * lib/check-version.c (includes): Likewise.
47521         * NEWS: Document the change.
47522
47523         strverscmp: add unit test
47524         * modules/strverscmp-tests: New file.
47525         * tests/test-strverscmp.c: Likewise.
47526
47527 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47528
47529         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47530         regarding Windows crypto stuff, from Mono.
47531
47532 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47533
47534         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47535         if present, for intel RND.  Return error on failures.
47536
47537 2008-08-18  Ben Pfaff  <blp@gnu.org>
47538
47539         gitlog-to-changelog: give better diagnostic for failed pipe-open
47540         * build-aux/gitlog-to-changelog: Improve error message: suggest
47541         that the version of Git may be too old.
47542
47543 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47544
47545         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47546         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47547
47548 2008-08-18  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47551         pthread_in_use().
47552
47553 2008-08-18  Bruno Haible  <bruno@clisp.org>
47554
47555         * lib/glthread/threadlib.c: Include <pthread.h>.
47556
47557 2008-08-18  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47560         glthread_recursive_lock_* macros.
47561         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47562         Fix syntax error.
47563
47564 2008-08-18  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/glthread/thread.c: Avoid forcing a context switch right after
47567         thread creation.
47568
47569 2008-08-17  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47572         * lib/glthread/thread.h: Provide Win32 specific implementation.
47573         * modules/thread (Files): Add lib/glthread/thread.c.
47574         (Depends-on): Add lock.
47575         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47576
47577 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47578
47579         New module 'yield'.
47580         * modules/yield: New file.
47581         * lib/glthread/yield.h: New file.
47582         * m4/yield.m4: New file.
47583         * MODULES.html.sh (Multithreading): Add yield.
47584
47585 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47586
47587         New module 'thread'.
47588         * modules/thread: New file.
47589         * lib/glthread/thread.h: New file.
47590         * m4/thread.m4: New file.
47591         * MODULES.html.sh (Multithreading): Add thread.
47592
47593 2008-08-17  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/glthread/lock.h: Include <stdlib.h> always.
47596         * lib/glthread/tls.h: Likewise.
47597         * lib/glthread/cond.h: Likewise.
47598
47599 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47600
47601         New module 'cond'.
47602         * modules/cond: New file.
47603         * lib/glthread/cond.h: New file.
47604         * lib/glthread/cond.c: New file.
47605         * m4/cond.m4: New file.
47606         * MODULES.html.sh (Multithreading): Add cond.
47607
47608 2008-08-16  Eric Blake  <ebb9@byu.net>
47609
47610         c-stack: fix regression on Irix 5.3 from 2008-06-21
47611         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47612         sa_sigaction...
47613         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47614         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47616         * modules/signal (Makefile.am): Use the value.
47617         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47618         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47619         * doc/posix-headers/signal.texi (signal.h): Document this
47620         portability issue.
47621         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47622         Reported by Tom G. Christensen.
47623
47624 2008-08-17  Bruno Haible  <bruno@clisp.org>
47625
47626         New module 'threadlib'.
47627         * modules/threadlib: New file.
47628         * lib/glthread/threadlib.c: New file, extracted from
47629         lib/glthread/lock.c.
47630         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47631         functions.
47632         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47633         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47634         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47635         macros.
47636         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47637         (gl_DISABLE_THREADS): Remove macro.
47638         * modules/lock (Files): Remove build-aux/config.rpath.
47639         (Depends-on): Remove havelib. Add threadlib.
47640         (configure.ac-early): Remove section.
47641         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47642         * modules/tls (Depends-on): Remove lock. Add threadlib.
47643         (Link): New section, copied from threadlib.
47644         * MODULES.html.sh (Multithreading): Add threadlib.
47645
47646 2008-08-14  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47649         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47650         glthread_rwlock_unlock, glthread_rwlock_destroy,
47651         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47652         glthread_recursive_lock_destroy): Define as macros always.
47653         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47654         glthread_lock_lock.
47655         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47656         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47657         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47658         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47659         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47660         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47661         (glthread_recursive_lock_lock_func): Renamed from
47662         glthread_recursive_lock_lock.
47663         (glthread_recursive_lock_unlock_func): Renamed from
47664         glthread_recursive_lock_unlock.
47665         (glthread_recursive_lock_destroy_func): Renamed from
47666         glthread_recursive_lock_destroy.
47667
47668 2008-08-14  Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/glthread/lock.h: Renamed from lib/lock.h.
47671         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47672         * lib/glthread/tls.h: Renamed from lib/tls.h.
47673         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47674         * lib/fstrcmp.c: Update includes.
47675         * lib/strsignal.c: Update includes.
47676         * modules/lock (Files, Makefile.am): Update.
47677         (Include): Change to "glthread/lock.h".
47678         * modules/tls (Files, Makefile.am): Update.
47679         (Include): Change to "glthread/tls.h".
47680         * tests/test-lock.c: Update includes.
47681         * tests/test-tls.c: Update includes.
47682         * NEWS: Mention the renamed header files.
47683
47684 2008-08-11  Jim Meyering  <meyering@redhat.com>
47685
47686         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47687
47688 2008-08-11  Eric Blake  <ebb9@byu.net>
47689
47690         test-c-stack: avoid C99-ism
47691         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47692         before statement.
47693         Reported by Alain Guibert.
47694
47695 2008-08-10  Jim Meyering  <meyering@redhat.com>
47696
47697         ensure that return value of uinttostr et al are not ignored
47698         * lib/inttostr.h (__GNUC_PREREQ): Define.
47699         (__attribute_warn_unused_result__): Define.
47700         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47701
47702 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47703
47704         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47705         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47706
47707 2008-08-07  Jim Meyering  <meyering@redhat.com>
47708
47709         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47710
47711         * modules/mkstemp (License): Relicense under LGPLv2+.
47712         * modules/tempname (License): Likewise.
47713
47714 2008-08-06  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/poll.c (poll): Further micro-optimization.
47717
47718 2008-08-06  Jim Meyering  <meyering@redhat.com>
47719
47720         inet_pton.c: use locale-independent tolower
47721         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47722         (inet_pton6): Use c_tolower rather than tolower.
47723         * modules/inet_pton (Depends-on): Add c-ctype.
47724
47725 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47726
47727         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47728         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47729
47730 2008-08-06  Jim Meyering  <meyering@redhat.com>
47731
47732         * modules/inet_pton (License): Relicense under LGPLv2+.
47733
47734 2008-08-03  Bruno Haible  <bruno@clisp.org>
47735
47736         Additional non-aborting API for lock and tls.
47737         * lib/lock.h: Include <errno.h>.
47738         (glthread_lock_init): New macro/function.
47739         (gl_lock_init): Define as wrapper around glthread_lock_init.
47740         (glthread_lock_lock): New macro/function.
47741         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47742         (glthread_lock_unlock): New macro/function.
47743         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47744         (glthread_lock_destroy): New macro/function.
47745         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47746         (glthread_rwlock_init): New macro/function.
47747         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47748         (glthread_rwlock_rdlock): New macro/function.
47749         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47750         (glthread_rwlock_wrlock): New macro/function.
47751         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47752         (glthread_rwlock_unlock): New macro/function.
47753         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47754         (glthread_rwlock_destroy): New macro/function.
47755         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47756         (glthread_recursive_lock_init): New macro/function.
47757         (gl_recursive_lock_init): Define as wrapper around
47758         glthread_recursive_lock_init.
47759         (glthread_recursive_lock_lock): New macro/function.
47760         (gl_recursive_lock_lock): Define as wrapper around
47761         glthread_recursive_lock_lock.
47762         (glthread_recursive_lock_unlock): New macro/function.
47763         (gl_recursive_lock_unlock): Define as wrapper around
47764         glthread_recursive_lock_unlock.
47765         (glthread_recursive_lock_destroy): New macro/function.
47766         (gl_recursive_lock_destroy): Define as wrapper around
47767         glthread_recursive_lock_destroy.
47768         (glthread_once): New macro/function.
47769         (gl_once): Define as wrapper around glthread_once.
47770         Update function declarations.
47771         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47772         glthread_rwlock_init. Return error code.
47773         (glthread_rwlock_rdlock_multithreaded): Renamed from
47774         glthread_rwlock_rdlock. Return error code.
47775         (glthread_rwlock_wrlock_multithreaded): Renamed from
47776         glthread_rwlock_wrlock. Return error code.
47777         (glthread_rwlock_unlock_multithreaded): Renamed from
47778         glthread_rwlock_unlock. Return error code.
47779         (glthread_rwlock_destroy_multithreaded): Renamed from
47780         glthread_rwlock_destroy. Return error code.
47781         (glthread_recursive_lock_init_multithreaded): Renamed from
47782         glthread_recursive_lock_init. Return error code.
47783         (glthread_recursive_lock_lock_multithreaded): Renamed from
47784         glthread_recursive_lock_lock. Return error code.
47785         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47786         glthread_recursive_lock_unlock. Return error code.
47787         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47788         glthread_recursive_lock_destroy. Return error code.
47789         (glthread_once_call): Make static.
47790         (glthread_once_multithreaded): Renamed from glthread_once.
47791         * lib/tls.h: Include <errno.h>.
47792         (glthread_tls_key_init): New macro/function.
47793         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47794         (glthread_tls_set): New macro/function.
47795         (gl_tls_set): Define as wrapper around glthread_tls_set.
47796         (glthread_tls_key_destroy): New macro/function.
47797         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47798         Update function declarations.
47799         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47800         glthread_tls_get.
47801         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47802
47803 2008-08-04  Eric Blake  <ebb9@byu.net>
47804
47805         gnumakefile: use space, not TAB, outside of targets
47806         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47807
47808 2008-08-02  Jim Meyering  <meyering@redhat.com>
47809
47810         getdate.y: avoid locale-dependent date parsing failure
47811         In Turkish locales, getdate would fail to recognize keywords
47812         containing a lowercase "i".  The solution is not to rely on
47813         locale-sensitive case-conversion.
47814         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47815         (lookup_word): Use c_toupper in place of toupper.
47816         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47817         Reported by Vefa Bicakci <bicave@superonline.com> in
47818         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47819         * modules/getdate (Depends-on): Add c-ctype.
47820
47821 2008-08-02  Bruno Haible  <bruno@clisp.org>
47822
47823         * gnulib-tool (func_import): When updating or creating a .gitignore
47824         file, prepend each added line with a slash, and ignore leading slashes
47825         from the existing lines.
47826         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47827
47828 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47829
47830         Portability fix for GNU make 3.79.1.
47831         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47832         versions do not understand.
47833
47834 2008-08-01  Bruno Haible  <bruno@clisp.org>
47835
47836         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47837         * tests/test-isnanf.h (zero): New variable.
47838         (main): Avoid literal -0.0f.
47839         * tests/test-isnand.h (zero): New variable.
47840         (main): Avoid literal -0.0.
47841         * tests/test-isnanl.h (zero): New variable.
47842         (main): Avoid literal -0.0L.
47843         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47844         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47845         -0.0, -0.0L.
47846         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47847         (test_signbitd): Avoid literal -0.0.
47848         (test_signbitl): Avoid literal -0.0L.
47849         * tests/test-ceilf1.c (zero): New variable.
47850         (main): Avoid literal -0.0f.
47851         * tests/test-ceill.c (zero): New variable.
47852         (main): Avoid literal -0.0L.
47853         * tests/test-floorf1.c (zero): New variable.
47854         (main): Avoid literal -0.0f.
47855         * tests/test-floorl.c (zero): New variable.
47856         (main): Avoid literal -0.0L.
47857         * tests/test-roundf1.c (zero): New variable.
47858         (main): Avoid literal -0.0f.
47859         * tests/test-round1.c (zero): New variable.
47860         (main): Avoid literal -0.0.
47861         * tests/test-roundl.c (zero): New variable.
47862         (main): Avoid literal -0.0L.
47863         * tests/test-truncf1.c (zero): New variable.
47864         (main): Avoid literal -0.0f.
47865         * tests/test-trunc1.c (zero): New variable.
47866         (main): Avoid literal -0.0.
47867         * tests/test-truncl.c (zero): New variable.
47868         (main): Avoid literal -0.0L.
47869         * tests/test-frexp.c (zero): New variable.
47870         (main): Avoid literal -0.0.
47871         * tests/test-frexpl.c (zero): New variable.
47872         (main): Avoid literal -0.0L.
47873         * tests/test-ldexpl.c (zero): New variable.
47874         (main): Avoid literal -0.0L.
47875         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47876         (zerod, zerol): New variables.
47877         (test_function): Avoid literals -0.0, -0.0L.
47878         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47879         (zerod, zerol): New variables.
47880         (test_function): Avoid literals -0.0, -0.0L.
47881         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47882         (zerod, zerol): New variables.
47883         (test_function): Avoid literals -0.0, -0.0L.
47884         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47885         (zerod, zerol): New variables.
47886         (test_function): Avoid literals -0.0, -0.0L.
47887         * tests/test-strtod.c (zero): New variable.
47888         (main): Avoid literal -0.0.
47889         Reported by Jonathan C. Patschke <jp@centtech.com>.
47890
47891 2008-07-31  Jim Meyering  <meyering@redhat.com>
47892
47893         sha256.h: correct definition of SHA224_DIGEST_SIZE
47894         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47895         Reported by Paulie Pena IV <paulie4@gmail.com>.
47896         Define as 224 / 8, rather than as a literal.
47897         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47898         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47899         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47900
47901 2008-07-31  Bruno Haible  <bruno@clisp.org>
47902
47903         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47904         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47905         Reported by Jonathan Patschke <jp@centtech.com>.
47906
47907 2008-07-31  Bruno Haible  <bruno@clisp.org>
47908
47909         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47910         Reported by Paolo Bonzini <bonzini@gnu.org>.
47911
47912 2008-07-30  Eric Blake  <ebb9@byu.net>
47913
47914         test-strtod: allow compilation without -lm
47915         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47916         Reported by Dennis Clarke <blastwave@gmail.com>.
47917
47918 2008-07-28  Jim Meyering  <meyering@redhat.com>
47919
47920         bootstrap: work also when there are no .po files in po/
47921         * build-aux/bootstrap (update_po_files): Complete the change
47922         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47923
47924 2008-07-27  Jim Meyering  <meyering@redhat.com>
47925
47926         * users.txt: Add zile.
47927
47928 2008-07-26  Ben Pfaff  <blp@gnu.org>
47929
47930         Add missing dependencies on new m4/exponent[fdl].m4 files.
47931         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47932         * modules/isnand-nolibm: Add m4/exponentd.m4.
47933         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47934         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47935         m4/isnan[fdl].m4, because the macros actually used moved.
47936         Reported by Jim Meyering.
47937
47938 2008-07-14  Ben Pfaff  <blp@gnu.org>
47939
47940         Add isinf module.
47941         * lib/isinf.c: New file.
47942         * lib/math.in.h: Define isinf macro if we have decided to replace
47943         it.
47944         * m4/isinf.m4: New file.
47945         * m4/math_h.m4: Initialize and substitute variables for isinf
47946         module.
47947         * modules/isinf: New file.
47948         * modules/isinf-tests: New file.
47949         * modules/math: Add substitutions for new module.
47950         * tests/test-isinf.c: New file.
47951         * doc/posix-functions/isinf.texi: Mention new module.
47952         * MODULES.html.sh: Mention new module.
47953
47954 2008-07-14  Ben Pfaff  <blp@gnu.org>
47955
47956         Factor out some macros for use by additional modules.
47957         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47958         exponentf.m4.
47959         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47960         exponentd.m4.
47961         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47962         file exponentl.m4.
47963         * m4/exponentf.m4: New file.
47964         * m4/exponentd.m4: New file.
47965         * m4/exponentl.m4: New file.
47966         * modules/isnanf: Use new file m4/exponentf.m4.
47967         * modules/isnand: Use new file m4/exponentd.m4.
47968         * modules/isnanl: Use new file m4/exponentl.m4.
47969
47970 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47971
47972         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47973         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47974         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47975         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47976
47977         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47978         readlink on platforms without PATH_MAX.
47979
47980 2008-07-21  Eric Blake  <ebb9@byu.net>
47981
47982         Warn, not fail, on stale version.
47983         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47984
47985         Don't allow installation with stale devel version number.
47986         * top/GNUmakefile (_is-install-target): New macro.
47987         (_curr-ver): Forbid installation with stale version number.
47988
47989 2008-07-20  Bruno Haible  <bruno@clisp.org>
47990
47991         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47992         TESTS_ENVIRONMENT.
47993         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47994
47995 2008-07-20  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/c-stack.h (c_stack_action): Add documentation.
47998         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47999
48000 2008-07-20  Bruno Haible  <bruno@clisp.org>
48001
48002         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48003         * modules/readlink (License): Likewise.
48004
48005 2008-07-17  Eric Blake  <ebb9@byu.net>
48006
48007         * modules/c-stack (Link): Fix typo.
48008
48009         Make c-stack use libsigsegv, when available.
48010         * modules/c-stack (Depends-on): Add libsigsegv.
48011         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48012         needed.
48013         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48014         (segv_handler, overflow_handler, c_stack_action)
48015         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48016         implementation when libsigsegv is available, but only when using
48017         the library is necessary.
48018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48019         comment, explaining why XSI check fails on Linux.
48020         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48021         * tests/test-c-stack2.sh: Tweak skip message.
48022         * NEWS: Document new link-time requirements.
48023
48024 2008-07-16  Eric Blake  <ebb9@byu.net>
48025
48026         c-stack: Expose false positives when not using libsigsegv.
48027         * modules/c-stack-tests (Files): Expand test.
48028         * tests/test-c-stack.c (main): Add means to conditionally trigger
48029         non-overflow SIGSEGV.
48030         * tests/test-c-stack2.sh: New file.
48031
48032 2008-07-14  Bruno Haible  <bruno@clisp.org>
48033
48034         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48035         Reported by Eric Blake.
48036
48037 2008-07-14  Sam Steingold  <sds@gnu.org>
48038             Bruno Haible  <bruno@clisp.org>
48039
48040         New module libsigsegv.
48041         * modules/libsigsegv: New file.
48042         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48043         modifications.
48044         * MODULES.html.sh (Signal handling): New section.
48045
48046 2008-07-14  Bruno Haible  <bruno@clisp.org>
48047
48048         * modules/unictype/ctype-* (Description): Add the word "function".
48049         Improves the resulting doc in MODULES.html.
48050
48051 2008-07-12  Ben Pfaff  <blp@gnu.org>
48052
48053         Add longlong module.
48054         * modules/longlong: New file.
48055
48056 2008-07-12  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48059         to empty.
48060
48061 2008-07-10  Ben Pfaff  <blp@gnu.org>
48062
48063         Add isnan module.
48064         * doc/posix-functions/isnan.texi: Mention new module.
48065         * lib/math.in.h: Define isnan macro if we have decided to replace
48066         it.
48067         * m4/isnan.m4: New file.
48068         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48069         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48070         also.
48071         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48072         redundancy.
48073         * m4/math_h.m4: Initialize and substitute variables for isnan
48074         module.
48075         * modules/isnan: New file.
48076         * modules/isnan-tests: New file.
48077         * modules/math: Add substitutions for new module.
48078         * tests/test-isnan.c: New file.
48079         * MODULES.html.sh: Mention new module.
48080
48081 2008-07-10  Ben Pfaff  <blp@gnu.org>
48082
48083         Add isnanf module.
48084         * lib/isnanf.m4: New file.
48085         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48086         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48087         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48088         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48089         * modules/isnanf: New file.
48090         * modules/isnanf-tests: New file.
48091         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48092         files.
48093         * tests/test-isnanf-nolibm.c: factored most of its contents into
48094         new file tests/test-isnanf.h.
48095         * tests/test-isnanf.h: New file.
48096         * tests/test-isnanf.c: New file.
48097         * MODULES.html.sh: Mention new module.
48098         * doc/glibc-functions/isnanf.texi: Mention new module.
48099
48100 2008-07-10  Ben Pfaff  <blp@gnu.org>
48101
48102         Add isnand module.
48103         * lib/isnand.h: New file.
48104         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48105         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48106         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48107         functionality also.
48108         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48109         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48110         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48111         * modules/isnand: New file.
48112         * modules/isnand-tests: New file.
48113         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48114         files.
48115         * tests/test-isnand-nolibm.c: factored most of its contents into
48116         new file tests/test-isnand.h.
48117         * tests/test-isnand.h: New file.
48118         * tests/test-isnand.c: New file.
48119         * MODULES.html.sh: Mention new module.
48120
48121 2008-07-10  Ben Pfaff  <blp@gnu.org>
48122
48123         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48124         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48125         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48126         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48127         * modules/isnanf-nolibm: Update references to renamed files.
48128         * modules/isnand-nolibm: Likewise.
48129         * modules/isnanf-nolibm-tests: Likewise.
48130         * modules/isnand-nolibm-tests: Likewise.
48131         * lib/frexp.c: Likewise.
48132         * lib/isfinite.c: Likewise.
48133         * lib/signbitd.c: Likewise.
48134         * lib/signbitf.c: Likewise.
48135         * lib/vasnprintf.c: Likewise.
48136         * tests/test-ceilf1.c: Likewise.
48137         * tests/test-ceilf2.c: Likewise.
48138         * tests/test-floorf1.c: Likewise.
48139         * tests/test-floorf2.c: Likewise.
48140         * tests/test-frexp.c: Likewise.
48141         * tests/test-round1.c: Likewise.
48142         * tests/test-round2.c: Likewise.
48143         * tests/test-roundf1.c: Likewise.
48144         * tests/test-strtod.c: Likewise.
48145         * tests/test-trunc1.c: Likewise.
48146         * tests/test-trunc2.c: Likewise.
48147         * tests/test-truncf1.c: Likewise.
48148         * tests/test-truncf2.c: Likewise.
48149         * NEWS: Mention the renamed header files.
48150
48151 2008-07-11  Jim Meyering  <meyering@redhat.com>
48152
48153         vc-list-files: make the last-resort awk code more portable
48154         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48155         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48156         does not support it.
48157
48158 2008-07-10  Eric Blake  <ebb9@byu.net>
48159
48160         Work with tar's bootstrap.
48161         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48162         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48163         an m4 comment.
48164
48165 2008-07-09  Jim Meyering  <meyering@redhat.com>
48166
48167         posix-shell.m4: fix typo that made this test malfunction
48168         * m4/posix-shell.m4: Remove capitalization in variable name.
48169
48170 2008-07-08  Bruno Haible  <bruno@clisp.org>
48171
48172         * m4/onceonly.m4: Update comments.
48173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48174
48175 2008-07-04  Jim Meyering  <meyering@redhat.com>
48176
48177         * users.txt: Add vc-dwim.
48178         (bison, coreutils): Use the gitweb URL.
48179
48180 2008-07-03  Jim Meyering  <meyering@redhat.com>
48181
48182         * users.txt: Add libffcall.  From Sam Steingold.
48183
48184 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48185
48186         getdate.y: do not ignore TZ with relative day, month or year offset
48187         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48188         relative-date-handling, since otherwise, the latter would clobber the
48189         sole output (an updated Start value) of the tz-handling block.
48190         * tests/test-getdate.c: Tests for the fix
48191
48192 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48193
48194         Recognize 'foo_LIBRARIES += libgnu.a'.
48195         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48196         makefile snippet has already specified an installation location,
48197         also using '+='.
48198
48199 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48200
48201         getdate.y: factor out common actions
48202         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48203         Use them in place of open-coded actions.
48204
48205 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48206
48207         Add self-test for getdate module.
48208         * modules/getdate-tests: New file.
48209         * tests/test-getdate.c: New file.
48210
48211 2008-06-29  Bruno Haible  <bruno@clisp.org>
48212
48213         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48214         .gitignore.
48215         Reported by Sylvain Beucler <beuc@beuc.net>.
48216
48217 2008-06-29  Bruno Haible  <bruno@clisp.org>
48218
48219         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48220         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48221
48222 2008-06-29  Bruno Haible  <bruno@clisp.org>
48223
48224         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48225         EXTRA_DIST.
48226         Reported by Sylvain Beucler <beuc@beuc.net>.
48227
48228 2008-06-26  Jim Meyering  <meyering@redhat.com>
48229
48230         make several modules depend on the "open" module
48231         This provides slightly increased consistency when opening-for-write
48232         the name of a non-directory spelled with a trailing slash.
48233         * modules/chdir-safer: Likewise.
48234         * modules/chown: Likewise.
48235         * modules/clean-temp: Likewise.
48236         * modules/copy-file: Likewise.
48237         * modules/fchdir: Likewise.
48238         * modules/fcntl-safer: Likewise.
48239         * modules/pipe: Likewise.
48240         * modules/utime: Likewise.
48241         Prompted by Eric Blake and Bruno Haible.
48242
48243 2008-06-24  Andreas Schwab  <schwab@suse.de>
48244
48245         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48246         literals can be used as initializers for global variables.
48247
48248 2008-06-23  Eric Blake  <ebb9@byu.net>
48249
48250         Make gnulib-cache.m4 easier to diff.
48251         * gnulib-tool (func_import): Allow newlines when reading cached
48252         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48253
48254 2008-06-23  Bruno Haible  <bruno@clisp.org>
48255
48256         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48257         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48258         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48259         m4/signalblocking.m4.
48260         (gl_PREREQ_SIGACTION): Don't invoke it.
48261         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48262         gl_PREREQ_SIG_HANDLER_H.
48263         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48264         Don't check for sigaction here.
48265
48266 2008-06-23  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48269         (install_handlers): Don't set the SA_RESETHAND flag.
48270
48271 2008-06-23  Bruno Haible  <bruno@clisp.org>
48272
48273         * m4/sigaction.m4: Comment fixes.
48274         * lib/signal.in.h: Likewise.
48275
48276 2008-06-23  Eric Blake  <ebb9@byu.net>
48277
48278         Fix typo.
48279         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48280
48281         Avoid SA_ namespace.
48282         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48283         Reported by Ralf Wildenhues.
48284
48285         Avoid test failure due to SA_RESTORER.
48286         * tests/test-sigaction.c (SA_MASK): New macro.
48287         (main): Avoid failing due to extension flags being set.
48288         Reported by Jim Meyering.
48289
48290         Revert use of sig-handler.h in sigprocmask.c.
48291         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48292         it requires the existence of struct sigaction.
48293         * lib/sigprocmask.c (handler_t): Restore typedef.
48294         (rpl_signal, old_handlers): Use local type.
48295
48296 2008-06-22  Bruno Haible  <bruno@clisp.org>
48297
48298         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48299         conditionally.
48300         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48301
48302 2008-06-22  Bruno Haible  <bruno@clisp.org>
48303
48304         * doc/posix-functions/siginterrupt.texi: Move note.
48305
48306         * lib/signal.in.h (SA_RESTART): New macro.
48307         * lib/sigaction.c: Update comment.
48308
48309         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48310
48311         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48312         (gl_PREREQ_SIGPROCMASK): Invoke it.
48313         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48314
48315         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48316
48317         * lib/sigprocmask.c: Update a comment.
48318
48319 2008-06-21  Eric Blake  <ebb9@byu.net>
48320
48321         Use sigaction module rather than signal().
48322         * modules/c-stack (Depends-on): Add sigaction.
48323         * modules/fatal-signal (Depends-on): Likewise.
48324         * modules/nanosleep (Depends-on): Likewise.
48325         * modules/sigprocmask (Files): Add sig-handler.h.
48326         * modules/sigaction (Files): Likewise.
48327         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48328         Eggert.
48329         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48330         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48331         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48332         (init_fatal_signals): Likewise.
48333         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48334         (siginterrupt): Delete fallback.
48335         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48336         instead.
48337         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48338         siginterrupt.
48339
48340         New module sigaction, for mingw.
48341         * modules/sigaction: New module...
48342         * modules/sigaction-tests: ...and its test.
48343         * m4/sigaction.m4: New file.
48344         * lib/sigaction.c: Likewise.
48345         * tests/test-sigaction.c: Likewise.
48346         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48347         * modules/signal (Makefile.am): Likewise.
48348         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48349         needed.
48350         * doc/posix-headers/signal.texi (signal.h): Mention provided
48351         types.
48352         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48353         that sigaction is preferable.
48354         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48355         module.
48356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48357         sigaction.
48358
48359         Improve robustness of sigprocmask by overriding signal.
48360         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48361         is in use.
48362         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48363         (SIGKILL, SIGSTOP): Provide fallbacks.
48364         (rpl_signal): Implement.
48365         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48366         signal can be called inside handlers.
48367
48368         Fix nanosleep module on mingw.
48369         * modules/nanosleep (Depends-on): Add sys_select.
48370         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48371
48372         Fix licensing of sigprocmask.
48373         * modules/raise (License): Relicense as LGPL.
48374
48375 2008-06-21  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48378         result if it contains question marks.
48379         Reported by Michael Geng <linux@michaelgeng.de>.
48380
48381 2008-06-19  Bruno Haible  <bruno@clisp.org>
48382
48383         Fix CVS-ism.
48384         * doc/gnulib.texi: Include updated-stamp.texi.
48385         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48386         (updated-stamp.texi): New rule.
48387         (gnulib.info): Depend on it.
48388         * doc/.gitignore: Add updated-stamp.texi.
48389         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48390
48391 2008-06-19  Bruno Haible  <bruno@clisp.org>
48392
48393         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48395
48396 2008-06-19  Eric Blake  <ebb9@byu.net>
48397
48398         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48399         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48400         Reported by Stepan Kasal.
48401
48402 2008-06-18  Bruno Haible  <bruno@clisp.org>
48403
48404         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48405         Reported by Eric Blake.
48406
48407 2008-06-18  Eric Blake  <ebb9@byu.net>
48408
48409         Work around cygwin 1.5.25 strsignal bug.
48410         * tests/test-strsignal.c: Allow for const char *.
48411         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48412
48413 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48414
48415         * users.txt: Update URL to article and add author/date
48416         information.
48417
48418 2008-06-17  Bruno Haible  <bruno@clisp.org>
48419
48420         New macro gl_DISABLE_THREADS.
48421         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48422         if the user did not pass --enable-threads or --disable-threads option.
48423         (gl_DISABLE_THREADS): New macro.
48424         Reported by Eric Blake <ebb9@byu.net>.
48425
48426 2008-06-17  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48429         when the macro ignores it.
48430         Based on a patch by Eric Blake <ebb9@byu.net>.
48431
48432 2008-06-17  Bruno Haible  <bruno@clisp.org>
48433
48434         * modules/tls (License): Change to LGPLv2+.
48435         Reported by Eric Blake.
48436
48437 2008-06-17  Eric Blake  <ebb9@byu.net>
48438
48439         Simplify c-stack prerequisites.
48440         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48442         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48443         check.
48444         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48445         <sys/resource.h>.
48446
48447         Move c-stack test into testsuite.
48448         * modules/c-stack-tests: New file.
48449         * lib/c-stack.c [DEBUG]: Move test program...
48450         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48451         fail test if sigaltstack is lacking.
48452         * tests/test-c-stack.sh: New driver file.
48453
48454 2008-06-16  Eric Blake  <ebb9@byu.net>
48455
48456         Use raise module consistently.
48457         * modules/fatal-signal (Depends-on): Add raise.
48458         * modules/sigprocmask (Depends-on): Likewise.
48459         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48460         * lib/sigprocmask.c (sigprocmask): Likewise.
48461         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48462         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48463
48464         Fix compliance bug in sigpending.
48465         * lib/sigprocmask.c (sigpending): Return pending array via
48466         parameter, not return value.
48467
48468 2008-06-14  Eric Blake  <ebb9@byu.net>
48469
48470         Improve obstack-printf test code.
48471         * tests/test-obstack-printf.c (test_function): Fix comment, and
48472         simplify usage of obstack_* in macros.  Add a test for coverage.
48473         Reported by Bruno Haible.
48474
48475 2008-06-14  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48478         array size as a constant, not as a const variable.
48479         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48480         AC_USE_SYSTEM_EXTENSIONS.
48481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48482         Test whether the obstack_printf function actually exists.
48483         * modules/obstack-printf (Depends-on): Add extensions.
48484         (Include): Remove obstack.h.
48485         * modules/obstack-printf-posix (Depends-on): Add extensions.
48486         (Include): Remove obstack.h.
48487
48488 2008-06-13  Eric Blake  <ebb9@byu.net>
48489
48490         Add obstack-printf and obstack-printf-posix modules.
48491         * modules/obstack-printf: New file.
48492         * modules/obstack-printf-posix: Likewise.
48493         * MODULES.html.sh (Misc): Mention them.
48494         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48495         Likewise.
48496         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48497         Likewise.
48498         * modules/stdio (Makefile.am): Accomodate new modules.
48499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48500         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48501         Declare.
48502         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48503         functions.
48504         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48505         (gl_REPLACE_OBSTACK_PRINTF): New macros
48506         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48507         * tests/test-obstack-printf.c: New file.
48508         * modules/obstack-printf-tests: Likewise.
48509         * modules/obstack-printf-posix-tests: Likewise.
48510
48511 2008-06-11  Bruno Haible  <bruno@clisp.org>
48512
48513         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48514         * lib/open.c: Include errno.h.
48515         (open): Fail when attempting to write to a file that has a trailing
48516         slash.
48517         * tests/test-open.c (main): Test against trailing slash bug.
48518         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48519
48520 2008-06-10  Bruno Haible  <bruno@clisp.org>
48521
48522         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48523         for $? to work inside the trap command, with various /bin/sh-s.
48524         * tests/test-vc-list-files-cvs.sh: Likewise.
48525
48526 2008-06-10  Bruno Haible  <bruno@clisp.org>
48527
48528         * lib/acl-internal.h: Don't include gettext.h here.
48529         * lib/set-mode-acl.c: Include gettext.h here.
48530         * lib/copy-acl.c: Likewise.
48531
48532 2008-06-10  Bruno Haible  <bruno@clisp.org>
48533
48534         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48535         * lib/wait-process.c (wait_subprocess): Likewise.
48536         * lib/execute.h (execute): Add termsigp argument.
48537         * lib/execute.c (execute): Likewise.
48538         * lib/csharpcomp.c (compile_csharp_using_pnet,
48539         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48540         * lib/csharpexec.c (execute_csharp_using_pnet,
48541         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48542         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48543         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48544         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48545         is_jikes_present): Update.
48546         * lib/javaexec.c (execute_java_class): Update.
48547         * lib/javaversion.c (execute_and_read_line): Update.
48548         * NEWS: Document the changes.
48549         Reported by Eric Blake.
48550
48551 2008-06-10  Eric Blake  <ebb9@byu.net>
48552
48553         Add missing include.
48554         * tests/test-strstr.c (includes): Add <signal.h>.
48555         * tests/test-strcasestr.c (includes): Likewise.
48556         * tests/test-memmem.c (includes): Likewise.
48557
48558 2008-06-10  Bruno Haible  <bruno@clisp.org>
48559
48560         * lib/wait-process.c (wait_subprocess): Add an assertion.
48561
48562 2008-06-10  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48565
48566 2008-06-10  Bruno Haible  <bruno@clisp.org>
48567
48568         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48569         using alarm().
48570         * tests/test-strcasestr.c (main): Likewise.
48571         * tests/test-strstr.c (main): Likewise.
48572
48573 2008-06-09  Bruno Haible  <bruno@clisp.org>
48574
48575         Work around the Solaris 10 ACE ACLs ABI change.
48576         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48577         declare if ACL_NO_TRIVIAL is present.
48578         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48579         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48580         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48581         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48582         define if ACL_NO_TRIVIAL is present.
48583         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48584         and use the current ABI.
48585         (file_has_acl): Use same #if condition as elsewhere.
48586         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48587         in use, and use the current ABI.
48588         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48589         Reported by Jim Meyering.
48590
48591 2008-06-09  Eric Blake  <ebb9@byu.net>
48592
48593         Work around environments that (stupidly) ignore SIGALRM.
48594         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48595         before using alarm().
48596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48598         Reported by Ian Beckwith <ianb@erislabs.net>.
48599
48600         Produce autobuild blurb earlier in log.
48601         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48602
48603 2008-06-09  Jim Meyering  <meyering@redhat.com>
48604         and Ondřej Vašík  <ovasik@redhat.com>
48605
48606         utimens.c: correct kernel bug work-around
48607         Ondřej Vašík found that the invalid return value of 280 indicates
48608         failure, not success, and the kernel bug we're trying to work
48609         around affects not just the utimensat call, but also the fallback
48610         futimens call.
48611         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48612         not success.
48613         [HAVE_FUTIMENS]: Use the same work-around, here.
48614
48615 2008-06-09  Jim Meyering  <meyering@redhat.com>
48616
48617         add more guards around definition of ACE_-related code
48618         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48619         ALLOW and ACE_OWNER are also defined.
48620
48621 2008-06-08  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/acl-internal.h: Add me as co-author.
48624         * lib/file-has-acl.c: Likewise.
48625         * lib/set-mode-acl.c: Likewise.
48626         * lib/copy-acl.c: Likewise.
48627
48628 2008-06-08  Bruno Haible  <bruno@clisp.org>
48629
48630         Add support for AIX ACLs.
48631         * lib/acl-internal.h (acl_nontrivial): New declaration.
48632         * lib/file-has-acl.c (acl_nontrivial): New function.
48633         (file_has_acl): Add implementation using AIX 4 ACL API.
48634         * lib/set-mode-acl.c (qset_acl): Likewise.
48635         * lib/copy-acl.c (qcopy_acl): Likewise.
48636
48637 2008-06-08  Bruno Haible  <bruno@clisp.org>
48638
48639         Add support for HP-UX ACLs.
48640         * lib/acl-internal.h (acl_nontrivial): New declaration.
48641         * lib/file-has-acl.c (acl_nontrivial): New function.
48642         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48643         * lib/set-mode-acl.c (qset_acl): Likewise.
48644         * lib/copy-acl.c (qcopy_acl): Likewise.
48645
48646 2008-06-08  Bruno Haible  <bruno@clisp.org>
48647
48648         Add support for Cygwin ACLs.
48649         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48650         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48651         the chmod_or_fchmod call.
48652         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48653
48654 2008-06-08  Bruno Haible  <bruno@clisp.org>
48655
48656         Fix bug with setuid modes in Solaris 10+ code.
48657         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48658         succeeded, when the mode contains some special bits.
48659
48660 2008-06-08  Bruno Haible  <bruno@clisp.org>
48661
48662         Add support for Solaris 7..10 ACLs.
48663         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48664         declarations.
48665         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48666         functions.
48667         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48668         * lib/set-mode-acl.c (qset_acl): Likewise.
48669         * lib/copy-acl.c (qcopy_acl): Likewise.
48670
48671 2008-06-08  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48674         declaration.
48675         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48676         (acl_access_nontrivial): Remove MacOS X case.
48677         (file_has_acl): Use acl_extended_nontrivial.
48678         * lib/copy-acl.c (qcopy_acl): Likewise.
48679
48680 2008-06-08  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48683
48684 2008-06-08  Jim Meyering  <meyering@redhat.com>
48685
48686         * modules/acl (Maintainer): Add Bruno Haible.
48687
48688 2008-06-07  Bruno Haible  <bruno@clisp.org>
48689
48690         Improve support for Tru64 ACLs.
48691         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48692         ACL on OSF/1.
48693
48694 2008-06-07  Bruno Haible  <bruno@clisp.org>
48695
48696         Add support for MacOS X ACLs.
48697         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48698         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48699         * lib/set-mode-acl.c (qset_acl): Likewise.
48700         * lib/copy-acl.c (qcopy_acl): Likewise.
48701
48702 2008-06-07  Bruno Haible  <bruno@clisp.org>
48703
48704         Fix memory leak introduced on 2008-05-22.
48705         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48706         use.
48707
48708 2008-06-07  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48711         to construct an empty ACL.
48712
48713 2008-06-07  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48716         precisely.
48717         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48718
48719 2008-06-07  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48722         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48723
48724 2008-06-07  Bruno Haible  <bruno@clisp.org>
48725
48726         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48727         regardless of POSIX.
48728         * doc/posix-functions/_longjmp.texi: Likewise.
48729         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48730         SystemV platform in this case.
48731
48732 2008-06-06  Eric Blake  <ebb9@byu.net>
48733
48734         Document abort() bugs.
48735         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48736
48737         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48738         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48739         sigsetjmp.
48740         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48741         siglongjmp, but only as a macro.
48742         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48743         is obsolete.
48744         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48745
48746         Tweak documentation to cover cygwin argz bugs.
48747         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48748         argz bug fix; no code change needed since no cygwin releases
48749         occurred between the last fix and the bug being tested.
48750         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48751         module and recently fixed cygwin bugs.
48752         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48753         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48754         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48755         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48756         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48757         Likewise.
48758         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48759         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48760         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48761         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48762         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48763         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48764         Likewise.
48765
48766         Avoid gcc warning on cygwin.
48767         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48768         !ACL_NO_TRIVIAL]: Avoid unused variable.
48769
48770 2008-06-05  Eric Blake  <ebb9@byu.net>
48771
48772         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48773         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48774         git-version-gen fails to come up with a version.
48775         Reported by Simon Josefsson.
48776
48777 2008-06-05  Jim Meyering  <meyering@redhat.com>
48778             Paul Eggert  <eggert@cs.ucla.edu>
48779
48780         utimens.c: work around a probable Linux kernel bug
48781         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48782         appears to be a kernel bug that causes utimensat to return 280
48783         instead of 0, indicating success.
48784
48785 2008-06-04  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48788         2008-06-01 commit.
48789
48790 2008-06-04  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48793         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48794         (file_has_acl): Use it. Save errno afterwards.
48795         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48796
48797 2008-06-03  Bruno Haible  <bruno@clisp.org>
48798
48799         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48800         draft code. Simplify #ifs.
48801         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48802         Put Solaris code after POSIX-draft code. Fix comments regarding
48803         Solaris 10, HP-UX. Mention Cygwin.
48804         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48805
48806 2008-06-03  Eric Blake  <ebb9@byu.net>
48807
48808         Provide fallback for older kernels.
48809         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48810         Provide runtime fallback if kernel lacks support.
48811         Reported by Mike Frysinger.
48812
48813 2008-06-02  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48816         it exists.
48817
48818 2008-06-02  Bruno Haible  <bruno@clisp.org>
48819
48820         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48821         * lib/copy-acl.c (qcopy_acl): Update comment.
48822
48823 2008-06-02  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48826         like ACL APIs.
48827
48828 2008-06-02  Bruno Haible  <bruno@clisp.org>
48829
48830         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48831         * tests/test-set-mode-acl.sh: Likewise.
48832         * tests/test-copy-acl.sh: Likewise.
48833         * tests/test-copy-file.sh: Likewise.
48834
48835 2008-06-02  Bruno Haible  <bruno@clisp.org>
48836
48837         * tests/test-file-has-acl.sh: Remove unused code.
48838
48839 2008-06-01  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48842         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48843         messages.
48844         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48845
48846 2008-06-01  Bruno Haible  <bruno@clisp.org>
48847
48848         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48849         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48850         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48851         APIs.
48852         * modules/acl-tests (configure.ac): Remove tests now contained in
48853         m4/acl.m4.
48854
48855 2008-06-02  Jim Meyering  <meyering@redhat.com>
48856
48857         announce-gen: use a better key-server host name
48858         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48859         it may be more consistently reliable.  Suggested by Werner Koch
48860         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48861
48862 2008-06-01  Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48865         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48866
48867 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48868
48869         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48870
48871 2008-06-01  Bruno Haible  <bruno@clisp.org>
48872
48873         New ACL tests.
48874         * tests/test-file-has-acl.sh: New file.
48875         * tests/test-file-has-acl.c: New file.
48876         * tests/test-set-mode-acl.sh: New file.
48877         * tests/test-set-mode-acl.c: New file.
48878         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48879         * tests/test-copy-acl.c: New file.
48880         * modules/acl-tests: New file, based on modules/copy-file-tests.
48881         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48882         (Depends-on): Add acl-tests.
48883         (configure.ac): Remove checks.
48884         (Makefile.am): Don't create test-sameacls program here any more.
48885
48886 2008-06-01  Bruno Haible  <bruno@clisp.org>
48887
48888         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48889         * tests/test-sameacls.c: Include progname.h.
48890         (main): Invoke set_program_name. Portability fixes for MacOS X,
48891         Solaris, HP-UX.
48892
48893 2008-06-01  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48896         function.
48897         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48898
48899 2008-06-01  Bruno Haible  <bruno@clisp.org>
48900
48901         * modules/rpmatch (Depends-on): Add strdup.
48902
48903 2008-06-01  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/pipe.c: Include unistd-safer.h.
48906         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48907         * modules/pipe (Depends-on): Add unistd-safer.
48908
48909 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48910
48911         * modules/autobuild (configure.ac): Call AB_INIT.
48912
48913 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48914
48915         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48916         Suggested by Bruno Haible <bruno@clisp.org>.
48917
48918 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48919
48920         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48921         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48922         <bruno@clisp.org>.
48923
48924 2008-05-29  Eric Blake  <ebb9@byu.net>
48925
48926         Prefer new POSIX 200x interfaces over futimesat.
48927         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48928         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48929         when available.
48930         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48931
48932 2008-05-28  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/stpcpy (License): Change to LGPLv2+.
48935         Requested by David Lutterkort <dlutter@redhat.com>.
48936
48937 2008-05-27  Bruno Haible  <bruno@clisp.org>
48938
48939         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48940         current mingw.
48941         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48942
48943 2008-05-27  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/iconv_open (Link): New section, from module 'iconv'.
48946         * modules/striconv (Link): Likewise.
48947         * modules/striconveh (Link): Likewise.
48948         * modules/xstriconv (Link): Likewise.
48949         * modules/unicodeio (Link): Likewise.
48950         * modules/propername (Link): Likewise.
48951         Reported by Jim Meyering.
48952
48953 2008-05-26  Jim Meyering  <meyering@redhat.com>
48954
48955         sha256: do not artificially restrict buffer length to be < 2^32
48956         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48957         uint32_t to size_t.
48958         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48959         to match.
48960
48961         avoid unaligned access errors, e.g., on sparc
48962         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48963         direct access through a possibly-unaligned uint64* pointer.
48964         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48965         direct access through a possibly-unaligned uint32* pointer.
48966         Prompted by this patch from Tom "spot" Callaway:
48967         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48968
48969         sha512.c: fix typo in comment
48970         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48971
48972 2008-05-25  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48975         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48976         (Makefile.am): Update lib_SOURCES.
48977
48978 2008-05-25  Bruno Haible  <bruno@clisp.org>
48979
48980         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48981
48982 2008-05-25  Jim Meyering  <meyering@redhat.com>
48983
48984         useless-if-before-free: freed expr may have white-space differences
48985         * build-aux/useless-if-before-free: Recognize cases in which the
48986         freed expression differs from the tested one in embedded white
48987         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48988         $1 was used, so we can't make any regexp shy.  Improved tests now
48989         detect this.
48990
48991         useless-if-before-free: accept white space in the expression.
48992         * build-aux/useless-if-before-free: For now, any white space
48993         in the expression must be identical in the free argument.
48994
48995         useless-if-before-free: efficiency tweak
48996         * build-aux/useless-if-before-free: Make the expression-matching
48997         regexp "shy".
48998         Make the *outer* regexp shy, not the expr-matching one.
48999
49000         update code-in-comment to accept cast of free arg
49001         * build-aux/useless-if-before-free: Update regexp.
49002
49003 2008-05-25  Bruno Haible  <bruno@clisp.org>
49004
49005         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49006         * modules/copy-file-tests (Files, Makefile.am): Update.
49007         * tests/test-copy-file.c (func_test_copy): Update.
49008
49009 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49010
49011         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49012
49013 2008-05-23  Bruno Haible  <bruno@clisp.org>
49014
49015         Improve support for ACLs on OSF/1.
49016         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49017         Remove fallback for unknown flavors of ACLs.
49018
49019 2008-05-22  Bruno Haible  <bruno@clisp.org>
49020
49021         Add support for ACLs on OSF/1.
49022         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49023         replacements.
49024         (acl_free_text): New macro fallback.
49025         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49026         acl_free.
49027         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49028         acl_free_text function. Require AC_C_INLINE.
49029
49030 2008-05-22  Bruno Haible  <bruno@clisp.org>
49031
49032         Make copy_acl work on MacOS X 10.5.
49033         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49034         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49035         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49036         If MODE_INSIDE_ACL, don't assume that every system has the same text
49037         representation for ACLs as FreeBSD.
49038         * lib/copy-acl.c (copy_acl): Add support for platforms with
49039         !MODE_INSIDE_ACL.
49040         * lib/file-has-acl.c (file_has_acl): Likewise.
49041         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49042         FreeBSD, MacOS X, or IRIX, respectively.
49043
49044 2008-05-22  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/acl.h: Don't include <sys/acl.h>.
49047         (GETACLCNT): Move fallback to lib/acl-internal.h.
49048         * lib/acl-internal.h: Include <sys/acl.h> here.
49049         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49050
49051 2008-05-22  Bruno Haible  <bruno@clisp.org>
49052
49053         Split off copy_acl function to separate file.
49054         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49055         * lib/acl.c (copy_acl): Moved function to separate file.
49056         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49057         * modules/acl (Files): Add lib/copy-acl.c.
49058         (Makefiles.am): Augment lib_SOURCES.
49059
49060 2008-05-22  Bruno Haible  <bruno@clisp.org>
49061
49062         * modules/copy-file-tests: New file.
49063         * tests/test-copy-file.sh: New file.
49064         * tests/test-copy-file.c: New file.
49065         * tests/test-copy-file-sameacls.c: New file.
49066
49067 2008-05-22  Eric Blake  <ebb9@byu.net>
49068
49069         Avoid gcc warning.
49070         * tests/test-memcmp.c (main): Pass NULL indirectly.
49071
49072 2008-05-21  Bruno Haible  <bruno@clisp.org>
49073
49074         Add reference doc about ACLs.
49075         * doc/acl-resources.txt: New file.
49076         * doc/acl-cygwin.txt: New file.
49077
49078 2008-05-21  Bruno Haible  <bruno@clisp.org>
49079
49080         Avoid one more warning from gcc.
49081         * lib/vasnprintf.c (IF_LINT): Update comments.
49082         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49083
49084 2008-05-21  Jim Meyering  <meyering@redhat.com>
49085
49086         avoid a warning from gcc
49087         * lib/vasnprintf.c (IF_LINT): Define.
49088         (scale10_round_decimal_long_double):
49089         Use it to avoid a "may be used uninitialized" warning.
49090         (scale10_round_decimal_double): Likewise.
49091
49092 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49093
49094         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49095         declared.
49096
49097 2008-05-20  Bruno Haible  <bruno@clisp.org>
49098
49099         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49100         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49101
49102 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49103
49104         * modules/memcmp-tests: New file.
49105         * tests/test-memcmp.c: New file.
49106
49107 2008-05-19  Bruno Haible  <bruno@clisp.org>
49108
49109         * modules/propername (Notice, configure.ac): Put quoted "..." into
49110         --keyword option.
49111         * lib/propername.h: Update comments accordingly.
49112         Reported by Eric Blake.
49113
49114 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49115
49116         * modules/getpass-gnu (Depends-on): Add fseeko.
49117
49118 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49119
49120         * modules/base64-tests: New file.
49121
49122 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49123
49124         * lib/base64.c (base64_decode_ctx): If a decode context structure
49125         was passed in use it to ignore newlines.  If a context structure
49126         was _not_ passed in, continue to treat newlines as garbage (this
49127         is the historical behavior).  Formerly base64_decode.
49128         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49129         takes a decode context structure.
49130         * lib/base64.h (base64_decode): Macro for four-argument calls.
49131         (base64_decode_alloc): Likewise.
49132         * lib/base64.c (base64_decode_ctx): If a decode context structure
49133         was passed in use it to ignore newlines.  If a context structure
49134         was _not_ passed in, continue to treat newlines as garbage (this
49135         is the historical behavior).  Formerly base64_decode.
49136         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49137         takes a decode context structure.
49138         * lib/base64.h (base64_decode): Macro for four-argument calls.
49139         (base64_decode_alloc): Likewise.
49140
49141 2008-05-19  Jim Meyering  <meyering@redhat.com>
49142
49143         avoid a warning from gcc
49144         * lib/trim.c (IF_LINT): Define.
49145         (trim2): Use it to avoid a "may be used uninitialized" warning.
49146
49147         Fix doc typo.
49148         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49149
49150 2008-05-19  Bruno Haible  <bruno@clisp.org>
49151
49152         * doc/glibc-functions/getpass.texi: Document limits of other
49153         implementations.
49154
49155 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49156             Bruno Haible <bruno@clisp.org>
49157
49158         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49159
49160 2008-05-18  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/propername: New file, from GNU gettext.
49163         * lib/propername.h: New file, from GNU gettext.
49164         * lib/propername.c: New file, from GNU gettext.
49165         * MODULES.html.sh (Internationalization functions): Add propername.
49166
49167 2008-05-16  Jim Meyering  <meyering@redhat.com>
49168             Bruno Haible  <bruno@clisp.org>
49169
49170         Avoid some warnings from "gcc -Wshadow".
49171         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49172
49173 2008-05-15  Eric Blake  <ebb9@byu.net>
49174
49175         Extend previous patch to cygwin 1.7.0.
49176         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49177         fast implementation in cygwin >= 1.7.0.
49178         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49180
49181 2008-05-15  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49184         implementation in glibc >= 2.9.
49185         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49187
49188 2008-05-15  Bruno Haible  <bruno@clisp.org>
49189
49190         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49191         (Unicode string functions): Add unilbrk/*.
49192         Reported by Karl Berry.
49193
49194 2008-05-15  Eric Blake  <ebb9@byu.net>
49195
49196         Fix violation of <stdbool.h> replacement in regex.
49197         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49198         * lib/regexec.c (re_search_internal): Likewise.
49199         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49200
49201 2008-05-15  Jim Meyering  <meyering@redhat.com>
49202
49203         avoid distracting test output when git or cvs is not found
49204         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49205         * tests/test-vc-list-files-git.sh: Likewise.
49206
49207 2008-05-15  Eric Blake  <ebb9@byu.net>
49208
49209         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49210         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49211         glibc version.
49212         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49213         * doc/posix-functions/strstr.texi (strstr): Likewise.
49214         * lib/str-two-way.h (MAX): Sychronize with glibc.
49215
49216 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49217
49218         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49219         opr.ctx_type.
49220         (calc_first): Initialize constraint field.
49221         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49222         Fix grammar.
49223         (duplicate_node): Merge constraint field for all node types.
49224         (calc_eclosure_iter): Look at constraint field for all node types.
49225         * lib/regex_internal.c (create_cd_newstate): Don't look at
49226         opr.ctx_type.
49227
49228 2008-05-14  Bruno Haible  <bruno@clisp.org>
49229
49230         Help GCC to do better code generation.
49231         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49232         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49233         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49234         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49235         Declare with attribute 'malloc' if supported.
49236
49237 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49238
49239         use "echo STR|wc -c" rather than unportable "expr length STR"
49240         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49241         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49242
49243 2008-05-14  Jim Meyering  <meyering@redhat.com>
49244
49245         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49246         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49247         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49248         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49249         via Collin Lasse.
49250
49251 2008-05-14  Eric Blake  <ebb9@byu.net>
49252
49253         Avoid quadratic growth in gl_LIBSOURCES.
49254         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49255         Suggested by Bruno Haible.
49256
49257         Test xmemdup0.
49258         * modules/xmemdup0-tests: New file.
49259         * tests/test-xmemdup0.c: Likewise.
49260
49261 2008-05-13  Eric Blake  <ebb9@byu.net>
49262
49263         Split xmemdup0 into its own module.
49264         * modules/xmemdup0: New file.
49265         * lib/xmemdup0.h: Likewise.
49266         * lib/xmemdup0.c: Likewise.
49267         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49268         * lib/xalloc.h (xmemdup0): Remove.
49269         * lib/xmalloc.c (xmemdup0): Likewise.
49270
49271 2008-05-13  Eric Blake  <ebb9@byu.net>
49272             Bruno Haible  <bruno@clisp.org>
49273
49274         Reduce number of forks required during autoconf.
49275         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49276         and gl_LIBSOURCES_DIR.
49277         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49278         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49279         m4_syscmd per file.
49280         <m4_foreach_w>: Move...
49281         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49282
49283 2008-05-13  Eric Blake  <ebb9@byu.net>
49284
49285         * gnulib-tool: Fix various comment typos.
49286
49287 2008-05-12  Bruno Haible  <bruno@clisp.org>
49288
49289         Tailor the linebreaking algorithm.
49290         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49291
49292 2008-05-12  Bruno Haible  <bruno@clisp.org>
49293
49294         Update to Unicode 5.0.0.
49295         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49296         LBP_JV, LBP_JT. Redistribute values.
49297         (unilbrk_table): Change size.
49298         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49299         Unicode TR#14 rev. 22.
49300         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49301         LBP_JV, LBP_JT. Redistribute values.
49302         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49303         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49304         Update.
49305         * lib/unilbrk/lbrkprop1.h: Regenerated.
49306         * lib/unilbrk/lbrkprop2.h: Regenerated.
49307         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49308         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49309         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49310         Likewise.
49311         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49312         Likewise.
49313         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49314         result.
49315         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49316         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49317         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49318         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49319         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49320         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49321
49322 2008-05-11  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49325
49326 2008-05-11  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49329         * modules/unilbrk/gen-lbrk: New file.
49330
49331 2008-05-11  Bruno Haible  <bruno@clisp.org>
49332
49333         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49334         * m4/sha512.m4 (gl_SHA512): Likewise.
49335
49336 2008-05-11  Jim Meyering  <meyering@redhat.com>
49337
49338         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49339         * modules/crypto/sha256: New file.
49340         * modules/crypto/sha512: Likewise.
49341         * lib/sha256.c: Likewise.
49342         * lib/sha256.h: Likewise.
49343         * lib/sha512.c: Likewise.
49344         * lib/sha512.h: Likewise.
49345         * lib/u64.h: Likewise.
49346         * m4/sha256.m4: Likewise.
49347         * m4/sha512.m4: Likewise.
49348         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49349
49350 2008-05-10  Bruno Haible  <bruno@clisp.org>
49351
49352         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49353         (Input/Output <stdio.h>): Add xprintf.
49354         (Signal handling <signal.h>): Add strsignal.
49355         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49356         (Core language properties): Add func.
49357         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49358         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49359         strings.
49360         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49361         (Input/output): New section.
49362         (File system functions): Add openat-die, stat-macros.
49363         (Networking functions): Add sockets.
49364         (Unicode string functions): Add unictype/*.
49365         (Support for building libraries and executables): Add gperf.
49366         (Support for building documentation): Add agpl-3.0.
49367         (Misc): Add nocrash.
49368
49369 2008-05-10  Bruno Haible  <bruno@clisp.org>
49370
49371         * modules/unictype/gen-ctype: New file.
49372
49373 2008-05-10  Jim Meyering  <meyering@redhat.com>
49374
49375         Make chdir-safer.c more efficient on a system with no symlinks.
49376         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49377         also if ELOOP is zero.  Suggested by Bruno Haible.
49378
49379         Make chdir-safer.c slightly safer.
49380         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49381         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49382
49383         Avoid compile failure on systems without ELOOP (like mingw).
49384         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49385         Reported by Bruno Haible.
49386
49387 2008-05-10  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49390         (is_utf8_encoding): Use a case-insensitive comparison.
49391         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49392         streq.
49393
49394 2008-05-10  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49397         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49398         * lib/unilbrk/ulc-common.h (iconv_string_length,
49399         iconv_string_keeping_offsets): Remove declarations.
49400         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49401         Don't include <iconv.h>, streq.h, xsize.h.
49402         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49403         conversion.
49404         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49405         <iconv.h>, streq.h, xsize.h.
49406         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49407         conversion.
49408         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49409         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49410         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49411         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49412
49413 2008-05-10  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49416         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49417
49418         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49419         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49420
49421         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49422         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49423
49424         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49425         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49426
49427         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49428         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49429
49430         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49431         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49432
49433         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49434         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49435
49436         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49437         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49438
49439 2008-05-10  Bruno Haible  <bruno@clisp.org>
49440
49441         Split up 'linebreak' module.
49442         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49443         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49444         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49445         modifications.
49446         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49447         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49448         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49449         lib/linebreak.c.
49450         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49451         lib/linebreak.c.
49452         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49453         lib/linebreak.c.
49454         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49455         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49456         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49457         lib/linebreak.c.
49458         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49459         lib/linebreak.c.
49460         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49461         lib/linebreak.c.
49462         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49463         lib/linebreak.c.
49464         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49465         lib/linebreak.c.
49466         * modules/unilbrk/base: New file.
49467         * modules/unilbrk/tables: New file.
49468         * modules/unilbrk/u8-possible-linebreaks: New file.
49469         * modules/unilbrk/u16-possible-linebreaks: New file.
49470         * modules/unilbrk/u32-possible-linebreaks: New file.
49471         * modules/unilbrk/ulc-common: New file.
49472         * modules/unilbrk/ulc-possible-linebreaks: New file.
49473         * modules/unilbrk/u8-width-linebreaks: New file.
49474         * modules/unilbrk/u16-width-linebreaks: New file.
49475         * modules/unilbrk/u32-width-linebreaks: New file.
49476         * modules/unilbrk/ulc-width-linebreaks: New file.
49477         * lib/linebreak.h: Remove file.
49478         * lib/linebreak.c: Remove file.
49479         * m4/linebreak.m4: Remove file.
49480         * modules/linebreak: Remove file.
49481         * NEWS: Mention the changes.
49482
49483 2008-05-09  Eric Blake  <ebb9@byu.net>
49484
49485         Add xmemdup0.
49486         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49487         implementation.
49488         * lib/xmalloc.c (xmemdup0): New C implementation.
49489
49490 2008-05-08  Bruno Haible  <bruno@clisp.org>
49491
49492         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49493
49494 2008-05-07  Eric Blake  <ebb9@byu.net>
49495
49496         Support cross-compilation of <wctype.h>.
49497         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49498         AC_CACHE_CHECK.
49499
49500 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49501
49502         * build-aux/vc-list-files: Add support for bzr.
49503
49504 2008-05-03  Jim Meyering  <meyering@redhat.com>
49505
49506         avoid failed assertion with tight malloc
49507         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49508
49509 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49510
49511         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49512         are needed from arpa/inet.h.
49513         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49514         Reported by Bruno Haible.
49515
49516 2008-05-02  Jim Meyering  <meyering@redhat.com>
49517
49518         avoid compilation error on FreeBSD 6
49519         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49520
49521 2008-05-01  Jim Meyering  <meyering@redhat.com>
49522
49523         useless-if-before-free: correct --help's exit status description
49524         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49525         for one or more matches, etc.  Reported by Bruno Haible.
49526
49527         vc-list-files: make the stand-alone gnulib test work
49528         * modules/vc-list-files-tests (configure.ac):
49529         Define and AC_SUBST abs_aux_dir.
49530         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49531         $(abs_top_srcdir) to each script and having each of them
49532         duplicate the work of setting PATH, set PATH here, using
49533         the new variable, abs_aux_dir instead.
49534         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49535         * tests/test-vc-list-files-git.sh: Likewise.
49536         Reported by Bruno Haible.
49537
49538 2008-05-01  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49541         reallocation. Rename 'done' to 'found_delimiter'.
49542
49543 2008-05-01  Jim Meyering  <meyering@redhat.com>
49544
49545         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49546         * build-aux/vc-list-files: Use `...`, not $(...).
49547
49548 2008-04-30  Jim Meyering  <meyering@redhat.com>
49549
49550         add tests for vc-list-files
49551         * modules/vc-list-files-tests: New module.
49552         * tests/test-vc-list-files-cvs.sh: New file.
49553         * tests/test-vc-list-files-git.sh: New file.
49554
49555         avoid a warning from gcc
49556         * lib/getndelim2.c (IF_LINT): Define.
49557         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49558
49559         vc-list-files: work properly with build-aux/cvsu, too
49560         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49561         to all cvs-based clauses.
49562
49563         vc-list-files: work properly in the CVS+awk case, too
49564         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49565
49566         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49567         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49568         take more than one file argument, so .  Add quotes, just in case $dir
49569         ever contains a shell meta-character.  Prompted by Soren Hansen in
49570         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49571
49572 2008-04-29  Eric Blake  <ebb9@byu.net>
49573
49574         Optimize getndelim2 to use block operations when possible.
49575         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49576         freadseek, and memchr2.
49577         * lib/getndelim2.c (getndelim2): Use them for block reads.
49578
49579 2008-04-29  Bruno Haible  <bruno@clisp.org>
49580
49581         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49582         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49583         * modules/inet_ntop (Depends-on): Add extensions.
49584         * modules/inet_pton (Depends-on): Likewise.
49585         Reported by Simon Josefsson.
49586
49587 2008-04-29  Jim Meyering  <meyering@redhat.com>
49588
49589         When the is more than one match in a block, match all of them.
49590         * build-aux/useless-if-before-free: Iterate through each block
49591         until there are no more matches.
49592
49593         Fix broken useless-if-before-free script.
49594         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49595         the expression to match cast of argument to free-like function.
49596
49597 2008-04-29  Eric Blake  <ebb9@byu.net>
49598
49599         Use new header.
49600         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49601
49602 2008-04-29  Jim Meyering  <meyering@redhat.com>
49603
49604         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49605         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49606         by gnulib to exist and to declare e.g., inet_ntop.
49607         Don't include "inet_ntop.h", now removed.
49608
49609         * m4/arpa_inet_h.m4: Remove trailing blanks.
49610
49611 2008-04-29  Eric Blake  <ebb9@byu.net>
49612
49613         Silence valgrind on safe reads beyond potential array bounds.
49614         * lib/rawmemchr.valgrind: New file.
49615         * lib/strchrnul.valgrind: Likewise.
49616         * modules/rawmemchr (Files): Distribute new file.
49617         * modules/strchrnul (Files): Likewise.
49618         Suggested by Bruno Haible.
49619
49620 2008-04-29  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49623         (inet_ntop, inet_pton): Change portability warning's wording.
49624         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49625         Invoke gl_CHECK_NEXT_HEADERS.
49626         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49627         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49628         set ARPA_INET_H.
49629         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49630         * modules/arpa_inet (Description): No longer only for systems that
49631         lack it.
49632         (Depends-on): Add include_next.
49633         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49634         HAVE_ARPA_INET_H.
49635
49636 2008-04-29  Jim Meyering  <meyering@redhat.com>
49637
49638         * modules/mkdir (License): Re-license as LGPLv2+.
49639
49640 2008-04-29  Bruno Haible  <bruno@clisp.org>
49641
49642         * modules/rawmemchr (Maintainer): Set to Eric.
49643         * modules/strchrnul (Maintainer): Likewise.
49644
49645 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49646
49647         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49648         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49649
49650         * modules/arpa_inet (arpa/inet.h): Use them.
49651
49652 2008-04-28  Eric Blake  <ebb9@byu.net>
49653
49654         Test getndelim2.
49655         * modules/getndelim2-tests: New file.
49656         * tests/test-getndelim2.c: Likewise.
49657         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49658         stream.
49659         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49660
49661         * MODULES.html.sh: Document new module.
49662
49663 2008-04-20  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/c-stack.c (die): Use raise.
49666         * modules/c-stack (Depends-on): Add raise.
49667
49668 2008-04-28  Bruno Haible  <bruno@clisp.org>
49669
49670         Expect rpmatch to be declared.
49671         * lib/yesno.c (rpmatch): Remove declaration.
49672
49673         Declare rpmatch.
49674         * lib/stdlib.in.h (rpmatch): New declaration.
49675         * lib/rpmatch.c: Include <stdlib.h> first.
49676         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49677         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49679         HAVE_RPMATCH.
49680         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49682         (Include): Set to <stdlib.h>.
49683         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49684         HAVE_RPMATCH.
49685         * NEWS: Document the change.
49686
49687 2008-04-28  Bruno Haible  <bruno@clisp.org>
49688
49689         Change rpmatch to use nl_langinfo when appropriate.
49690         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49691         (N_): New macro.
49692         (localized_pattern): New function/macro.
49693         (try): Remove match, nomatch arguments. Copy the pattern into safe
49694         memory before caching it.
49695         (rpmatch): Use localized_pattern. Add translator comments.
49696         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49697         Suggested by Eric Blake.
49698         * modules/rpmatch (Depends-on): Add stdbool.
49699
49700 2008-04-28  Eric Blake  <ebb9@byu.net>
49701
49702         Add rawmemchr module, matching glibc.
49703         * modules/string (Makefile.am): New indicator.
49704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49705         * lib/string.in.h (rawmemchr): Declare when appropriate.
49706         * modules/rawmemchr: New file.
49707         * m4/rawmemchr.m4: Likewise.
49708         * lib/rawmemchr.c: Likewise.
49709         * modules/rawmemchr-tests: Likewise.
49710         * tests/test-rawmemchr.c: Likewise.
49711         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49712         module.
49713         * modules/strchrnul (Depends-on): Add rawmemchr.
49714         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49715
49716         Whitespace cleanup.
49717         * tests/test-strchrnul.c: Reindent.
49718         * lib/strchrnul.c: Likewise.
49719
49720         Optimize and test strchrnul.
49721         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49722         * modules/strchrnul-tests: New file.
49723         * tests/test-strchrnul.c: Likewise.
49724
49725         Remove intprops dependency.
49726         * modules/memchr (Depends-on): Remove intprops.
49727         * modules/memrchr (Depends-on): Likewise.
49728         * modules/memchr2 (Depends-on): Likewise.
49729         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49730         * lib/memrchr.c (__memrchr): Likewise.
49731         * lib/memrchr2.c (memchr2): Likewise.
49732         Reported by Simon Josefsson.
49733
49734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49735
49736         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49737         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49738
49739 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49740
49741         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49742
49743         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49744
49745         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49746
49747         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49748         declarations.
49749         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49750
49751         * m4/inet_pton.m4: Don't check for header files.
49752
49753         * m4/inet_ntop.m4: Don't check for header files.
49754
49755 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49756
49757         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49758         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49759         trigger for cygwin).
49760         Reported by Bruno Haible  <bruno@clisp.org>.
49761
49762 2008-04-28  Bruno Haible  <bruno@clisp.org>
49763
49764         * doc/posix-functions/strdup.texi: Mention mingw problem.
49765
49766 2008-04-27  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/stat-time-tests (Depends-on): Add sleep.
49769         * tests/test-stat-time.c (force_unlink): New function.
49770         (cleanup): Use it.
49771         (test_mtime): Remove the ctime related tests.
49772         (test_ctime): New function, containing the ctime related tests.
49773         (main): Call test_ctime, except on native Windows platforms.
49774
49775 2008-04-27  Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/rpmatch.c (rpmatch): Add some comments.
49778         Reported by James Youngman <jay@gnu.org>.
49779
49780 2008-04-27  Bruno Haible  <bruno@clisp.org>
49781
49782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49783         quiet NaNs.
49784
49785 2008-04-27  Bruno Haible  <bruno@clisp.org>
49786
49787         Make test-yesno.sh work on mingw.
49788         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49789         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49790         (main): Set stdin to binary mode.
49791         * modules/yesno-tests (Depends-on): Add binary-io.
49792
49793 2008-04-27  Bruno Haible  <bruno@clisp.org>
49794
49795         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49796         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49797         argument that lie outside the IEEE 854 domain.
49798         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49799         (gl_ISFINITE): Use it.
49800         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49801
49802 2008-04-27  Bruno Haible  <bruno@clisp.org>
49803
49804         Allow local renaming in config.h.
49805         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49806
49807 2008-04-27  Bruno Haible  <bruno@clisp.org>
49808
49809         * lib/memchr.c (__memchr): Change type of 'i'.
49810         * lib/memchr2.c (memchr2): Likewise.
49811
49812 2008-04-26  Eric Blake  <ebb9@byu.net>
49813         and Bruno Haible  <bruno@clisp.org>
49814
49815         Optimize and test memrchr.
49816         * modules/memrchr (Depends-on): Add intprops.
49817         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49818         * modules/memrchr-tests: New file.
49819         * tests/test-memrchr.c: New file.
49820
49821 2008-04-26  Bruno Haible  <bruno@clisp.org>
49822
49823         Add tentative support for DragonFly BSD.
49824         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49825         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49826         fp.
49827         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49828         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49829         * lib/fpurge.c (fpurge): Likewise.
49830         * lib/freadable.c (freaadable): Likewise.
49831         * lib/freadahead.c (freadahead): Likewise.
49832         * lib/freading.c (freading): Likewise.
49833         * lib/freadptr.c (freadptr): Likewise.
49834         * lib/freadseek.c (freadptrinc): Likewise.
49835         * lib/fseeko.c (fseeko): Likewise.
49836         * lib/fseterr.c (fseterr): Likewise.
49837         * lib/fwritable.c (fwritable): Likewise.
49838         * lib/fwriting.c (fwriting): Likewise.
49839
49840 2008-04-26  Bruno Haible  <bruno@clisp.org>
49841
49842         * lib/stdio-impl.h: New file.
49843         * lib/fbufmode.c: Include stdio-impl.h.
49844         (fbufmode): Use fp_, remove redundant #defines.
49845         * lib/fflush.c: Include stdio-impl.h.
49846         (clear_ungetc_buffer): Remove redundant #defines.
49847         * lib/fpurge.c: Include stdio-impl.h.
49848         (fpurge): Remove redundant #defines.
49849         * lib/freadable.c: Include stdio-impl.h.
49850         (freadable): Remove redundant #defines.
49851         * lib/freadahead.c: Include stdio-impl.h.
49852         (freadahead): Remove redundant #defines.
49853         * lib/freading.c: Include stdio-impl.h.
49854         (freading): Remove redundant #defines.
49855         * lib/freadptr.c: Include stdio-impl.h.
49856         (freadptr): Remove redundant #defines.
49857         * lib/freadseek.c: Include stdio-impl.h.
49858         (freadptrinc): Remove redundant #defines.
49859         * lib/fseeko.c: Include stdio-impl.h.
49860         (rpl_fseeko): Remove redundant #defines.
49861         * lib/fseterr.c: Include stdio-impl.h.
49862         (fseterr): Remove redundant #defines.
49863         * lib/fwritable.c: Include stdio-impl.h.
49864         (fwritable: Remove redundant #defines.
49865         * lib/fwriting.c: Include stdio-impl.h.
49866         (fwriting): Remove redundant #defines.
49867         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49868         * modules/fflush (Files): Likewise.
49869         * modules/fpurge (Files): Likewise.
49870         * modules/freadable (Files): Likewise.
49871         * modules/freadahead (Files): Likewise.
49872         * modules/freading (Files): Likewise.
49873         * modules/freadptr (Files): Likewise.
49874         * modules/freadseek (Files): Likewise.
49875         * modules/fseeko (Files): Likewise.
49876         * modules/fseterr (Files): Likewise.
49877         * modules/fwritable (Files): Likewise.
49878         * modules/fwriting (Files): Likewise.
49879
49880 2008-04-26  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49883         restore_seek_optimization, update_fpos_cache): New functions, extracted
49884         from rpl_fflush.
49885         (rpl_fflush): Use them.
49886         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49887         (gl_REPLACE_FFLUSH): Use it.
49888
49889 2008-04-26  Bruno Haible  <bruno@clisp.org>
49890
49891         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49892         on Solaris.
49893         * tests/test-xstrtoimax.sh: Likewise.
49894         * tests/test-xstrtoumax.sh: Likewise.
49895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49896
49897 2008-04-26  Bruno Haible  <bruno@clisp.org>
49898
49899         * modules/memchr-tests: New file.
49900         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49901
49902 2008-04-26  Eric Blake  <ebb9@byu.net>
49903             Bruno Haible  <bruno@clisp.org>
49904
49905         * lib/memchr.c: Include intprops.h.
49906         (__memchr): Optimize parallel detection of matching bytes. Rename local
49907         variables. Add explanatory comments.
49908
49909 2008-04-26  Bruno Haible  <bruno@clisp.org>
49910
49911         Fix module 'memchr', broken since 2000-10-28.
49912         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49913
49914 2008-04-26  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49917         comments.
49918
49919 2008-04-25  Eric Blake  <ebb9@byu.net>
49920
49921         Use native fstatat on cygwin 1.7.0.
49922         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49923         first.
49924
49925 2008-04-23  Eric Blake  <ebb9@byu.net>
49926
49927         Improve memchr2 performance.
49928         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49929         NUL bytes.
49930         * modules/memchr2 (Depends-on): Use intprops.h.
49931
49932 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49933
49934         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49935         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49936         <blp@cs.stanford.edu>.
49937
49938 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49939
49940         * lib/arpa_inet.in.h: New file.
49941
49942         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49943         (Makefile.am): Sed in substitute header file.
49944
49945         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49946         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49947
49948         * modules/inet_ntop (configure.ac): Use
49949         gl_ARPA_INET_MODULE_INDICATOR.
49950
49951         * modules/inet_pton (configure.ac): Use
49952         gl_ARPA_INET_MODULE_INDICATOR.
49953
49954 2008-04-22  Jim Meyering  <meyering@redhat.com>
49955
49956         * modules/verify (License): Re-license as LGPLv2+.
49957
49958 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49959
49960         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49961         parameter to void* as per POSIX standard (MinGW uses char*).
49962
49963 2008-04-21  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49966         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49967         Define to replacements if REPLACE_ISWCNTRL is 1.
49968         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49969         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49970         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49971         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49972         what it fixes.
49973         * doc/posix-functions/iswalpha.texi: Likewise.
49974         * doc/posix-functions/iswblank.texi: Likewise.
49975         * doc/posix-functions/iswcntrl.texi: Likewise.
49976         * doc/posix-functions/iswdigit.texi: Likewise.
49977         * doc/posix-functions/iswgraph.texi: Likewise.
49978         * doc/posix-functions/iswlower.texi: Likewise.
49979         * doc/posix-functions/iswprint.texi: Likewise.
49980         * doc/posix-functions/iswpunct.texi: Likewise.
49981         * doc/posix-functions/iswspace.texi: Likewise.
49982         * doc/posix-functions/iswupper.texi: Likewise.
49983         * doc/posix-functions/iswxdigit.texi: Likewise.
49984         Reported by Alain Guibert.
49985
49986 2008-04-21  Bruno Haible  <bruno@clisp.org>
49987
49988         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49989         Patch by Alain Guibert.
49990
49991 2008-04-21  Bruno Haible  <bruno@clisp.org>
49992
49993         Fix test failures on mingw.
49994         * tests/test-xstrtol.c (print_no_progname): New function.
49995         (main): Install it in error_print_progname hook.
49996         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49997         * tests/test-xstrtoimax.sh: Likewise.
49998         * tests/test-xstrtoumax.sh: Likewise.
49999
50000 2008-04-21  Bruno Haible  <bruno@clisp.org>
50001
50002         Fix test failure on mingw.
50003         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50004
50005 2008-04-21  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50008         Actually assign a value.
50009
50010 2008-04-20  Bruno Haible  <bruno@clisp.org>
50011
50012         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50013         take 2.
50014         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50015         'canonicalize-lgpl' module is also used.
50016         * lib/canonicalize-lgpl.c: Undo last change.
50017         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50018
50019 2008-04-20  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50022         config.h. Provide _mkdir based fallback for mingw.
50023         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50024         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50025         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50026         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50027         rather than defining mkdir in config.h.
50028         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50029         (gl_SYS_STAT_H_DEFAULTS): New macro.
50030         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50031         HAVE_IO_H any more.
50032         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50033         HAVE_DECL_MKDIR and HAVE_IO_H.
50034
50035 2008-04-20  Bruno Haible  <bruno@clisp.org>
50036
50037         * lib/isapipe.c: Port to native Windows platforms.
50038
50039 2008-04-20  Bruno Haible  <bruno@clisp.org>
50040
50041         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50042
50043 2008-04-21  Eric Blake  <ebb9@byu.net>
50044
50045         Work around preprocessors that don't handle UINTMAX_MAX.
50046         * lib/memchr2.c (memchr2): Avoid embedded #if.
50047         Reported by Alain Guibert, fix suggested by Bruno Haible.
50048
50049 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50050
50051         * doc/posix-functions/strftime.texi (strftime): Explain better
50052         Windows incompatibility.  Suggested by Micah Cowan
50053         <micah@cowan.name>.
50054
50055 2008-04-20  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50058         unistr/u8-mblen.
50059
50060 2008-04-20  Bruno Haible  <bruno@clisp.org>
50061
50062         Fix test failure on platforms with non-GNU iconv.
50063         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50064         (U_TO_U8): Use it, rather than u16_to_u8.
50065         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50066         units at the end of the input string.
50067         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50068
50069 2008-04-20  Bruno Haible  <bruno@clisp.org>
50070
50071         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50072         when the resulting length is 0.
50073         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50074
50075 2008-04-20  Bruno Haible  <bruno@clisp.org>
50076
50077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50078         works.
50079         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50080
50081 2008-04-20  Bruno Haible  <bruno@clisp.org>
50082
50083         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50084         * modules/tsearch-tests (configure.ac): Test for initstate function.
50085
50086 2008-04-20  Bruno Haible  <bruno@clisp.org>
50087
50088         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50089         for nlink_t if missing.
50090         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50091
50092 2008-04-19  Bruno Haible  <bruno@clisp.org>
50093
50094         Work around snprintf bug on Linux libc5.
50095         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50097         gl_SNPRINTF_SIZE1.
50098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50099         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50100         that test failed.
50101         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50102         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50103         * modules/snprintf (Files): Add m4/printf.m4.
50104         * modules/vsnprintf (Files): Likewise.
50105         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50106         * doc/posix-functions/vsnprintf.texi: Likewise.
50107
50108 2008-04-19  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50111         from 0.0058 to less than 10^-7.
50112
50113 2008-04-19  Bruno Haible  <bruno@clisp.org>
50114
50115         Fix rounding when a precision is given.
50116         * lib/vasnprintf.c (is_borderline): New function.
50117         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50118         9...9x.
50119         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50120         %e, %g.
50121         * tests/test-vasprintf-posix.c (test_function): Likewise.
50122         * tests/test-snprintf-posix.h (test_function): Likewise.
50123         * tests/test-sprintf-posix.h (test_function): Likewise.
50124         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50125         * tests/test-printf-posix.h (test_function): Likewise.
50126         * tests/test-printf-posix.output: Update.
50127         Reported by John Darrington <john@darrington.wattle.id.au> via
50128         Ben Pfaff <blp@cs.stanford.edu>.
50129
50130 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50131
50132         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50133         Suggested by Bruno Haible <bruno@clisp.org>.
50134
50135 2008-04-17  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50138         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50139         implementation.
50140         Patch by Bruce Merry <bmerry@gmail.com>.
50141
50142 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50143
50144         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50145         doesn't work under Windows.
50146
50147 2008-04-16  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50150         New macros.
50151         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50152         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50153         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50154         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50155         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50156         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50157         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50158         macros.
50159         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50160         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50161         Northern Sotho, Uighur.
50162
50163 2008-04-16  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50166         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50167         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50168         Reported by Daniel Bergström <daniel@octocode.com>.
50169
50170 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50171             Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50174         function.
50175         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50176         New functions, mostly extracted from gl_locale_name_default.
50177         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50178
50179 2008-04-16  Eric Blake  <ebb9@byu.net>
50180
50181         Adjust strtod detection to catch glibc 2.7 bug.
50182         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50183         Reported by John Gatewood Ham.
50184
50185 2008-04-16  Bruno Haible  <bruno@clisp.org>
50186
50187         Add tentative support for Linux libc5.
50188         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50189         * lib/fpurge.c (fpurge): Likewise.
50190         * lib/freadable.c (freadable): Likewise.
50191         * lib/freadahead.c (freadahead): Likewise.
50192         * lib/freading.c (freading): Likewise.
50193         * lib/freadptr.c (freadptr): Likewise.
50194         * lib/freadseek.c (freadptrinc): Likewise.
50195         * lib/fseeko.c (rpl_fseeko): Likewise.
50196         * lib/fseterr.c (fseterr): Likewise.
50197         * lib/fwritable.c (fwritable): Likewise.
50198         * lib/fwriting.c (fwriting): Likewise.
50199         Reported by Alain Guibert <alguibert+bts@free.fr>.
50200
50201 2008-04-15  Bruno Haible  <bruno@clisp.org>
50202
50203         * modules/mathl (configure.ac): Define module indicator.
50204
50205 2008-04-15  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/logl.c (logl): Remove unused variables.
50208
50209 2008-04-15  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50212         fails.
50213
50214 2008-04-15  Bruno Haible  <bruno@clisp.org>
50215
50216         * lib/trim.c (trim2): Fix argument of isspace() macro.
50217
50218 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50219
50220         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50221         to 0.
50222         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50223
50224 2008-04-14  Bruno Haible  <bruno@clisp.org>
50225
50226         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50227         AC_LANG_PROGRAM argument.
50228         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50229         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50231         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50232         * m4/math_h.m4 (gl_MATH_H): Likewise.
50233         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50235         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50236         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50237         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50238         * m4/regex.m4 (gl_REGEX): Likewise.
50239         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50240         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50242         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50243         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50244         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50247
50248 2008-04-14  Jim Meyering  <meyering@redhat.com>
50249
50250         test-strtod: fix typos: s/abs/fabs/
50251         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50252
50253 2008-04-13  Bruno Haible  <bruno@clisp.org>
50254
50255         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50256         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50257         module is also used and while not building the reloc-wrapper.
50258
50259 2008-04-13  Bruno Haible  <bruno@clisp.org>
50260
50261         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50262
50263 2008-04-13  Bruno Haible  <bruno@clisp.org>
50264
50265         Fix AIX compilation failure introduced on 2008-04-02.
50266         * tests/test-frexp.c (exp): Undefine before redefining.
50267         * tests/test-frexpl.c (exp): Likewise.
50268
50269 2008-04-13  Bruno Haible  <bruno@clisp.org>
50270
50271         Work around a HP-UX stdio bug.
50272         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50273         * tests/test-ftello.c (main): Likewise.
50274         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50275         * doc/posix-functions/ftello.texi: Likewise.
50276
50277 2008-04-13  Bruno Haible  <bruno@clisp.org>
50278
50279         Make test-signbit pass on HP-UX/hppa.
50280         * tests/test-signbit.c (minus_zerol): New variable.
50281         (test_signbitl): Use it.
50282
50283 2008-04-13  Bruno Haible  <bruno@clisp.org>
50284
50285         Make truncl work on OSF/1 4.0.
50286         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50287         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50288         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50290         HAVE_DECL_TRUNCL.
50291         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50292         HAVE_DECL_TRUNCL.
50293         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50294
50295 2008-04-13  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50298
50299 2008-04-13  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50302         expression, so as to avoid HP-UX 11 cc compiler bug.
50303
50304 2008-04-13  Bruno Haible  <bruno@clisp.org>
50305
50306         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50307
50308 2008-04-13  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/git-merge-changelog.c: Remove empty declaration outside of
50311         functions.
50312
50313 2008-04-13  Bruno Haible  <bruno@clisp.org>
50314
50315         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50316
50317 2008-04-13  Bruno Haible  <bruno@clisp.org>
50318
50319         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50320         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50322         also if it exists but lacks definitions of the SHUT_* macros.
50323         * modules/sys_socket (Description): Update.
50324         Reported by Elbert Pol <e.pol@chello.nl>.
50325
50326 2008-04-13  Bruno Haible  <bruno@clisp.org>
50327
50328         * lib/localcharset.c (OS2): Don't redefine if already defined.
50329         Reported by Elbert Pol <e.pol@chello.nl>.
50330
50331 2008-04-13  Bruno Haible  <bruno@clisp.org>
50332
50333         * lib/binary-io.h [__EMX__]: Include <io.h>.
50334         Reported by Elbert Pol <e.pol@chello.nl>.
50335
50336 2008-04-12  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/fpucw.h: Enable the definitions also for x86_64.
50339         Needed for NetBSD/x86_64.
50340         Reported by Thomas Klausner <tk@giga.or.at>.
50341
50342 2008-04-12  Bruno Haible  <bruno@clisp.org>
50343
50344         * tests/test-strtod.c: Include isnand.h.
50345         (main): Use isnand instead of isnan.
50346         Reported by Jim Meyering.
50347
50348 2008-04-12  Bruno Haible  <bruno@clisp.org>
50349
50350         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50351         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50352
50353 2008-04-12  Jim Meyering  <meyering@redhat.com>
50354
50355         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50356
50357 2008-04-12  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50360         Reported by Elbert Pol <e.pol@chello.nl>.
50361
50362 2008-04-12  Eric Blake  <ebb9@byu.net>
50363
50364         Work around Solaris 10 math.h bug.
50365         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50366         (gl_MATH_H_DEFAULTS): Set up default.
50367         * modules/math (Makefile.am): Replace new indicators.
50368         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50369         * tests/test-math.c (main): Test this.
50370         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50371         * doc/posix-headers/math.texi (math.h): Mention bug.
50372         Reported by Nelson H. F. Beebe and Jim Meyering.
50373
50374 2008-04-11  Bruno Haible  <bruno@clisp.org>
50375
50376         Adapt to future versions of Apple GCC.
50377         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50378         Reported by Peter O'Gorman <peter@pogma.com>.
50379
50380 2008-04-11  Bruno Haible  <bruno@clisp.org>
50381
50382         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50383
50384 2008-04-11  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50387
50388         * modules/getaddrinfo-tests (Makefile.am): Define
50389         test_getaddrinfo_LDADD.
50390
50391 2008-04-11  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50394         (init): Fix syntax error.
50395         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50396         is declared.
50397
50398 2008-04-11  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50401         * modules/glob (Depends-on): Add stdbool.
50402
50403 2008-04-11  Bruno Haible  <bruno@clisp.org>
50404
50405         * lib/trim.c: Include <string.h>.
50406
50407 2008-04-11  Eric Blake  <ebb9@byu.net>
50408
50409         Avoid compile failure on OS/2.
50410         * lib/regex_internal.h (internal_function): Disable optimization
50411         on OS/2 (__EMX__), where it caused compiler error.
50412         Reported by Elbert Pol.
50413
50414 2008-04-11  Bruno Haible  <bruno@clisp.org>
50415
50416         Flush the standard error stream before aborting. Needed on mingw.
50417         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50418         * tests/test-array_list.c (ASSERT): Likewise.
50419         * tests/test-array_oset.c (ASSERT): Likewise.
50420         * tests/test-avltree_list.c (ASSERT): Likewise.
50421         * tests/test-avltree_oset.c (ASSERT): Likewise.
50422         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50423         * tests/test-binary-io.c (ASSERT): Likewise.
50424         * tests/test-byteswap.c (ASSERT): Likewise.
50425         * tests/test-c-ctype.c (ASSERT): Likewise.
50426         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50427         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50428         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50429         * tests/test-c-strstr.c (ASSERT): Likewise.
50430         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50431         * tests/test-canonicalize.c (ASSERT): Likewise.
50432         * tests/test-carray_list.c (ASSERT): Likewise.
50433         * tests/test-ceilf1.c (ASSERT): Likewise.
50434         * tests/test-ceilf2.c (ASSERT): Likewise.
50435         * tests/test-ceill.c (ASSERT): Likewise.
50436         * tests/test-count-one-bits.c (ASSERT): Likewise.
50437         * tests/test-fbufmode.c (ASSERT): Likewise.
50438         * tests/test-fflush2.c (ASSERT): Likewise.
50439         * tests/test-floorf1.c (ASSERT): Likewise.
50440         * tests/test-floorf2.c (ASSERT): Likewise.
50441         * tests/test-floorl.c (ASSERT): Likewise.
50442         * tests/test-fopen.c (ASSERT): Likewise.
50443         * tests/test-fpending.c (ASSERT): Likewise.
50444         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50445         * tests/test-fpurge.c (ASSERT): Likewise.
50446         * tests/test-freadable.c (ASSERT): Likewise.
50447         * tests/test-freadahead.c (ASSERT): Likewise.
50448         * tests/test-freading.c (ASSERT): Likewise.
50449         * tests/test-freadptr.c (ASSERT): Likewise.
50450         * tests/test-freadptr2.c (ASSERT): Likewise.
50451         * tests/test-freadseek.c (ASSERT): Likewise.
50452         * tests/test-freopen.c (ASSERT): Likewise.
50453         * tests/test-frexp.c (ASSERT): Likewise.
50454         * tests/test-frexpl.c (ASSERT): Likewise.
50455         * tests/test-fseek.c (ASSERT): Likewise.
50456         * tests/test-fseeko.c (ASSERT): Likewise.
50457         * tests/test-fstrcmp.c (ASSERT): Likewise.
50458         * tests/test-ftell.c (ASSERT): Likewise.
50459         * tests/test-ftello.c (ASSERT): Likewise.
50460         * tests/test-func.c (ASSERT): Likewise.
50461         * tests/test-fwritable.c (ASSERT): Likewise.
50462         * tests/test-fwriting.c (ASSERT): Likewise.
50463         * tests/test-getdelim.c (ASSERT): Likewise.
50464         * tests/test-getline.c (ASSERT): Likewise.
50465         * tests/test-i-ring.c (ASSERT): Likewise.
50466         * tests/test-iconv-utf.c (ASSERT): Likewise.
50467         * tests/test-iconv.c (ASSERT): Likewise.
50468         * tests/test-isfinite.c (ASSERT): Likewise.
50469         * tests/test-isnand.c (ASSERT): Likewise.
50470         * tests/test-isnanf.c (ASSERT): Likewise.
50471         * tests/test-isnanl.h (ASSERT): Likewise.
50472         * tests/test-ldexpl.c (ASSERT): Likewise.
50473         * tests/test-linked_list.c (ASSERT): Likewise.
50474         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50475         * tests/test-localename.c (ASSERT): Likewise.
50476         * tests/test-lseek.c (ASSERT): Likewise.
50477         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50478         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50479         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50480         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50481         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50482         * tests/test-mbschr.c (ASSERT): Likewise.
50483         * tests/test-mbscspn.c (ASSERT): Likewise.
50484         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50485         * tests/test-mbspbrk.c (ASSERT): Likewise.
50486         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50487         * tests/test-mbsrchr.c (ASSERT): Likewise.
50488         * tests/test-mbsspn.c (ASSERT): Likewise.
50489         * tests/test-mbsstr1.c (ASSERT): Likewise.
50490         * tests/test-mbsstr2.c (ASSERT): Likewise.
50491         * tests/test-mbsstr3.c (ASSERT): Likewise.
50492         * tests/test-memchr2.c (ASSERT): Likewise.
50493         * tests/test-memmem.c (ASSERT): Likewise.
50494         * tests/test-open.c (ASSERT): Likewise.
50495         * tests/test-printf-frexp.c (ASSERT): Likewise.
50496         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50497         * tests/test-printf-posix.c (ASSERT): Likewise.
50498         * tests/test-quotearg.c (ASSERT): Likewise.
50499         * tests/test-rbtree_list.c (ASSERT): Likewise.
50500         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50501         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50502         * tests/test-round1.c (ASSERT): Likewise.
50503         * tests/test-roundf1.c (ASSERT): Likewise.
50504         * tests/test-roundl.c (ASSERT): Likewise.
50505         * tests/test-signbit.c (ASSERT): Likewise.
50506         * tests/test-sleep.c (ASSERT): Likewise.
50507         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50508         * tests/test-snprintf.c (ASSERT): Likewise.
50509         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50510         * tests/test-stat-time.c (ASSERT): Likewise.
50511         * tests/test-strcasestr.c (ASSERT): Likewise.
50512         * tests/test-strerror.c (ASSERT): Likewise.
50513         * tests/test-striconv.c (ASSERT): Likewise.
50514         * tests/test-striconveh.c (ASSERT): Likewise.
50515         * tests/test-striconveha.c (ASSERT): Likewise.
50516         * tests/test-strsignal.c (ASSERT): Likewise.
50517         * tests/test-strstr.c (ASSERT): Likewise.
50518         * tests/test-strtod.c (ASSERT): Likewise.
50519         * tests/test-trunc1.c (ASSERT): Likewise.
50520         * tests/test-trunc2.c (ASSERT): Likewise.
50521         * tests/test-truncf1.c (ASSERT): Likewise.
50522         * tests/test-truncf2.c (ASSERT): Likewise.
50523         * tests/test-truncl.c (ASSERT): Likewise.
50524         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50525         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50526         * tests/test-vasnprintf.c (ASSERT): Likewise.
50527         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50528         * tests/test-vasprintf.c (ASSERT): Likewise.
50529         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50530         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50531         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50532         * tests/test-vsnprintf.c (ASSERT): Likewise.
50533         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50534         * tests/test-wcwidth.c (ASSERT): Likewise.
50535         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50536         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50537         * tests/test-xvasprintf.c (ASSERT): Likewise.
50538         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50539         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50540         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50541         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50542         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50543         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50544         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50545         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50546         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50547         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50548         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50549         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50550         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50551         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50552         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50553         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50554         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50555         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50556         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50557         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50558         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50559         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50560         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50561         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50562         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50563         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50564         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50565         * tests/unictype/test-combining.c (ASSERT): Likewise.
50566         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50567         * tests/unictype/test-digit.c (ASSERT): Likewise.
50568         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50569         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50570         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50571         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50572         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50573         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50574         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50575         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50576         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50577         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50578         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50579         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50580         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50581         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50582         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50583         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50584         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50585         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50586         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50587         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50588         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50589         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50590         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50591         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50592         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50593         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50594         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50595         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50596         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50597         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50598         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50599         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50600         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50601         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50602         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50603         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50604         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50605         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50606         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50607         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50608         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50609         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50610         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50611         Reported by Eric Blake.
50612
50613 2008-04-11  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/wchar.in.h: Tweak comment.
50616
50617 2008-04-11  Bruno Haible  <bruno@clisp.org>
50618
50619         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50620         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50621         gl_COMMON.
50622         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50623
50624 2008-04-11  Bruno Haible  <bruno@clisp.org>
50625
50626         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50627
50628 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50629
50630         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50631         of attempting to use non-existing /dev/*random.  Based on patch
50632         from Adam Strzelecki <ono@java.pl> in
50633         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50634
50635 2008-04-08  Bruno Haible  <bruno@clisp.org>
50636
50637         Add tentative support for emx+gcc.
50638         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50639         * lib/fpurge.c (fpurge): Likewise.
50640         * lib/freadable.c (freadable): Likewise.
50641         * lib/freadahead.c (freadahead): Likewise.
50642         * lib/freading.c (freading): Likewise.
50643         * lib/freadptr.c (freadptr): Likewise.
50644         * lib/freadseek.c (freadptrinc): Likewise.
50645         * lib/fseeko.c (rpl_fseeko): Likewise.
50646         * lib/fseterr.c (fseterr): Likewise.
50647         * lib/fwritable.c (fwritable): Likewise.
50648         * lib/fwriting.c (fwriting): Likewise.
50649         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50650
50651 2008-04-09  Eric Blake  <ebb9@byu.net>
50652
50653         Avoid some autoconf warnings.
50654         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50655         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50656         * m4/afs.m4 (gl_AFS): Likewise.
50657         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50658         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50660         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50661         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50662         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50663         (AC_CHECK_DECLS_ONCE): Likewise.
50664         Rename file...
50665         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50666         gnulib-tool requires autoconf 2.59 or better.
50667         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50668
50669 2008-04-08  Eric Blake  <ebb9@byu.net>
50670
50671         Use 'git describe --match' if present (added in git 1.5.5).
50672         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50673         if possible.
50674
50675 2008-04-08  Bruno Haible  <bruno@clisp.org>
50676
50677         Add tentative support for OpenServer.
50678         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50679         _ptr, _cnt.
50680         * lib/fpurge.c (fpurge): Likewise.
50681         * lib/freadable.c (freadable): Likewise.
50682         * lib/freadahead.c (freadahead): Likewise.
50683         * lib/freading.c (freading): Likewise.
50684         * lib/freadptr.c (freadptr): Likewise.
50685         * lib/freadseek.c (freadptrinc): Likewise.
50686         * lib/fseeko.c (rpl_fseeko): Likewise.
50687         * lib/fseterr.c (fseterr): Likewise.
50688         * lib/fwritable.c (fwritable): Likewise.
50689         * lib/fwriting.c (fwriting): Likewise.
50690         Reported by Roger Cornelius <rac@tenzing.org> and
50691         Brian K. White <brian@aljex.com>.
50692
50693 2008-04-06  Jim Meyering  <meyering@redhat.com>
50694
50695         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50696
50697 2008-04-06  Bruno Haible  <bruno@clisp.org>
50698
50699         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50700         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50701         * tests/test-printf-posix.sh: Likewise.
50702         * tests/test-vfprintf-posix.sh: Likewise.
50703         * tests/test-vprintf-posix.sh: Likewise.
50704         * tests/test-xprintf-posix.sh: Likewise.
50705
50706 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50707
50708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50709         hide error from 'ls', needed on OS/2.
50710         Report by Elbert Pol <elbert.pol@gmail.com>.
50711
50712 2008-04-04  Eric Blake  <ebb9@byu.net>
50713
50714         Make test-fseeko.c failures meaningful.
50715         * tests/test-fseeko.c: Print line number on failure.
50716         * tests/test-fseek.c: Likewise.
50717         Reported by Nelson H. F. Beebe.
50718
50719         Improve strtod bug detection check.
50720         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50721         required for Solaris 10.
50722         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50723
50724 2008-04-04  Bruno Haible  <bruno@clisp.org>
50725
50726         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50727         by m4/setenv.m4.
50728
50729 2008-04-03  Eric Blake  <ebb9@byu.net>
50730
50731         Ensure sane .version contents.
50732         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50733         version string.
50734         * build-aux/git-version-gen: Improve documentation.
50735
50736         Make GNU make output nicer.
50737         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50738         MAKECMDGOALS to enforce message for all command line targets.  Set
50739         srcdir for use in maint.mk.
50740
50741         Another maintainer tweak.
50742         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50743         a target that regenerates version.
50744
50745 2008-04-03  Jim Meyering  <meyering@redhat.com>
50746
50747         vc-list-files: don't cause coreutils "make po-check" failure
50748         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50749
50750 2008-04-03  Eric Blake  <ebb9@byu.net>
50751
50752         Allow VPATH usage of vc-list-files.
50753         * build-aux/vc-list-files (scriptversion): Add timestamp.
50754         (options): Add --help, --version, -C.
50755         (CVS): Support installed cvsu.
50756
50757 2008-04-02  Bruno Haible  <bruno@clisp.org>
50758
50759         Avoid some "statement with no effect" warnings from gcc.
50760         * tests/test-wctype.c (main): Explicitly ignore unused values.
50761         Reported by Jim Meyering.
50762
50763 2008-04-02  Jim Meyering  <meyering@redhat.com>
50764
50765         Avoid some warnings from "gcc -Wshadow".
50766         * tests/test-frexp.c (exp): Define to a different identifier.
50767         * tests/test-frexpl.c (exp): Likewise.
50768
50769 2008-04-03  Jim Meyering  <meyering@redhat.com>
50770
50771         bootstrap: remove dangling *.[ch] symlinks from lib
50772         * build-aux/bootstrap [dangling symlink removal]: Move find's
50773         -depth option to precede all others, to avoid a warning.
50774         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50775
50776 2008-04-02  Bruno Haible  <bruno@clisp.org>
50777
50778         Avoid some warnings from "gcc -Wshadow".
50779         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50780         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50781         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50782         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50783         Reported by Jim Meyering.
50784
50785 2008-04-01  Bruno Haible  <bruno@clisp.org>
50786
50787         Fix test to work on IRIX 6.5 with cc.
50788         * tests/test-math.c (numeric_equal): New function.
50789         (main): Use it.
50790
50791 2008-04-01  Bruno Haible  <bruno@clisp.org>
50792
50793         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50794
50795 2008-04-01  Bruno Haible  <bruno@clisp.org>
50796
50797         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50799         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50800         (Depends-on): Remove math.
50801
50802         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50803         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50804         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50805         (Depends-on): Remove math.
50806
50807         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50809         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50810         (Depends-on): Remove math.
50811         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50812         (Depends-on): Remove math.
50813
50814         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50815         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50816         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50817         (Depends-on): Remove math.
50818         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50819         (Depends-on): Remove math.
50820
50821         * tests/test-round1.c: Include nan.h.
50822         (main): Use NaNd instead of NAN.
50823         * modules/round-tests (Files): Add tests/nan.h.
50824
50825         * tests/test-trunc1.c: Include nan.h.
50826         (main): Use NaNd instead of NAN.
50827         * modules/trunc-tests (Files): Add tests/nan.h.
50828
50829         * tests/test-roundf1.c: Include nan.h.
50830         (main): Use NaNf instead of NAN.
50831         * modules/roundf-tests (Files): Add tests/nan.h.
50832
50833         * tests/test-truncf1.c: Include nan.h.
50834         (main): Use NaNf instead of NAN.
50835         * modules/truncf-tests (Files): Add tests/nan.h.
50836
50837         * tests/test-ceilf1.c: Include nan.h.
50838         (main): Use NaNf instead of NAN.
50839         * modules/ceilf-tests (Files): Add tests/nan.h.
50840
50841         * tests/test-floorf1.c: Include nan.h.
50842         (main): Use NaNf instead of NAN.
50843         * modules/floorf-tests (Files): Add tests/nan.h.
50844
50845         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50846         (main): Use NaNf instead of NAN.
50847         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50848
50849         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50850         (main): Use NaNd instead of NAN.
50851         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50852
50853         * tests/test-frexp.c: Include nan.h.
50854         (main): Use NaNd instead of NAN.
50855         * modules/frexp-tests (Files): Add tests/nan.h.
50856
50857         * lib/isnan.c: Don't include <math.h>.
50858         (FUNC): Don't use NAN macro.
50859         * modules/isnand-nolibm (Depends-on): Remove math.
50860         * modules/isnanf-nolibm (Depends-on): Remove math.
50861         * modules/isnanl (Depends-on): Remove math.
50862         * modules/isnanl-nolibm (Depends-on): Remove math.
50863
50864         * tests/nan.h: New file.
50865
50866 2008-04-01  Eric Blake  <ebb9@byu.net>
50867
50868         Fix typos.
50869         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50870         values to be the right type.
50871
50872         For now, cater to gnulib strtod inaccuracies.
50873         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50874         fractional results.  While not as nice from a QoI perspective, it
50875         is a quicker patch than correctly implementing decimal to binary
50876         rounding.
50877
50878 2008-03-31  Eric Blake  <ebb9@byu.net>
50879
50880         Guarantee a definition of NAN.
50881         * lib/math.in.h (NAN): Define if missing.
50882         * tests/test-math.c (main): Test it.
50883         * doc/posix-headers/math.texi (math.h): Document this.
50884         * lib/isnan.c (rpl_isnand): Use it.
50885         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50886         * tests/test-floorf1.c (NaN): Likewise.
50887         * tests/test-frexp.c (NaN): Likewise.
50888         * tests/test-isnand.c (NaN): Likewise.
50889         * tests/test-isnanf.c (NaN): Likewise.
50890         * tests/test-round1.c (NaN): Likewise.
50891         * tests/test-roundf1.c (NaN): Likewise.
50892         * tests/test-snprintf-posix.h (NaN): Likewise.
50893         * tests/test-sprintf-posix.h (NaN): Likewise.
50894         * tests/test-trunc1.c (NaN): Likewise.
50895         * tests/test-truncf1.c (NaN): Likewise.
50896         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50897         * tests/test-vasprintf-posix.c (NaN): Likewise.
50898         * modules/isnand-nolibm (Depends-on): Add math.
50899         * modules/isnanf-nolibm (Depends-on): Likewise.
50900         * modules/isnanl (Depends-on): Likewise.
50901         * modules/isnanl-nolibm (Depends-on): Likewise.
50902         * modules/snprintf-posix-tests (Depends-on): Likewise.
50903         * modules/sprintf-posix-tests (Depends-on): Likewise.
50904         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50905         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50906         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50907         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50908
50909 2008-03-31  Bruno Haible  <bruno@clisp.org>
50910
50911         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50912         * doc/posix-functions/strtod.texi: Likewise.
50913
50914 2008-03-31  Bruno Haible  <bruno@clisp.org>
50915
50916         * tests/test-strtod.c (main): Don't use C99 syntax.
50917
50918 2008-03-31  Bruno Haible  <bruno@clisp.org>
50919
50920         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50921         Reported by Eric Blake.
50922
50923 2008-03-31  Jim Meyering  <meyering@redhat.com>
50924
50925         Don't compare actual signbit return values.
50926         * tests/test-strtod.c (main): Rather, compare only their
50927         zero/non-zero nature.
50928
50929 2008-03-31  Eric Blake  <ebb9@byu.net>
50930
50931         More strtod documentation.
50932         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50933         failures as distinct bugs.
50934
50935 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50936
50937         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50938         Problem reported by Erik Benada in
50939         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50940
50941 2008-03-30  Bruno Haible  <bruno@clisp.org>
50942
50943         * tests/test-strtod.c: Add comments about which assertion fails on which
50944         platform.
50945         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50946
50947 2008-03-30  Eric Blake  <ebb9@byu.net>
50948
50949         Test signbit behavior on zeros.
50950         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50951         (test_signbitd, test_signbitl): Likewise.
50952
50953         More strtod touchups.
50954         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50955         sign of negative underflow, for now.  Use .5, not .1.
50956         * doc/posix-functions/strtod.texi (strtod): Mention these
50957         limitations.
50958         Reported by Jim Meyering.
50959
50960 2008-03-30  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50963         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50964
50965 2008-03-30  Bruno Haible  <bruno@clisp.org>
50966
50967         Avoid failure when attempting to return empty iconv results on some
50968         platforms.
50969         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50970         allocation, don't report ENOMEM when the resulting string is empty.
50971
50972 2008-03-30  Bruno Haible  <bruno@clisp.org>
50973
50974         Fix buffer overrun.
50975         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50976         Don't consider the width for tmp_length. Check count against tmp_length
50977         before doing the padding. Ensure enough allocation during padding.
50978
50979 2008-03-30  Eric Blake  <ebb9@byu.net>
50980
50981         strtod touchups.
50982         * lib/strtod.c (strtod): Avoid compiler warnings.
50983         Reported by Jim Meyering.
50984
50985 2008-03-30  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50988         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50989         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50990         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50991         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50992         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50993         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50994         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50995
50996         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50997         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50998         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50999         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51000         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51001         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51002         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51003         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51004
51005         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51006         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51007         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51008         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51009         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51010         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51011         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51012         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51013
51014         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51015         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51016
51017         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51018         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51019
51020         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51021         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51022
51023         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51025         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51026
51027         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51029         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51030
51031         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51033         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51034
51035         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51037         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51038
51039         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51040         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51042         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51043         (Depends-on): Add EOVERFLOW.
51044         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51045         (Depends-on): Add EOVERFLOW.
51046         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51047         (Depends-on): Add EOVERFLOW.
51048         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51049         (Depends-on): Add EOVERFLOW.
51050         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51051         (Depends-on): Add EOVERFLOW.
51052         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51053         (Depends-on): Add EOVERFLOW.
51054         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51055         (Depends-on): Add EOVERFLOW.
51056         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51057         (Depends-on): Add EOVERFLOW.
51058
51059         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51061         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51062
51063         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51065         * modules/snprintf (Depends-on): Add EOVERFLOW.
51066
51067         * lib/poll.c (EOVERFLOW): Remove fallback.
51068         * modules/poll (Depends-on): Add EOVERFLOW.
51069
51070         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51071         * modules/getugroups (Depends-on): Add EOVERFLOW.
51072
51073         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51074         * modules/getdelim (Depends-on): Add EOVERFLOW.
51075
51076         * lib/ftell.c (EOVERFLOW): Remove fallback.
51077         * modules/ftell (Depends-on): Add EOVERFLOW.
51078
51079         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51080         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51081         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51082
51083         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51084
51085         * modules/EOVERFLOW-tests: New file.
51086         * tests/test-EOVERFLOW.c: New file.
51087
51088         * modules/EOVERFLOW: New file.
51089         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51090
51091 2008-03-30  Bruno Haible  <bruno@clisp.org>
51092
51093         Fix bug introduced on 2007-06-10.
51094         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51095         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51096
51097 2008-03-30  Bruno Haible  <bruno@clisp.org>
51098
51099         Improve freadseek's efficiency after ungetc.
51100         * lib/freadseek.c: Include freadahead.h.
51101         (freadptrinc): New function, extracted from freadseek.
51102         (freadseek): Use it in a loop. Use freadahead to determine the number
51103         of loop iterations.
51104         * modules/freadseek (Depends-on): Add freadahead.
51105         (configure.ac): Require AC_C_INLINE.
51106
51107 2008-03-30  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/freadseek.c (freadseek): Don't ignore the return value of
51110         freadptr.
51111
51112 2008-03-29  Eric Blake  <ebb9@byu.net>
51113
51114         Add hex float support.
51115         * modules/strtod (Depends-on): Add c-ctype.
51116         (Link): Mention POW_LIB.
51117         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51118         whitespace between 'e' and exponent.
51119         * tests/test-strtod.c (main): Enable hex float tests.
51120         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51121         now provides.
51122
51123         Document various strtod bugs, with some fixes.
51124         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51125         "-0x", "inf", "nan", and hex constants.
51126         * doc/posix-functions/atof.texi (atof): Likewise.
51127         * modules/stdlib (Makefile.am): Support strtod.
51128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51129         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51130         detect additional strtod bugs.
51131         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51132         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51133         bool where appropriate.  Parse 'inf' and 'nan'.
51134         * tests/test-strtod.c: New file.
51135         * modules/strtod (Depends-on): Add stdbool, stdlib.
51136         (configure.ac): Turn on module indicator.
51137         * modules/strtod-tests: New module.
51138
51139 2008-03-29  Eric Blake  <ebb9@byu.net>
51140
51141         Fix ftell on mingw.
51142         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51143         * modules/ftell-tests (Depends-on): Add binary-io.
51144         * modules/ftello-tests (Depends-on): Likewise.
51145         * tests/test-ftell.c (main): Enhance test to cover behavior after
51146         ungetc.  Enforce binary mode.
51147         * tests/test-ftello.c (main): Likewise.
51148
51149         Pass test-freadseek on cygwin.
51150         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51151         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51152         ungetc buffer.
51153
51154         * tests/test-fflush2.c (main): Fix typo.
51155
51156 2008-03-29  Bruno Haible  <bruno@clisp.org>
51157
51158         * tests/test-fflush2.c (main): Temporarily disable the contents of
51159         this test.
51160         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51161         Reported by Eric Blake.
51162
51163 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51164
51165         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51166         (GC_SHA224_DIGEST_SIZE): Add.
51167
51168         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51169         (gc_hash_digest_length): Likewise.
51170         (gc_hash_buffer): Likewise.
51171
51172 2008-03-25  Bruno Haible  <bruno@clisp.org>
51173
51174         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51175         detail which gettext release to use.
51176         Reported by Simon Josefsson.
51177
51178 2008-03-26  Jim Meyering  <meyering@redhat.com>
51179
51180         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51181         * modules/gnumakefile (clean-GNUmakefile): Also, use
51182         test ... && ... || : syntax rather than if-then ... fi.
51183
51184         gnumakefile: Don't double-quote-expand $(VPATH) value.
51185         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51186
51187 2008-03-24  Eric Blake  <ebb9@byu.net>
51188
51189         Alter GNUmakefile to install into top directory.
51190         * modules/maintainer-makefile: Split, and add dependency...
51191         * modules/gnumakefile: to this new module.
51192         * build-aux/GNUmakefile: Move...
51193         * top/GNUmakefile: ...here.
51194         * build-aux/maint.mk: Move...
51195         * top/maint.mk: ...here.
51196         * MODULES.html.sh (Support for maintaining...): Document new
51197         module.
51198
51199 2008-03-23  Bruno Haible  <bruno@clisp.org>
51200
51201         * gnulib-tool: New options --vc-files, --no-vc-files.
51202         (func_usage): Document them.
51203         (vc_files): New variable.
51204         (func_import): Consider vc_files.
51205         (func_create_testdir): Set vc_files to empty.
51206         Suggested by Jim Meyering and Karl Berry.
51207
51208 2008-03-23  Bruno Haible  <bruno@clisp.org>
51209
51210         Fix regex compilation error on HP-UX 11.
51211         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51212         * modules/regex (Files): Add m4/mbstate_t.m4.
51213         Reported by Ton Voon <ton.voon@altinity.com>.
51214
51215 2008-03-23  Bruno Haible  <bruno@clisp.org>
51216
51217         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51218
51219 2008-03-23  Eric Blake  <ebb9@byu.net>
51220             Bruno Haible  <bruno@clisp.org>
51221
51222         Install files from top/ in the destination directory.
51223         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51224         augmentation also for the files from top/.
51225         (func_import, func_create_testdir): Rewrite file names:
51226         top/filename -> filename.
51227
51228 2008-03-23  Bruno Haible  <bruno@clisp.org>
51229
51230         Tweak "gnulib --version" output.
51231         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51232
51233 2008-03-23  Bruno Haible  <bruno@clisp.org>
51234
51235         Tweak "gnulib --version" output.
51236         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51237         rather than contents of ChangeLog, when possible.
51238
51239 2008-03-21  Eric Blake  <ebb9@byu.net>
51240
51241         More --version tweaks.
51242         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51243         date of last ChangeLog entry.
51244
51245 2008-03-21  Jim Meyering  <meyering@redhat.com>
51246
51247         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51248
51249 2008-03-20  Eric Blake  <ebb9@byu.net>
51250
51251         VPATH fix.
51252         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51253
51254 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51255
51256         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51257         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51258
51259 2008-03-20  Eric Blake  <ebb9@byu.net>
51260
51261         Sync GNUmakefile with coreutils.
51262         * build-aux/GNUmakefile (have-Makefile): Rename...
51263         (_have-Makefile): ...to this, for namespace consideration.
51264         (GNUmakefile.cfg): Include, if present.
51265         (_autoreconf): Define a default.
51266         (_is-dist-target): New rule for rebuilds to pick up intra-release
51267         version.
51268         (maint-cfg.mk): Rename...
51269         (cfg.mk): ...to this.
51270
51271 2008-03-18  Jim Meyering  <meyering@redhat.com>
51272
51273         New script and module: mktempd
51274         * MODULES.html.sh (maint+release support): Add mktempd.
51275         * build-aux/mktempd: New file.
51276         * modules/mktempd: New file.
51277
51278 2008-03-15  Jim Meyering  <meyering@redhat.com>
51279
51280         Undo last change.
51281         * lib/sha1.c, lib/md5.c: 63 != ~63.
51282         Reported by Andreas Schwab.
51283
51284         sha1.c, md5.c: Hoist a redundant expression.
51285         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51286         "ctx->buflen" only once, before calling *_process_block.
51287         * lib/md5.c (md5_process_bytes): Likewise.
51288
51289 2008-03-14  Eric Blake  <ebb9@byu.net>
51290
51291         Bump copyright year in files generated by gnulib-tool.
51292         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51293         gnulib-tool, rather than hard-coding it.
51294
51295         Fix 'gnulib-tool --version' output to work with git.
51296         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51297         (startup): ...here.
51298         (func_version): Use it to invoke git-version-gen, rather than
51299         relying on CVS keyword expansion.  Modernize wording.
51300         (cvsdatestamp, last_checkin_date, version): Kill unused
51301         variables.
51302
51303 2008-03-12  Jim Meyering  <meyering@redhat.com>
51304
51305         Recognize optional cast of the argument to free.
51306         * build-aux/useless-if-before-free: Update regexps.
51307
51308         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51309
51310 2008-03-11  Bruno Haible  <bruno@clisp.org>
51311
51312         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51313         by a single package.
51314         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51315         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51316         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51317         Reported by Sam Steingold <sds@gnu.org>.
51318
51319 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51320
51321         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51322         repositories.
51323
51324 2008-03-11  Bruno Haible  <bruno@clisp.org>
51325
51326         Avoid conflicts between local macro definitions.
51327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51328         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51329
51330 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51331             Bruno Haible  <bruno@clisp.org>
51332
51333         Make va_copy work with some version of xlc on AIX 5.1.
51334         * lib/stdarg.in.h: New file.
51335         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51336         On AIX, use a <stdarg.h> file substitute.
51337         * modules/stdarg (Files): Add lib/stdarg.in.h.
51338         (Depends-on): Add include_next.
51339         (Makefile.am): Build a stdarg.h substitute if requested.
51340         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51341
51342 2008-03-10  Bruno Haible  <bruno@clisp.org>
51343
51344         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51346         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51347
51348 2008-03-10  Bruno Haible  <bruno@clisp.org>
51349
51350         * modules/stdlib (Depends-on): Add include_next, remove
51351         absolute-header.
51352
51353 2008-03-09  Bruno Haible  <bruno@clisp.org>
51354
51355         * lib/freadahead.h (freadahead): Document more precisely.
51356         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51357         the sum of both buffer sizes.
51358         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51359         * NEWS: Document the change.
51360
51361 2008-03-09  Bruno Haible  <bruno@clisp.org>
51362
51363         Extend freadptr to return also the buffer size.
51364         * lib/freadptr.h (freadptr): Add sizep argument.
51365         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51366         (freadptr): Add sizep argument. Determine buffer size like freadahead
51367         does.
51368         * tests/test-freadptr.c: Don't include freadahead.h.
51369         (main): Adapt for new calling convention of freadptr.
51370         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51371         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51372         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51373         tests/test-freadptr2.sh.
51374         (Depends): Remove freadahead.
51375         (TESTS): Add test-freadptr2.sh.
51376         (check_PROGRAMS): Add test-freadptr2.
51377
51378 2008-03-09  Bruno Haible  <bruno@clisp.org>
51379
51380         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51381         Report and solution by Simon Josefsson.
51382
51383 2008-03-06  Bruno Haible  <bruno@clisp.org>
51384
51385         Make fflush after ungetc work on BSD platforms.
51386         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51387         * tests/test-fflush2.c: New file.
51388         * tests/test-fflush2.sh: New file.
51389         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51390         tests/test-fflush2.c.
51391         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51392         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51393
51394 2008-03-06  Eric Blake  <ebb9@byu.net>
51395
51396         Likewise for ftello.
51397         * modules/ftello (Dependencies): Add extensions.
51398         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51399
51400 2008-03-06  Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/fseeko (Dependencies): Add extensions.
51403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51404         Needed on glibc systems.
51405
51406 2008-03-06  Bruno Haible  <bruno@clisp.org>
51407
51408         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51409         email address.
51410         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51411
51412 2008-03-06  Bruno Haible  <bruno@clisp.org>
51413
51414         * users.txt: Add libgnupdf.
51415
51416 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51417
51418         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51419         (Header File Substitutes, Function Substitutes,
51420         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51421         (Build robot for gnulib): Fix typo.
51422
51423 2008-03-06  Bruno Haible  <bruno@clisp.org>
51424
51425         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51426         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51427
51428 2008-03-06  Bruno Haible  <bruno@clisp.org>
51429
51430         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51431         * doc/gnulib.texi: Include it.
51432
51433 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51434
51435         * modules/func (License): Change license to unlimited; there was
51436         no LGPL parts in the module anyway.
51437
51438 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51439
51440         * modules/__func__: Renamed to modules/func.
51441         * modules/__func__-tests: Renamed to modules/func-tests.
51442         * tests/test-__func__.c: Renamed to tests/test-func.c.
51443         * m4/__func__.m4: Renamed to m4/func.m4.
51444         * doc/gnulib.texi (__func__): Section renamed to func.
51445         Suggested by Eric Blake <ebb9@byu.net>.
51446
51447 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51448
51449         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51450         about __func__.  Make example self-contained.  Suggested by Eric
51451         Blake <ebb9@byu.net>.
51452
51453         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51454         Suggested by Eric Blake <ebb9@byu.net>.
51455
51456 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51457
51458         * modules/__func__: New file.
51459         * modules/__func__-tests: New file.
51460         * tests/test-__func__.c: New file.
51461         * m4/__func__.m4: New file.
51462         * doc/gnulib.texi (__func__): Document __func__ module.
51463
51464 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51465
51466         * modules/byteswap (License): Re-license as LGPLv2+.
51467
51468 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51469
51470         * doc/Makefile: Add pdf target.
51471
51472 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51473
51474         * modules/inline (License): Use 'unlimited', since there are only
51475         *.m4 files in this module.
51476
51477 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51478             Bruno Haible  <bruno@clisp.org>
51479
51480         Add support for HP C 7.1 on OpenVMS 8.3.
51481         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51482
51483 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51484
51485         Update VMS specifics.
51486         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51487
51488 2008-03-02  Jim Meyering  <meyering@redhat.com>
51489
51490         Remove the last dependency on the "free" module.
51491         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51492         Reported by Bob Proulx.
51493
51494         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51495
51496         Remove useless "if" tests before free.  Deprecate "free" module.
51497         * doc/posix-functions/free.texi: Mention that this
51498         module is no longer useful.
51499         * modules/free (Notice): Say this module is obsolete.
51500         * modules/readutmp (Depends-on): Remove free.
51501         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51502         * lib/putenv.c (putenv): Likewise.
51503         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51504         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51505         * tests/test-c-strcasestr.c (main): Likewise.
51506         * tests/test-c-strstr.c (main): Likewise.
51507         * tests/test-mbscasestr1.c (main): Likewise.
51508         * tests/test-mbscasestr2.c (main): Likewise.
51509         * tests/test-mbsstr1.c (main): Likewise.
51510         * tests/test-mbsstr2.c (main): Likewise.
51511         * tests/test-memmem.c (main): Likewise.
51512         * tests/test-strcasestr.c (main): Likewise.
51513         * tests/test-striconv.c (main): Likewise.
51514         * tests/test-striconveh.c (main): Likewise.
51515         * tests/test-striconveha.c (main): Likewise.
51516         * tests/test-strstr.c (main): Likewise.
51517
51518         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51519
51520         bootstrap: sync from coreutils again
51521         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51522
51523 2008-03-01  Jim Meyering  <meyering@redhat.com>
51524
51525         bootstrap: sync from coreutils
51526         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51527         also when the target doesn't exist.
51528
51529 2008-03-01  Eric Blake  <ebb9@byu.net>
51530
51531         Fix bugs in last patch.
51532         * lib/memchr2.c (memchr2): Fix typo.
51533         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51534         extension.
51535         Reported by Bruce Korb.
51536
51537         New module 'memchr2'.
51538         * modules/memchr2: New file.
51539         * modules/memchr2-tests: Likewise.
51540         * lib/memchr2.h: Likewise.
51541         * lib/memchr2.c: Likewise, based on memchr.c.
51542         * tests/test-memchr2.c: New test.
51543         * MODULES.html.sh (String handling): Add memchr2.
51544
51545 2008-02-29  Bruno Haible  <bruno@clisp.org>
51546
51547         * modules/freadseek-tests: New file.
51548         * tests/test-freadseek.sh: New file.
51549         * tests/test-freadseek.c: New file.
51550
51551         New module 'freadseek'.
51552         * modules/freadseek: New file.
51553         * lib/freadseek.h: New file.
51554         * lib/freadseek.c: New file.
51555         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51556
51557 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51558
51559         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51560         wydawca.
51561
51562         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51563         program_invocation_name and program_invocation_short_name are
51564         present.
51565
51566 2008-02-28  Bruno Haible  <bruno@clisp.org>
51567
51568         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51569         * tests/test-freadptr.sh: Also test non-seekable stdin.
51570
51571 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51572
51573         * build-aux/bootstrap (source_base, m4_base)
51574         (doc_base, tests_base): New variables.
51575         (gnulib_tool_options): Do not hardcode base directories, use
51576         the above variables instead.
51577
51578 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51579
51580         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51581
51582 2008-02-28  Bruno Haible  <bruno@clisp.org>
51583
51584         * modules/freadptr-tests: New file.
51585         * tests/test-freadptr.sh: New file.
51586         * tests/test-freadptr.c: New file.
51587
51588         New module 'freadptr'.
51589         * modules/freadptr: New file.
51590         * lib/freadptr.h: New file.
51591         * lib/freadptr.c: New file.
51592         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51593
51594 2008-02-26  Karl Berry  <karl@freefriends.org>
51595
51596         Sync from Libtool:
51597         * libltdl/argz.c (argz_add, argz_count): New functions.
51598         * libltdl/argz.in.h: Declare them.
51599         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51600
51601 2008-02-22  Bruno Haible  <bruno@clisp.org>
51602
51603         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51604         is a pointer type.  Needed for HP-UX 10.
51605         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51606         * doc/posix-functions/gmtime_r.texi: Likewise.
51607         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51608
51609 2008-02-24  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/environ-tests: New file.
51612         * tests/test-environ.c: New file.
51613
51614         New module 'environ'.
51615         * modules/environ: New file.
51616         * lib/unistd.in.h (environ): New declaration.
51617         * m4/environ.m4: New file.
51618         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51619         after use.
51620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51621         HAVE_DECL_ENVIRON.
51622         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51623         HAVE_DECL_ENVIRON.
51624         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51625         wrong claim that 'environ' is missing on some systems.
51626         * modules/execute (Depends-on): Add environ.
51627         * lib/execute.c (environ): Remove fallback declaration.
51628         * modules/pipe (Depends-on): Add environ.
51629         * lib/pipe.c (environ): Remove fallback declaration.
51630         * modules/setenv (Depends-on): Add environ.
51631         * lib/setenv.c (environ): Remove fallback declaration.
51632         * modules/unsetenv (Depends-on): Add environ.
51633         * lib/unsetenv.c (environ): Remove fallback declaration.
51634         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51635         m4/environ.m4.
51636         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51637         (gl_PREREQ_UNSETENV): Likewise.
51638
51639 2008-02-24  Bruno Haible  <bruno@clisp.org>
51640
51641         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51642
51643 2008-02-20  Bob Proulx  <bob@proulx.com>
51644
51645         Enable use of older two part flavor 'git describe'.
51646         * build-aux/git-version-gen: If using the older two part flavor of
51647         git version then recreate the third part now present in the
51648         newer three part flavor of git describe.
51649
51650 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51651
51652         * lib/fts.c (fts_build): Typo correction to comment.
51653
51654 2008-02-17  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51657         generating no-op conflicts.
51658
51659 2008-02-17  Bruno Haible  <bruno@clisp.org>
51660
51661         Speed up by 10%.
51662         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51663         result_entries, rather than an index-based loop.
51664
51665 2008-02-17  Bruno Haible  <bruno@clisp.org>
51666
51667         Speed up by 25%.
51668         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51669         'hashcode_cached'.
51670         (entry_create): New function.
51671         (entry_hashcode): Use the cached hashcode if possible.
51672         (read_changelog_file, try_split_merged_entry): Use entry_create.
51673
51674 2008-02-17  Bruno Haible  <bruno@clisp.org>
51675
51676         Speed up from O(n^2) to O(n) for long ChangeLog files.
51677         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51678         (read_changelog_file): Change implementation of entries_reversed list
51679         to rbtreehash.
51680         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51681
51682 2008-02-17  Bruno Haible  <bruno@clisp.org>
51683
51684         New option --split-merged-entry.
51685         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51686         (find_paragraph_end, try_split_merged_entry): New functions.
51687         (long_options): Add option --split-merged-entry.
51688         (usage): Document option --split-merged-entry.
51689         (main): Implement option --split-merged-entry.
51690         Reported by Eric Blake.
51691
51692 2008-02-17  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/git-merge-changelog.c: Include c-strstr.h.
51695         (main): Support the "git pull --rebase" situation.
51696         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51697         Reported by Eric Blake.
51698
51699 2008-02-16  Eric Blake  <ebb9@byu.net>
51700
51701         Avoid doubling \ in common case of "c-maybe" quoting style.
51702         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51703         eliding outer quotes.
51704         * lib/quotearg.h: Document this.
51705         * tests/test-quotearg.c (result_strings, inputs, results_g)
51706         (flag_results, locale_results): Test it by adding a new string to
51707         each test group.
51708         (compare_strings): Test new string.
51709
51710 2008-02-13  Eric Blake  <ebb9@byu.net>
51711
51712         Avoid trigraph quoting in default output.
51713         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51714         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51715         unless explicitly requested.
51716         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51717
51718 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51719
51720         Don't rely on signed integer overflowing to negative value.
51721         * lib/getugroups.c (getugroups): Include <limits.h>.
51722         Instead, compare against INT_MAX, and increment only if the test passes.
51723
51724 2008-02-13  Jim Meyering  <meyering@redhat.com>
51725         and Eric Blake  <ebb9@byu.net>
51726
51727         Avoid shadowing warning and compile errors on Linux.
51728         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51729         forwarding macros on Linux.
51730         (dcgettext): Define a stub, for Linux.
51731         (results_g, main): Avoid warnings.
51732
51733 2008-02-12  Eric Blake  <ebb9@byu.net>
51734
51735         Silence warning in last patch.
51736         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51737
51738         Quotearg part 4: add tests, fix c-maybe colon quoting.
51739         * lib/quotearg.h: Improve documentation.
51740         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51741         escapes when adding outer quotes.  When quoting trigraphs, use
51742         valid C notation.  When quoting NUL, omit extra characters if next
51743         character is not digit.  Alter prototype.
51744         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51745         callers.
51746         * modules/quotearg-tests: New module.
51747         * tests/test-quotearg.c: New test.
51748
51749 2008-02-07  Eric Blake  <ebb9@byu.net>
51750
51751         Quotearg part 3: add flag to control outer quote elision.
51752         * lib/quotearg.h (c_maybe_quoting_style): New style.
51753         (enum quoting_flags): Better documentation of flags.
51754         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51755         c-maybe style.
51756         (quotearg_buffer_restyled): Handle new flag to elide outer
51757         quotes.
51758
51759         Quotearg part 2: add flag that can control NUL elision.
51760         * lib/quotearg.h (set_quoting_flags): New prototype.
51761         * lib/quotearg.c (struct quoting_options): Add flag field.
51762         (set_quoting_flags): New function.
51763         (quotearg_buffer_restyled): Add flags parameter.
51764         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51765         (quotearg_n_options): Set the flag, since length cannot be
51766         returned.
51767         (quoting_options_from_style): Default flags correctly.
51768
51769         Quotearg part 1: more wrappers, restore quotearg_char state.
51770         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51771         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51772         (quotearg_colon_mem): New wrappers.
51773         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51774         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51775         functions.
51776         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51777         (quotearg_colon_mem): New functions.
51778
51779 2008-02-11  Bruno Haible  <bruno@clisp.org>
51780
51781         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51782         library in the current directory: it does not work with parallel make.
51783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51784
51785 2008-02-11  Bruno Haible  <bruno@clisp.org>
51786
51787         * .gitattributes: New file.
51788
51789 2008-02-11  Jim Meyering  <meyering@redhat.com>
51790
51791         useless-if-before-free: Fix reversed exit values.
51792         * build-aux/useless-if-before-free: Use correct values
51793         for EXIT_MATCH and EXIT_NO_MATCH.
51794
51795         * build-aux/useless-if-before-free: Close stdout carefully.
51796
51797 2008-02-10  Bruno Haible  <bruno@clisp.org>
51798
51799         New module 'git-merge-changelog'.
51800         * modules/git-merge-changelog: New file.
51801         * lib/git-merge-changelog.c: New file.
51802
51803 2008-02-10  Jim Meyering  <meyering@redhat.com>
51804
51805         useless-if-before-free: New option: --list (-l).
51806
51807         useless-if-before-free: Don't exit immediately upon open failure.
51808         * build-aux/useless-if-before-free: Exit 2 for errors.
51809         Upon failure to open a file, don't exit immediately.
51810         Rather, just warn and continue with any remaining files.
51811
51812 2008-02-10  Bruno Haible  <bruno@clisp.org>
51813
51814         New abstract list operation 'node_set_value'.
51815         * lib/gl_list.h (gl_list_node_set_value): New function.
51816         (struct gl_list_implementation): New field node_set_value.
51817         * lib/gl_list.c (gl_list_node_set_value): New function.
51818         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51819         (gl_array_list_implementation): Update.
51820         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51821         (gl_carray_list_implementation): Update.
51822         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51823         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51824         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51825         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51826         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51827         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51828         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51829         Update.
51830         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51831         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51832         (gl_sublist_list_implementation): Update.
51833
51834 2008-02-10  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51837         Needed when ELEMENT is #defined to 'some_type *'.
51838
51839 2008-02-10  Jim Meyering  <meyering@redhat.com>
51840
51841         New script and module: useless-if-before-free
51842         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51843         * build-aux/useless-if-before-free: New file.
51844         * modules/useless-if-before-free: New file.
51845
51846         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51847
51848         xstrtol_error: Fix typo.
51849         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51850         s/exit_failure/exit_status/.
51851
51852 2008-02-09  Jim Meyering  <meyering@redhat.com>
51853
51854         New script and module: gitlog-to-changelog
51855         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51856         * modules/gitlog-to-changelog: New file.
51857         * build-aux/gitlog-to-changelog: New file.
51858
51859 2008-02-08  Jim Meyering  <meyering@redhat.com>
51860
51861         Avoid two "parameter unused" warnings.
51862         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51863         Mark "st" as used.
51864
51865         Use "git COMMAND", not "git-COMMAND".
51866         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51867         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51868         * build-aux/git-version-gen: Use "git status", not "git-status".
51869
51870 2008-02-07  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51873         Avoids a crash on Windows Vista.
51874         Reported by Adam Strzelecki <ono@java.pl> via
51875         Simon Josefsson <simon@josefsson.org>.
51876
51877 2008-02-06  Bruno Haible  <bruno@clisp.org>
51878
51879         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51880         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51881         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51883         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51885         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51886         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51894         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51895         left-adjust flag.
51896         * tests/test-snprintf-posix.h (test_function): Likewise.
51897         * tests/test-sprintf-posix.h (test_function): Likewise.
51898         * tests/test-vasprintf-posix.c (test_function): Likewise.
51899         * doc/posix-functions/fprintf.texi: Update.
51900         * doc/posix-functions/printf.texi: Update.
51901         * doc/posix-functions/snprintf.texi: Update.
51902         * doc/posix-functions/sprintf.texi: Update.
51903         * doc/posix-functions/vfprintf.texi: Update.
51904         * doc/posix-functions/vprintf.texi: Update.
51905         * doc/posix-functions/vsnprintf.texi: Update.
51906         * doc/posix-functions/vsprintf.texi: Update.
51907         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51908
51909 2008-02-06  Bruno Haible  <bruno@clisp.org>
51910
51911         Fix bug introduced on 2008-01-26.
51912         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51913
51914 2008-02-06  Bruno Haible  <bruno@clisp.org>
51915
51916         Fix bug introduced on 2007-06-10.
51917         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51918         !NEED_PRINTF_FLAG_ZERO.
51919
51920 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51921
51922         getloadavg: use libperfstat on AIX5
51923         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51924
51925 2008-02-03  Bruno Haible  <bruno@clisp.org>
51926
51927         * lib/diffseq.h: Add comments about required #includes.
51928         Reported by Michael Biggs <gnulib@doubleplum.net>.
51929
51930 2008-02-01  Bruno Haible  <bruno@clisp.org>
51931
51932         * users.txt: Add gnuit.
51933
51934 2008-01-31  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/md4.c (set_uint32): Mark as inline.
51937         * lib/md5.c (set_uint32): Likewise.
51938         * lib/sha1.c (set_uint32): Likewise.
51939         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51940         * m4/md5.m4 (gl_MD5): Likewise.
51941         * m4/sha1.m4 (gl_SHA1): Likewise.
51942
51943 2008-01-31  Jim Meyering  <meyering@redhat.com>
51944
51945         Use "sizeof VAR", rather than a literal "4".
51946         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51947         * lib/md4.c (md4_read_ctx): Likewise.
51948         * lib/sha1.c (sha1_read_ctx): Likewise.
51949
51950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51951
51952         * tests/test-sha1.c: New file, based on test-md5.c.
51953
51954         * modules/crypto/sha1-tests: New file.
51955
51956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51957
51958         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51959
51960 2008-01-31  Jim Meyering  <meyering@redhat.com>
51961
51962         Prefer "sizeof v" over the equivalent "4".
51963         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51964         * lib/md5.c (set_uint32): Likewise.
51965         * lib/sha1.c (set_uint32): Likewise.
51966
51967 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51968
51969         * lib/sha1.c (set_uint32): Mark function as static.
51970
51971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51972
51973         md2: clarify comments to say that alignment is not required.
51974         * lib/md2.h: Remove warning about alignment in comment.
51975         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51976         never been required.
51977
51978 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51979
51980         md4: adapt alignment constraint fix from sha1.
51981         * lib/md4.c (set_uint32): New function, from sha1.c
51982         (md4_read_ctx): Use it.
51983         (md4_finish_ctx): Doc fix.
51984         * lib/md4.h: Doc fix.
51985
51986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51987
51988         md5: adapt alignment constraint fix from sha1.
51989         * lib/md5.c (set_uint32): New function, from sha1.c
51990         (md5_read_ctx): Use it.
51991         (md5_finish_ctx): Doc fix.
51992         * lib/md5.h: Doc fix.
51993
51994 2008-01-30  Peter Palfrader  <weasel@debian.org>
51995
51996         sha1: remove the result buffer alignment constraint
51997         * lib/sha1.c (set_uint32): New function.
51998         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51999         constraint.
52000         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52001         * lib/sha1.h: Likewise.
52002
52003 2008-01-30  Andreas Schwab  <schwab@suse.de>
52004             Bruno Haible  <bruno@clisp.org>
52005
52006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52007         correct definition of LDBL_MIN_EXP.
52008
52009 2008-01-30  Karl Berry  <karl@gnu.org>
52010
52011         * config/srclist-update: try to preserve x bit on updates.
52012         * config/srclistvars.sh: update for karl.
52013
52014 2008-01-29  Jim Meyering  <meyering@redhat.com>
52015
52016         vasnprintf.c: Avoid warning about unused label
52017         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52018         "overflow" label definition and associated code with the
52019         same cpp condition that guards the sole use of that label.
52020
52021 2008-01-26  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52024         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52025         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52026         * lib/isnanl-nolibm.h (isnanl): Likewise.
52027         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52028
52029 2008-01-26  Bruno Haible  <bruno@clisp.org>
52030
52031         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52032         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52033
52034 2008-01-26  Bruno Haible  <bruno@clisp.org>
52035
52036         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52037         GCC >= 4.0 built-in.
52038         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52039
52040 2008-01-26  Bruno Haible  <bruno@clisp.org>
52041
52042         Rename isnan, applicable to 'double' only, to isnand.
52043         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52044         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52045         (configure.ac): Update.
52046         (Include): Replace "isnan.h" with "isnand.h".
52047         * m4/isnand.m4: Renamed from m4/isnan.m4.
52048         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52049         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52050         instead of isnan.c.
52051         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52052         instead of HAVE_ISNAN_IN_LIBC.
52053         (isnand): Renamed from isnan.
52054         * lib/isnand.c: New file.
52055         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52056         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52057         (Makefile.am): Update.
52058         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52059         Include isnand.h instead of isnan.h.
52060         (main): Test isnand instead of isnan.
52061         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52062         isnan-nolibm.
52063         * modules/frexp (Depends-on): Likewise.
52064         * modules/frexp-tests (Depends-on): Likewise.
52065         * modules/frexp-nolibm (Depends-on): Likewise.
52066         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52067         * modules/isfinite (Depends-on): Likewise.
52068         * modules/round-tests (Depends-on): Likewise.
52069         * modules/signbit (Depends-on): Likewise.
52070         * modules/signbit-tests (Depends-on): Likewise.
52071         * modules/snprintf-posix (Depends-on): Likewise.
52072         * modules/sprintf-posix (Depends-on): Likewise.
52073         * modules/trunc-tests (Depends-on): Likewise.
52074         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52075         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52076         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52078         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52080         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52081         * modules/vasnprintf-posix (Depends-on): Likewise.
52082         * modules/vasprintf-posix (Depends-on): Likewise.
52083         * modules/vfprintf-posix (Depends-on): Likewise.
52084         * modules/vsnprintf-posix (Depends-on): Likewise.
52085         * modules/vsprintf-posix (Depends-on): Likewise.
52086         * lib/frexp.c: Include isnand.h instead of isnan.h.
52087         (ISNAN): Set to isnand instead of isnan.
52088         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52089         (gl_isfinited): Use isnand instead of isnan.
52090         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52091         (gl_signbitd): Use isnand instead of isnan.
52092         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52093         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52094         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52095         (main): Use isnand instead of isnan.
52096         * tests/test-round1.c: Include isnand.h.
52097         (main): Use isnand instead of isnan.
52098         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52099         (ISNAN): Set to isnand instead of isnan.
52100         * tests/test-trunc1.c: Include isnand.h.
52101         (main): Use isnand instead of isnan.
52102         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52103         (equal): Use isnand instead of isnan.
52104         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52105         isnand-nolibm.
52106         * NEWS: Mention the change.
52107
52108 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52109             Bruno Haible  <bruno@clisp.org>
52110
52111         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52112         the GCC builtins for signbits are present and set
52113         REPLACE_SIGNBIT_USING_GCC if so.
52114         * lib/math.in.h (signbit): Define using GCC builtins if
52115         REPLACE_SIGNBIT_USING_GCC is set.
52116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52117         REPLACE_SIGNBIT_USING_GCC.
52118         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52119
52120 2008-01-25  Jim Meyering  <meyering@redhat.com>
52121
52122         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52123         * lib/poll.c: Include <config.h>, not "config.h".
52124         * tests/test-getaddrinfo.c: Likewise.
52125
52126 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52127
52128         * modules/sockets-tests: New file.
52129
52130 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52131
52132         * modules/sockets: New module, can be used to call WSA_Startup and
52133         WSA_Cleanup when needed.
52134
52135         * lib/sockets.h, lib/sockets.c: New files.
52136
52137         * m4/sockets.m4: New file.
52138
52139         * tests/test-sockets.c: New file.
52140
52141 2008-01-19  Bruno Haible  <bruno@clisp.org>
52142
52143         * doc/posix-headers: Renamed from doc/headers.
52144         * doc/posix-functions: Renamed from doc/functions.
52145         * doc/gnulib.texi: Update.
52146
52147 2008-01-19  Bruno Haible  <bruno@clisp.org>
52148
52149         * doc/glibc-functions/strcasestr.texi: Include contents of
52150         doc/functions/strcasestr.texi, fixing the list of platforms.
52151         * doc/functions/strcasestr.texi: Remove file.
52152
52153 2008-01-19  Bruno Haible  <bruno@clisp.org>
52154
52155         * doc/glibc-functions/memmem.texi: Include contents of
52156         doc/functions/memmem.texi.
52157         * doc/functions/memmem.texi: Remove file.
52158
52159 2008-01-18  Bruno Haible  <bruno@clisp.org>
52160
52161         * doc/glibc-functions/*.texi: New files.
52162         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52163         to use the new files.
52164
52165 2008-01-17  Bruno Haible  <bruno@clisp.org>
52166
52167         * tests/test-gethostname.c (main): Fix printf statement.
52168
52169 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52170
52171         * modules/gethostname-tests: New file.
52172
52173         * tests/test-gethostname.c: New file.
52174
52175 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52176
52177         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52178         used by the UNAME case.  Reported by Bruno Haible
52179         <bruno@clisp.org>.
52180
52181 2008-01-17  Eric Blake  <ebb9@byu.net>
52182
52183         Convert c-strcasestr to be more efficient.
52184         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52185         (Depends-on): Add c-strcase, remove malloca, strnlen.
52186         * tests/test-c-strcasestr.c (main): Enhance test.
52187         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52188
52189 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52190
52191         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52192         Use it in creating po/Makevars.
52193
52194 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52195
52196         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52197         Applications that requires it should initialize libgcrypt
52198         manually.
52199
52200 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52201
52202         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52203
52204 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         Fix problem with getdate on mingw32 reported by Simon Josefsson
52207         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52208         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52209         tzname", when deciding whether to declare tzname.
52210         * lib/strftime.c (tzname): Likewise.
52211
52212 2008-01-15  Bruno Haible  <bruno@clisp.org>
52213
52214         Work around a MacOS X 10.5 bug in frexpl().
52215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52216         * doc/functions/frexpl.texi: Document the bug.
52217         Reported by Elias Pipping <pipping@gentoo.org>.
52218
52219 2008-01-14  Eric Blake  <ebb9@byu.net>
52220
52221         Touch up previous patch.
52222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52223         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52224
52225         Convert strcasestr module to use Two-Way algorithm.
52226         * modules/strcasestr-simple: New module, based on the old
52227         strcasestr, but with Two-Way rather than KMP.
52228         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52229         * lib/string.in.h (rpl_strcasestr): Declare.
52230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52231         performance.
52232         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52233         * modules/string (Makefile.am): Support strcasestr.
52234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52235         * modules/strcasestr-tests (Depends-on): Check for alarm.
52236         * tests/test-strcasestr.c: Augment test.
52237         * lib/str-two-way.h: Clean up stray macro.
52238         * NEWS: Document new module.
52239         * MODULES.html.sh (string handling): Likewise.
52240         * doc/functions/strcasestr.texi: New file.
52241         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52242         here, since it is not a POSIX function.
52243
52244 2008-01-14  Colin Watson  <cjwatson@debian.org>
52245             Bruno Haible  <bruno@clisp.org>
52246
52247         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52248         works fine; if not, set REPLACE_STRSIGNAL.
52249         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52251         REPLACE_STRSIGNAL.
52252         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52253         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52254         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52255
52256 2008-01-14  Bruno Haible  <bruno@clisp.org>
52257
52258         * modules/strsignal (Include): Change to <string.h>.
52259
52260 2008-01-14  Colin Watson  <cjwatson@debian.org>
52261
52262         * modules/argp (Notice): Add a notice recommending to change
52263         XGETTEXT_OPTIONS.
52264         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52265
52266 2008-01-13  Colin Watson  <cjwatson@debian.org>
52267
52268         * modules/strsignal-tests: New file.
52269         * tests/test-strsignal.c: New file.
52270
52271         * lib/strsignal.c: New file, from glibc with modifications.
52272         * lib/siglist.h: New file, from glibc with modifications.
52273         * lib/string.in.h (strsignal): New declaration.
52274         * m4/strsignal.m4: New file.
52275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52276         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52277         * modules/strsignal: New file.
52278         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52279         HAVE_DECL_STRSIGNAL.
52280
52281 2008-01-13  Bruno Haible  <bruno@clisp.org>
52282
52283         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52284         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52285         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52287
52288 2008-01-13  Bruno Haible  <bruno@clisp.org>
52289
52290         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52291         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52292         * lib/argp.h (__attribute__): Likewise.
52293         * lib/c-stack.c (__attribute__): Likewise.
52294         * lib/error.h (__attribute__): Likewise.
52295         * lib/fts.c (__attribute__): Likewise.
52296         * lib/openat.h (__attribute__): Likewise.
52297         * lib/stdio.in.h (__attribute__): Likewise.
52298         * lib/string.in.h (__attribute__): Likewise.
52299         * lib/utimens.c (__attribute__): Likewise.
52300         * lib/vasnprintf.h (__attribute__): Likewise.
52301         * lib/xalloc.h (__attribute__): Likewise.
52302         * lib/xprintf.h (__attribute__): Likewise.
52303         * lib/xstrtol.h (__attribute__): Likewise.
52304         * lib/xvasprintf.h (__attribute__): Likewise.
52305
52306 2008-01-12  Bruno Haible  <bruno@clisp.org>
52307
52308         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52309         * doc/glibc-headers/a.out.texi: New file.
52310         * doc/glibc-headers/aliases.texi: New file.
52311         * doc/glibc-headers/alloca.texi: New file.
52312         * doc/glibc-headers/ar.texi: New file.
52313         * doc/glibc-headers/argp.texi: New file.
52314         * doc/glibc-headers/argz.texi: New file.
52315         * doc/glibc-headers/byteswap.texi: New file.
52316         * doc/glibc-headers/crypt.texi: New file.
52317         * doc/glibc-headers/endian.texi: New file.
52318         * doc/glibc-headers/envz.texi: New file.
52319         * doc/glibc-headers/err.texi: New file.
52320         * doc/glibc-headers/error.texi: New file.
52321         * doc/glibc-headers/execinfo.texi: New file.
52322         * doc/glibc-headers/fpu_control.texi: New file.
52323         * doc/glibc-headers/fstab.texi: New file.
52324         * doc/glibc-headers/fts.texi: New file.
52325         * doc/glibc-headers/getopt.texi: New file.
52326         * doc/glibc-headers/ieee754.texi: New file.
52327         * doc/glibc-headers/ifaddrs.texi: New file.
52328         * doc/glibc-headers/libintl.texi: New file.
52329         * doc/glibc-headers/mcheck.texi: New file.
52330         * doc/glibc-headers/mntent.texi: New file.
52331         * doc/glibc-headers/obstack.texi: New file.
52332         * doc/glibc-headers/paths.texi: New file.
52333         * doc/glibc-headers/printf.texi: New file.
52334         * doc/glibc-headers/pty.texi: New file.
52335         * doc/glibc-headers/resolv.texi: New file.
52336         * doc/glibc-headers/shadow.texi: New file.
52337         * doc/glibc-headers/sysexits.texi: New file.
52338         * doc/glibc-headers/ttyent.texi: New file.
52339
52340 2008-01-12  Jim Meyering  <meyering@redhat.com>
52341
52342         announce-gen: emit Gnulib's git-based version string.
52343         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52344         New option --gnulib-version=V, where V is expected to be
52345         the output of running git describe in the gnulib directory.
52346         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52347         not useful, and plan to stop publishing an xdelta file with each
52348         coreutils release.
52349
52350         * build-aux/announce-gen: Also check for lzma-compressed files.
52351
52352 2008-01-11  Bruno Haible  <bruno@clisp.org>
52353
52354         * tests/test-memmem.c (main): Increase maximum allowed time.
52355         * tests/test-strstr.c (main): Likewise.
52356
52357 2008-01-11  Bruno Haible  <bruno@clisp.org>
52358
52359         * doc/functions/memmem.texi: Add more precisions about platforms.
52360         * doc/functions/strstr.texi: Likewise.
52361
52362 2008-01-10  Eric Blake  <ebb9@byu.net>
52363
52364         * m4/strstr.m4: Delete cruft from copy-n-paste.
52365         Reported by Bruno Haible.
52366
52367 2008-01-10  Bruno Haible  <bruno@clisp.org>
52368
52369         Make c-strstr rely on strstr.
52370         * lib/c-strstr.c: Don't include str-kmp.h.
52371         (c_strstr): Define in terms of strstr.
52372         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52373         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52374
52375 2008-01-10  Bruno Haible  <bruno@clisp.org>
52376
52377         * doc/gnulib.texi (String Functions in C Locale): New section.
52378         * doc/c-ctype.texi: New file.
52379         * doc/c-strcase.texi: New file.
52380         * doc/c-strcaseeq.texi: New file.
52381         * doc/c-strcasestr.texi: New file.
52382         * doc/c-strstr.texi: New file.
52383         * doc/c-strtod.texi: New file.
52384         * doc/c-strtold.texi: New file.
52385
52386 2008-01-10  Eric Blake  <ebb9@byu.net>
52387
52388         * lib/relocatable.h: Fix a comment.
52389
52390 2008-01-10  Eric Blake  <ebb9@byu.net>
52391
52392         Share two-way algorithm.
52393         * lib/str-two-way.h: New file, merged from...
52394         * lib/memmem.c: ...here...
52395         * lib/strstr.c: ...and here.
52396         * modules/memmem (Files): Use it.
52397         * modules/strstr (Files): Likewise.
52398
52399         Avoid quadratic strstr implementations.
52400         * lib/strstr.c: New file.
52401         * m4/strstr.m4: Likewise.
52402         * modules/strstr: Likewise.
52403         * modules/strstr-tests: Likewise.
52404         * tests/test-strstr.c: Likewise.
52405         * lib/string.in.h (rpl_strstr): Declare.
52406         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52408         * modules/string (Makefile.am): Likewise.
52409         * MODULES.html.sh (string handling): Mention new module.
52410         * doc/functions/strstr.texi (strstr): Document the bug.
52411
52412 2008-01-10  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/relocatable.h (relocate): State whether result is freshly
52415         allocated or not.
52416         * lib/relocatable.c (relocate): Return a freshly allocated string
52417         instead of a pointer to a privately held string.
52418         Reported by Sylvain Beucler <beuc@gnu.org>.
52419
52420 2008-01-10  Colin Watson  <cjwatson@debian.org>
52421
52422         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52423         s/S_ISNLK/S_ISLNK/.
52424
52425 2008-01-09  Bruno Haible  <bruno@clisp.org>
52426
52427         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52428         and other files.
52429         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52430         if it's only a guess.
52431         * modules/memmem: Simplify by depending on memmem-simple.
52432
52433 2008-01-09  Bruno Haible  <bruno@clisp.org>
52434
52435         Work around OpenBSD 4.0 tdelete() bug.
52436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52437         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52438         macros and don't redefine the enum values.
52439         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52440         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52441         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52442
52443 2008-01-09  Bruno Haible  <bruno@clisp.org>
52444
52445         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52446         (main): Don't perform the tests if setlocale did not install a UTF-8
52447         locale. Needed on OpenBSD 4.0.
52448         * modules/wcwidth-tests (Depends-on): Add localcharset.
52449
52450 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52451
52452         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52453         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52454         * NEWS: announce this.
52455         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52456
52457 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52458         and Eric Blake  <ebb9@byu.net>
52459
52460         Add memmem-simple module.
52461         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52462         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52463         * modules/memmem-simple: New file.
52464         * modules/memmem (Description): Tweak.
52465         * MODULES.html.sh (string handling): Mention new module.
52466         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52467         addressed by memmem-simple.
52468         * NEWS: Document the difference.
52469
52470 2008-01-09  Eric Blake  <ebb9@byu.net>
52471
52472         Give gcc some memmem optimization hints.
52473         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52474         (strcasestr): Declare as pure.
52475         * modules/memmem (Maintainer): Claim my implementation.
52476
52477 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52478
52479         Support AIX 6.1 and higher.
52480         * build-aux/config.libpath: Likewise.
52481         * build-aux/config.rpath: Likewise.
52482
52483 2008-01-08  Jim Meyering  <meyering@redhat.com>
52484             Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52487         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52488         Reported by Peter Fales in
52489         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52490
52491 2008-01-08  Bruno Haible  <bruno@clisp.org>
52492
52493         * modules/unictype/category-of (Depends-on): Add
52494         unictype/category-none.
52495         * modules/unictype/category-and-tests (Depends-on): Add
52496         unictype/category-{L,N,Lu,Nd}.
52497         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52498         * modules/unictype/category-or-tests (Depends-on): Add
52499         unictype/category-{L,N}.
52500         * modules/unictype/category-name-tests (Depends-on): Add
52501         unictype/category-{Z,Nl}.
52502         Reported by Simon Josefsson.
52503
52504 2008-01-08  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52507         convention better.
52508         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52509         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52510         Reported by Peter Miller <millerp@canb.auug.org.au>.
52511
52512 2008-01-08  Eric Blake  <ebb9@byu.net>
52513
52514         Rewrite memmem to guarantee linear complexity without malloc.
52515         * lib/memmem.c (memmem): Use Two-Way rather than
52516         Knuth-Morris-Pratt, to allow O(1) space usage.
52517         (critical_factorization, two_way_short_needle)
52518         (two_way_long_needle): New functions.
52519         (knuth_morris_pratt): Delete.
52520         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52521         Add stdint.
52522         * tests/test-memmem.c (main): Add tests for periodic needle and
52523         sublinear performance.
52524         * doc/functions/memmem.texi (memmem): Document other deficiencies
52525         in cygwin and older glibc.
52526
52527 2008-01-08  Bruno Haible  <bruno@clisp.org>
52528
52529         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52530         augmentation.
52531
52532 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52533
52534         Add a configure time option: --disable-acl.
52535         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52536         AC_ARG_ENABLE(acl).
52537
52538 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52539
52540         * tests/test-localename.c: Don't include obsolete "setenv.h".
52541
52542         * modules/localename-tests (Depends-on): Need unsetenv.
52543
52544 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52545
52546         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52547
52548 2008-01-06  Colin Watson  <cjwatson@debian.org>
52549
52550         * users.txt: Add man-db.
52551
52552 2008-01-07  Bruno Haible  <bruno@clisp.org>
52553
52554         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52555         previous section name.
52556
52557 2008-01-07  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/progname.c (set_program_name): Don't strip off a leading
52560         "lt-" prefix outside a .libs directory.
52561         Suggested by Paul Eggert.
52562
52563 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52564             Bruno Haible  <bruno@clisp.org>
52565
52566         Improve memory cleanup in 'relocatable' module.
52567         * lib/relocatable.h (compute_curr_prefix): Change return type to
52568         'char *'.
52569         * lib/relocatable.c (compute_curr_prefix): Change return type to
52570         'char *'. Free curr_installdir after use.
52571         (relocate): Free curr_prefix_better after use.
52572         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52573
52574 2008-01-01  Bruno Haible  <bruno@clisp.org>
52575
52576         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52577         failure on older glibc systems.
52578         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52579
52580 2008-01-05  Eric Blake  <ebb9@byu.net>
52581
52582         Avoid quadratic system memmem.
52583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52584         Reported by Ralf Wildenhues.
52585
52586         Fix memmem test for mingw.
52587         * modules/memmem-tests (configure.ac): Check for alarm.
52588         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52589         it.
52590         * doc/functions/memmem.texi: New file.
52591         * doc/gnulib.texi (Function Substitutes): Add memmem.
52592         Reported by Bruno Haible.
52593
52594 2008-01-04  Bruno Haible  <bruno@clisp.org>
52595
52596         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52597         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52598         gl_HEADER_STRING_H_DEFAULTS.
52599
52600 2008-01-04  Eric Blake  <ebb9@byu.net>
52601
52602         Shorten duration of memmem test.
52603         * tests/test-memmem.c (main): Use alarm to declare failure if test
52604         is taking too long.
52605         Reported by Ralf Wildenhues.
52606
52607 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52608
52609         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52610         string, needed by strerror.
52611
52612 2008-01-03  Colin Watson  <cjwatson@debian.org>
52613             Bruno Haible  <bruno@clisp.org>
52614
52615         * doc/gnulib-tool.texi (Localization): New section.
52616
52617 2008-01-02  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52620         variables to 'unsigned char *' type.
52621         Reported by Paul Eggert.
52622
52623 2008-01-02  Jim Meyering  <jim@meyering.net>
52624
52625         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52626
52627 2007-12-31  Jim Meyering  <jim@meyering.net>
52628
52629         Avoid use of private FTS type name.
52630         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52631
52632 2007-12-30  Karl Berry  <karl@gnu.org>
52633
52634         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52635         work around defect in Texinfo and/or the standalone Info browser.
52636
52637 2007-12-30  Bruno Haible  <bruno@clisp.org>
52638
52639         Unify 5 copies of the KMP code.
52640         * lib/str-kmp.h: New file.
52641         * lib/c-strcasestr.c: Include str-kmp.h.
52642         (knuth_morris_pratt): Remove function.
52643         (c_strcasestr): Update.
52644         * lib/c-strstr.c: Include str-kmp.h.
52645         (knuth_morris_pratt): Remove function.
52646         (c_strcasestr): Update.
52647         * lib/mbscasestr.c: Include str-kmp.h.
52648         (knuth_morris_pratt_unibyte): Remove function.
52649         * lib/mbsstr.c: Include str-kmp.h.
52650         (knuth_morris_pratt_unibyte): Remove function.
52651         * lib/strcasestr.c: Include str-kmp.h.
52652         (knuth_morris_pratt): Remove function.
52653         (strcasestr): Update.
52654         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52655         * modules/c-strstr (Files): Likewise.
52656         * modules/mbscasestr (Files): Likewise.
52657         * modules/mbsstr (Files): Likewise.
52658         * modules/strcasestr (Files): Likewise.
52659         Suggested by Paul Eggert.
52660
52661 2007-12-30  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52664         defined.
52665
52666 2007-12-30  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/xmalloca.h: Include xalloc.h.
52669         (xnmalloca): New macro.
52670
52671 2007-12-30  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/malloca.h (nmalloca): New macro.
52674         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52675         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52676         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52677         knuth_morris_pratt_multibyte): Likewise.
52678         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52679         knuth_morris_pratt_multibyte): Likewise.
52680         * lib/memmem.c (knuth_morris_pratt): Likewise.
52681         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52682
52683 2007-12-25  Bruno Haible  <bruno@clisp.org>
52684
52685         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52686         * lib/glob.c: Don't include openat.h.
52687         (link_exists2_p): Add back the code that deals with the
52688         !GLOB_ALTDIRFUNC case.
52689         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52690         let it do the filename concatenation.
52691         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52692         * modules/glob (Depends-on): Remove openat.
52693
52694 2007-12-31  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/dirfd (License): Change to LGPLv2+.
52697         Approved by Jim Meyering.
52698
52699 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52700
52701         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52702         when multiplying M by sizeof (size_t).
52703
52704 2007-12-10  Martin Lambers  <marlam@marlam.de>
52705
52706         Override getpagesize on mingw.
52707         * lib/getpagesize.c: New file.
52708         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52709         * modules/getpagesize (Files): Add lib/getpagesize.c.
52710         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52712         REPLACE_GETPAGESIZE.
52713         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52714
52715 2007-12-25  Bruno Haible  <bruno@clisp.org>
52716
52717         * modules/localcharset (Notice): New field.
52718         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52719         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52720
52721 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52722             Bruno Haible  <bruno@clisp.org>
52723
52724         Avoid using the syntax symbol() in formatted documentation.
52725         * MODULES.html.sh (func_module): When replacing symbol() with a
52726         hyperlink, remove the parentheses. Show an error if some remain.
52727         Recognize and render the '...' syntax.
52728         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52729         Rework. Add paragraph about GCC's inlining.
52730         * doc/alloca.texi: Likewise.
52731         * doc/error.texi: Remove parentheses from symbol reference.
52732         * doc/gnulib-intro.texi: Likewise.
52733         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52734         * modules/fnmatch (Description): Reword to say "the ... function".
52735         * modules/full-read (Description): Likewise.
52736         * modules/full-write (Description): Likewise.
52737         * modules/safe-read (Description): Likewise.
52738         * modules/safe-write (Description): Likewise.
52739         * modules/strchrnul (Description): Likewise.
52740         * modules/trim (Description): Likewise.
52741         * modules/error (Description): Remove parentheses from symbol
52742         references.
52743         * modules/verror (Description): Likewise.
52744         Reported by Karl Berry.
52745
52746 2007-12-25  Bruno Haible  <bruno@clisp.org>
52747
52748         Fixup after 2007-10-16 commit.
52749         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52750
52751 2007-12-24  Bruno Haible  <bruno@clisp.org>
52752
52753         Make --enable-relocatable work with DESTDIR.
52754         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52755         to compute installdir from destprog.
52756         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52757         also set the RELOC_DESTDIR variable.
52758         Reported by Левашев Иван <octagram@bluebottle.com>.
52759
52760 2007-12-24  Bruno Haible  <bruno@clisp.org>
52761
52762         Fix link error due to xalloc_die().
52763         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52764         of xreadlink.
52765         * lib/relocwrapper.c: Update comments.
52766         * build-aux/install-reloc: Remove xreadlink.c from file list.
52767         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52768         xreadlink.c.
52769         Reported by Левашев Иван <octagram@bluebottle.com>.
52770
52771 2007-12-24  Bruno Haible  <bruno@clisp.org>
52772
52773         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52774         * lib/setenv.h: Remove file.
52775         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52776         lib/setenv.h.
52777         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52778         (Depends-on): Add stdlib.
52779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52780         gl_FUNC_UNSETENV.
52781         (Include): Replace setenv.h with <stdlib.h>.
52782         * modules/unsetenv: New file.
52783         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52784         * lib/unsetenv.c: Include <stdlib.h> first.
52785         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52786         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52787         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52788         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52789         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52790         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52792         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52793         * doc/functions/unsetenv.texi: Update.
52794         * modules/xsetenv (Depends-on): Add unsetenv.
52795         * modules/getdate (Depends-on): Likewise.
52796         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52797         * lib/xsetenv.c: Don't include setenv.h.
52798         * lib/getdate.y: Likewise.
52799         * lib/relocwrapper.c: Likewise.
52800         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52801         (Depends-on): Add stdlib.
52802         * NEWS: Mention the changes.
52803         Reported by Левашев Иван <octagram@bluebottle.com>.
52804
52805 2007-12-23  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52808         indentation.
52809
52810 2007-12-23  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/c-strcasestr.c: Add more comments.
52813         * lib/c-strstr.c: Likewise.
52814         * lib/mbscasestr.c: Likewise.
52815         * lib/mbsstr.c: Likewise.
52816         * lib/strcasestr.c: Likewise.
52817         * lib/memmem.c: Likewise.
52818
52819 2007-12-23  Bruno Haible  <bruno@clisp.org>
52820
52821         * tests/test-memmem.c: Include <string.h> first.
52822
52823 2007-12-22  Bruno Haible  <bruno@clisp.org>
52824
52825         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52826         the contents of $testsbase.
52827         Reported by Ralf Wildenhues.
52828
52829 2007-12-22  Bruno Haible  <bruno@clisp.org>
52830
52831         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52832         two variables local_ldadd_before, local_ldadd_last.
52833
52834 2007-12-20  Eric Blake  <ebb9@byu.net>
52835
52836         Work around circular library issue when cross-compiling.
52837         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52838         that progname.o does not need to pull in rpl_memcmp.
52839
52840 2007-12-19  Eric Blake  <ebb9@byu.net>
52841
52842         Fix memmem to avoid O(n^2) worst-case complexity.
52843         * lib/memmem.c (knuth_morris_pratt): New function.
52844         (memmem): Use it if first few naive iterations fail.
52845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52846         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52847         * modules/memchr (License): Likewise.
52848         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52849         malloca.
52850         * tests/test-memmem.c: Rewrite, borrowing ideas from
52851         test-mbsstr1.c; the old version wouldn't even compile!
52852         * modules/memmem-tests: New file.
52853         * lib/string.in.h (rpl_memmem): Add declaration.
52854         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52856         REPLACE_MEMMEM.
52857
52858 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52861         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52862         before any system include files, and undef after them all.  This
52863         should fix a problem on VMS reported by John E. Malmberg in
52864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52865
52866 2007-12-17  Eric Blake  <ebb9@byu.net>
52867
52868         Revert addition of verify, for BSD/OS.
52869         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52870         can't handle large files, for the sake of obsolete platforms.
52871         * modules/fseeko (Depends-on): Remove verify.
52872         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52873         * doc/functions/ftello.texi (ftello): Likewise.
52874         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52875         Reported by Larry Jones.
52876
52877 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52878
52879         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52880         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52881
52882 2007-12-17  Jim Meyering  <meyering@redhat.com>
52883
52884         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52885         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52886         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52887         * modules/getcwd (Depends-on): Add openat.
52888         Reported by Petr Salinger.
52889
52890 2007-12-17  Bruno Haible  <bruno@clisp.org>
52891
52892         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52893         avoid a segmentation fault of the configure test on x86_64 systems.
52894
52895 2007-12-15  Jim Meyering  <meyering@redhat.com>
52896
52897         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52898
52899 2007-12-13  Eric Blake  <ebb9@byu.net>
52900
52901         Another fseek test.
52902         * tests/test-fseek.c (main): Also test ungetc handling.
52903         * tests/test-fseeko.c (main): Likewise.
52904         * modules/fseeko (Depends-on): Add verify.
52905         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52906         large.
52907         Reported by Larry Jones.
52908
52909         Fix fseeko on mingw.
52910         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52911         seek.
52912
52913         Beef up fseek tests.
52914         * tests/test-fseek.c (main): Also test eof handling.
52915         * tests/test-fseeko.c (main): Likewise.
52916         Reported by Larry Jones.
52917
52918 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52919
52920         Fix fseeko on BSD-based platforms.
52921         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52922         successful seek.
52923
52924 2007-12-12  Eric Blake  <ebb9@byu.net>
52925
52926         Allow circular dependency of separate libtests.a
52927         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52928         when use_libtests.
52929
52930 2007-12-11  Eric Blake  <ebb9@byu.net>
52931
52932         Fix bug with -0.0L in previous patch.
52933         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52934         * tests/test-isnan.c (main): Also test on zeroes.
52935         * tests/test-isnanf.c (main): Likewise.
52936         * tests/test-isnanl.h (main): Likewise.
52937
52938         Detect pseudo-denormals on x86 even when cross-compiling.
52939         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52940         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52941         invalid bit patterns that happen to satisfy ==.
52942
52943         Avoid link failures with separate libtests.a.
52944         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52945         last, to satisfy circular dependencies.
52946
52947 2007-12-11  Eric Blake  <ebb9@byu.net>
52948         and Bruno Haible  <bruno@clisp.org>
52949
52950         Fix OpenBSD 4.0 <float.h> handling of long double.
52951         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52952         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52953         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52954
52955 2007-12-11  Jim Meyering  <meyering@redhat.com>
52956
52957         * users.txt: Add libvirt.
52958
52959         Support versions of autoconf prior to 2.59c.
52960         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52961         if it is not already defined.
52962
52963 2007-12-09  Bruno Haible  <bruno@clisp.org>
52964
52965         Let 'gnulib-tool --import' collect sources needed for the tests in
52966         tests/ rather than in lib/.
52967         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52968         argument. If true, add rules to generate libtests.a, and put libtests.a
52969         into $(LDADD). Consider source files in subdirectories and set
52970         uses_subdirs.
52971         (func_emit_initmacro_start, func_emit_initmacro_end,
52972         func_emit_initmacro_done): Pass all arguments explicitly.
52973         (func_import): Determine two module lists main_modules,
52974         testsrelated_modules. Determine use_libtests. Determine two variables
52975         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52976         instead of just sed_transform_lib_file. Determine two variables
52977         main_files and testsrelated_files. Compute 'files' as the union of
52978         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52979         func_add_or_update. In the generated gnulib-comp.m4, collect the
52980         object files for tests/ in different variables than those for lib/.
52981         Substitute LIBTESTS_LIBDEPS.
52982         (func_create_testdir): Combine the uses_subdirs results from
52983         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52984
52985 2007-12-09  Bruno Haible  <bruno@clisp.org>
52986
52987         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52988         the build-aux directory.
52989
52990 2007-12-09  Bruno Haible  <bruno@clisp.org>
52991
52992         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52993         introduced on 2006-09-09.
52994
52995 2007-12-07  Jim Meyering  <meyering@redhat.com>
52996
52997         Let these macros work also with autoconf-2.59.
52998         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52999         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53001
53002 2007-12-06  Jim Meyering  <meyering@redhat.com>
53003
53004         Avoid a configure-time syntax error in gl_FUNC_ACL.
53005         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53006         function in each branch, before testing the cache variable.
53007
53008 2007-12-04  Eric Blake  <ebb9@byu.net>
53009
53010         Make scripts executable.
53011         * build-aux/config.guess: Add execute permissions.
53012         * build-aux/config.sub: Likewise.
53013         * build-aux/gendocs.sh: Likewise.
53014
53015         Fix frexp on mingw.
53016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53017         cross-compiling.
53018         * doc/functions/frexp.texi (frexp): Document the bug.
53019
53020         Make cygwin fseeko check more reliable.
53021         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53022         version numbers, rather than unrelated feature check.
53023         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53024         * doc/functions/ftello.texi (ftello): Likewise.
53025         Reported by Bruno Haible.
53026
53027         * m4/strerror.m4: Bump version number.
53028
53029 2007-12-03  Bruno Haible  <bruno@clisp.org>
53030
53031         * doc/functions/mprotect.texi: Mention the mingw problem.
53032
53033 2007-12-03  Eric Blake  <ebb9@byu.net>
53034
53035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53036         REPLACE_STRERROR is initialized before this macro.
53037
53038 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53039
53040         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53041         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53042         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53043         put -lsec in even for programs other than 'ls'.  This fixes a problem
53044         for gettext reported by Bruno Haible in
53045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53046         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53047         Add support for Solaris 10.  This isn't efficient, but should get the
53048         job done for now.
53049
53050 2007-12-03  James Youngman  <jay@gnu.org>
53051
53052         * doc/regexprops-generic.texi: change "an close-group" to "a
53053         close-group" and "illegal" to "not allowed".
53054
53055 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53056
53057         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53058         pr_byname.h. Needed for the rare case when the maintainer has done
53059         "make maintainer-clean" in the source directory and then attempts a
53060         build outside the source directory.
53061         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53062         scripts_byname.h.
53063
53064 2007-12-02  Martin Lambers <marlam@marlam.de>
53065             Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/getpagesize.h: Remove file.
53068         * lib/unistd.in.h: Include declaration of getpagesize here.
53069         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53070         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53071         HAVE_SYS_PARAM_H.
53072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53073         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53074         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53075         (Depends-on): Add unistd.
53076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53077         (Include): Use <unistd.h> instead of getpagesize.h.
53078         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53079         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53080         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53081         gl_GETPAGESIZE invocation, already handled by module dependency.
53082         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53083
53084 2007-12-02  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/strings-tests: New file.
53087         * tests/test-strings.c: New file.
53088
53089         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53090         * lib/strings.in.h: New file.
53091         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53092         * m4/strings_h.m4: New file.
53093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53094         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53095         * modules/strings: New file.
53096         * modules/string (Makefile.am): Update.
53097         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53098         Reported by Karl Berry.
53099
53100 2007-12-01  Eric Blake  <ebb9@byu.net>
53101
53102         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53103         accomodate fix in cygwin 1.5.25.
53104
53105 2007-12-01  Jim Meyering  <meyering@redhat.com>
53106
53107         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53108         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53109         that would inhibit utf8-optimization of a regexp containing line-
53110         or buffer-anchors, e.g., `^', `$'.
53111
53112 2007-11-30  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53115         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53116         glthread_recursive_lock_init.
53117         * lib/lock.c (glthread_recursive_lock_init)
53118         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53119         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53120
53121 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53122
53123         New function qset_acl, like set_acl but with syscall semantics.
53124         * lib/acl.h (qset_acl): New decl.
53125         * lib/acl.c (qset_acl): New function.
53126         (set_acl): Use new function.  Use more-consistent diagnostics.
53127
53128 2007-11-28  Jim Meyering  <meyering@redhat.com>
53129
53130         * modules/physmem (License): Change from GPL to LGPLv2+.
53131
53132 2007-11-26  Bruno Haible  <bruno@clisp.org>
53133
53134         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53135         'long double' type has excess precision.
53136         Reported by Jim Meyering in
53137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53138
53139 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53140
53141         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53142         Sync from <http://gnu.org/licenses>.
53143         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53144         with license text from same location.
53145         * doc/maintain.texi, doc/standards.texi:  Sync from
53146         <http://savannah.gnu.org/projects/gnustandards>.
53147
53148 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53149         and Jim Meyering  <meyering@redhat.com>
53150
53151         Adjust getdate' grammar to accept a slightly more regular language.
53152         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53153         Before, the former was rejected.
53154         * lib/getdate.y (digits_to_date_time): New function, factored
53155         out of ...
53156         (number): ...here.  Just call digits_to_date_time.
53157         (hybrid): New non-terminal to handle an <unsigned number,
53158         signed relative offset> sequence consistently.
53159
53160 2007-11-18  Jim Meyering  <meyering@redhat.com>
53161
53162         Pull my changes from coreutils:
53163         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53164         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53165         use of $gnulib_tool_option_extras, so that it's separated from the
53166         preceding argument.
53167
53168         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53169         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53170         parent destination directories before copying a file into place.
53171
53172 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53173
53174         bootstrap: work also with 4-argument variant of AC_INIT
53175         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53176
53177 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         Port test-getaddrinfo to Solaris.
53180         Problem reported by Bruno Haible in
53181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53182         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53183         explanation of setting 'hints'.
53184         Don't reject an implementation merely because it returns EAI_SERVICE.
53185         (EAI_SERVICE): Define to 0 if not defined.
53186
53187 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         The license of gnu-make and posix-shell is now "GPLed build tool".
53190         * modules/gnu-make (License): Likewise.
53191         * modules/posix-shell (License): Likewise.
53192
53193         New module posix-shell, for determining a POSIX shell
53194         or perhaps something that is close enough to a POSIX shell.
53195         * m4/posix-shell.m4: New file.
53196         * modules/posix-shell: New file.
53197
53198         * MODULES.html.sh: Mention new module.
53199
53200         New module gnu-make, for determining whether we're using GNU Make.
53201         * m4/gnu-make.m4: New file.
53202         * modules/gnu-make: New file.
53203         * MODULES.html.sh: Mention new module.
53204
53205 2007-11-14  Jim Meyering  <meyering@redhat.com>
53206
53207         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53208         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53209         use this macro to create a function _definition_.
53210         Remove useless "#undef ARGMATCH_DIE".
53211
53212 2007-11-14  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/config.charset: Update for OpenBSD 4.1.
53215         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53216
53217 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53218
53219         Document 64-bit #if problems in stdint.texi.
53220         * doc/headers/stdint.texi (stdint.h): Mention problems with
53221         64-bit-#if, and how to work around them.
53222
53223         Don't insist on 'long long int' support in the preprocessor.  It
53224         breaks too many things.  For example, PRIdMAX still uses a 'long
53225         long int' format with the latest Sun compiler, even though
53226         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53227         preprocessor problem.  This causes the latest coreutils to dump
53228         core on Solaris 10 sparc with the Sun C compiler.
53229         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53230         the troublesome expressions at configure-time, not at #if-time.
53231         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53232         preprocessor.
53233         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53234         compile-time C checks, done at 'configure'-time.
53235         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53236         * modules/inttypes (Makefile): Substitute the new symbols that
53237         gl_INTTYPES_H now generates.
53238         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53239
53240 2007-11-12  Bruno Haible  <bruno@clisp.org>
53241
53242         Tests for Unicode character classification functions.
53243
53244         * modules/unictype/bidicategory-byname-tests: New file.
53245         * modules/unictype/bidicategory-name-tests: New file.
53246         * modules/unictype/bidicategory-of-tests: New file.
53247         * modules/unictype/bidicategory-test-tests: New file.
53248         * modules/unictype/block-list-tests: New file.
53249         * modules/unictype/block-of-tests: New file.
53250         * modules/unictype/block-test-tests: New file.
53251         * modules/unictype/category-C-tests: New file.
53252         * modules/unictype/category-Cc-tests: New file.
53253         * modules/unictype/category-Cf-tests: New file.
53254         * modules/unictype/category-Cn-tests: New file.
53255         * modules/unictype/category-Co-tests: New file.
53256         * modules/unictype/category-Cs-tests: New file.
53257         * modules/unictype/category-L-tests: New file.
53258         * modules/unictype/category-Ll-tests: New file.
53259         * modules/unictype/category-Lm-tests: New file.
53260         * modules/unictype/category-Lo-tests: New file.
53261         * modules/unictype/category-Lt-tests: New file.
53262         * modules/unictype/category-Lu-tests: New file.
53263         * modules/unictype/category-M-tests: New file.
53264         * modules/unictype/category-Mc-tests: New file.
53265         * modules/unictype/category-Me-tests: New file.
53266         * modules/unictype/category-Mn-tests: New file.
53267         * modules/unictype/category-N-tests: New file.
53268         * modules/unictype/category-Nd-tests: New file.
53269         * modules/unictype/category-Nl-tests: New file.
53270         * modules/unictype/category-No-tests: New file.
53271         * modules/unictype/category-P-tests: New file.
53272         * modules/unictype/category-Pc-tests: New file.
53273         * modules/unictype/category-Pd-tests: New file.
53274         * modules/unictype/category-Pe-tests: New file.
53275         * modules/unictype/category-Pf-tests: New file.
53276         * modules/unictype/category-Pi-tests: New file.
53277         * modules/unictype/category-Po-tests: New file.
53278         * modules/unictype/category-Ps-tests: New file.
53279         * modules/unictype/category-S-tests: New file.
53280         * modules/unictype/category-Sc-tests: New file.
53281         * modules/unictype/category-Sk-tests: New file.
53282         * modules/unictype/category-Sm-tests: New file.
53283         * modules/unictype/category-So-tests: New file.
53284         * modules/unictype/category-Z-tests: New file.
53285         * modules/unictype/category-Zl-tests: New file.
53286         * modules/unictype/category-Zp-tests: New file.
53287         * modules/unictype/category-Zs-tests: New file.
53288         * modules/unictype/category-and-not-tests: New file.
53289         * modules/unictype/category-and-tests: New file.
53290         * modules/unictype/category-byname-tests: New file.
53291         * modules/unictype/category-name-tests: New file.
53292         * modules/unictype/category-none-tests: New file.
53293         * modules/unictype/category-of-tests: New file.
53294         * modules/unictype/category-or-tests: New file.
53295         * modules/unictype/category-test-withtable-tests: New file.
53296         * modules/unictype/combining-class-tests: New file.
53297         * modules/unictype/ctype-alnum-tests: New file.
53298         * modules/unictype/ctype-alpha-tests: New file.
53299         * modules/unictype/ctype-blank-tests: New file.
53300         * modules/unictype/ctype-cntrl-tests: New file.
53301         * modules/unictype/ctype-digit-tests: New file.
53302         * modules/unictype/ctype-graph-tests: New file.
53303         * modules/unictype/ctype-lower-tests: New file.
53304         * modules/unictype/ctype-print-tests: New file.
53305         * modules/unictype/ctype-punct-tests: New file.
53306         * modules/unictype/ctype-space-tests: New file.
53307         * modules/unictype/ctype-upper-tests: New file.
53308         * modules/unictype/ctype-xdigit-tests: New file.
53309         * modules/unictype/decimal-digit-tests: New file.
53310         * modules/unictype/digit-tests: New file.
53311         * modules/unictype/mirror-tests: New file.
53312         * modules/unictype/numeric-tests: New file.
53313         * modules/unictype/property-alphabetic-tests: New file.
53314         * modules/unictype/property-ascii-hex-digit-tests: New file.
53315         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53316         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53317         * modules/unictype/property-bidi-block-separator-tests: New file.
53318         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53319         * modules/unictype/property-bidi-common-separator-tests: New file.
53320         * modules/unictype/property-bidi-control-tests: New file.
53321         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53322         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53323         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53324         * modules/unictype/property-bidi-european-digit-tests: New file.
53325         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53326         * modules/unictype/property-bidi-left-to-right-tests: New file.
53327         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53328         * modules/unictype/property-bidi-other-neutral-tests: New file.
53329         * modules/unictype/property-bidi-pdf-tests: New file.
53330         * modules/unictype/property-bidi-segment-separator-tests: New file.
53331         * modules/unictype/property-bidi-whitespace-tests: New file.
53332         * modules/unictype/property-byname-tests: New file.
53333         * modules/unictype/property-combining-tests: New file.
53334         * modules/unictype/property-composite-tests: New file.
53335         * modules/unictype/property-currency-symbol-tests: New file.
53336         * modules/unictype/property-dash-tests: New file.
53337         * modules/unictype/property-decimal-digit-tests: New file.
53338         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53339         * modules/unictype/property-deprecated-tests: New file.
53340         * modules/unictype/property-diacritic-tests: New file.
53341         * modules/unictype/property-extender-tests: New file.
53342         * modules/unictype/property-format-control-tests: New file.
53343         * modules/unictype/property-grapheme-base-tests: New file.
53344         * modules/unictype/property-grapheme-extend-tests: New file.
53345         * modules/unictype/property-grapheme-link-tests: New file.
53346         * modules/unictype/property-hex-digit-tests: New file.
53347         * modules/unictype/property-hyphen-tests: New file.
53348         * modules/unictype/property-id-continue-tests: New file.
53349         * modules/unictype/property-id-start-tests: New file.
53350         * modules/unictype/property-ideographic-tests: New file.
53351         * modules/unictype/property-ids-binary-operator-tests: New file.
53352         * modules/unictype/property-ids-trinary-operator-tests: New file.
53353         * modules/unictype/property-ignorable-control-tests: New file.
53354         * modules/unictype/property-iso-control-tests: New file.
53355         * modules/unictype/property-join-control-tests: New file.
53356         * modules/unictype/property-left-of-pair-tests: New file.
53357         * modules/unictype/property-line-separator-tests: New file.
53358         * modules/unictype/property-logical-order-exception-tests: New file.
53359         * modules/unictype/property-lowercase-tests: New file.
53360         * modules/unictype/property-math-tests: New file.
53361         * modules/unictype/property-non-break-tests: New file.
53362         * modules/unictype/property-not-a-character-tests: New file.
53363         * modules/unictype/property-numeric-tests: New file.
53364         * modules/unictype/property-other-alphabetic-tests: New file.
53365         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53366         * modules/unictype/property-other-grapheme-extend-tests: New file.
53367         * modules/unictype/property-other-id-continue-tests: New file.
53368         * modules/unictype/property-other-id-start-tests: New file.
53369         * modules/unictype/property-other-lowercase-tests: New file.
53370         * modules/unictype/property-other-math-tests: New file.
53371         * modules/unictype/property-other-uppercase-tests: New file.
53372         * modules/unictype/property-paired-punctuation-tests: New file.
53373         * modules/unictype/property-paragraph-separator-tests: New file.
53374         * modules/unictype/property-pattern-syntax-tests: New file.
53375         * modules/unictype/property-pattern-white-space-tests: New file.
53376         * modules/unictype/property-private-use-tests: New file.
53377         * modules/unictype/property-punctuation-tests: New file.
53378         * modules/unictype/property-quotation-mark-tests: New file.
53379         * modules/unictype/property-radical-tests: New file.
53380         * modules/unictype/property-sentence-terminal-tests: New file.
53381         * modules/unictype/property-soft-dotted-tests: New file.
53382         * modules/unictype/property-space-tests: New file.
53383         * modules/unictype/property-terminal-punctuation-tests: New file.
53384         * modules/unictype/property-test-tests: New file.
53385         * modules/unictype/property-titlecase-tests: New file.
53386         * modules/unictype/property-unassigned-code-value-tests: New file.
53387         * modules/unictype/property-unified-ideograph-tests: New file.
53388         * modules/unictype/property-uppercase-tests: New file.
53389         * modules/unictype/property-variation-selector-tests: New file.
53390         * modules/unictype/property-white-space-tests: New file.
53391         * modules/unictype/property-xid-continue-tests: New file.
53392         * modules/unictype/property-xid-start-tests: New file.
53393         * modules/unictype/property-zero-width-tests: New file.
53394         * modules/unictype/scripts-tests: New file.
53395         * modules/unictype/syntax-c-ident-tests: New file.
53396         * modules/unictype/syntax-c-whitespace-tests: New file.
53397         * modules/unictype/syntax-java-ident-tests: New file.
53398         * modules/unictype/syntax-java-whitespace-tests: New file.
53399         * tests/unictype/test-bidi_byname.c: New file.
53400         * tests/unictype/test-bidi_name.c: New file.
53401         * tests/unictype/test-bidi_of.c: New file.
53402         * tests/unictype/test-bidi_test.c: New file.
53403         * tests/unictype/test-block_list.c: New file.
53404         * tests/unictype/test-block_of.c: New file.
53405         * tests/unictype/test-block_test.c: New file.
53406         * tests/unictype/test-categ_and.c: New file.
53407         * tests/unictype/test-categ_and_not.c: New file.
53408         * tests/unictype/test-categ_byname.c: New file.
53409         * tests/unictype/test-categ_name.c: New file.
53410         * tests/unictype/test-categ_none.c: New file.
53411         * tests/unictype/test-categ_of.c: New file.
53412         * tests/unictype/test-categ_or.c: New file.
53413         * tests/unictype/test-categ_test_withtable.c: New file.
53414         * tests/unictype/test-combining.c: New file.
53415         * tests/unictype/test-decdigit.c: New file.
53416         * tests/unictype/test-digit.c: New file.
53417         * tests/unictype/test-mirror.c: New file.
53418         * tests/unictype/test-numeric.c: New file.
53419         * tests/unictype/test-pr_byname.c: New file.
53420         * tests/unictype/test-pr_test.c: New file.
53421         * tests/unictype/test-predicate-part1.h: New file.
53422         * tests/unictype/test-predicate-part2.h: New file.
53423         * tests/unictype/test-scripts.c: New file.
53424         * tests/unictype/test-sy_c_ident.c: New file.
53425         * tests/unictype/test-sy_java_ident.c: New file.
53426
53427         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53428         for Unicode 5.0.0.
53429         * tests/unictype/test-categ_Cc.c: Likewise.
53430         * tests/unictype/test-categ_Cf.c: Likewise.
53431         * tests/unictype/test-categ_Cn.c: Likewise.
53432         * tests/unictype/test-categ_Co.c: Likewise.
53433         * tests/unictype/test-categ_Cs.c: Likewise.
53434         * tests/unictype/test-categ_L.c: Likewise.
53435         * tests/unictype/test-categ_Ll.c: Likewise.
53436         * tests/unictype/test-categ_Lm.c: Likewise.
53437         * tests/unictype/test-categ_Lo.c: Likewise.
53438         * tests/unictype/test-categ_Lt.c: Likewise.
53439         * tests/unictype/test-categ_Lu.c: Likewise.
53440         * tests/unictype/test-categ_M.c: Likewise.
53441         * tests/unictype/test-categ_Mc.c: Likewise.
53442         * tests/unictype/test-categ_Me.c: Likewise.
53443         * tests/unictype/test-categ_Mn.c: Likewise.
53444         * tests/unictype/test-categ_N.c: Likewise.
53445         * tests/unictype/test-categ_Nd.c: Likewise.
53446         * tests/unictype/test-categ_Nl.c: Likewise.
53447         * tests/unictype/test-categ_No.c: Likewise.
53448         * tests/unictype/test-categ_P.c: Likewise.
53449         * tests/unictype/test-categ_Pc.c: Likewise.
53450         * tests/unictype/test-categ_Pd.c: Likewise.
53451         * tests/unictype/test-categ_Pe.c: Likewise.
53452         * tests/unictype/test-categ_Pf.c: Likewise.
53453         * tests/unictype/test-categ_Pi.c: Likewise.
53454         * tests/unictype/test-categ_Po.c: Likewise.
53455         * tests/unictype/test-categ_Ps.c: Likewise.
53456         * tests/unictype/test-categ_S.c: Likewise.
53457         * tests/unictype/test-categ_Sc.c: Likewise.
53458         * tests/unictype/test-categ_Sk.c: Likewise.
53459         * tests/unictype/test-categ_Sm.c: Likewise.
53460         * tests/unictype/test-categ_So.c: Likewise.
53461         * tests/unictype/test-categ_Z.c: Likewise.
53462         * tests/unictype/test-categ_Zl.c: Likewise.
53463         * tests/unictype/test-categ_Zp.c: Likewise.
53464         * tests/unictype/test-categ_Zs.c: Likewise.
53465         * tests/unictype/test-ctype_alnum.c: Likewise.
53466         * tests/unictype/test-ctype_alpha.c: Likewise.
53467         * tests/unictype/test-ctype_blank.c: Likewise.
53468         * tests/unictype/test-ctype_cntrl.c: Likewise.
53469         * tests/unictype/test-ctype_digit.c: Likewise.
53470         * tests/unictype/test-ctype_graph.c: Likewise.
53471         * tests/unictype/test-ctype_lower.c: Likewise.
53472         * tests/unictype/test-ctype_print.c: Likewise.
53473         * tests/unictype/test-ctype_punct.c: Likewise.
53474         * tests/unictype/test-ctype_space.c: Likewise.
53475         * tests/unictype/test-ctype_upper.c: Likewise.
53476         * tests/unictype/test-ctype_xdigit.c: Likewise.
53477         * tests/unictype/test-decdigit.h: Likewise.
53478         * tests/unictype/test-digit.h: Likewise.
53479         * tests/unictype/test-numeric.h: Likewise.
53480         * tests/unictype/test-pr_alphabetic.c: Likewise.
53481         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53482         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53483         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53484         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53485         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53486         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53487         * tests/unictype/test-pr_bidi_control.c: Likewise.
53488         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53489         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53490         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53491         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53492         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53493         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53494         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53495         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53496         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53497         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53498         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53499         * tests/unictype/test-pr_combining.c: Likewise.
53500         * tests/unictype/test-pr_composite.c: Likewise.
53501         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53502         * tests/unictype/test-pr_dash.c: Likewise.
53503         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53504         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53505         * tests/unictype/test-pr_deprecated.c: Likewise.
53506         * tests/unictype/test-pr_diacritic.c: Likewise.
53507         * tests/unictype/test-pr_extender.c: Likewise.
53508         * tests/unictype/test-pr_format_control.c: Likewise.
53509         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53510         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53511         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53512         * tests/unictype/test-pr_hex_digit.c: Likewise.
53513         * tests/unictype/test-pr_hyphen.c: Likewise.
53514         * tests/unictype/test-pr_id_continue.c: Likewise.
53515         * tests/unictype/test-pr_id_start.c: Likewise.
53516         * tests/unictype/test-pr_ideographic.c: Likewise.
53517         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53518         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53519         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53520         * tests/unictype/test-pr_iso_control.c: Likewise.
53521         * tests/unictype/test-pr_join_control.c: Likewise.
53522         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53523         * tests/unictype/test-pr_line_separator.c: Likewise.
53524         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53525         * tests/unictype/test-pr_lowercase.c: Likewise.
53526         * tests/unictype/test-pr_math.c: Likewise.
53527         * tests/unictype/test-pr_non_break.c: Likewise.
53528         * tests/unictype/test-pr_not_a_character.c: Likewise.
53529         * tests/unictype/test-pr_numeric.c: Likewise.
53530         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53531         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53532         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53533         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53534         * tests/unictype/test-pr_other_id_start.c: Likewise.
53535         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53536         * tests/unictype/test-pr_other_math.c: Likewise.
53537         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53538         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53539         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53540         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53541         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53542         * tests/unictype/test-pr_private_use.c: Likewise.
53543         * tests/unictype/test-pr_punctuation.c: Likewise.
53544         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53545         * tests/unictype/test-pr_radical.c: Likewise.
53546         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53547         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53548         * tests/unictype/test-pr_space.c: Likewise.
53549         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53550         * tests/unictype/test-pr_titlecase.c: Likewise.
53551         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53552         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53553         * tests/unictype/test-pr_uppercase.c: Likewise.
53554         * tests/unictype/test-pr_variation_selector.c: Likewise.
53555         * tests/unictype/test-pr_white_space.c: Likewise.
53556         * tests/unictype/test-pr_xid_continue.c: Likewise.
53557         * tests/unictype/test-pr_xid_start.c: Likewise.
53558         * tests/unictype/test-pr_zero_width.c: Likewise.
53559         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53560         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53561
53562 2007-11-12  Bruno Haible  <bruno@clisp.org>
53563
53564         Unicode character classification functions.
53565         * lib/unictype.h: New file.
53566         * modules/unictype/base: New file.
53567         * modules/unictype/category-L: New file.
53568         * modules/unictype/category-Lu: New file.
53569         * modules/unictype/category-Ll: New file.
53570         * modules/unictype/category-Lt: New file.
53571         * modules/unictype/category-Lm: New file.
53572         * modules/unictype/category-Lo: New file.
53573         * modules/unictype/category-M: New file.
53574         * modules/unictype/category-Mn: New file.
53575         * modules/unictype/category-Mc: New file.
53576         * modules/unictype/category-Me: New file.
53577         * modules/unictype/category-N: New file.
53578         * modules/unictype/category-Nd: New file.
53579         * modules/unictype/category-Nl: New file.
53580         * modules/unictype/category-No: New file.
53581         * modules/unictype/category-P: New file.
53582         * modules/unictype/category-Pc: New file.
53583         * modules/unictype/category-Pd: New file.
53584         * modules/unictype/category-Ps: New file.
53585         * modules/unictype/category-Pe: New file.
53586         * modules/unictype/category-Pi: New file.
53587         * modules/unictype/category-Pf: New file.
53588         * modules/unictype/category-Po: New file.
53589         * modules/unictype/category-S: New file.
53590         * modules/unictype/category-Sm: New file.
53591         * modules/unictype/category-Sc: New file.
53592         * modules/unictype/category-Sk: New file.
53593         * modules/unictype/category-So: New file.
53594         * modules/unictype/category-Z: New file.
53595         * modules/unictype/category-Zs: New file.
53596         * modules/unictype/category-Zl: New file.
53597         * modules/unictype/category-Zp: New file.
53598         * modules/unictype/category-C: New file.
53599         * modules/unictype/category-Cc: New file.
53600         * modules/unictype/category-Cf: New file.
53601         * modules/unictype/category-Cs: New file.
53602         * modules/unictype/category-Co: New file.
53603         * modules/unictype/category-Cn: New file.
53604         * modules/unictype/category-or: New file.
53605         * modules/unictype/category-of: New file.
53606         * modules/unictype/category-test: New file.
53607         * modules/unictype/category-test-withtable: New file.
53608         * modules/unictype/category-byname: New file.
53609         * modules/unictype/category-none: New file.
53610         * modules/unictype/category-and: New file.
53611         * modules/unictype/category-and-not: New file.
53612         * modules/unictype/category-name: New file.
53613         * modules/unictype/combining-class: New file.
53614         * modules/unictype/category-all: New file.
53615         * modules/unictype/bidicategory-all: New file.
53616         * modules/unictype/bidicategory-byname: New file.
53617         * modules/unictype/bidicategory-name: New file.
53618         * modules/unictype/bidicategory-of: New file.
53619         * modules/unictype/bidicategory-test: New file.
53620         * modules/unictype/decimal-digit: New file.
53621         * modules/unictype/digit: New file.
53622         * modules/unictype/numeric: New file.
53623         * modules/unictype/mirror: New file.
53624         * modules/unictype/property-white-space: New file.
53625         * modules/unictype/property-alphabetic: New file.
53626         * modules/unictype/property-other-alphabetic: New file.
53627         * modules/unictype/property-not-a-character: New file.
53628         * modules/unictype/property-default-ignorable-code-point: New file.
53629         * modules/unictype/property-other-default-ignorable-code-point: New
53630         file.
53631         * modules/unictype/property-deprecated: New file.
53632         * modules/unictype/property-logical-order-exception: New file.
53633         * modules/unictype/property-variation-selector: New file.
53634         * modules/unictype/property-private-use: New file.
53635         * modules/unictype/property-unassigned-code-value: New file.
53636         * modules/unictype/property-uppercase: New file.
53637         * modules/unictype/property-other-uppercase: New file.
53638         * modules/unictype/property-lowercase: New file.
53639         * modules/unictype/property-other-lowercase: New file.
53640         * modules/unictype/property-titlecase: New file.
53641         * modules/unictype/property-soft-dotted: New file.
53642         * modules/unictype/property-id-start: New file.
53643         * modules/unictype/property-other-id-start: New file.
53644         * modules/unictype/property-id-continue: New file.
53645         * modules/unictype/property-other-id-continue: New file.
53646         * modules/unictype/property-xid-start: New file.
53647         * modules/unictype/property-xid-continue: New file.
53648         * modules/unictype/property-pattern-white-space: New file.
53649         * modules/unictype/property-pattern-syntax: New file.
53650         * modules/unictype/property-join-control: New file.
53651         * modules/unictype/property-grapheme-base: New file.
53652         * modules/unictype/property-grapheme-extend: New file.
53653         * modules/unictype/property-other-grapheme-extend: New file.
53654         * modules/unictype/property-grapheme-link: New file.
53655         * modules/unictype/property-bidi-control: New file.
53656         * modules/unictype/property-bidi-left-to-right: New file.
53657         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53658         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53659         * modules/unictype/property-bidi-european-digit: New file.
53660         * modules/unictype/property-bidi-eur-num-separator: New file.
53661         * modules/unictype/property-bidi-eur-num-terminator: New file.
53662         * modules/unictype/property-bidi-arabic-digit: New file.
53663         * modules/unictype/property-bidi-common-separator: New file.
53664         * modules/unictype/property-bidi-block-separator: New file.
53665         * modules/unictype/property-bidi-segment-separator: New file.
53666         * modules/unictype/property-bidi-whitespace: New file.
53667         * modules/unictype/property-bidi-non-spacing-mark: New file.
53668         * modules/unictype/property-bidi-boundary-neutral: New file.
53669         * modules/unictype/property-bidi-pdf: New file.
53670         * modules/unictype/property-bidi-embedding-or-override: New file.
53671         * modules/unictype/property-bidi-other-neutral: New file.
53672         * modules/unictype/property-hex-digit: New file.
53673         * modules/unictype/property-ascii-hex-digit: New file.
53674         * modules/unictype/property-ideographic: New file.
53675         * modules/unictype/property-unified-ideograph: New file.
53676         * modules/unictype/property-radical: New file.
53677         * modules/unictype/property-ids-binary-operator: New file.
53678         * modules/unictype/property-ids-trinary-operator: New file.
53679         * modules/unictype/property-zero-width: New file.
53680         * modules/unictype/property-space: New file.
53681         * modules/unictype/property-non-break: New file.
53682         * modules/unictype/property-iso-control: New file.
53683         * modules/unictype/property-format-control: New file.
53684         * modules/unictype/property-dash: New file.
53685         * modules/unictype/property-hyphen: New file.
53686         * modules/unictype/property-punctuation: New file.
53687         * modules/unictype/property-line-separator: New file.
53688         * modules/unictype/property-paragraph-separator: New file.
53689         * modules/unictype/property-quotation-mark: New file.
53690         * modules/unictype/property-sentence-terminal: New file.
53691         * modules/unictype/property-terminal-punctuation: New file.
53692         * modules/unictype/property-currency-symbol: New file.
53693         * modules/unictype/property-math: New file.
53694         * modules/unictype/property-other-math: New file.
53695         * modules/unictype/property-paired-punctuation: New file.
53696         * modules/unictype/property-left-of-pair: New file.
53697         * modules/unictype/property-combining: New file.
53698         * modules/unictype/property-composite: New file.
53699         * modules/unictype/property-decimal-digit: New file.
53700         * modules/unictype/property-numeric: New file.
53701         * modules/unictype/property-diacritic: New file.
53702         * modules/unictype/property-extender: New file.
53703         * modules/unictype/property-ignorable-control: New file.
53704         * modules/unictype/property-test: New file.
53705         * modules/unictype/property-byname: New file.
53706         * modules/unictype/property-all: New file.
53707         * modules/unictype/scripts: New file.
53708         * modules/unictype/scripts-all: New file.
53709         * modules/unictype/block-of: New file.
53710         * modules/unictype/block-test: New file.
53711         * modules/unictype/block-list: New file.
53712         * modules/unictype/block-all: New file.
53713         * modules/unictype/syntax-c-whitespace: New file.
53714         * modules/unictype/syntax-java-whitespace: New file.
53715         * modules/unictype/syntax-c-ident: New file.
53716         * modules/unictype/syntax-java-ident: New file.
53717         * modules/unictype/ctype-alnum: New file.
53718         * modules/unictype/ctype-alpha: New file.
53719         * modules/unictype/ctype-cntrl: New file.
53720         * modules/unictype/ctype-digit: New file.
53721         * modules/unictype/ctype-graph: New file.
53722         * modules/unictype/ctype-lower: New file.
53723         * modules/unictype/ctype-print: New file.
53724         * modules/unictype/ctype-punct: New file.
53725         * modules/unictype/ctype-space: New file.
53726         * modules/unictype/ctype-upper: New file.
53727         * modules/unictype/ctype-xdigit: New file.
53728         * modules/unictype/ctype-blank: New file.
53729         * lib/unictype/bidi_byname.c: New file.
53730         * lib/unictype/bidi_name.c: New file.
53731         * lib/unictype/bidi_of.c: New file.
53732         * lib/unictype/bidi_test.c: New file.
53733         * lib/unictype/bitmap.h: New file.
53734         * lib/unictype/block_test.c: New file.
53735         * lib/unictype/blocks.c: New file.
53736         * lib/unictype/categ_C.c: New file.
53737         * lib/unictype/categ_Cc.c: New file.
53738         * lib/unictype/categ_Cf.c: New file.
53739         * lib/unictype/categ_Cn.c: New file.
53740         * lib/unictype/categ_Co.c: New file.
53741         * lib/unictype/categ_Cs.c: New file.
53742         * lib/unictype/categ_L.c: New file.
53743         * lib/unictype/categ_Ll.c: New file.
53744         * lib/unictype/categ_Lm.c: New file.
53745         * lib/unictype/categ_Lo.c: New file.
53746         * lib/unictype/categ_Lt.c: New file.
53747         * lib/unictype/categ_Lu.c: New file.
53748         * lib/unictype/categ_M.c: New file.
53749         * lib/unictype/categ_Mc.c: New file.
53750         * lib/unictype/categ_Me.c: New file.
53751         * lib/unictype/categ_Mn.c: New file.
53752         * lib/unictype/categ_N.c: New file.
53753         * lib/unictype/categ_Nd.c: New file.
53754         * lib/unictype/categ_Nl.c: New file.
53755         * lib/unictype/categ_No.c: New file.
53756         * lib/unictype/categ_P.c: New file.
53757         * lib/unictype/categ_Pc.c: New file.
53758         * lib/unictype/categ_Pd.c: New file.
53759         * lib/unictype/categ_Pe.c: New file.
53760         * lib/unictype/categ_Pf.c: New file.
53761         * lib/unictype/categ_Pi.c: New file.
53762         * lib/unictype/categ_Po.c: New file.
53763         * lib/unictype/categ_Ps.c: New file.
53764         * lib/unictype/categ_S.c: New file.
53765         * lib/unictype/categ_Sc.c: New file.
53766         * lib/unictype/categ_Sk.c: New file.
53767         * lib/unictype/categ_Sm.c: New file.
53768         * lib/unictype/categ_So.c: New file.
53769         * lib/unictype/categ_Z.c: New file.
53770         * lib/unictype/categ_Zl.c: New file.
53771         * lib/unictype/categ_Zp.c: New file.
53772         * lib/unictype/categ_Zs.c: New file.
53773         * lib/unictype/categ_and.c: New file.
53774         * lib/unictype/categ_and_not.c: New file.
53775         * lib/unictype/categ_byname.c: New file.
53776         * lib/unictype/categ_name.c: New file.
53777         * lib/unictype/categ_none.c: New file.
53778         * lib/unictype/categ_of.c: New file.
53779         * lib/unictype/categ_or.c: New file.
53780         * lib/unictype/categ_test.c: New file.
53781         * lib/unictype/combining.c: New file.
53782         * lib/unictype/ctype_alnum.c: New file.
53783         * lib/unictype/ctype_alpha.c: New file.
53784         * lib/unictype/ctype_blank.c: New file.
53785         * lib/unictype/ctype_cntrl.c: New file.
53786         * lib/unictype/ctype_digit.c: New file.
53787         * lib/unictype/ctype_graph.c: New file.
53788         * lib/unictype/ctype_lower.c: New file.
53789         * lib/unictype/ctype_print.c: New file.
53790         * lib/unictype/ctype_punct.c: New file.
53791         * lib/unictype/ctype_space.c: New file.
53792         * lib/unictype/ctype_upper.c: New file.
53793         * lib/unictype/ctype_xdigit.c: New file.
53794         * lib/unictype/decdigit.c: New file.
53795         * lib/unictype/digit.c: New file.
53796         * lib/unictype/identsyntaxmap.h: New file.
53797         * lib/unictype/mirror.c: New file.
53798         * lib/unictype/numeric.c: New file.
53799         * lib/unictype/pr_alphabetic.c: New file.
53800         * lib/unictype/pr_ascii_hex_digit.c: New file.
53801         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53802         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53803         * lib/unictype/pr_bidi_block_separator.c: New file.
53804         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53805         * lib/unictype/pr_bidi_common_separator.c: New file.
53806         * lib/unictype/pr_bidi_control.c: New file.
53807         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53808         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53809         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53810         * lib/unictype/pr_bidi_european_digit.c: New file.
53811         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53812         * lib/unictype/pr_bidi_left_to_right.c: New file.
53813         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53814         * lib/unictype/pr_bidi_other_neutral.c: New file.
53815         * lib/unictype/pr_bidi_pdf.c: New file.
53816         * lib/unictype/pr_bidi_segment_separator.c: New file.
53817         * lib/unictype/pr_bidi_whitespace.c: New file.
53818         * lib/unictype/pr_byname.c: New file.
53819         * lib/unictype/pr_byname.gperf: New file.
53820         * lib/unictype/pr_combining.c: New file.
53821         * lib/unictype/pr_composite.c: New file.
53822         * lib/unictype/pr_currency_symbol.c: New file.
53823         * lib/unictype/pr_dash.c: New file.
53824         * lib/unictype/pr_decimal_digit.c: New file.
53825         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53826         * lib/unictype/pr_deprecated.c: New file.
53827         * lib/unictype/pr_diacritic.c: New file.
53828         * lib/unictype/pr_extender.c: New file.
53829         * lib/unictype/pr_format_control.c: New file.
53830         * lib/unictype/pr_grapheme_base.c: New file.
53831         * lib/unictype/pr_grapheme_extend.c: New file.
53832         * lib/unictype/pr_grapheme_link.c: New file.
53833         * lib/unictype/pr_hex_digit.c: New file.
53834         * lib/unictype/pr_hyphen.c: New file.
53835         * lib/unictype/pr_id_continue.c: New file.
53836         * lib/unictype/pr_id_start.c: New file.
53837         * lib/unictype/pr_ideographic.c: New file.
53838         * lib/unictype/pr_ids_binary_operator.c: New file.
53839         * lib/unictype/pr_ids_trinary_operator.c: New file.
53840         * lib/unictype/pr_ignorable_control.c: New file.
53841         * lib/unictype/pr_iso_control.c: New file.
53842         * lib/unictype/pr_join_control.c: New file.
53843         * lib/unictype/pr_left_of_pair.c: New file.
53844         * lib/unictype/pr_line_separator.c: New file.
53845         * lib/unictype/pr_logical_order_exception.c: New file.
53846         * lib/unictype/pr_lowercase.c: New file.
53847         * lib/unictype/pr_math.c: New file.
53848         * lib/unictype/pr_non_break.c: New file.
53849         * lib/unictype/pr_not_a_character.c: New file.
53850         * lib/unictype/pr_numeric.c: New file.
53851         * lib/unictype/pr_other_alphabetic.c: New file.
53852         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53853         * lib/unictype/pr_other_grapheme_extend.c: New file.
53854         * lib/unictype/pr_other_id_continue.c: New file.
53855         * lib/unictype/pr_other_id_start.c: New file.
53856         * lib/unictype/pr_other_lowercase.c: New file.
53857         * lib/unictype/pr_other_math.c: New file.
53858         * lib/unictype/pr_other_uppercase.c: New file.
53859         * lib/unictype/pr_paired_punctuation.c: New file.
53860         * lib/unictype/pr_paragraph_separator.c: New file.
53861         * lib/unictype/pr_pattern_syntax.c: New file.
53862         * lib/unictype/pr_pattern_white_space.c: New file.
53863         * lib/unictype/pr_private_use.c: New file.
53864         * lib/unictype/pr_punctuation.c: New file.
53865         * lib/unictype/pr_quotation_mark.c: New file.
53866         * lib/unictype/pr_radical.c: New file.
53867         * lib/unictype/pr_sentence_terminal.c: New file.
53868         * lib/unictype/pr_soft_dotted.c: New file.
53869         * lib/unictype/pr_space.c: New file.
53870         * lib/unictype/pr_terminal_punctuation.c: New file.
53871         * lib/unictype/pr_test.c: New file.
53872         * lib/unictype/pr_titlecase.c: New file.
53873         * lib/unictype/pr_unassigned_code_value.c: New file.
53874         * lib/unictype/pr_unified_ideograph.c: New file.
53875         * lib/unictype/pr_uppercase.c: New file.
53876         * lib/unictype/pr_variation_selector.c: New file.
53877         * lib/unictype/pr_white_space.c: New file.
53878         * lib/unictype/pr_xid_continue.c: New file.
53879         * lib/unictype/pr_xid_start.c: New file.
53880         * lib/unictype/pr_zero_width.c: New file.
53881         * lib/unictype/scripts.c: New file.
53882         * lib/unictype/sy_c_ident.c: New file.
53883         * lib/unictype/sy_c_whitespace.c: New file.
53884         * lib/unictype/sy_java_ident.c: New file.
53885         * lib/unictype/sy_java_whitespace.c: New file.
53886
53887         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53888         Unicode 5.0.0.
53889         * lib/unictype/blocks.h: Likewise.
53890         * lib/unictype/categ_C.h: Likewise.
53891         * lib/unictype/categ_Cc.h: Likewise.
53892         * lib/unictype/categ_Cf.h: Likewise.
53893         * lib/unictype/categ_Cn.h: Likewise.
53894         * lib/unictype/categ_Co.h: Likewise.
53895         * lib/unictype/categ_Cs.h: Likewise.
53896         * lib/unictype/categ_L.h: Likewise.
53897         * lib/unictype/categ_Ll.h: Likewise.
53898         * lib/unictype/categ_Lm.h: Likewise.
53899         * lib/unictype/categ_Lo.h: Likewise.
53900         * lib/unictype/categ_Lt.h: Likewise.
53901         * lib/unictype/categ_Lu.h: Likewise.
53902         * lib/unictype/categ_M.h: Likewise.
53903         * lib/unictype/categ_Mc.h: Likewise.
53904         * lib/unictype/categ_Me.h: Likewise.
53905         * lib/unictype/categ_Mn.h: Likewise.
53906         * lib/unictype/categ_N.h: Likewise.
53907         * lib/unictype/categ_Nd.h: Likewise.
53908         * lib/unictype/categ_Nl.h: Likewise.
53909         * lib/unictype/categ_No.h: Likewise.
53910         * lib/unictype/categ_P.h: Likewise.
53911         * lib/unictype/categ_Pc.h: Likewise.
53912         * lib/unictype/categ_Pd.h: Likewise.
53913         * lib/unictype/categ_Pe.h: Likewise.
53914         * lib/unictype/categ_Pf.h: Likewise.
53915         * lib/unictype/categ_Pi.h: Likewise.
53916         * lib/unictype/categ_Po.h: Likewise.
53917         * lib/unictype/categ_Ps.h: Likewise.
53918         * lib/unictype/categ_S.h: Likewise.
53919         * lib/unictype/categ_Sc.h: Likewise.
53920         * lib/unictype/categ_Sk.h: Likewise.
53921         * lib/unictype/categ_Sm.h: Likewise.
53922         * lib/unictype/categ_So.h: Likewise.
53923         * lib/unictype/categ_Z.h: Likewise.
53924         * lib/unictype/categ_Zl.h: Likewise.
53925         * lib/unictype/categ_Zp.h: Likewise.
53926         * lib/unictype/categ_Zs.h: Likewise.
53927         * lib/unictype/categ_of.h: Likewise.
53928         * lib/unictype/combining.h: Likewise.
53929         * lib/unictype/ctype_alnum.h: Likewise.
53930         * lib/unictype/ctype_alpha.h: Likewise.
53931         * lib/unictype/ctype_blank.h: Likewise.
53932         * lib/unictype/ctype_cntrl.h: Likewise.
53933         * lib/unictype/ctype_digit.h: Likewise.
53934         * lib/unictype/ctype_graph.h: Likewise.
53935         * lib/unictype/ctype_lower.h: Likewise.
53936         * lib/unictype/ctype_print.h: Likewise.
53937         * lib/unictype/ctype_punct.h: Likewise.
53938         * lib/unictype/ctype_space.h: Likewise.
53939         * lib/unictype/ctype_upper.h: Likewise.
53940         * lib/unictype/ctype_xdigit.h: Likewise.
53941         * lib/unictype/decdigit.h: Likewise.
53942         * lib/unictype/digit.h: Likewise.
53943         * lib/unictype/mirror.h: Likewise.
53944         * lib/unictype/numeric.h: Likewise.
53945         * lib/unictype/pr_alphabetic.h: Likewise.
53946         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53947         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53948         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53949         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53950         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53951         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53952         * lib/unictype/pr_bidi_control.h: Likewise.
53953         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53954         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53955         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53956         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53957         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53958         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53959         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53960         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53961         * lib/unictype/pr_bidi_pdf.h: Likewise.
53962         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53963         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53964         * lib/unictype/pr_combining.h: Likewise.
53965         * lib/unictype/pr_composite.h: Likewise.
53966         * lib/unictype/pr_currency_symbol.h: Likewise.
53967         * lib/unictype/pr_dash.h: Likewise.
53968         * lib/unictype/pr_decimal_digit.h: Likewise.
53969         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53970         * lib/unictype/pr_deprecated.h: Likewise.
53971         * lib/unictype/pr_diacritic.h: Likewise.
53972         * lib/unictype/pr_extender.h: Likewise.
53973         * lib/unictype/pr_format_control.h: Likewise.
53974         * lib/unictype/pr_grapheme_base.h: Likewise.
53975         * lib/unictype/pr_grapheme_extend.h: Likewise.
53976         * lib/unictype/pr_grapheme_link.h: Likewise.
53977         * lib/unictype/pr_hex_digit.h: Likewise.
53978         * lib/unictype/pr_hyphen.h: Likewise.
53979         * lib/unictype/pr_id_continue.h: Likewise.
53980         * lib/unictype/pr_id_start.h: Likewise.
53981         * lib/unictype/pr_ideographic.h: Likewise.
53982         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53983         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53984         * lib/unictype/pr_ignorable_control.h: Likewise.
53985         * lib/unictype/pr_iso_control.h: Likewise.
53986         * lib/unictype/pr_join_control.h: Likewise.
53987         * lib/unictype/pr_left_of_pair.h: Likewise.
53988         * lib/unictype/pr_line_separator.h: Likewise.
53989         * lib/unictype/pr_logical_order_exception.h: Likewise.
53990         * lib/unictype/pr_lowercase.h: Likewise.
53991         * lib/unictype/pr_math.h: Likewise.
53992         * lib/unictype/pr_non_break.h: Likewise.
53993         * lib/unictype/pr_not_a_character.h: Likewise.
53994         * lib/unictype/pr_numeric.h: Likewise.
53995         * lib/unictype/pr_other_alphabetic.h: Likewise.
53996         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53997         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53998         * lib/unictype/pr_other_id_continue.h: Likewise.
53999         * lib/unictype/pr_other_id_start.h: Likewise.
54000         * lib/unictype/pr_other_lowercase.h: Likewise.
54001         * lib/unictype/pr_other_math.h: Likewise.
54002         * lib/unictype/pr_other_uppercase.h: Likewise.
54003         * lib/unictype/pr_paired_punctuation.h: Likewise.
54004         * lib/unictype/pr_paragraph_separator.h: Likewise.
54005         * lib/unictype/pr_pattern_syntax.h: Likewise.
54006         * lib/unictype/pr_pattern_white_space.h: Likewise.
54007         * lib/unictype/pr_private_use.h: Likewise.
54008         * lib/unictype/pr_punctuation.h: Likewise.
54009         * lib/unictype/pr_quotation_mark.h: Likewise.
54010         * lib/unictype/pr_radical.h: Likewise.
54011         * lib/unictype/pr_sentence_terminal.h: Likewise.
54012         * lib/unictype/pr_soft_dotted.h: Likewise.
54013         * lib/unictype/pr_space.h: Likewise.
54014         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54015         * lib/unictype/pr_titlecase.h: Likewise.
54016         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54017         * lib/unictype/pr_unified_ideograph.h: Likewise.
54018         * lib/unictype/pr_uppercase.h: Likewise.
54019         * lib/unictype/pr_variation_selector.h: Likewise.
54020         * lib/unictype/pr_white_space.h: Likewise.
54021         * lib/unictype/pr_xid_continue.h: Likewise.
54022         * lib/unictype/pr_xid_start.h: Likewise.
54023         * lib/unictype/pr_zero_width.h: Likewise.
54024         * lib/unictype/scripts.h: Likewise.
54025         * lib/unictype/scripts_byname.gperf: Likewise.
54026         * lib/unictype/sy_c_ident.h: Likewise.
54027         * lib/unictype/sy_c_whitespace.h: Likewise.
54028         * lib/unictype/sy_java_ident.h: Likewise.
54029         * lib/unictype/sy_java_whitespace.h: Likewise.
54030
54031         * lib/unictype/Makefile: New file.
54032         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54033         glibc.
54034         * lib/unictype/3level.h: New file, copied from glibc.
54035         * lib/unictype/3levelbit.h: New file.
54036
54037 2007-11-11  Bruno Haible  <bruno@clisp.org>
54038
54039         * modules/gperf: New file.
54040         * modules/iconv_open (Depends-on): Add it.
54041         (Makefile.am): Remove the GPERF definition.
54042
54043 2007-11-11  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54046         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54047
54048 2007-11-11  Bruno Haible  <bruno@clisp.org>
54049
54050         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54051         (usage): Remove function.
54052
54053 2007-11-11  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54056         gl_FUNC_CEILF_LIBS.
54057         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54058         gl_FUNC_CEIL_LIBS.
54059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54060         gl_FUNC_CEILL_LIBS.
54061         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54062         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54063         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54064
54065 2007-11-11  Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54068         roundf were declared but do not exist on functions.
54069         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54070         roundl were declared but do not exist on functions.
54071         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54072         HAVE_FLOORL_AND_CEILL, respectively.
54073         Needed for Sun C on Solaris 10.
54074
54075 2007-11-11  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54078         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54079         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54080         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54082         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54083         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54084         HAVE_DECL_ROUNDF.
54085         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54086         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54088         of HAVE_DECL_ROUND*.
54089         * modules/math (Makefile.am): Update.
54090
54091 2007-11-10  Bruno Haible  <bruno@clisp.org>
54092
54093         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54094         ptrdiff_t as m4/intl.m4.
54095
54096 2007-11-10  Jim Meyering  <meyering@redhat.com>
54097
54098         Avoid link failure for the argmatch test.
54099         * tests/test-argmatch.c (usage): Define function to avoid a link
54100         failure: argmatch_die requires a usage function.
54101
54102 2007-11-09  Bruno Haible  <bruno@clisp.org>
54103
54104         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54105         * doc/functions/vsnprintf.texi: Likewise.
54106         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54107         with a size argument < 2.
54108
54109 2007-11-09  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54112         buffer. Fixes an inefficiency introduced on 2007-11-03.
54113
54114 2007-11-09  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54117         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54118
54119 2007-11-08  Jim Meyering  <meyering@redhat.com>
54120
54121         Change cache variable name prefix "jm_" to "gl_" everywhere.
54122         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54123         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54124         * m4/uptime.m4: s/gl_/jm_/
54125
54126 2007-11-07  Bruno Haible  <bruno@clisp.org>
54127
54128         Update to GNU gettext 0.17.
54129         * m4/intl.m4: Update to GNU gettext 0.17.
54130         * m4/po.m4: Likewise.
54131         * modules/gettext (Files): Remove m4/ulonglong.m4.
54132         (configure.ac): Require gettext infrastructure from version 0.17.
54133
54134 2007-11-06  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54137         symbolic values are not defined in a public header.
54138         * lib/freadable.c (freadable) [QNX]: Likewise.
54139         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54140         * lib/freading.c (freading) [QNX]: Likewise.
54141         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54142         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54143         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54144         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54145         Reported by Alain Magloire.
54146
54147         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54148
54149 2007-11-05  Bruno Haible  <bruno@clisp.org>
54150
54151         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54152         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54153         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54154         Reported by Eric Blake.
54155
54156 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54157             Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54160         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54161         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54162         (malloc): Undefine also before including <stdlib.h>.
54163         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54164         Needed on OSF/1 4.0.
54165
54166 2007-11-05  Jim Meyering  <meyering@redhat.com>
54167
54168         git-version-gen: sync from coreutils.
54169         * build-aux/git-version-gen: Add comments.
54170         Change the first '-' to '.' in the snapshot version string,
54171         e.g., 6.9-377-08144 -> 6.9.377-08144
54172         Remove first parameter.
54173         Don't declare a version "-dirty" merely because a time
54174         stamp has changed.
54175
54176 2007-11-04  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/lock.h: Protect all macro definitions containing an 'if'
54179         statement through a "do { ... } while (0)".
54180         * lib/tls.h: Likewise.
54181
54182 2007-11-04  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54185
54186 2007-11-04  Bruno Haible  <bruno@clisp.org>
54187
54188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54189         * modules/fprintf-posix (Depends-on): Add nocrash.
54190         * modules/snprintf-posix (Depends-on): Likewise.
54191         * modules/sprintf-posix (Depends-on): Likewise.
54192         * modules/vasnprintf-posix (Depends-on): Likewise.
54193         * modules/vasprintf-posix (Depends-on): Likewise.
54194         * modules/vfprintf-posix (Depends-on): Likewise.
54195         * modules/vsnprintf-posix (Depends-on): Likewise.
54196         * modules/vsprintf-posix (Depends-on): Likewise.
54197         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54198         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54199         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54200         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54201         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54202         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54203         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54204
54205 2007-11-04  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/nocrash: New file.
54208         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54209         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54210
54211 2007-11-04  Bruno Haible  <bruno@clisp.org>
54212
54213         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54214         precision handling.
54215         * tests/test-vasprintf-posix.c (test_function): Likewise.
54216         * tests/test-snprintf-posix.h (test_function): Likewise.
54217         * tests/test-sprintf-posix.h (test_function): Likewise.
54218
54219         Fix *printf behaviour for large precisions on mingw and BeOS.
54220         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54221         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54223         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54225         gl_PRINTF_PRECISION and test its result. Invoke
54226         gl_PREREQ_VASNPRINTF_PRECISION.
54227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54234         * doc/functions/fprintf.texi: Update.
54235         * doc/functions/printf.texi: Update.
54236         * doc/functions/snprintf.texi: Update.
54237         * doc/functions/sprintf.texi: Update.
54238         * doc/functions/vfprintf.texi: Update.
54239         * doc/functions/vprintf.texi: Update.
54240         * doc/functions/vsnprintf.texi: Update.
54241         * doc/functions/vsprintf.texi: Update.
54242
54243 2007-11-04  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54246
54247 2007-11-04  Bruno Haible  <bruno@clisp.org>
54248
54249         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54250         Reported by Sylvain Beucler <beuc@gnu.org>.
54251
54252 2007-11-03  Bruno Haible  <bruno@clisp.org>
54253
54254         * tests/test-fprintf-posix2.sh: New file.
54255         * tests/test-fprintf-posix2.c: New file.
54256         * modules/fprintf-posix-tests (Files): Add them.
54257         (TESTS): Add test-fprintf-posix2.sh.
54258         (configure.ac): Check for getrlimit and setrlimit.
54259         (check_PROGRAMS): Add test-fprintf-posix2.
54260
54261         * tests/test-printf-posix2.sh: New file.
54262         * tests/test-printf-posix2.c: New file.
54263         * modules/printf-posix-tests (Files): Add them.
54264         (TESTS): Add test-printf-posix2.sh.
54265         (configure.ac): Check for getrlimit and setrlimit.
54266         (check_PROGRAMS): Add test-printf-posix2.
54267
54268         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54269         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54270         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54271         (decode_double): New function, copied from decode_long_double.
54272         (scale10_round_decimal_decoded): New function, extracted from
54273         scale10_round_decimal_long_double.
54274         (scale10_round_decimal_long_double): Use it.
54275         (scale10_round_decimal_double): New function.
54276         (floorlog10): New function.
54277         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54279         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54281         gl_PRINTF_ENOMEM and test its result. Invoke
54282         gl_PREREQ_VASNPRINTF_ENOMEM.
54283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54284         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54285         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54286         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54290         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54291         * modules/snprintf-posix (Depends-on): Likewise.
54292         * modules/sprintf-posix (Depends-on): Likewise.
54293         * modules/vasnprintf-posix (Depends-on): Likewise.
54294         * modules/vasprintf-posix (Depends-on): Likewise.
54295         * modules/vfprintf-posix (Depends-on): Likewise.
54296         * modules/vsnprintf-posix (Depends-on): Likewise.
54297         * modules/vsprintf-posix (Depends-on): Likewise.
54298         * doc/functions/fprintf.texi: Update.
54299         * doc/functions/printf.texi: Update.
54300         * doc/functions/snprintf.texi: Update.
54301         * doc/functions/sprintf.texi: Update.
54302         * doc/functions/vfprintf.texi: Update.
54303         * doc/functions/vprintf.texi: Update.
54304         * doc/functions/vsnprintf.texi: Update.
54305         * doc/functions/vsprintf.texi: Update.
54306
54307 2007-11-03  Bruno Haible  <bruno@clisp.org>
54308
54309         * modules/frexp-nolibm-tests: New file.
54310
54311         * modules/frexp-nolibm: New file.
54312         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54313
54314 2007-11-03  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54317         value is C99 compliant.
54318         Needed for OSF/1 5.1.
54319
54320 2007-11-03  Bruno Haible  <bruno@clisp.org>
54321
54322         Fix out-of-memory handling of vasnprintf.
54323         * lib/printf-parse.c: Include <errno.h>.
54324         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54325         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54326         is already set.
54327
54328 2007-11-02  Eric Blake  <ebb9@byu.net>
54329
54330         Fix tests on cygwin.
54331         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54332
54333 2007-11-01  Bruno Haible  <bruno@clisp.org>
54334
54335         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54336         warning.
54337         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54338         needed for POSIX compatibility.
54339
54340 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54341
54342         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54343         for compatibility with GNU.
54344
54345 2007-11-01  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54348         (putenv): Renamed from rpl_putenv. Change argument type from
54349         'const char *' to 'char *'.
54350         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54351         of defining putenv in config.h, just set REPLACE_PUTENV.
54352         * modules/putenv (Depends-on): Add stdlib.
54353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54354         (Include): Use <stdlib.h>.
54355         * lib/stdlib.in.h (putenv): New declaration.
54356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54357         REPLACE_PUTENV.
54358         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54359         REPLACE_PUTENV.
54360         Needed for MacOS X 10.5.0.
54361         Reported by Peter O'Gorman <peter@pogma.com>.
54362
54363 2007-11-01  Jim Meyering  <meyering@redhat.com>
54364
54365         Treat an empty date string exactly like "0".
54366         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54367         if the remaining date string (to be parsed) is empty, use "0".
54368         Reported by Mischa Molhoek and discussed in this thread:
54369         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54370
54371 2007-10-31  Bruno Haible  <bruno@clisp.org>
54372
54373         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54374         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54375         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54376         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54377         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54378         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54379
54380 2007-10-31  Bruno Haible  <bruno@clisp.org>
54381
54382         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54383         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54384         (AC_TYPE_LONG_LONG_INT): Use it.
54385         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54386         it as well.
54387         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54388         to m4/longlong.m4.
54389         * modules/stdint (Files): Remove m4/ulonglong.m4.
54390         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54391         m4/ulonglong.m4.
54392         * modules/strtoumax (Files): Likewise.
54393
54394 2007-10-30  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/xvasprintf-posix: New file.
54397         Suggested by Eric Blake.
54398
54399 2007-10-30  Bruno Haible  <bruno@clisp.org>
54400
54401         * modules/xprintf-posix-tests: New file.
54402         * tests/test-xprintf-posix.sh: New file.
54403         * tests/test-xprintf-posix.c: New file.
54404         * tests/test-xfprintf-posix.c: New file.
54405
54406         * modules/xprintf-posix: New file.
54407
54408 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54409
54410         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54411         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54412         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54413
54414 2007-10-29  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54417         contain the special marker '_cv_'.
54418         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54419         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54420         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54421         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54422         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54423         Reported by Ralf Wildenhues.
54424
54425 2007-10-29  Bruno Haible  <bruno@clisp.org>
54426
54427         * gnulib-tool (func_import): When --lgpl is not specified, set
54428         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54429         GPLv3.
54430         Reported by Simon Josefsson.
54431
54432 2007-10-28  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54435         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54436         HAVE_DECL_ISFINITE.
54437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54438         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54439         HAVE_DECL_ISFINITE.
54440
54441 2007-10-28  Bruno Haible  <bruno@clisp.org>
54442
54443         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54444         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54445
54446 2007-10-28  Bruno Haible  <bruno@clisp.org>
54447
54448         Fix link errors with Sun C 5.0 on Solaris 10.
54449         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54450         function is declared but not present in the compiler's libm.
54451         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54452         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54453         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54454         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54455         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54456         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54457         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54459         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54460         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54461         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54462         HAVE_DECL_FLOORL.
54463
54464 2007-10-28  Bruno Haible  <bruno@clisp.org>
54465
54466         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54467         gl_FUNC_FLOORL. Cache the result.
54468         (gl_FUNC_FLOORL): Use it.
54469         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54470         gl_FUNC_CEILL. Cache the result.
54471         (gl_FUNC_CEILL): Use it.
54472
54473         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54474         gl_FUNC_FLOOR. Cache the result.
54475         (gl_FUNC_FLOOR): Use it.
54476         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54477         gl_FUNC_CEIL. Cache the result.
54478         (gl_FUNC_CEIL): Use it.
54479
54480         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54481         gl_FUNC_FLOORF. Cache the result.
54482         (gl_FUNC_FLOORF): Use it.
54483         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54484         gl_FUNC_CEILF. Cache the result.
54485         (gl_FUNC_CEILF): Use it.
54486
54487 2007-10-28  Bruno Haible  <bruno@clisp.org>
54488
54489         * gnulib-tool: Allow specifying the LGPL version number through
54490         --lgpl=2 or --lgpl=3.
54491         (func_usage): Document --lgpl with argument.
54492         Handle --lgpl=... arguments.
54493         (func_import): Recognize also gl_LGPL calls with an argument. When
54494         --lgpl=2 is used and the module's license is just LGPL, report an
54495         error. Set sed_transform_lib_file according to the lgpl variable. In
54496         the generated files, use --lgpl or gl_LGPL invocations with argument,
54497         if necessary.
54498         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54499         an LGPv2+ license.
54500         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54501         gl_LGPL macro.
54502
54503 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54504             Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54507         (u16_uctomb_aux): Likewise.
54508         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54509         !HAVE_INLINE.
54510         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54511
54512 2007-10-28  Bruno Haible  <bruno@clisp.org>
54513
54514         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54515         Invoke AM_GETTEXT_OPTION if it exists.
54516         * modules/vasprintf: Likewise.
54517         * modules/verror: Likewise.
54518         * modules/xprintf: Likewise.
54519         * modules/xvasprintf: Likewise.
54520
54521 2007-10-27  Ben Pfaff  <blp@gnu.org>
54522
54523         * lib/math.in.h: Define isfinite macro and prototypes for
54524         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54525         implementations.
54526         * m4/math_h.m4: New substitutions for isfinite module.
54527         * lib/isfinite.c: New file.
54528         * m4/isfinite.m4: New file.
54529         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54530         * modules/isfinite: New file.
54531         * modules/isfinite-tests: New file.
54532         * tests/tests-isfinite.c: New file.
54533         * doc/functions/isfinite.texi: Mention isfinite module.
54534         * MODULES.html.sh: Mention new module.
54535
54536 2007-10-27  Ben Pfaff  <blp@gnu.org>
54537
54538         Ralf Wildenhues reported that Tru64 4.0D declares the round
54539         functions but does not have definitions.
54540         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54541         cannot be found in any library, set the output variable to
54542         "missing" instead of "".
54543         * m4/round.m4: Also use our substitute if we cannot find round in
54544         any library, even if it is declared.
54545         * m4/roundf.m4: Likewise for roundf.
54546         * m4/roundl.m4: Likewise for roundl.
54547         * lib/math.in.h: Undefine roundf, round, roundl before defining
54548         their replacements, to allow for hypothetical systems where these
54549         may be defined as macros but not available in libraries.
54550
54551 2007-10-27  Bruno Haible  <bruno@clisp.org>
54552
54553         * doc/gnulib.texi: Invoke @firstparagraphindent.
54554         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54555         changes in gnulib.
54556         (Source changes): New section.
54557
54558 2007-10-26  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54561         borrowed from autoconf.
54562
54563 2007-10-26  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54566         strerror returned the empty string. Needed on HP-UX 11.00.
54567
54568 2007-10-24  Micah Cowan  <micah@cowan.name>
54569
54570         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54571         * build-aux/bootstrap: Remove support for now-unnecessary option,
54572         --cvs-user, and envvars CVS_USER, CVS_RSH.
54573
54574 2007-10-24  Jim Meyering  <meyering@redhat.com>
54575
54576         Avoid diagnostics from sha1sum when there is no cached checksum.
54577         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54578         if the po.s1 file hasn't been created yet.
54579
54580         * build-aux/bootstrap: Sync from coreutils:
54581         2007-10-24  Jim Meyering  <meyering@redhat.com>
54582         Get gnulib from the git repository, not from an obsolete cvs one.
54583         * build-aux/bootstrap: Suggestion from Micah Cowan.
54584         2007-10-04  Jim Meyering  <jim@meyering.net>
54585         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54586         (update_po_files): Work also when there are no .po files in po/.
54587
54588 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         * README: Append ".git" to git and cg examples.
54591         Problem reported by Benoit Sigoure.
54592
54593 2007-10-23  Micah Cowan  <micah@cowan.name>
54594
54595         * users.txt: Add wget.
54596
54597 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54598
54599         Fix linking of some unistdio tests on FreeBSD.
54600         * modules/unistdio/u16-vsnprintf-tests
54601         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54602         * modules/unistdio/u16-vsprintf-tests
54603         (test_u16_vsnprintf1_LDADD): Likewise.
54604         * modules/unistdio/u32-vsnprintf-tests
54605         (test_u32_vsnprintf1_LDADD): Likewise.
54606         * modules/unistdio/u32-vsprintf-tests
54607         (test_u32_vsprintf1_LDADD): Likewise.
54608         * modules/unistdio/u8-vsnprintf-tests
54609         (test_u8_vsnprintf1_LDADD): Likewise.
54610         * modules/unistdio/u8-vsprintf-tests
54611         (test_u8_vsprintf1_LDADD): Likewise.
54612         * modules/unistdio/ulc-vsnprintf-tests
54613         (test_ulc_vsnprintf1_LDADD): Likewise.
54614         * modules/unistdio/ulc-vsprintf-tests
54615         (test_ulc_vsprintf1_LDADD): Likewise.
54616
54617         Fix linking of some uniconv tests on FreeBSD.
54618         * modules/uniconv/u16-conv-from-enc-tests
54619         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54620         * modules/uniconv/u16-conv-to-enc-tests
54621         (test_u16_conv_to_enc_LDADD): Likewise.
54622         * modules/uniconv/u16-strconv-from-enc-tests
54623         (test_u16_strconv_from_enc_LDADD): Likewise.
54624         * modules/uniconv/u16-strconv-to-enc-tests
54625         (test_u16_strconv_to_enc_LDADD): Likewise.
54626         * modules/uniconv/u32-conv-from-enc-tests
54627         (test_u32_conv_from_enc_LDADD): Likewise.
54628         * modules/uniconv/u32-conv-to-enc-tests
54629         (test_u32_conv_to_enc_LDADD): Likewise.
54630         * modules/uniconv/u32-strconv-from-enc-tests
54631         (test_u32_strconv_from_enc_LDADD): Likewise.
54632         * modules/uniconv/u32-strconv-to-enc-tests
54633         (test_u32_strconv_to_enc_LDADD): Likewise.
54634         * modules/uniconv/u8-conv-from-enc-tests
54635         (test_u8_conv_from_enc_LDADD): Likewise.
54636         * modules/uniconv/u8-conv-to-enc-tests
54637         (test_u8_conv_to_enc_LDADD): Likewise.
54638         * modules/uniconv/u8-strconv-from-enc-tests
54639         (test_u8_strconv_from_enc_LDADD): Likewise.
54640         * modules/uniconv/u8-strconv-to-enc-tests
54641         (test_u8_strconv_to_enc_LDADD): Likewise.
54642
54643 2007-10-22  Bruno Haible  <bruno@clisp.org>
54644
54645         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54646         size.
54647
54648 2007-10-22  Eric Blake  <ebb9@byu.net>
54649
54650         Tweak x*printf documentation.
54651         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54652         variable name and comments.
54653         Suggested by Bruno Haible.
54654
54655 2007-10-22  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/acl.c (copy_acl): Fix file name in comment.
54658
54659 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54660
54661         Fix Tru64 problem with stdbool.h.
54662         * lib/stdbool.in.h (false, true):
54663         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54664         Don't declare as an enum in this situation; it runs afoul of Tru64.
54665         Problem reported by Steven M. Schweda in
54666         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54667
54668 2007-10-22  Eric Blake  <ebb9@byu.net>
54669
54670         Also wrap vf?printf.
54671         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54672         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54673         (xvprintf, xvfprintf): New functions.
54674
54675 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54676
54677         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54678         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54679
54680         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54681         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54682
54683 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54686         by Bruno Haible.
54687
54688 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54689
54690         * lib/getloadavg.c
54691         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54692         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54693
54694         * tests/test-i-ring.c: Work for C89.
54695
54696 2007-10-22  Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54699         -1u, in preprocessor expression, so that we don't test for the bug
54700         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54702
54703 2007-10-22  Eric Blake  <ebb9@byu.net>
54704
54705         * tests/test-yesno.sh: Silence stderr during test.
54706
54707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54708
54709         * modules/crypto/gc-camellia: New file.
54710
54711         * m4/gc-camellia.m4: New file.
54712
54713         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54714
54715         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54716
54717 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54718
54719         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54720         --help to stdout.  Reported by sms@antinode.org (Steven
54721         M. Schweda).
54722
54723 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54724
54725         * users.txt: Fix link to libksba.
54726
54727 2007-10-21  Ben Pfaff  <blp@gnu.org>
54728
54729         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54730         round.c roundf implementation that depends on floorf and ceilf to
54731         be tested unconditionally.
54732
54733 2007-10-21  Ben Pfaff  <blp@gnu.org>
54734
54735         * m4/check-libm-func.m4: Removed.
54736         * m4/check-math-lib.m4: New file.
54737         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54738         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54739         definition and lack of AC_LIBOBJ([roundf]).
54740         * m4/roundl.m4: Ditto, and similarly for roundl.
54741         * modules/round: Reference new m4 file.
54742         * modules/roundf: Ditto.
54743         * modules/roundl: Ditto.
54744         * tests/test-round2.c (main): Use ROUND instead of round.
54745         Bug report from Bruno Haible.
54746
54747 2007-10-21  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54750         context.
54751
54752 2007-10-21  Bruno Haible  <bruno@clisp.org>
54753
54754         * tests/test-wcwidth.c (main): Allow negative result for some control
54755         characters.
54756
54757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54758         Needed on OSF/1 5.1.
54759
54760 2007-10-21  Bruno Haible  <bruno@clisp.org>
54761
54762         * tests/test-floorf1.c: Include isnanf.h.
54763         (main): Use isnanf() instead of isnan().
54764         * tests/test-ceilf1.c: Include isnanf.h.
54765         (main): Use isnanf() instead of isnan().
54766         * tests/test-truncf1.c: Include isnanf.h.
54767         (main): Use isnanf() instead of isnan().
54768         * tests/test-roundf1.c: Include isnanf.h.
54769         (main): Use isnanf() instead of isnan().
54770
54771 2007-10-21  Eric Blake  <ebb9@byu.net>
54772
54773         * users.txt: Update URL for m4.
54774
54775 2007-10-21  Bruno Haible  <bruno@clisp.org>
54776
54777         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54778
54779 2007-10-21  Bruno Haible  <bruno@clisp.org>
54780
54781         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54782         Git's management files if the CVS files are not present.
54783
54784 2007-10-20  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54787         gcc-3.4.x.
54788
54789 2007-10-20  Ben Pfaff  <blp@gnu.org>
54790
54791         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54792         implementations.
54793         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54794         * lib/round.c: New file.
54795         * lib/roundf.c: New file.
54796         * lib/roundl.c: New file.
54797         * m4/round.m4: New file.
54798         * m4/roundf.m4: New file.
54799         * m4/roundl.m4: New file.
54800         * m4/check-libm-func-m4: New file.
54801         * modules/math: Replace round, roundf, roundl related @VARS@ in
54802         math.in.h.
54803         * modules/round: New file.
54804         * modules/round-tests: New file.
54805         * modules/roundf: New file.
54806         * modules/roundf-tests: New file.
54807         * modules/roundl: New file.
54808         * modules/roundl-tests: New file.
54809         * tests/test-round1.c: New file.
54810         * tests/test-round2.c: New file.
54811         * tests/test-roundf1.c: New file.
54812         * tests/test-roundf2.c: New file.
54813         * tests/test-roundl.c: New file.
54814         * doc/functions/round.texi: Mention round module.
54815         * doc/functions/roundf.texi: Mention roundf module.
54816         * doc/functions/roundl.texi: Mention roundl module.
54817         * MODULES.html.sh: Mention new modules.
54818         Thanks to Bruno Haible for suggestions.
54819
54820 2007-10-20  Jim Meyering  <meyering@redhat.com>
54821
54822         * lib/xprintf.c: Include <config.h> unconditionally.
54823
54824         Change xprintf's license to GPL.
54825         * modules/xprintf (License): s/LGPL/GPL/, since this module
54826         depends on modules (exit and exitfail) which are GPL.
54827         Suggestion from Bruno Haible.
54828
54829         xprintf fixes.
54830         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54831         Use a clearer diagnostic.
54832         Patch from Bruno Haible.
54833
54834 2007-10-20  Bruno Haible  <bruno@clisp.org>
54835
54836         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54837         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54839
54840 2007-10-20  Bruno Haible  <bruno@clisp.org>
54841
54842         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54843         precision in the comparison result > x - 1 or similar.
54844         * tests/test-ceilf2.c (correct_result_p): Likewise.
54845         * tests/test-truncf2.c (correct_result_p): Likewise.
54846         * tests/test-trunc2.c (correct_result_p): Likewise.
54847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54848
54849 2007-10-20  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/ceil: New file.
54852         * m4/ceil.m4: New file.
54853         * doc/functions/ceil.texi: Mention the 'ceil' module.
54854
54855 2007-10-20  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/floor: New file.
54858         * m4/floor.m4: New file.
54859         * doc/functions/floor.texi: Mention the 'floor' module.
54860
54861 2007-10-20  Bruno Haible  <bruno@clisp.org>
54862
54863         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54864         of %a.
54865         * modules/floorf-tests (Depends-on): Likewise.
54866         * modules/truncf-tests (Depends-on): Likewise.
54867         * modules/trunc-tests (Depends-on): Likewise.
54868         Reported by Ben Pfaff.
54869
54870 2007-10-19  Jim Meyering  <meyering@redhat.com>
54871
54872         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54873         Don't bother testing specific errno values.  Just test ferror.
54874
54875         New module: xprintf
54876         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54877
54878 2007-10-19  Bruno Haible  <bruno@clisp.org>
54879
54880         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54881         syntax.
54882         * modules/javaexec (Makefile.am): Likewise.
54883         * modules/relocatable-prog (Makefile.am): Likewise.
54884         Suggested by Jim Meyering.
54885
54886 2007-10-18  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54889         Reported by Jim Meyering.
54890
54891 2007-10-18  Eric Blake  <ebb9@byu.net>
54892
54893         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54894
54895 2007-10-18  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54898         the format string into writable memory. Needed in Fortify conditions.
54899
54900 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54901             Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54904         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54905         * modules/trim (Depends-on): Add mbchar.
54906         (configure.ac): Add gl_FUNC_MBRTOWC.
54907         (Makefile.am): Augment lib_SOURCES.
54908
54909 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54910
54911         Modify glob.c to use fstatat and dirfd, to simplify it.
54912         Suggested by Eric Blake.
54913         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54914         Don't include <stdbool.h>; not used.
54915         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54916         (link_exists_p): Simplify implementation, since we can now assume
54917         dirfd and fstatat.
54918         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54919
54920 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54921
54922         * gnulib-tool (func_get_dependencies): Fix sed script to
54923         match only tests.
54924
54925 2007-10-17  Bruno Haible  <bruno@clisp.org>
54926
54927         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54928         allow locale names without encoding suffix.
54929         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54930         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54931
54932 2007-10-16  Bruno Haible  <bruno@clisp.org>
54933
54934         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54935         * lib/getgroups.c (getgroups): Likewise.
54936         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54937
54938 2007-10-16  Bruno Haible  <bruno@clisp.org>
54939
54940         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54941         * modules/malloc-posix (License): Likewise.
54942         * modules/realloc-posix (License): Likewise.
54943         * modules/calloc-posix (License): Likewise.
54944         * modules/intprops (License): Change from GPL to LGPL, with
54945         Paul Eggert's approval.
54946
54947 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54948
54949         Merge glibc changes into lib/glob.c.
54950
54951         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54952         2007-10-15 04:59:03 UTC.  Here are the changes:
54953
54954         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54955
54956         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54957
54958         * lib/glob.c: Add some branch prediction throughout.
54959
54960         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54961
54962         [BZ #5103]
54963         * lib/glob.c (glob): Recognize patterns starting \/.
54964
54965         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54966
54967         [BZ #3996]
54968         * lib/glob.c (attribute_hidden): Define if not defined.
54969         (glob): Unescape dirname, filename or username when needed and not
54970         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54971         is NULL.  Handle unescaped [ in pattern without closing ].
54972         Don't pass GLOB_CHECK down to recursive glob for directories.
54973         (__glob_pattern_type): New function.
54974         (__glob_pattern_p): Implement using __glob_pattern_type.
54975         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54976         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54977         Remove unreachable code.
54978
54979         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54980
54981         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54982         explain why there are no leaks.
54983
54984         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54985
54986         [BZ #3253]
54987         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54988         time, rather allocate increasingly bigger arrays of pointers, if
54989         possible with alloca, if too large with malloc.
54990
54991 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54992
54993         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54994         Problem reported by H.Merijn Brand in
54995         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54996         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54997         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54998
54999 2007-10-15  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55002         with explicit rpl_ prefix.
55003         * lib/fopen.c (fopen): Likewise.
55004         * lib/freopen.c (freopen): Likewise.
55005         * lib/iconv.c (iconv): Likewise.
55006         * lib/iconv_close.c (iconv_close): Likewise.
55007
55008 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55009
55010         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55011
55012 2007-10-15  Bruno Haible  <bruno@clisp.org>
55013
55014         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55015         <stddef.h> instead of <stdlib.h> since we only need NULL.
55016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55017
55018 2007-10-15  Bruno Haible  <bruno@clisp.org>
55019
55020         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55021         Replace paragraph talking about LIBOBJS.
55022         Reported by Colin Watson <cjwatson@debian.org>.
55023
55024 2007-10-15  Bruno Haible  <bruno@clisp.org>
55025
55026         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55027         <stdlib.h> before using NULL.
55028
55029 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55030
55031         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55032         Reported by Albert Chin <china@thewrittenword.com>.
55033
55034 2007-10-14  Bruno Haible  <bruno@clisp.org>
55035
55036         * modules/iconv_open-utf-tests: New file.
55037         * tests/test-iconv-utf.c: New file.
55038
55039         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55040         * modules/iconv_open-utf: New file.
55041         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55042         (iconv, iconv_close): New declarations.
55043         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55044         be defined.
55045         (iconv_open): Add special handling of conversion between UTF-8 and
55046         UTF-{16,32}{BE,LE}.
55047         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55048         * lib/iconv_close.c: New file.
55049         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55050         gl_FUNC_ICONV_OPEN.
55051         (gl_FUNC_ICONV_OPEN): Use it.
55052         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55053         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55054         and REPLACE_ICONV_UTF.
55055         * modules/iconv_open (Depends-on): Add c-strcase.
55056         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55057         ICONV_CONST.
55058         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55059
55060 2007-10-13  Albert Chin  <china@thewrittenword.com>
55061             Bruno Haible  <bruno@clisp.org>
55062
55063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55064         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55065
55066 2007-10-13  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55069         defined, use the ISO C99 inline semantics.
55070         * lib/argp.h (ARGP_EI): Likewise.
55071
55072 2007-10-13  Bruno Haible  <bruno@clisp.org>
55073
55074         Handle 'inline' change in gcc 4.3.0.
55075         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55076         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55077         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55078         argp_fmtstream_point): Disable 'extern' declaration if the function
55079         definition is going to be provided inline.
55080         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55081         semantics, not the ISO C99 inline semantics.
55082         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55083         'extern' declaration if the function definition is going to be provided
55084         inline.
55085         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55086         the GNU C inline semantics, not the ISO C99 inline semantics. With
55087         GCC 4.2, avoid a warning.
55088
55089 2007-10-13  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/freading.h (freading): Enable the use of __freading for
55092         glibc >= 2.7.
55093         * lib/freading.c (freading): Likewise.
55094
55095 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55098         "warning: C99 inline functions are not supported; using GNU89".
55099
55100 2007-10-12  Bruno Haible  <bruno@clisp.org>
55101
55102         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55103         of 2.
55104         * tests/test-ceilf2.c: New file.
55105         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55106
55107         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55108         * modules/ceilf-tests: Update.
55109
55110 2007-10-12  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55113         of 2.
55114         * tests/test-floorf2.c: New file.
55115         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55116
55117         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55118         * modules/floorf-tests: Update.
55119
55120 2007-10-12  Bruno Haible  <bruno@clisp.org>
55121
55122         * tests/test-trunc2.c: New file.
55123         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55124
55125         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55126         * modules/trunc-tests: Update.
55127
55128 2007-10-12  Bruno Haible  <bruno@clisp.org>
55129
55130         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55131         of 2.
55132         * tests/test-truncf2.c: New file.
55133         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55134
55135         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55136         * modules/truncf-tests: Update.
55137
55138 2007-10-11  Eric Blake  <ebb9@byu.net>
55139
55140         Don't claim strerror is broken on Interix.
55141         * doc/functions/strerror.texi (strerror): Known broken systems are
55142         now Solaris 8, and not Interix.
55143         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55144         Interix on cross-compile.
55145         Reported by Martin Koeppe in
55146         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55147
55148 2007-10-11  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/i-ring-tests: New file.
55151         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55152         instead of assert.
55153
55154 2007-10-11  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/filenamecat-tests: New file.
55157         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55158         * lib/filenamecat.c: Remove test code.
55159
55160 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55163
55164         * lib/strerror.c: Include <string.h> always, to test interface,
55165         and to remove the need for the dummy.
55166         Include intprops.h to compute width instead of doing it ourselves
55167         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55168         (strerror): Define it to return NULL if there's no system strerror.
55169         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55170         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55171         ancient pre-strerror Unix systems well any more.  Saying "unknown
55172         system error" is enough.
55173         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55174         simpler strerror.c implementation.
55175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55176         Simplify the tests to reflect the simpler strerror implementation.
55177         * modules/strerror (Depends-on): Add intprops.
55178
55179 2007-10-09  Eric Blake  <ebb9@byu.net>
55180
55181         Silence test-fpending.
55182         * modules/fpending-tests (Files): Add wrapper script.
55183         * tests/test-fpending.sh: New file.
55184
55185 2007-10-09  Bruno Haible  <bruno@clisp.org>
55186
55187         * MODULES.html.sh (func_module): Don't create a hyperlink for
55188         function names like 'printf_frexp'.
55189         (Misc): Add crc, memxor.
55190         (Characteristics of floating types): New section.
55191         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55192         isnanf-nolibm, signbit, trunc, truncf, truncl.
55193         (Enhancements for ISO C 99 functions): New subsection Input/output.
55194         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55195         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55196         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55197         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55198         (Enhancements for POSIX:2001 functions): Add chdir-long.
55199         (File system functions): Add areadlink, chdir-safer, read-file.
55200         Remove cycle-check.
55201         (File system as inode set): New section.
55202         (Date and time): Add gethrxtime.
55203         (Multithreading): Add openmp.
55204         (Internationalization functions): Add localename.
55205         (Unicode string functions): Add unistr/u*-mbsnlen.
55206         (Support for maintaining and releasing projects): Add git-version-gen.
55207         (Lone files): Remove directories.
55208
55209 2007-10-08  Ben Pfaff  <blp@gnu.org>
55210
55211         * lib/xmalloca.h: Fix typo in comment.
55212
55213 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55216         when avoiding problems with integer overflow.  Use a portable test
55217         instead.
55218
55219 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55220
55221         * modules/dummy (License): Change to LGPLv2+.
55222         * modules/float (License): Likewise
55223         * modules/realloc (License): Likewise
55224         * modules/stdlib (License): Likewise
55225
55226 2007-10-07  Bruno Haible  <bruno@clisp.org>
55227
55228         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55229         * floor.c (TWO_MANT_DIG): Likewise.
55230         * ceil.c (TWO_MANT_DIG): Likewise.
55231         Reported by Ben Pfaff.
55232
55233 2007-10-07  Bruno Haible  <bruno@clisp.org>
55234
55235         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55236         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55237         * lib/frexp.c (FUNC): Likewise.
55238         * lib/printf-frexp.h (printf_frexp): Likewise.
55239         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55240         * lib/printf-frexp.c (FUNC): Likewise.
55241         Suggested by Jim Meyering.
55242
55243 2007-10-07  Jim Meyering  <meyering@redhat.com>
55244
55245         Make xnanosleep's integer overflow test more robust.
55246         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55247         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55248
55249 2007-10-07  Bruno Haible  <bruno@clisp.org>
55250
55251         * NEWS: Mention the license change.
55252
55253         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55254         abbreviations in the modules files.
55255
55256         Change copyright notice from GPLv2+ to GPLv3+.
55257         * README: Change copyright notice.
55258         * MODULES.html.sh: Likewise.
55259         * build-aux/bootstrap.conf: Likewise.
55260         * build-aux/config.libpath: Likewise.
55261         * build-aux/csharpcomp.sh.in: Likewise.
55262         * build-aux/csharpexec.sh.in: Likewise.
55263         * build-aux/install-reloc: Likewise.
55264         * build-aux/javacomp.sh.in: Likewise.
55265         * build-aux/javaexec.sh.in: Likewise.
55266         * build-aux/ldd.sh.in: Likewise.
55267         * build-aux/reloc-ldflags: Likewise.
55268         * build-aux/relocatable.sh.in: Likewise.
55269         * build-aux/x-to-1.in: Likewise.
55270         * check-module: Likewise.
55271         * config/srclistvars.sh: Likewise.
55272         * gnulib-tool: Likewise.
55273         * lib/acl-internal.h: Likewise.
55274         * lib/acl.c: Likewise.
55275         * lib/acl.h: Likewise.
55276         * lib/acl_entries.c: Likewise.
55277         * lib/areadlink-with-size.c: Likewise.
55278         * lib/areadlink.c: Likewise.
55279         * lib/areadlink.h: Likewise.
55280         * lib/argmatch.c: Likewise.
55281         * lib/argmatch.h: Likewise.
55282         * lib/argp-ba.c: Likewise.
55283         * lib/argp-eexst.c: Likewise.
55284         * lib/argp-fmtstream.c: Likewise.
55285         * lib/argp-fmtstream.h: Likewise.
55286         * lib/argp-fs-xinl.c: Likewise.
55287         * lib/argp-help.c: Likewise.
55288         * lib/argp-namefrob.h: Likewise.
55289         * lib/argp-parse.c: Likewise.
55290         * lib/argp-pin.c: Likewise.
55291         * lib/argp-pv.c: Likewise.
55292         * lib/argp-pvh.c: Likewise.
55293         * lib/argp-xinl.c: Likewise.
55294         * lib/argp.h: Likewise.
55295         * lib/at-func.c: Likewise.
55296         * lib/atanl.c: Likewise.
55297         * lib/backupfile.c: Likewise.
55298         * lib/backupfile.h: Likewise.
55299         * lib/basename.c: Likewise.
55300         * lib/binary-io.h: Likewise.
55301         * lib/byteswap.in.h: Likewise.
55302         * lib/c-stack.c: Likewise.
55303         * lib/c-stack.h: Likewise.
55304         * lib/c-strcasestr.c: Likewise.
55305         * lib/c-strcasestr.h: Likewise.
55306         * lib/c-strstr.c: Likewise.
55307         * lib/c-strstr.h: Likewise.
55308         * lib/c-strtod.c: Likewise.
55309         * lib/calloc.c: Likewise.
55310         * lib/canon-host.c: Likewise.
55311         * lib/canon-host.h: Likewise.
55312         * lib/canonicalize-lgpl.c: Likewise.
55313         * lib/canonicalize.c: Likewise.
55314         * lib/canonicalize.h: Likewise.
55315         * lib/ceil.c: Likewise.
55316         * lib/ceilf.c: Likewise.
55317         * lib/ceill.c: Likewise.
55318         * lib/chdir-long.c: Likewise.
55319         * lib/chdir-long.h: Likewise.
55320         * lib/chdir-safer.c: Likewise.
55321         * lib/chdir-safer.h: Likewise.
55322         * lib/chown.c: Likewise.
55323         * lib/classpath.c: Likewise.
55324         * lib/classpath.h: Likewise.
55325         * lib/clean-temp.c: Likewise.
55326         * lib/clean-temp.h: Likewise.
55327         * lib/cloexec.c: Likewise.
55328         * lib/close-stream.c: Likewise.
55329         * lib/closein.c: Likewise.
55330         * lib/closein.h: Likewise.
55331         * lib/closeout.c: Likewise.
55332         * lib/closeout.h: Likewise.
55333         * lib/concat-filename.c: Likewise.
55334         * lib/copy-file.c: Likewise.
55335         * lib/copy-file.h: Likewise.
55336         * lib/count-one-bits.h: Likewise.
55337         * lib/crc.c: Likewise.
55338         * lib/crc.h: Likewise.
55339         * lib/creat-safer.c: Likewise.
55340         * lib/csharpcomp.c: Likewise.
55341         * lib/csharpcomp.h: Likewise.
55342         * lib/csharpexec.c: Likewise.
55343         * lib/csharpexec.h: Likewise.
55344         * lib/cycle-check.c: Likewise.
55345         * lib/cycle-check.h: Likewise.
55346         * lib/diacrit.c: Likewise.
55347         * lib/diacrit.h: Likewise.
55348         * lib/diffseq.h: Likewise.
55349         * lib/dirchownmod.c: Likewise.
55350         * lib/dirent.in.h: Likewise.
55351         * lib/dirfd.c: Likewise.
55352         * lib/dirfd.h: Likewise.
55353         * lib/dirname.c: Likewise.
55354         * lib/dirname.h: Likewise.
55355         * lib/dummy.c: Likewise.
55356         * lib/dup-safer.c: Likewise.
55357         * lib/dup2.c: Likewise.
55358         * lib/eealloc.h: Likewise.
55359         * lib/error.c: Likewise.
55360         * lib/error.h: Likewise.
55361         * lib/euidaccess.c: Likewise.
55362         * lib/exclude.c: Likewise.
55363         * lib/exclude.h: Likewise.
55364         * lib/execute.c: Likewise.
55365         * lib/execute.h: Likewise.
55366         * lib/exitfail.c: Likewise.
55367         * lib/exitfail.h: Likewise.
55368         * lib/expl.c: Likewise.
55369         * lib/fatal-signal.c: Likewise.
55370         * lib/fatal-signal.h: Likewise.
55371         * lib/fbufmode.c: Likewise.
55372         * lib/fbufmode.h: Likewise.
55373         * lib/fchdir.c: Likewise.
55374         * lib/fchmodat.c: Likewise.
55375         * lib/fchownat.c: Likewise.
55376         * lib/fcntl--.h: Likewise.
55377         * lib/fcntl-safer.h: Likewise.
55378         * lib/fcntl.in.h: Likewise.
55379         * lib/fd-safer.c: Likewise.
55380         * lib/fflush.c: Likewise.
55381         * lib/file-has-acl.c: Likewise.
55382         * lib/file-set.c: Likewise.
55383         * lib/file-type.c: Likewise.
55384         * lib/file-type.h: Likewise.
55385         * lib/fileblocks.c: Likewise.
55386         * lib/filemode.c: Likewise.
55387         * lib/filemode.h: Likewise.
55388         * lib/filename.h: Likewise.
55389         * lib/filenamecat.c: Likewise.
55390         * lib/filenamecat.h: Likewise.
55391         * lib/findprog.c: Likewise.
55392         * lib/findprog.h: Likewise.
55393         * lib/float.in.h: Likewise.
55394         * lib/floor.c: Likewise.
55395         * lib/floorf.c: Likewise.
55396         * lib/floorl.c: Likewise.
55397         * lib/fopen-safer.c: Likewise.
55398         * lib/fopen.c: Likewise.
55399         * lib/fpending.c: Likewise.
55400         * lib/fpending.h: Likewise.
55401         * lib/fprintf.c: Likewise.
55402         * lib/fprintftime.h: Likewise.
55403         * lib/fpucw.h: Likewise.
55404         * lib/fpurge.c: Likewise.
55405         * lib/fpurge.h: Likewise.
55406         * lib/freadable.c: Likewise.
55407         * lib/freadable.h: Likewise.
55408         * lib/freadahead.c: Likewise.
55409         * lib/freadahead.h: Likewise.
55410         * lib/freading.c: Likewise.
55411         * lib/freading.h: Likewise.
55412         * lib/free.c: Likewise.
55413         * lib/freopen.c: Likewise.
55414         * lib/frexp.c: Likewise.
55415         * lib/frexpl.c: Likewise.
55416         * lib/fseek.c: Likewise.
55417         * lib/fseterr.c: Likewise.
55418         * lib/fseterr.h: Likewise.
55419         * lib/fstatat.c: Likewise.
55420         * lib/fstrcmp.c: Likewise.
55421         * lib/fstrcmp.h: Likewise.
55422         * lib/fsusage.c: Likewise.
55423         * lib/fsusage.h: Likewise.
55424         * lib/ftell.c: Likewise.
55425         * lib/ftello.c: Likewise.
55426         * lib/fts-cycle.c: Likewise.
55427         * lib/fts.c: Likewise.
55428         * lib/fts_.h: Likewise.
55429         * lib/full-read.c: Likewise.
55430         * lib/full-read.h: Likewise.
55431         * lib/full-write.c: Likewise.
55432         * lib/full-write.h: Likewise.
55433         * lib/fwritable.c: Likewise.
55434         * lib/fwritable.h: Likewise.
55435         * lib/fwriteerror.c: Likewise.
55436         * lib/fwriteerror.h: Likewise.
55437         * lib/fwriting.c: Likewise.
55438         * lib/fwriting.h: Likewise.
55439         * lib/gcd.c: Likewise.
55440         * lib/gcd.h: Likewise.
55441         * lib/getcwd.c: Likewise.
55442         * lib/getdate.h: Likewise.
55443         * lib/getdate.y: Likewise.
55444         * lib/getdomainname.c: Likewise.
55445         * lib/getdomainname.h: Likewise.
55446         * lib/getgroups.c: Likewise.
55447         * lib/gethostname.c: Likewise.
55448         * lib/gethrxtime.c: Likewise.
55449         * lib/gethrxtime.h: Likewise.
55450         * lib/getloadavg.c: Likewise.
55451         * lib/getndelim2.c: Likewise.
55452         * lib/getndelim2.h: Likewise.
55453         * lib/getnline.c: Likewise.
55454         * lib/getnline.h: Likewise.
55455         * lib/getopt.c: Likewise.
55456         * lib/getopt.in.h: Likewise.
55457         * lib/getopt1.c: Likewise.
55458         * lib/getopt_int.h: Likewise.
55459         * lib/getpagesize.h: Likewise.
55460         * lib/getsubopt.c: Likewise.
55461         * lib/gettime.c: Likewise.
55462         * lib/getugroups.c: Likewise.
55463         * lib/getugroups.h: Likewise.
55464         * lib/getusershell.c: Likewise.
55465         * lib/gl_anyavltree_list1.h: Likewise.
55466         * lib/gl_anyavltree_list2.h: Likewise.
55467         * lib/gl_anyhash_list1.h: Likewise.
55468         * lib/gl_anyhash_list2.h: Likewise.
55469         * lib/gl_anylinked_list1.h: Likewise.
55470         * lib/gl_anylinked_list2.h: Likewise.
55471         * lib/gl_anyrbtree_list1.h: Likewise.
55472         * lib/gl_anyrbtree_list2.h: Likewise.
55473         * lib/gl_anytree_list1.h: Likewise.
55474         * lib/gl_anytree_list2.h: Likewise.
55475         * lib/gl_anytree_oset.h: Likewise.
55476         * lib/gl_anytreehash_list1.h: Likewise.
55477         * lib/gl_anytreehash_list2.h: Likewise.
55478         * lib/gl_array_list.c: Likewise.
55479         * lib/gl_array_list.h: Likewise.
55480         * lib/gl_array_oset.c: Likewise.
55481         * lib/gl_array_oset.h: Likewise.
55482         * lib/gl_avltree_list.c: Likewise.
55483         * lib/gl_avltree_list.h: Likewise.
55484         * lib/gl_avltree_oset.c: Likewise.
55485         * lib/gl_avltree_oset.h: Likewise.
55486         * lib/gl_avltreehash_list.c: Likewise.
55487         * lib/gl_avltreehash_list.h: Likewise.
55488         * lib/gl_carray_list.c: Likewise.
55489         * lib/gl_carray_list.h: Likewise.
55490         * lib/gl_linked_list.c: Likewise.
55491         * lib/gl_linked_list.h: Likewise.
55492         * lib/gl_linkedhash_list.c: Likewise.
55493         * lib/gl_linkedhash_list.h: Likewise.
55494         * lib/gl_list.c: Likewise.
55495         * lib/gl_list.h: Likewise.
55496         * lib/gl_oset.c: Likewise.
55497         * lib/gl_oset.h: Likewise.
55498         * lib/gl_rbtree_list.c: Likewise.
55499         * lib/gl_rbtree_list.h: Likewise.
55500         * lib/gl_rbtree_oset.c: Likewise.
55501         * lib/gl_rbtree_oset.h: Likewise.
55502         * lib/gl_rbtreehash_list.c: Likewise.
55503         * lib/gl_rbtreehash_list.h: Likewise.
55504         * lib/gl_sublist.c: Likewise.
55505         * lib/gl_sublist.h: Likewise.
55506         * lib/group-member.c: Likewise.
55507         * lib/group-member.h: Likewise.
55508         * lib/hard-locale.c: Likewise.
55509         * lib/hard-locale.h: Likewise.
55510         * lib/hash-pjw.c: Likewise.
55511         * lib/hash-pjw.h: Likewise.
55512         * lib/hash-triple.c: Likewise.
55513         * lib/hash.c: Likewise.
55514         * lib/hash.h: Likewise.
55515         * lib/human.c: Likewise.
55516         * lib/human.h: Likewise.
55517         * lib/i-ring.c: Likewise.
55518         * lib/i-ring.h: Likewise.
55519         * lib/idcache.c: Likewise.
55520         * lib/imaxabs.c: Likewise.
55521         * lib/imaxdiv.c: Likewise.
55522         * lib/inet_pton.c: Likewise.
55523         * lib/inet_pton.h: Likewise.
55524         * lib/intprops.h: Likewise.
55525         * lib/inttostr.c: Likewise.
55526         * lib/inttostr.h: Likewise.
55527         * lib/inttypes.in.h: Likewise.
55528         * lib/isapipe.c: Likewise.
55529         * lib/isdir.c: Likewise.
55530         * lib/isnan.c: Likewise.
55531         * lib/isnan.h: Likewise.
55532         * lib/isnanf.c: Likewise.
55533         * lib/isnanf.h: Likewise.
55534         * lib/isnanl-nolibm.h: Likewise.
55535         * lib/isnanl.c: Likewise.
55536         * lib/isnanl.h: Likewise.
55537         * lib/javacomp.c: Likewise.
55538         * lib/javacomp.h: Likewise.
55539         * lib/javaexec.c: Likewise.
55540         * lib/javaexec.h: Likewise.
55541         * lib/javaversion.c: Likewise.
55542         * lib/javaversion.h: Likewise.
55543         * lib/javaversion.java: Likewise.
55544         * lib/lbrkprop.h: Likewise.
55545         * lib/lchmod.h: Likewise.
55546         * lib/lchown.c: Likewise.
55547         * lib/ldexpl.c: Likewise.
55548         * lib/linebreak.c: Likewise.
55549         * lib/linebreak.h: Likewise.
55550         * lib/linebuffer.c: Likewise.
55551         * lib/linebuffer.h: Likewise.
55552         * lib/locale.in.h: Likewise.
55553         * lib/logl.c: Likewise.
55554         * lib/long-options.c: Likewise.
55555         * lib/long-options.h: Likewise.
55556         * lib/lstat.c: Likewise.
55557         * lib/lstat.h: Likewise.
55558         * lib/math.in.h: Likewise.
55559         * lib/mbchar.c: Likewise.
55560         * lib/mbchar.h: Likewise.
55561         * lib/mbfile.h: Likewise.
55562         * lib/mbiter.h: Likewise.
55563         * lib/mbscasecmp.c: Likewise.
55564         * lib/mbscasestr.c: Likewise.
55565         * lib/mbschr.c: Likewise.
55566         * lib/mbscspn.c: Likewise.
55567         * lib/mbslen.c: Likewise.
55568         * lib/mbsncasecmp.c: Likewise.
55569         * lib/mbsnlen.c: Likewise.
55570         * lib/mbspbrk.c: Likewise.
55571         * lib/mbspcasecmp.c: Likewise.
55572         * lib/mbsrchr.c: Likewise.
55573         * lib/mbssep.c: Likewise.
55574         * lib/mbsspn.c: Likewise.
55575         * lib/mbsstr.c: Likewise.
55576         * lib/mbstok_r.c: Likewise.
55577         * lib/mbswidth.c: Likewise.
55578         * lib/mbswidth.h: Likewise.
55579         * lib/mbuiter.h: Likewise.
55580         * lib/memcasecmp.c: Likewise.
55581         * lib/memcasecmp.h: Likewise.
55582         * lib/memchr.c: Likewise.
55583         * lib/memcmp.c: Likewise.
55584         * lib/memcoll.c: Likewise.
55585         * lib/memcoll.h: Likewise.
55586         * lib/memcpy.c: Likewise.
55587         * lib/memrchr.c: Likewise.
55588         * lib/mkancesdirs.c: Likewise.
55589         * lib/mkdir-p.c: Likewise.
55590         * lib/mkdir-p.h: Likewise.
55591         * lib/mkdir.c: Likewise.
55592         * lib/mkdirat.c: Likewise.
55593         * lib/mkdtemp.c: Likewise.
55594         * lib/mkstemp-safer.c: Likewise.
55595         * lib/mkstemp.c: Likewise.
55596         * lib/modechange.c: Likewise.
55597         * lib/modechange.h: Likewise.
55598         * lib/mountlist.c: Likewise.
55599         * lib/mountlist.h: Likewise.
55600         * lib/mpsort.c: Likewise.
55601         * lib/nanosleep.c: Likewise.
55602         * lib/obstack.c: Likewise.
55603         * lib/obstack.h: Likewise.
55604         * lib/open-safer.c: Likewise.
55605         * lib/open.c: Likewise.
55606         * lib/openat-die.c: Likewise.
55607         * lib/openat-priv.h: Likewise.
55608         * lib/openat-proc.c: Likewise.
55609         * lib/openat.c: Likewise.
55610         * lib/openat.h: Likewise.
55611         * lib/pagealign_alloc.c: Likewise.
55612         * lib/pagealign_alloc.h: Likewise.
55613         * lib/physmem.c: Likewise.
55614         * lib/physmem.h: Likewise.
55615         * lib/pipe-safer.c: Likewise.
55616         * lib/pipe.c: Likewise.
55617         * lib/pipe.h: Likewise.
55618         * lib/posixtm.c: Likewise.
55619         * lib/posixtm.h: Likewise.
55620         * lib/posixver.c: Likewise.
55621         * lib/printf-frexp.c: Likewise.
55622         * lib/printf-frexp.h: Likewise.
55623         * lib/printf-frexpl.c: Likewise.
55624         * lib/printf-frexpl.h: Likewise.
55625         * lib/printf.c: Likewise.
55626         * lib/progname.c: Likewise.
55627         * lib/progname.h: Likewise.
55628         * lib/progreloc.c: Likewise.
55629         * lib/putenv.c: Likewise.
55630         * lib/quote.c: Likewise.
55631         * lib/quote.h: Likewise.
55632         * lib/quotearg.c: Likewise.
55633         * lib/quotearg.h: Likewise.
55634         * lib/raise.c: Likewise.
55635         * lib/readline.c: Likewise.
55636         * lib/readline.h: Likewise.
55637         * lib/readlink.c: Likewise.
55638         * lib/readtokens.c: Likewise.
55639         * lib/readtokens.h: Likewise.
55640         * lib/readtokens0.c: Likewise.
55641         * lib/readtokens0.h: Likewise.
55642         * lib/readutmp.c: Likewise.
55643         * lib/readutmp.h: Likewise.
55644         * lib/realloc.c: Likewise.
55645         * lib/relocwrapper.c: Likewise.
55646         * lib/rename-dest-slash.c: Likewise.
55647         * lib/rename.c: Likewise.
55648         * lib/rmdir.c: Likewise.
55649         * lib/rpmatch.c: Likewise.
55650         * lib/safe-read.c: Likewise.
55651         * lib/safe-read.h: Likewise.
55652         * lib/safe-write.c: Likewise.
55653         * lib/safe-write.h: Likewise.
55654         * lib/same-inode.h: Likewise.
55655         * lib/same.c: Likewise.
55656         * lib/same.h: Likewise.
55657         * lib/save-cwd.c: Likewise.
55658         * lib/save-cwd.h: Likewise.
55659         * lib/savedir.c: Likewise.
55660         * lib/savedir.h: Likewise.
55661         * lib/savewd.c: Likewise.
55662         * lib/savewd.h: Likewise.
55663         * lib/search.in.h: Likewise.
55664         * lib/setenv.c: Likewise.
55665         * lib/setenv.h: Likewise.
55666         * lib/settime.c: Likewise.
55667         * lib/sh-quote.c: Likewise.
55668         * lib/sh-quote.h: Likewise.
55669         * lib/sig2str.c: Likewise.
55670         * lib/sig2str.h: Likewise.
55671         * lib/signal.in.h: Likewise.
55672         * lib/signbitd.c: Likewise.
55673         * lib/signbitf.c: Likewise.
55674         * lib/signbitl.c: Likewise.
55675         * lib/sigprocmask.c: Likewise.
55676         * lib/sincosl.c: Likewise.
55677         * lib/sleep.c: Likewise.
55678         * lib/sprintf.c: Likewise.
55679         * lib/sqrtl.c: Likewise.
55680         * lib/stat-time.h: Likewise.
55681         * lib/stdio--.h: Likewise.
55682         * lib/stdio-safer.h: Likewise.
55683         * lib/stdlib--.h: Likewise.
55684         * lib/stdlib-safer.h: Likewise.
55685         * lib/stdlib.in.h: Likewise.
55686         * lib/stpcpy.c: Likewise.
55687         * lib/stpncpy.c: Likewise.
55688         * lib/strchrnul.c: Likewise.
55689         * lib/strcspn.c: Likewise.
55690         * lib/strerror.c: Likewise.
55691         * lib/strftime.c: Likewise.
55692         * lib/strftime.h: Likewise.
55693         * lib/striconveh.c: Likewise.
55694         * lib/striconveh.h: Likewise.
55695         * lib/striconveha.c: Likewise.
55696         * lib/striconveha.h: Likewise.
55697         * lib/stripslash.c: Likewise.
55698         * lib/strnlen1.c: Likewise.
55699         * lib/strnlen1.h: Likewise.
55700         * lib/strtod.c: Likewise.
55701         * lib/strtoimax.c: Likewise.
55702         * lib/strtok_r.c: Likewise.
55703         * lib/strtol.c: Likewise.
55704         * lib/strtoll.c: Likewise.
55705         * lib/strtoul.c: Likewise.
55706         * lib/strtoull.c: Likewise.
55707         * lib/sysexits.in.h: Likewise.
55708         * lib/tempname.c: Likewise.
55709         * lib/tempname.h: Likewise.
55710         * lib/timespec.h: Likewise.
55711         * lib/tls.c: Likewise.
55712         * lib/tls.h: Likewise.
55713         * lib/tmpdir.c: Likewise.
55714         * lib/tmpdir.h: Likewise.
55715         * lib/tmpfile-safer.c: Likewise.
55716         * lib/tmpfile.c: Likewise.
55717         * lib/trigl.c: Likewise.
55718         * lib/trigl.h: Likewise.
55719         * lib/trim.c: Likewise.
55720         * lib/trim.h: Likewise.
55721         * lib/trunc.c: Likewise.
55722         * lib/truncf.c: Likewise.
55723         * lib/truncl.c: Likewise.
55724         * lib/tsearch.c: Likewise.
55725         * lib/unicodeio.c: Likewise.
55726         * lib/unicodeio.h: Likewise.
55727         * lib/unistd--.h: Likewise.
55728         * lib/unistd-safer.h: Likewise.
55729         * lib/unistdio/ulc-fprintf.c: Likewise.
55730         * lib/unistdio/ulc-vfprintf.c: Likewise.
55731         * lib/unlinkdir.c: Likewise.
55732         * lib/unlinkdir.h: Likewise.
55733         * lib/unlocked-io.h: Likewise.
55734         * lib/unsetenv.c: Likewise.
55735         * lib/userspec.c: Likewise.
55736         * lib/utime.c: Likewise.
55737         * lib/utimecmp.c: Likewise.
55738         * lib/utimecmp.h: Likewise.
55739         * lib/utimens.c: Likewise.
55740         * lib/verify.h: Likewise.
55741         * lib/verror.c: Likewise.
55742         * lib/verror.h: Likewise.
55743         * lib/version-etc-fsf.c: Likewise.
55744         * lib/version-etc.c: Likewise.
55745         * lib/version-etc.h: Likewise.
55746         * lib/vfprintf.c: Likewise.
55747         * lib/vprintf.c: Likewise.
55748         * lib/vsprintf.c: Likewise.
55749         * lib/w32spawn.h: Likewise.
55750         * lib/wait-process.c: Likewise.
55751         * lib/wait-process.h: Likewise.
55752         * lib/wcwidth.c: Likewise.
55753         * lib/write-any-file.c: Likewise.
55754         * lib/xalloc-die.c: Likewise.
55755         * lib/xalloc.h: Likewise.
55756         * lib/xasprintf.c: Likewise.
55757         * lib/xgetcwd.c: Likewise.
55758         * lib/xgetcwd.h: Likewise.
55759         * lib/xgetdomainname.c: Likewise.
55760         * lib/xgetdomainname.h: Likewise.
55761         * lib/xgethostname.c: Likewise.
55762         * lib/xmalloc.c: Likewise.
55763         * lib/xmalloca.c: Likewise.
55764         * lib/xmalloca.h: Likewise.
55765         * lib/xmemcoll.c: Likewise.
55766         * lib/xnanosleep.c: Likewise.
55767         * lib/xreadlink.c: Likewise.
55768         * lib/xreadlink.h: Likewise.
55769         * lib/xsetenv.c: Likewise.
55770         * lib/xsetenv.h: Likewise.
55771         * lib/xstriconv.c: Likewise.
55772         * lib/xstriconv.h: Likewise.
55773         * lib/xstrndup.c: Likewise.
55774         * lib/xstrndup.h: Likewise.
55775         * lib/xstrtod.c: Likewise.
55776         * lib/xstrtod.h: Likewise.
55777         * lib/xstrtol-error.c: Likewise.
55778         * lib/xstrtol.c: Likewise.
55779         * lib/xstrtol.h: Likewise.
55780         * lib/xtime.h: Likewise.
55781         * lib/xvasprintf.c: Likewise.
55782         * lib/xvasprintf.h: Likewise.
55783         * lib/yesno.c: Likewise.
55784         * lib/yesno.h: Likewise.
55785         * posix-modules: Likewise.
55786         * tests/test-alloca-opt.c: Likewise.
55787         * tests/test-arcfour.c: Likewise.
55788         * tests/test-arctwo.c: Likewise.
55789         * tests/test-argmatch.c: Likewise.
55790         * tests/test-argp-2.sh: Likewise.
55791         * tests/test-argp.c: Likewise.
55792         * tests/test-arpa_inet.c: Likewise.
55793         * tests/test-array_list.c: Likewise.
55794         * tests/test-array_oset.c: Likewise.
55795         * tests/test-atexit.c: Likewise.
55796         * tests/test-avltree_list.c: Likewise.
55797         * tests/test-avltree_oset.c: Likewise.
55798         * tests/test-avltreehash_list.c: Likewise.
55799         * tests/test-base64.c: Likewise.
55800         * tests/test-binary-io.c: Likewise.
55801         * tests/test-byteswap.c: Likewise.
55802         * tests/test-c-ctype.c: Likewise.
55803         * tests/test-c-strcasecmp.c: Likewise.
55804         * tests/test-c-strcasestr.c: Likewise.
55805         * tests/test-c-strncasecmp.c: Likewise.
55806         * tests/test-c-strstr.c: Likewise.
55807         * tests/test-canonicalize-lgpl.c: Likewise.
55808         * tests/test-canonicalize.c: Likewise.
55809         * tests/test-carray_list.c: Likewise.
55810         * tests/test-ceilf.c: Likewise.
55811         * tests/test-ceill.c: Likewise.
55812         * tests/test-count-one-bits.c: Likewise.
55813         * tests/test-crc.c: Likewise.
55814         * tests/test-dirname.c: Likewise.
55815         * tests/test-fbufmode.c: Likewise.
55816         * tests/test-fcntl.c: Likewise.
55817         * tests/test-fflush.c: Likewise.
55818         * tests/test-floorf.c: Likewise.
55819         * tests/test-floorl.c: Likewise.
55820         * tests/test-fopen.c: Likewise.
55821         * tests/test-fprintf-posix.c: Likewise.
55822         * tests/test-fprintf-posix.h: Likewise.
55823         * tests/test-fpurge.c: Likewise.
55824         * tests/test-freadable.c: Likewise.
55825         * tests/test-freadahead.c: Likewise.
55826         * tests/test-freading.c: Likewise.
55827         * tests/test-freopen.c: Likewise.
55828         * tests/test-frexp.c: Likewise.
55829         * tests/test-frexpl.c: Likewise.
55830         * tests/test-fseek.c: Likewise.
55831         * tests/test-fseeko.c: Likewise.
55832         * tests/test-fseterr.c: Likewise.
55833         * tests/test-fstrcmp.c: Likewise.
55834         * tests/test-ftell.c: Likewise.
55835         * tests/test-ftello.c: Likewise.
55836         * tests/test-fwritable.c: Likewise.
55837         * tests/test-fwriting.c: Likewise.
55838         * tests/test-getaddrinfo.c: Likewise.
55839         * tests/test-getpass.c: Likewise.
55840         * tests/test-gettimeofday.c: Likewise.
55841         * tests/test-hmac-md5.c: Likewise.
55842         * tests/test-hmac-sha1.c: Likewise.
55843         * tests/test-iconv.c: Likewise.
55844         * tests/test-iconvme.c: Likewise.
55845         * tests/test-inttypes.c: Likewise.
55846         * tests/test-isnan.c: Likewise.
55847         * tests/test-isnanf.c: Likewise.
55848         * tests/test-isnanl-nolibm.c: Likewise.
55849         * tests/test-isnanl.c: Likewise.
55850         * tests/test-isnanl.h: Likewise.
55851         * tests/test-ldexpl.c: Likewise.
55852         * tests/test-linked_list.c: Likewise.
55853         * tests/test-linkedhash_list.c: Likewise.
55854         * tests/test-locale.c: Likewise.
55855         * tests/test-localename.c: Likewise.
55856         * tests/test-lock.c: Likewise.
55857         * tests/test-lseek.c: Likewise.
55858         * tests/test-malloca.c: Likewise.
55859         * tests/test-math.c: Likewise.
55860         * tests/test-mbscasecmp.c: Likewise.
55861         * tests/test-mbscasestr1.c: Likewise.
55862         * tests/test-mbscasestr2.c: Likewise.
55863         * tests/test-mbscasestr3.c: Likewise.
55864         * tests/test-mbscasestr4.c: Likewise.
55865         * tests/test-mbschr.c: Likewise.
55866         * tests/test-mbscspn.c: Likewise.
55867         * tests/test-mbsncasecmp.c: Likewise.
55868         * tests/test-mbspbrk.c: Likewise.
55869         * tests/test-mbspcasecmp.c: Likewise.
55870         * tests/test-mbsrchr.c: Likewise.
55871         * tests/test-mbsspn.c: Likewise.
55872         * tests/test-mbsstr1.c: Likewise.
55873         * tests/test-mbsstr2.c: Likewise.
55874         * tests/test-mbsstr3.c: Likewise.
55875         * tests/test-md5.c: Likewise.
55876         * tests/test-memmem.c: Likewise.
55877         * tests/test-netinet_in.c: Likewise.
55878         * tests/test-open.c: Likewise.
55879         * tests/test-printf-frexp.c: Likewise.
55880         * tests/test-printf-frexpl.c: Likewise.
55881         * tests/test-printf-posix.c: Likewise.
55882         * tests/test-printf-posix.h: Likewise.
55883         * tests/test-rbtree_list.c: Likewise.
55884         * tests/test-rbtree_oset.c: Likewise.
55885         * tests/test-rbtreehash_list.c: Likewise.
55886         * tests/test-read-file.c: Likewise.
55887         * tests/test-rijndael.c: Likewise.
55888         * tests/test-search.c: Likewise.
55889         * tests/test-signbit.c: Likewise.
55890         * tests/test-sleep.c: Likewise.
55891         * tests/test-snprintf-posix.c: Likewise.
55892         * tests/test-snprintf-posix.h: Likewise.
55893         * tests/test-snprintf.c: Likewise.
55894         * tests/test-sprintf-posix.c: Likewise.
55895         * tests/test-sprintf-posix.h: Likewise.
55896         * tests/test-stat-time.c: Likewise.
55897         * tests/test-stdbool.c: Likewise.
55898         * tests/test-stdint.c: Likewise.
55899         * tests/test-stdio.c: Likewise.
55900         * tests/test-stdlib.c: Likewise.
55901         * tests/test-stpncpy.c: Likewise.
55902         * tests/test-strcasestr.c: Likewise.
55903         * tests/test-striconv.c: Likewise.
55904         * tests/test-striconveh.c: Likewise.
55905         * tests/test-striconveha.c: Likewise.
55906         * tests/test-string.c: Likewise.
55907         * tests/test-sys_select.c: Likewise.
55908         * tests/test-sys_socket.c: Likewise.
55909         * tests/test-sys_stat.c: Likewise.
55910         * tests/test-sys_time.c: Likewise.
55911         * tests/test-sysexits.c: Likewise.
55912         * tests/test-time.c: Likewise.
55913         * tests/test-tls.c: Likewise.
55914         * tests/test-trunc.c: Likewise.
55915         * tests/test-truncf.c: Likewise.
55916         * tests/test-truncl.c: Likewise.
55917         * tests/test-unistd.c: Likewise.
55918         * tests/test-vasnprintf-posix.c: Likewise.
55919         * tests/test-vasnprintf-posix2.c: Likewise.
55920         * tests/test-vasnprintf.c: Likewise.
55921         * tests/test-vasprintf-posix.c: Likewise.
55922         * tests/test-vasprintf.c: Likewise.
55923         * tests/test-verify.c: Likewise.
55924         * tests/test-vfprintf-posix.c: Likewise.
55925         * tests/test-vprintf-posix.c: Likewise.
55926         * tests/test-vsnprintf-posix.c: Likewise.
55927         * tests/test-vsnprintf.c: Likewise.
55928         * tests/test-vsprintf-posix.c: Likewise.
55929         * tests/test-wchar.c: Likewise.
55930         * tests/test-wctype.c: Likewise.
55931         * tests/test-wcwidth.c: Likewise.
55932         * tests/test-xstrtol.c: Likewise.
55933         * tests/test-xvasprintf.c: Likewise.
55934         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55935         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55936         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55937         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55938         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55939         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55940         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55941         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55942         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55943         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55944         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55945         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55946         * tests/uniname/test-uninames.c: Likewise.
55947         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55948         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55949         * tests/unistdio/test-u16-printf1.h: Likewise.
55950         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55951         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55952         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55953         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55954         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55955         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55956         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55957         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55958         * tests/unistdio/test-u32-printf1.h: Likewise.
55959         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55960         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55961         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55962         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55963         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55964         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55965         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55966         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55967         * tests/unistdio/test-u8-printf1.h: Likewise.
55968         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55969         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55970         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55971         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55972         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55973         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55974         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55975         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55976         * tests/unistdio/test-ulc-printf1.h: Likewise.
55977         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55978         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55979         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55980         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55981         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55982         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55983         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55984         * tests/uniwidth/test-u16-width.c: Likewise.
55985         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55986         * tests/uniwidth/test-u32-width.c: Likewise.
55987         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55988         * tests/uniwidth/test-u8-width.c: Likewise.
55989         * tests/uniwidth/test-uc_width.c: Likewise.
55990         * config/srclist-update: Likewise.
55991         (fixlicense): Update to GPLv3+.
55992
55993         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55994         * tests/test-tsearch.c: Change copyright notice.
55995
55996         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55997         * lib/c-strcaseeq.h: Change copyright notice.
55998         * lib/streq.h: Likewise.
55999         * lib/uniconv.h: Likewise.
56000         * lib/uniconv/u-conv-from-enc.h: Likewise.
56001         * lib/uniconv/u-conv-to-enc.h: Likewise.
56002         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56003         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56004         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56005         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56006         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56007         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56008         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56009         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56010         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56011         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56012         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56013         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56014         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56015         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56016         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56017         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56018         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56019         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56020         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56021         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56022         * lib/uniname.h: Likewise.
56023         * lib/uniname/uniname.c: Likewise.
56024         * lib/unistdio.h: Likewise.
56025         * lib/unistdio/u-asnprintf.h: Likewise.
56026         * lib/unistdio/u-asprintf.h: Likewise.
56027         * lib/unistdio/u-printf-args.c: Likewise.
56028         * lib/unistdio/u-printf-args.h: Likewise.
56029         * lib/unistdio/u-printf-parse.h: Likewise.
56030         * lib/unistdio/u-snprintf.h: Likewise.
56031         * lib/unistdio/u-sprintf.h: Likewise.
56032         * lib/unistdio/u-vasprintf.h: Likewise.
56033         * lib/unistdio/u-vsnprintf.h: Likewise.
56034         * lib/unistdio/u-vsprintf.h: Likewise.
56035         * lib/unistdio/u16-asnprintf.c: Likewise.
56036         * lib/unistdio/u16-asprintf.c: Likewise.
56037         * lib/unistdio/u16-printf-parse.c: Likewise.
56038         * lib/unistdio/u16-snprintf.c: Likewise.
56039         * lib/unistdio/u16-sprintf.c: Likewise.
56040         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56041         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56042         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56043         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56044         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56045         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56046         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56047         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56048         * lib/unistdio/u16-vasnprintf.c: Likewise.
56049         * lib/unistdio/u16-vasprintf.c: Likewise.
56050         * lib/unistdio/u16-vsnprintf.c: Likewise.
56051         * lib/unistdio/u16-vsprintf.c: Likewise.
56052         * lib/unistdio/u32-asnprintf.c: Likewise.
56053         * lib/unistdio/u32-asprintf.c: Likewise.
56054         * lib/unistdio/u32-printf-parse.c: Likewise.
56055         * lib/unistdio/u32-snprintf.c: Likewise.
56056         * lib/unistdio/u32-sprintf.c: Likewise.
56057         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56058         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56059         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56060         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56061         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56062         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56063         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56064         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56065         * lib/unistdio/u32-vasnprintf.c: Likewise.
56066         * lib/unistdio/u32-vasprintf.c: Likewise.
56067         * lib/unistdio/u32-vsnprintf.c: Likewise.
56068         * lib/unistdio/u32-vsprintf.c: Likewise.
56069         * lib/unistdio/u8-asnprintf.c: Likewise.
56070         * lib/unistdio/u8-asprintf.c: Likewise.
56071         * lib/unistdio/u8-printf-parse.c: Likewise.
56072         * lib/unistdio/u8-snprintf.c: Likewise.
56073         * lib/unistdio/u8-sprintf.c: Likewise.
56074         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56075         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56076         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56077         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56078         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56079         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56080         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56081         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56082         * lib/unistdio/u8-vasnprintf.c: Likewise.
56083         * lib/unistdio/u8-vasprintf.c: Likewise.
56084         * lib/unistdio/u8-vsnprintf.c: Likewise.
56085         * lib/unistdio/u8-vsprintf.c: Likewise.
56086         * lib/unistdio/ulc-asnprintf.c: Likewise.
56087         * lib/unistdio/ulc-asprintf.c: Likewise.
56088         * lib/unistdio/ulc-printf-parse.c: Likewise.
56089         * lib/unistdio/ulc-snprintf.c: Likewise.
56090         * lib/unistdio/ulc-sprintf.c: Likewise.
56091         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56092         * lib/unistdio/ulc-vasprintf.c: Likewise.
56093         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56094         * lib/unistdio/ulc-vsprintf.c: Likewise.
56095         * lib/unistr.h: Likewise.
56096         * lib/unistr/u-cpy-alloc.h: Likewise.
56097         * lib/unistr/u-cpy.h: Likewise.
56098         * lib/unistr/u-endswith.h: Likewise.
56099         * lib/unistr/u-move.h: Likewise.
56100         * lib/unistr/u-set.h: Likewise.
56101         * lib/unistr/u-startswith.h: Likewise.
56102         * lib/unistr/u-stpcpy.h: Likewise.
56103         * lib/unistr/u-stpncpy.h: Likewise.
56104         * lib/unistr/u-strcat.h: Likewise.
56105         * lib/unistr/u-strcpy.h: Likewise.
56106         * lib/unistr/u-strcspn.h: Likewise.
56107         * lib/unistr/u-strdup.h: Likewise.
56108         * lib/unistr/u-strlen.h: Likewise.
56109         * lib/unistr/u-strncat.h: Likewise.
56110         * lib/unistr/u-strncpy.h: Likewise.
56111         * lib/unistr/u-strnlen.h: Likewise.
56112         * lib/unistr/u-strpbrk.h: Likewise.
56113         * lib/unistr/u-strspn.h: Likewise.
56114         * lib/unistr/u-strstr.h: Likewise.
56115         * lib/unistr/u-strtok.h: Likewise.
56116         * lib/unistr/u16-check.c: Likewise.
56117         * lib/unistr/u16-chr.c: Likewise.
56118         * lib/unistr/u16-cmp.c: Likewise.
56119         * lib/unistr/u16-cpy-alloc.c: Likewise.
56120         * lib/unistr/u16-cpy.c: Likewise.
56121         * lib/unistr/u16-endswith.c: Likewise.
56122         * lib/unistr/u16-mblen.c: Likewise.
56123         * lib/unistr/u16-mbsnlen.c: Likewise.
56124         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56126         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56127         * lib/unistr/u16-mbtouc.c: Likewise.
56128         * lib/unistr/u16-mbtoucr.c: Likewise.
56129         * lib/unistr/u16-move.c: Likewise.
56130         * lib/unistr/u16-next.c: Likewise.
56131         * lib/unistr/u16-prev.c: Likewise.
56132         * lib/unistr/u16-set.c: Likewise.
56133         * lib/unistr/u16-startswith.c: Likewise.
56134         * lib/unistr/u16-stpcpy.c: Likewise.
56135         * lib/unistr/u16-stpncpy.c: Likewise.
56136         * lib/unistr/u16-strcat.c: Likewise.
56137         * lib/unistr/u16-strchr.c: Likewise.
56138         * lib/unistr/u16-strcmp.c: Likewise.
56139         * lib/unistr/u16-strcpy.c: Likewise.
56140         * lib/unistr/u16-strcspn.c: Likewise.
56141         * lib/unistr/u16-strdup.c: Likewise.
56142         * lib/unistr/u16-strlen.c: Likewise.
56143         * lib/unistr/u16-strmblen.c: Likewise.
56144         * lib/unistr/u16-strmbtouc.c: Likewise.
56145         * lib/unistr/u16-strncat.c: Likewise.
56146         * lib/unistr/u16-strncmp.c: Likewise.
56147         * lib/unistr/u16-strncpy.c: Likewise.
56148         * lib/unistr/u16-strnlen.c: Likewise.
56149         * lib/unistr/u16-strpbrk.c: Likewise.
56150         * lib/unistr/u16-strrchr.c: Likewise.
56151         * lib/unistr/u16-strspn.c: Likewise.
56152         * lib/unistr/u16-strstr.c: Likewise.
56153         * lib/unistr/u16-strtok.c: Likewise.
56154         * lib/unistr/u16-to-u32.c: Likewise.
56155         * lib/unistr/u16-to-u8.c: Likewise.
56156         * lib/unistr/u16-uctomb-aux.c: Likewise.
56157         * lib/unistr/u16-uctomb.c: Likewise.
56158         * lib/unistr/u32-check.c: Likewise.
56159         * lib/unistr/u32-chr.c: Likewise.
56160         * lib/unistr/u32-cmp.c: Likewise.
56161         * lib/unistr/u32-cpy-alloc.c: Likewise.
56162         * lib/unistr/u32-cpy.c: Likewise.
56163         * lib/unistr/u32-endswith.c: Likewise.
56164         * lib/unistr/u32-mblen.c: Likewise.
56165         * lib/unistr/u32-mbsnlen.c: Likewise.
56166         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56167         * lib/unistr/u32-mbtouc.c: Likewise.
56168         * lib/unistr/u32-mbtoucr.c: Likewise.
56169         * lib/unistr/u32-move.c: Likewise.
56170         * lib/unistr/u32-next.c: Likewise.
56171         * lib/unistr/u32-prev.c: Likewise.
56172         * lib/unistr/u32-set.c: Likewise.
56173         * lib/unistr/u32-startswith.c: Likewise.
56174         * lib/unistr/u32-stpcpy.c: Likewise.
56175         * lib/unistr/u32-stpncpy.c: Likewise.
56176         * lib/unistr/u32-strcat.c: Likewise.
56177         * lib/unistr/u32-strchr.c: Likewise.
56178         * lib/unistr/u32-strcmp.c: Likewise.
56179         * lib/unistr/u32-strcpy.c: Likewise.
56180         * lib/unistr/u32-strcspn.c: Likewise.
56181         * lib/unistr/u32-strdup.c: Likewise.
56182         * lib/unistr/u32-strlen.c: Likewise.
56183         * lib/unistr/u32-strmblen.c: Likewise.
56184         * lib/unistr/u32-strmbtouc.c: Likewise.
56185         * lib/unistr/u32-strncat.c: Likewise.
56186         * lib/unistr/u32-strncmp.c: Likewise.
56187         * lib/unistr/u32-strncpy.c: Likewise.
56188         * lib/unistr/u32-strnlen.c: Likewise.
56189         * lib/unistr/u32-strpbrk.c: Likewise.
56190         * lib/unistr/u32-strrchr.c: Likewise.
56191         * lib/unistr/u32-strspn.c: Likewise.
56192         * lib/unistr/u32-strstr.c: Likewise.
56193         * lib/unistr/u32-strtok.c: Likewise.
56194         * lib/unistr/u32-to-u16.c: Likewise.
56195         * lib/unistr/u32-to-u8.c: Likewise.
56196         * lib/unistr/u32-uctomb.c: Likewise.
56197         * lib/unistr/u8-check.c: Likewise.
56198         * lib/unistr/u8-chr.c: Likewise.
56199         * lib/unistr/u8-cmp.c: Likewise.
56200         * lib/unistr/u8-cpy-alloc.c: Likewise.
56201         * lib/unistr/u8-cpy.c: Likewise.
56202         * lib/unistr/u8-endswith.c: Likewise.
56203         * lib/unistr/u8-mblen.c: Likewise.
56204         * lib/unistr/u8-mbsnlen.c: Likewise.
56205         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56206         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56207         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56208         * lib/unistr/u8-mbtouc.c: Likewise.
56209         * lib/unistr/u8-mbtoucr.c: Likewise.
56210         * lib/unistr/u8-move.c: Likewise.
56211         * lib/unistr/u8-next.c: Likewise.
56212         * lib/unistr/u8-prev.c: Likewise.
56213         * lib/unistr/u8-set.c: Likewise.
56214         * lib/unistr/u8-startswith.c: Likewise.
56215         * lib/unistr/u8-stpcpy.c: Likewise.
56216         * lib/unistr/u8-stpncpy.c: Likewise.
56217         * lib/unistr/u8-strcat.c: Likewise.
56218         * lib/unistr/u8-strchr.c: Likewise.
56219         * lib/unistr/u8-strcmp.c: Likewise.
56220         * lib/unistr/u8-strcpy.c: Likewise.
56221         * lib/unistr/u8-strcspn.c: Likewise.
56222         * lib/unistr/u8-strdup.c: Likewise.
56223         * lib/unistr/u8-strlen.c: Likewise.
56224         * lib/unistr/u8-strmblen.c: Likewise.
56225         * lib/unistr/u8-strmbtouc.c: Likewise.
56226         * lib/unistr/u8-strncat.c: Likewise.
56227         * lib/unistr/u8-strncmp.c: Likewise.
56228         * lib/unistr/u8-strncpy.c: Likewise.
56229         * lib/unistr/u8-strnlen.c: Likewise.
56230         * lib/unistr/u8-strpbrk.c: Likewise.
56231         * lib/unistr/u8-strrchr.c: Likewise.
56232         * lib/unistr/u8-strspn.c: Likewise.
56233         * lib/unistr/u8-strstr.c: Likewise.
56234         * lib/unistr/u8-strtok.c: Likewise.
56235         * lib/unistr/u8-to-u16.c: Likewise.
56236         * lib/unistr/u8-to-u32.c: Likewise.
56237         * lib/unistr/u8-uctomb-aux.c: Likewise.
56238         * lib/unistr/u8-uctomb.c: Likewise.
56239         * lib/unitypes.h: Likewise.
56240         * lib/uniwidth.h: Likewise.
56241         * lib/uniwidth/cjk.h: Likewise.
56242         * lib/uniwidth/u16-strwidth.c: Likewise.
56243         * lib/uniwidth/u16-width.c: Likewise.
56244         * lib/uniwidth/u32-strwidth.c: Likewise.
56245         * lib/uniwidth/u32-width.c: Likewise.
56246         * lib/uniwidth/u8-strwidth.c: Likewise.
56247         * lib/uniwidth/u8-width.c: Likewise.
56248         * lib/uniwidth/width.c: Likewise.
56249
56250 2007-10-07  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56253         The file is still under LGPL (see modules/inttypes).
56254
56255 2007-10-06  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/trunc (Dependencies): Add 'extensions'.
56258         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56259         Reported by Ben Pfaff <blp@gnu.org>.
56260
56261 2007-10-06  Bruno Haible  <bruno@clisp.org>
56262
56263         * modules/freopen-tests: New file.
56264         * tests/test-freopen.c: New file.
56265
56266         * modules/fopen-tests: New file.
56267         * tests/test-fopen.c: New file.
56268
56269         * modules/fopen: New file.
56270         * lib/fopen.c: New file.
56271         * m4/fopen.m4: New file.
56272         * modules/freopen: New file.
56273         * lib/freopen.c: New file.
56274         * m4/freopen.m4: New file.
56275         * lib/stdio.in.h (fopen, freopen): New declarations.
56276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56277         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56278         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56279         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56280         * doc/functions/fopen.texi: Mention the 'fopen' module.
56281         * doc/functions/freopen.texi: Mention the 'freopen' module.
56282
56283 2007-10-06  Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/open-tests: New file.
56286         * tests/test-open.c: New file.
56287
56288         * modules/open: New file.
56289         * lib/open.c: New file.
56290         * m4/open.m4: New file.
56291         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56292         lib/open.c does.
56293         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56294         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56295         macros.
56296         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56297         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56298         REPLACE_OPEN.
56299         * doc/functions/open.texi: Mention the 'open' module.
56300
56301 2007-10-04  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/ceill-tests: New file.
56304         * tests/test-ceill.c: New file.
56305
56306         * modules/ceill: New file.
56307         * lib/ceill.c: Replace entire file.
56308         * m4/ceill.m4: New file.
56309         * lib/math.in.h (ceill): Replace declaration.
56310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56311         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56312         * doc/functions/ceill.texi: Mention the 'ceill' module.
56313         * modules/mathl (Files): Remove lib/ceill.c.
56314         (Depends-on): Add ceill.
56315
56316 2007-10-04  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/ceilf-tests: New file.
56319         * tests/test-ceilf.c: New file.
56320
56321         * modules/ceilf: New file.
56322         * lib/ceil.c: New file.
56323         * lib/ceilf.c: New file.
56324         * m4/ceilf.m4: New file.
56325         * lib/math.in.h (ceilf): New declaration.
56326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56327         HAVE_DECL_CEILF.
56328         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56329         HAVE_DECL_CEILF.
56330         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56331
56332 2007-10-04  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/floorl-tests: New file.
56335         * tests/test-floorl.c: New file.
56336
56337         * modules/floorl: New file.
56338         * lib/floorl.c: Replace entire file.
56339         * m4/floorl.m4: New file.
56340         * lib/math.in.h (floorl): Replace declaration.
56341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56342         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56343         * doc/functions/floorl.texi: Mention the 'floorl' module.
56344         * modules/mathl (Files): Remove lib/floorl.c.
56345         (Depends-on): Add floorl.
56346
56347 2007-10-04  Bruno Haible  <bruno@clisp.org>
56348
56349         * modules/floorf-tests: New file.
56350         * tests/test-floorf.c: New file.
56351
56352         * modules/floorf: New file.
56353         * lib/floor.c: New file.
56354         * lib/floorf.c: New file.
56355         * m4/floorf.m4: New file.
56356         * lib/math.in.h (floorf): New declaration.
56357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56358         HAVE_DECL_FLOORF.
56359         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56360         HAVE_DECL_FLOORF.
56361         * doc/functions/floorf.texi: Mention the 'floorf' module.
56362
56363 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56364             Bruno Haible  <bruno@clisp.org>
56365
56366         Advertise for the Git server instead of the CVS server.
56367         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56368         repository instead of the CVS one.
56369         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56370         about all VCS systems generically.
56371         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56372
56373 2007-10-04  Bruno Haible  <bruno@clisp.org>
56374
56375         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56376         means.
56377         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56378
56379 2007-10-04  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/truncl-tests: New file.
56382         * tests/test-truncl.c: New file.
56383
56384         * modules/truncl: New file.
56385         * lib/truncl.c: New file.
56386         * m4/truncl.m4: New file.
56387         * lib/math.in.h (truncl): New declaration.
56388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56389         HAVE_DECL_TRUNCL.
56390         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56391         HAVE_DECL_TRUNCL.
56392         * doc/functions/truncl.texi: Mention the 'truncl' module.
56393
56394 2007-10-04  Bruno Haible  <bruno@clisp.org>
56395
56396         * modules/truncf-tests: New file.
56397         * tests/test-truncf.c: New file.
56398
56399         * modules/truncf: New file.
56400         * lib/trunc.c: Make paramerizable through USE_* macros.
56401         * lib/truncf.c: New file.
56402         * m4/truncf.m4: New file.
56403         * lib/math.in.h (truncf): New declaration.
56404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56405         HAVE_DECL_TRUNCF.
56406         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56407         HAVE_DECL_TRUNCF.
56408         * doc/functions/truncf.texi: Mention the 'truncf' module.
56409
56410 2007-10-03  Bruno Haible  <bruno@clisp.org>
56411
56412         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56413         augmentation also for tests modules.
56414         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56415         * modules/atexit-tests (Makefile.am): Likewise.
56416         * modules/binary-io-tests (Makefile.am): Likewise.
56417         * modules/c-strcase-tests (Makefile.am): Likewise.
56418         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56419         * modules/canonicalize-tests (Makefile.am): Likewise.
56420         * modules/closein-tests (Makefile.am): Likewise.
56421         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56422         * modules/freadahead-tests (Makefile.am): Likewise.
56423         * modules/fseek-tests (Makefile.am): Likewise.
56424         * modules/fseeko-tests (Makefile.am): Likewise.
56425         * modules/ftell-tests (Makefile.am): Likewise.
56426         * modules/ftello-tests (Makefile.am): Likewise.
56427         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56428         * modules/isnanl-tests (Makefile.am): Likewise.
56429         * modules/lseek-tests (Makefile.am): Likewise.
56430         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56431         * modules/mbscasestr-tests (Makefile.am): Likewise.
56432         * modules/mbschr-tests (Makefile.am): Likewise.
56433         * modules/mbscspn-tests (Makefile.am): Likewise.
56434         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56435         * modules/mbspbrk-tests (Makefile.am): Likewise.
56436         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56437         * modules/mbsrchr-tests (Makefile.am): Likewise.
56438         * modules/mbsspn-tests (Makefile.am): Likewise.
56439         * modules/mbsstr-tests (Makefile.am): Likewise.
56440         * modules/printf-posix-tests (Makefile.am): Likewise.
56441         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56442         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56443         * modules/tsearch-tests (Makefile.am): Likewise.
56444         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56445         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56446         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56447         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56448         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56449         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56450         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56451         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56452         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56453         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56454         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56455         * modules/xstrtol-tests (Makefile.am): Likewise.
56456         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56457         * modules/yesno-tests (Makefile.am): Likewise.
56458
56459 2007-10-03  Bruno Haible  <bruno@clisp.org>
56460
56461         * modules/trunc-tests: New file.
56462         * tests/test-trunc.c: New file.
56463
56464         * modules/trunc: New file.
56465         * lib/trunc.c: New file.
56466         * m4/trunc.m4: New file.
56467         * lib/math.in.h (trunc): New declaration.
56468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56469         HAVE_DECL_TRUNC.
56470         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56471         HAVE_DECL_TRUNC.
56472         * doc/functions/trunc.texi: Mention the 'trunc' module.
56473
56474 2007-10-03  Bruno Haible  <bruno@clisp.org>
56475
56476         * tests/test-fpending.c: New file, mostly copied
56477         from coreutils/lib/t-fpending.c.
56478         * modules/fpending-tests: New file.
56479
56480 2007-10-03  Bruno Haible  <bruno@clisp.org>
56481
56482         Port the stdio extensions to QNX (untested).
56483         * lib/fseterr.c (fseterr): Add support for QNX.
56484         * lib/fbufmode.c (fbufmode): Likewise.
56485         * lib/freadable.c (freadable): Likewise.
56486         * lib/fwritable.c (fwritable): Likewise.
56487         * lib/freading.c (freading): Likewise.
56488         * lib/fwriting.c (fwriting): Likewise.
56489         * lib/freadahead.c (freadahed): Likewise.
56490         * lib/fpurge.c (fpurge): Likewise.
56491         * lib/fseeko.c (rpl_fseeko): Likewise.
56492
56493 2007-10-03  Bruno Haible  <bruno@clisp.org>
56494             Jim Meyering  <jim@meyering.net>
56495             Eric Blake  <ebb9@byu.net>
56496
56497         * doc/relocatable.texi: Use @command instead of @program.
56498
56499 2007-10-02  Jim Meyering  <jim@meyering.net>
56500
56501         Perform one more "_.h" -> ".in.h" substitution.
56502         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56503         instead of unistd_.h here, too.
56504
56505 2007-10-01  Bruno Haible  <bruno@clisp.org>
56506
56507         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56508         Needed for the alloca-opt module.
56509
56510 2007-09-30  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56513         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56514         alloca_.h.
56515         * lib/argz.in.h: Renamed from lib/argz_.h.
56516         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56517         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56518         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56519         byteswap_.h.
56520         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56521         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56522         dirent_.h.
56523         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56524         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56525         fcntl_.h.
56526         * lib/float.in.h: Renamed from lib/float_.h.
56527         * modules/float (Files, Makefile.am): Use float.in.h instead of
56528         float_.h.
56529         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56530         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56531         fnmatch_.h.
56532         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56533         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56534         getopt_.h.
56535         * lib/glob.in.h: Renamed from lib/glob_.h.
56536         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56537         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56538         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56539         iconv_.h.
56540         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56541         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56542         inttypes_.h.
56543         * lib/locale.in.h: Renamed from lib/locale_.h.
56544         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56545         locale_.h.
56546         * lib/math.in.h: Renamed from lib/math_.h.
56547         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56548         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56549         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56550         of netinet_in_.h. Add dependency.
56551         * lib/poll.in.h: Renamed from lib/poll_.h.
56552         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56553         * lib/search.in.h: Renamed from lib/search_.h.
56554         * modules/search (Files, Makefile.am): Use search.in.h instead of
56555         search_.h.
56556         * lib/signal.in.h: Renamed from lib/signal_.h.
56557         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56558         _signal.h.
56559         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56560         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56561         stdbool_.h.
56562         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56563         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56564         stdint_.h.
56565         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56566         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56567         stdio_.h.
56568         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56569         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56570         stdlib_.h.
56571         * lib/string.in.h: Renamed from lib/string_.h.
56572         * modules/string (Files, Makefile.am): Use string.in.h instead of
56573         string_.h.
56574         * doc/gnulib-tool.texi (Initial import): Update.
56575         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56576         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56577         of sys_select_.h. Add dependency.
56578         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56579         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56580         of sys_socket_.h.
56581         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56582         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56583         sys_stat_.h.
56584         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56585         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56586         sys_time_.h.
56587         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56588         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56589         sysexits_.h.
56590         * lib/time.in.h: Renamed from lib/time_.h.
56591         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56592         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56593         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56594         unistd_.h.
56595         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56596         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56597         wchar_.h.
56598         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56599         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56600         wctype_.h.
56601         * build-aux/bootstrap (slurp): Update.
56602         * lib/.cppi-disable: Update.
56603
56604 2007-09-30  Bruno Haible  <bruno@clisp.org>
56605
56606         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56607         Needed on BeOS.
56608
56609 2007-09-30  Bruno Haible  <bruno@clisp.org>
56610
56611         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56612
56613 2007-09-29  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56616
56617 2007-09-29  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56620         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56621         * build-aux/install-reloc: Compile also areadlink.c.
56622         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56623
56624 2007-09-29  Bruno Haible  <bruno@clisp.org>
56625
56626         * gnulib-tool (func_emit_initmacro_done): Indentation.
56627
56628 2007-09-29  Bruno Haible  <bruno@clisp.org>
56629
56630         * README: Add CVS checkout update instructions.
56631         Info from Bob Proulx <bob@proulx.com>.
56632
56633 2007-09-28  Eric Blake  <ebb9@byu.net>
56634
56635         Provide move-if-change.
56636         * build-aux/move-if-change: New file, based on best practice
56637         rather than any canonical upstream location.
56638
56639 2007-09-28  Jim Meyering  <jim@meyering.net>
56640
56641         Fix canonicalize loop-detection corner case.
56642         Do not attempt to stat the symlink values stored via seen_triple.
56643         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56644         on linux-2.6.18, (but not 2.6.22).
56645         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56646         triple_compare.  The former compares dev,ino,filename, while the latter
56647         would actually stat dirname(filename) when dev and ino were equal.
56648         * lib/hash-triple.c: Install <string.h>.
56649         (STREQ): Define.
56650         (triple_compare_ino_str): New function.
56651         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56652
56653 2007-09-28  Eric Blake  <ebb9@byu.net>
56654
56655         Enforce that AC_REPLACE_FUNCS files exist.
56656         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56657         override check for typos.
56658
56659         Fix test-closein on Solaris 10.
56660         * tests/test-closein.c (main): Don't assume stdin can be inherited
56661         closed on all systems.
56662         * tests/test-closein.sh: Likewise.
56663         Reported by Piotr Tarnowski.
56664
56665 2007-09-28  Jim Meyering  <jim@meyering.net>
56666
56667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56668
56669 2007-09-27  Jim Meyering  <jim@meyering.net>
56670
56671         canonicalize: Avoid a false-positive cycle failure.
56672         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56673         Sort.  Remove cycle-check.
56674         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56675         not cycle-check.h.
56676         (seen_triple): New function.
56677         (canonicalize_filename_mode): Use it instead of cycle-check.
56678         * tests/test-canonicalize.c: Add a test for this bug.
56679         * tests/test-canonicalize.sh: Set up and run the test.
56680
56681         New module, file-set, from coreutils.
56682         * modules/file-set: Define it.
56683         * lib/file-set.c, lib/file-set.h: Implement.
56684
56685         New module, hash-triple, from coreutils.
56686         * modules/hash-triple: Define it.
56687         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56688
56689 2007-09-25  Eric Blake  <ebb9@byu.net>
56690
56691         Fix strerror on Interix.
56692         * lib/string_.h (strerror): Declare replacement.
56693         * doc/functions/strerror.texi (strerror): Document the Interix
56694         shortcoming.
56695         * modules/string (Makefile.am): Support new hooks.
56696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56697         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56698         gl_FUNC_STRERROR_SEPARATE.
56699         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56700         * lib/strerror.c (rpl_strerror): Provide replacement.
56701         * modules/strerror (Depends-on): Add string.
56702         (configure.ac): Detect use of module.
56703         * tests/test-strerror.c: New file.
56704         * modules/strerror-tests: New test module.
56705         * modules/argp (Depends-on): Add strerror.
56706         * modules/error (Depends-on): Likewise.
56707         Reported by Martin Koeppe.
56708
56709 2007-09-24  Bruno Haible  <bruno@clisp.org>
56710
56711         * README: Update git instructions.
56712
56713 2007-09-24  Eric Blake  <ebb9@byu.net>
56714
56715         Revert fpending breakage from 2007-09-08.
56716         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56717         __fpending.c.
56718
56719 2007-09-24  Jim Meyering  <jim@meyering.net>
56720
56721         filenamecat.c: Add a test.
56722         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56723         showing how the function works when DIR is the empty string.
56724
56725 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56726
56727         * tests/test-canonicalize.sh: Turn on executable bit.
56728
56729 2007-09-19  Eric Blake  <ebb9@byu.net>
56730
56731         * README: Update CVS instructions.
56732
56733 2007-09-18  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/areadlink: New file.
56736         * lib/areadlink.h (areadlink): New declaration.
56737         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56738
56739 2007-09-17  Jim Meyering  <jim@meyering.net>
56740
56741         * lib/savewd.c (ESTALE) [!defined]: Define.
56742         Reported to be required on Interix by Martin Koeppe.
56743
56744 2007-09-17  Bruno Haible  <bruno@clisp.org>
56745
56746         * gnulib-tool (func_version): Use $version.
56747
56748 2007-09-16  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56751         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56752         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56753         Reported by Greg Schafer <gschafer@zip.com.au>.
56754
56755 2007-09-15  Bruno Haible  <bruno@clisp.org>
56756
56757         * gnulib-tool (sed): Try a little harder to make bash understand the
56758         alias.
56759         Reported by Bruce Korb <bruce.korb@gmail.com>.
56760
56761 2007-09-13  Eric Blake  <ebb9@byu.net>
56762
56763         * ChangeLog: Remove conflict markers.
56764
56765 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56766
56767         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56768         Reported by Bruno Haible <bruno@clisp.org>.
56769
56770 2007-09-12  Bruno Haible  <bruno@clisp.org>
56771
56772         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56773         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56774         is not defined.
56775
56776 2007-09-12  Eric Blake  <ebb9@byu.net>
56777
56778         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56779         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56780         Autoconf definition.
56781         * modules/euidaccess (Depends-on): Add extensions, for
56782         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56783         * modules/fnmatch (Depends-on): Likewise.
56784         * modules/getaddrinfo (Depends-on): Likewise.
56785         * modules/getdelim (Depends-on): Likewise.
56786         * modules/getline (Depends-on): Likewise.
56787         * modules/getsubopt (Depends-on): Likewise.
56788         * modules/gettext (Depends-on): Likewise.
56789         * modules/group-member (Depends-on): Likewise.
56790         * modules/mbchar (Depends-on): Likewise.
56791         * modules/memmem (Depends-on): Likewise.
56792         * modules/mempcpy (Depends-on): Likewise.
56793         * modules/memrchr (Depends-on): Likewise.
56794         * modules/pagealign_alloc (Depends-on): Likewise.
56795         * modules/readutmp (Depends-on): Likewise.
56796         * modules/stpcpy (Depends-on): Likewise.
56797         * modules/stpncpy (Depends-on): Likewise.
56798         * modules/strchrnul (Depends-on): Likewise.
56799         * modules/strndup (Depends-on): Likewise.
56800         * modules/strsep (Depends-on): Likewise.
56801         * modules/strverscmp (Depends-on): Likewise.
56802         * modules/vasprintf (Depends-on): Likewise.
56803         * modules/wcwidth (Depends-on): Likewise.
56804         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56805         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56806         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56808         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56810         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56811         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56812         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56813         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56814         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56815         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56816         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56817         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56818         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56819         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56820         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56821         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56823         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56824         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56825         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56826         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56827         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56828         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56830         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56831         so that lock.m4 can be used in gettext without extensions module.
56832
56833 2007-09-11  Bruno Haible  <bruno@clisp.org>
56834
56835         * m4/isc-posix.m4: Remove file.
56836         Suggested by Eric Blake.
56837
56838 2007-09-11  Eric Blake  <ebb9@byu.net>
56839
56840         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56841
56842 2007-09-10  Bruno Haible  <bruno@clisp.org>
56843
56844         * posix-modules: Fix typo in error message.
56845         Reported by Matt <mkraai@beckman.com>.
56846
56847 2007-09-09  Bruno Haible  <bruno@clisp.org>
56848
56849         * doc/functions/getdelim.texi: Update list of platforms lacking the
56850         function.
56851         * doc/functions/getline.texi: Likewise.
56852
56853 2007-09-09  Jim Meyering  <jim@meyering.net>
56854
56855         * lib/hash.c (hash_initialize): Detect calloc failure.
56856         Reported by Bruno Haible.
56857
56858 2007-09-09  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56861         malloc or realloc fails.
56862
56863 2007-09-09  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/getcwd (Depends-on): Add malloc-posix.
56866         * modules/glob (Depends-on): Likewise.
56867         * modules/putenv (Depends-on): Likewise.
56868         * modules/strdup (Depends-on): Likewise.
56869         * modules/getdelim (Depends-on): Add realloc-posix.
56870         * modules/read-file (Depends-on): Likewise.
56871
56872 2007-09-09  Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56875         (gl_FUNC_MALLOC_POSIX): Require it.
56876         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56877         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56878         * modules/realloc (Files): Add m4/malloc.m4.
56879         * modules/calloc (Files): Likewise.
56880
56881 2007-09-09  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/malloc-posix: New file.
56884         * modules/malloc (Depends-on): Add malloc-posix.
56885         * lib/malloc.c: Include errno.h.
56886         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56887         and a POSIX-compatible malloc into a single function. Set ENOMEM
56888         when returning NULL.
56889         * m4/malloc.m4: New file.
56890         * doc/functions/malloc.texi: Mention the malloc-posix module.
56891         * lib/stdlib_.h (malloc): New declaration.
56892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56893         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56894         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56895         and HAVE_MALLOC_POSIX.
56896
56897 2007-09-09  Bruno Haible  <bruno@clisp.org>
56898
56899         * modules/realloc-posix: New file.
56900         * modules/realloc (Depends-on): Add realloc-posix.
56901         * lib/realloc.c: Include errno.h.
56902         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56903         and a POSIX-compatible realloc into a single function. Set ENOMEM
56904         when returning NULL.
56905         * m4/realloc.m4: New file.
56906         * doc/functions/realloc.texi: Mention the realloc-posix module.
56907         * lib/stdlib_.h (realloc): New declaration.
56908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56909         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56910         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56911         and HAVE_REALLOC_POSIX.
56912
56913 2007-09-09  Bruno Haible  <bruno@clisp.org>
56914
56915         * modules/calloc-posix: New file.
56916         * modules/calloc (Depends-on): Add calloc-posix.
56917         * lib/calloc.c: Include errno.h.
56918         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56919         and a POSIX-compatible calloc into a single function. Set ENOMEM
56920         when returning NULL.
56921         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56922         * doc/functions/calloc.texi: Mention the calloc-posix module.
56923         * lib/stdlib_.h (calloc): New declaration.
56924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56925         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56926         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56927         and HAVE_CALLOC_POSIX.
56928
56929 2007-09-09  Bruno Haible  <bruno@clisp.org>
56930
56931         Allow for modules to show an arbitrary notice.
56932         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56933         * gnulib-tool: New option --extract-notice.
56934         (func_usage): Document it.
56935         (sed_extract_prog): Update.
56936         (func_get_notice): New function.
56937         (func_modules_notice): New function.
56938         (func_import, func_create_testdir): Invoke it.
56939         Suggested by Jim Meyering.
56940
56941 2007-09-09  Bruno Haible  <bruno@clisp.org>
56942
56943         * gnulib-tool: New options --verbose, --quiet.
56944         (func_usage): Document them.
56945         (verbose): New variable.
56946         (func_execute_command): New function.
56947         (func_import): Don't show the module list and the file list if
56948         $verbose < 0.
56949         (func_create_testdir): Likewise. Use func_execute_command.
56950         (func_create_megatestdir): Use func_execute_command.
56951
56952 2007-09-08  Bruno Haible  <bruno@clisp.org>
56953
56954         * gnulib-tool (func_import): Prefer rsync over wget when available,
56955         for fetching the PO files.
56956
56957 2007-09-08  Bruno Haible  <bruno@clisp.org>
56958
56959         * posix-modules: New file. Portions copied from gnulib-tool.
56960         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56961
56962 2007-09-08  Jim Meyering  <jim@meyering.net>
56963
56964         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56965         * lib/fpending.h: Rename from __fpending.h.
56966         * lib/fpending.c: Rename from __fpending.c.
56967         Include "fpending.h", not "__fpending.h".
56968         * lib/__fpending.h, lib/__fpending.c: Remove files.
56969         * modules/fpending (Files): Reflect new file names.
56970         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56971
56972 2007-09-08  Bruno Haible  <bruno@clisp.org>
56973
56974         * m4/inttypes-h.m4: Remove stub file.
56975
56976 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56977
56978         * doc/headers/stdint.texi: Discuss #include_next issue.
56979
56980 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56981
56982         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56983
56984 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56985
56986         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56987         in variable name.
56988
56989 2007-09-03  Jim Meyering  <jim@meyering.net>
56990
56991         New module: git-version-gen.
56992         * modules/git-version-gen: New file.
56993
56994         Import changes from coreutils for bootstrap script.
56995
56996         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56997
56998         bootstrap: uses rsync to download the .po files
56999         * build-aux/bootstrap (po_download_command_format): New global.
57000         (download_po_files): Use rsync.
57001         (update_po_files): Don't remove .po files after download,
57002         so future rsync runs can take advantage of the copies.
57003
57004         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57005
57006         Solve the unnecessary-.po-file-regeneration problem once and for all.
57007         * build-aux/bootstrap (download_po_files): New function, renamed from
57008         get_translations.  Now, downloads, but doesn't update LINGUAS.
57009         (update_po_files): New function.
57010
57011         bootstrap: Ignore more.
57012         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57013         uniwidth to e.g., lib/.gitignore.
57014         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57015
57016         * build-aux/bootstrap: New setting: vc_ignore.
57017         (insert_sorted_if_absent): Create $file if absent.
57018         Adapt to new, possibly empty, list: $vc_ignore.
57019
57020         bootstrap: generate more ignorable names
57021         * build-aux/bootstrap (slurp): When generating ignorable names,
57022         also map .sin to .sed, .gperf to .c, and .y to .c.
57023
57024 2007-09-03  Jim Meyering  <jim@meyering.net>
57025
57026         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57027         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57028
57029 2007-09-02  Bruno Haible  <bruno@clisp.org>
57030
57031         Fix mis-recognition of 'mcs' on QNX 6.
57032         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57033         output contains the string "Mono".
57034         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57035         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57036
57037 2007-09-01  Bruno Haible  <bruno@clisp.org>
57038
57039         Fix collision between uniwidth/* and linebreak modules.
57040         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57041         u32_width): Remove declarations.
57042         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57043         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57044         streq3, streq2, streq1, streq0): Remove functions.
57045         (STREQ): Remove macro.
57046         (is_cjk_encoding): Remove function.
57047         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57048         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57049         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57050         * NEWS: Document the change.
57051
57052 2007-09-01  Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/streq.h: Add double-inclusion guard.
57055
57056 2007-09-01  Karl Berry  <karl@gnu.org>
57057
57058         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57059
57060 2007-08-28  Jim Meyering  <jim@meyering.net>
57061
57062         Rename mreadlink_with_size to areadlink_with_size.
57063         * NEWS: Document the change.
57064         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57065         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57066         * lib/mreadlink.h: Rename this to...
57067         * lib/areadlink.h: ...this.
57068         * modules/mreadlink-with-size: Rename this to...
57069         * modules/areadlink-with-size: ...this.
57070         * lib/canonicalize.c: Reflect the renaming.
57071         * modules/canonicalize: Likewise.
57072
57073 2007-08-26  Bruno Haible  <bruno@clisp.org>
57074
57075         * gnulib-tool (func_import): When deciding which files to remove,
57076         consider also dangling symbolic links.
57077         Reported by Eric Blake.
57078
57079 2007-08-26  Bruno Haible  <bruno@clisp.org>
57080
57081         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57082
57083 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57084
57085         * lib/readline.c: Don't include getline.h, the prototype is now
57086         found in stdio.h.
57087
57088 2007-08-23  Jim Meyering  <jim@meyering.net>
57089
57090         Getdelim touchup.
57091         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57092         around the funlockfile call, since funlockfile never sets errno.
57093         Don't set errno upon failed realloc.
57094
57095 2007-08-22  Eric Blake  <ebb9@byu.net>
57096
57097         Getline touchups.
57098         * lib/getdelim.c (getdelim): Revert regression that required *n to
57099         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57100         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57101         getdelim, rather than whether implementation is missing.
57102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57103         * lib/stdio_.h (getline): Also declare if replacement is
57104         required.
57105         * doc/functions/getdelim.texi: New file.
57106         * doc/functions/getline.texi: Likewise.
57107         * doc/gnulib.texi (Function Substitutes): Add new files.
57108         Reported by Bruno Haible.
57109
57110 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57111
57112         * users.txt: Add Guile.
57113
57114 2007-08-22  Eric Blake  <ebb9@byu.net>
57115
57116         * tests/test-getdelim.c (main): Use remove, not unlink.
57117         * tests/test-getline.c (main): Likewise.
57118
57119         Move getline and getdelim into stdio.h, per POSIX 200x.
57120         * modules/getline (Files): Remove getline.h.
57121         (Depends-on): Add stdio.
57122         (configure.ac): Add module indicator.
57123         * modules/getdelim (Files): Remove getdelim.h.
57124         (Depends-on): Add stdio.
57125         (configure.ac): Add module indicator.
57126         * modules/stdio (Makefile.am): Work with new indicators.
57127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57128         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57129         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57130         * lib/getdelim.h: Delete.
57131         * lib/getline.h: Delete.
57132         * lib/stdio_.h (getdelim, getline): Declare.
57133         * modules/getdelim-tests: New module.
57134         * modules/getline-tests: Likewise.
57135         * tests/test-getdelim.c: New file.
57136         * tests/test-getline.c: Likewise.
57137         * NEWS: Document the change.
57138         * lib/getline.c: Update choice of header.
57139         * lib/csharpcomp.c: Likewise.
57140         * lib/getpass.c: Likewise.
57141         * lib/javacomp.c: Likewise.
57142         * lib/javaversion.c: Likewise.
57143         * lib/yesno.c: Likewise.
57144         * lib/getdelim.c: Likewise.
57145         (getdelim): Set errno on failure, and avoid memory leak.
57146
57147 2007-08-19  Bruno Haible  <bruno@clisp.org>
57148
57149         * modules/closein (Depends-on): Add freadahead.
57150         * lib/closein.c: Include freadahead.h.
57151         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57152         is zero.
57153
57154 2007-08-19  Bruno Haible  <bruno@clisp.org>
57155
57156         * modules/freadahead-tests: New file.
57157         * tests/test-freadahead.sh: New file.
57158         * tests/test-freadahead.c: New file.
57159
57160         * modules/freadahead: New file.
57161         * lib/freadahead.h: New file.
57162         * lib/freadahead.c: New file.
57163         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57164         fbufmode, fpurge, freadable, fwritable.
57165
57166 2007-08-19  Eric Blake  <ebb9@byu.net>
57167
57168         Test yesno in combination with closein.
57169         * lib/yesno.c (yesno): Document use of stdin.
57170         * modules/yesno-tests (Files): New module.
57171         * tests/test-yesno.c (main): New file.
57172         * tests/test-yesno.sh: Likewise.
57173
57174 2007-08-19  Bruno Haible  <bruno@clisp.org>
57175
57176         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57177         * lib/fseeko.c (rpl_fseeko): Likewise.
57178         * lib/fseterr.c (fseterr): Likewise.
57179
57180 2007-08-19  Bruno Haible  <bruno@clisp.org>
57181
57182         * tests/test-lseek.c (main): Disable a test for BeOS.
57183         * doc/functions/lseek.texi: Document the BeOS bug.
57184
57185 2007-08-19  Bruno Haible  <bruno@clisp.org>
57186             Eric Blake  <ebb9@byu.net>
57187
57188         * lib/lseek.c: Include <sys/stat.h>.
57189         (rpl_lseek): Add workaround code also for Unix platforms.
57190         Needed for BeOS.
57191         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57192         * doc/functions/lseek.texi: Document BeOS definiency.
57193
57194 2007-08-18  Bruno Haible  <bruno@clisp.org>
57195
57196         * modules/fstrcmp-tests: New file.
57197         * tests/test-fstrcmp.c: New file.
57198
57199 2007-08-18  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/fstrcmp: New file, from GNU gettext with modifications.
57202         * lib/fstrcmp.h: New file, from GNU gettext.
57203         * lib/fstrcmp.c: New file, from GNU gettext.
57204         * MODULES.html.sh (String handling): Add fstrcmp.
57205
57206 2007-08-18  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57209         'bool'.
57210         (diag, compareseq): Remove const from the ctxt argument.
57211         (USE_HEURISTIC): Undefine at the end.
57212
57213 2007-08-18  Jim Meyering  <jim@meyering.net>
57214
57215         New file: lib/idcache.h
57216         * NEWS: Mention the addition.
57217         * modules/idcache (Files): Add lib/idcache.h
57218         * lib/idcache.c: Include "idcache.h".
57219         Don't include <sys/types.h>.
57220         Add a FIXME comment.
57221         Move file-scoped "static" declarations to the top.
57222         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57223
57224 2007-08-17  Bruno Haible  <bruno@clisp.org>
57225         and Paul Eggert  <eggert@cs.ucla.edu>
57226
57227         * MODULES.html.sh: Add diffseq.
57228         * modules/diffseq: New file.
57229         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57230         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57231
57232 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57233
57234         Import changes from coreutils for bootstrap script.
57235
57236         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57237
57238         * build-aux/bootstrap (slurp): Work even in environments where
57239         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57240         current code does not slurp files whose names start with ".", and
57241         this looks like it might be a troublesome area.
57242
57243         2007-07-11  Jim Meyering  <jim@meyering.net>
57244
57245         If there's a GPL vN copyright comment, require that N == 3.
57246
57247         2007-07-08  Jim Meyering  <jim@meyering.net>
57248
57249         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57250         * build-aux/bootstrap (mam_template): Move definition out of loop.
57251
57252         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57253
57254         * build-aux/bootstrap (symlink_to_dir): Rename function from
57255         symlink_to_gnulib.  Add a directory parameter.  Update all
57256         callers.
57257         (cp_mark_as_generated): Also check for -- and link to -- files in
57258         gl/.
57259
57260         2007-07-08  Jim Meyering  <jim@meyering.net>
57261
57262         Adapt to deeper hierarchy in gnulib.
57263         * build-aux/bootstrap (symlink_to_dir): If the destination
57264         directory doesn't exist, create it. This is required at least for
57265         "lib/uniwidth/cjk.h".
57266
57267         2007-05-15  Jim Meyering  <jim@meyering.net>
57268
57269         * build-aux/bootstrap: Now that generated Makefile.am files
57270         are no longer under version control, they must be created at
57271         bootstrap time.
57272
57273 2007-08-14  Ben Pfaff  <blp@gnu.org>
57274
57275         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57276
57277 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57280         given the changes below.
57281         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57282         even on hosts that have padding bits beyond the supported 64.
57283
57284 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57287         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57288         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57289         depends on it.
57290         (xstrtol_error): Remove.
57291         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57292         but with a different signature.
57293         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57294         * lib/xstrtol-error.c: Include exitfail.h.
57295         (xstrtol_fatal): New function, with a different signature from the
57296         old xstrtol_error, so that the caller need not worry about passing
57297         in an exit status, or about storage management of the option argument.
57298         (xstrtol_error): Now a static function.  Redo signature to
57299         implement xstrtol_fatal.  Output the correct number of hyphens in
57300         front of the option so that the caller need not worry about
57301         storage management.
57302         (N_): New macro.
57303         (_): Remove; not used now.
57304         * modules/xstrtol: Depend on getopt.
57305         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57306         of old STRTOL_FATAL_ERROR macro.
57307         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57308         of test program.
57309         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57310         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57311
57312 2007-08-08  Eric Blake  <ebb9@byu.net>
57313
57314         * lib/xstrtol-error.c: Add missing include.
57315
57316         Move xstrtol messages into gnulib domain, when --pobase is used.
57317         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57318         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57319         * modules/xstrtol (Files): Distribute new file.
57320         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57321         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57322         * tests/test-xstrtol.c: ...into new file.
57323         * tests/test-xstrtoul.c: Also test xstrtoul.
57324         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57325         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57326         * tests/test-xstrtol.sh: Drive the tests.
57327         * tests/test-xstrtoimax.sh: Likewise.
57328         * tests/test-xstrtoumax.sh: Likewise.
57329         * modules/xstrtol-tests: New module.
57330         * modules/xstrtoimax-tests: Likewise.
57331         * modules/xstrtoumax-tests: Likewise.
57332
57333 2007-08-08  Jim Meyering  <jim@meyering.net>
57334
57335         New function: mfile_name_concat.
57336         * lib/filenamecat.c (mfile_name_concat): New function, just like
57337         file_name_concat, but return NULL upon failure rather than exiting
57338         with a diagnostic.
57339         * lib/filenamecat.h: Declare it.
57340
57341 2007-08-07  Bruno Haible  <bruno@clisp.org>
57342
57343         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57344         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57345         warning from gcc.
57346         Reported by Eric Blake.
57347
57348 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57349
57350         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57351         * modules/crypto/arcfour (License): Likewise.
57352         * modules/crypto/des-tests (License): Likewise.
57353         * modules/crypto/gc-arctwo-tests (License): Likewise.
57354         * modules/crypto/gc-des-tests (License): Likewise.
57355         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57356         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57357         * modules/crypto/gc-md2-tests (License): Likewise.
57358         * modules/crypto/gc-md4-tests (License): Likewise.
57359         * modules/crypto/gc-md5-tests (License): Likewise.
57360         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57361         * modules/crypto/gc-rijndael-tests (License): Likewise.
57362         * modules/crypto/gc-sha1-tests (License): Likewise.
57363         * modules/crypto/gc-tests (License): Likewise.
57364         * modules/crypto/hmac-md5 (License): Likewise.
57365         * modules/crypto/hmac-sha1 (License): Likewise.
57366         * modules/crypto/md2-tests (License): Likewise.
57367         * modules/crypto/md4-tests (License): Likewise.
57368         * modules/crypto/md5 (License): Likewise.
57369         * modules/crypto/rijndael (License): Likewise.
57370         * modules/crypto/sha1 (License): Likewise.
57371         * modules/memxor (License): Likewise.
57372
57373 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57374         and Bruno Haible  <bruno@clisp.org>
57375
57376         * NEWS: Describe interface changes to human, xstrtol.
57377         * lib/human.h: Include <xstrtol.h>.
57378         (human_options): Return enum strtol_error, not int.  Remove
57379         bool arg; take int * instead.
57380         * lib/human.c: Don't include "gettext.h".
57381         (_): Remove; no longer used.
57382         Don't include <xstrtol.h>, since human.h does it.
57383         (human_options): Adjust to abovementioned interface changes.
57384         Do not report error to stderr; that's now the caller's
57385         responsibility.
57386         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57387         interface change.
57388         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57389         Str, Argument_type_string.  All uses changed.  Put " argument"
57390         in diagnostics to make them clearer.  Change wording of suffix
57391         message for clarity.
57392         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57393         Argument_type_string.
57394         (STRTOL_FATAL_WARN): Remove; no longer used.
57395         * modules/human (Depends-on): Remove gettext-h.
57396
57397 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57398
57399         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57400
57401 2007-07-31  Bruno Haible  <bruno@clisp.org>
57402
57403         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57404         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57405         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57406
57407 2007-07-31  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57410         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57411
57412 2007-07-30  Bruno Haible  <bruno@clisp.org>
57413
57414         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57415         * modules/c-ctype (License): Likewise.
57416         * modules/c-strcase (License): Likewise.
57417         * modules/check-version (License): Likewise.
57418         * modules/iconv (License): Likewise.
57419         * modules/iconv_open (License): Likewise.
57420         * modules/read-file (License): Likewise.
57421         * modules/striconv (License): Likewise.
57422         * modules/strverscmp (License): Likewise.
57423         * modules/vasprintf (License): Likewise.
57424         * modules/crypto/des (License): Likewise.
57425         * modules/crypto/gc (License): Likewise.
57426         * modules/crypto/gc-arcfour (License): Likewise.
57427         * modules/crypto/gc-arctwo (License): Likewise.
57428         * modules/crypto/gc-des (License): Likewise.
57429         * modules/crypto/gc-hmac-md5 (License): Likewise.
57430         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57431         * modules/crypto/gc-md2 (License): Likewise.
57432         * modules/crypto/gc-md4 (License): Likewise.
57433         * modules/crypto/gc-md5 (License): Likewise.
57434         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57435         * modules/crypto/gc-random (License): Likewise.
57436         * modules/crypto/gc-rijndael (License): Likewise.
57437         * modules/crypto/gc-sha1 (License): Likewise.
57438         * modules/crypto/md2 (License): Likewise.
57439         * modules/crypto/md4 (License): Likewise.
57440
57441 2007-07-30  Jim Meyering  <jim@meyering.net>
57442
57443         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57444         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57445         it has valid stat data.  This bug would cause du not to count the
57446         sizes of inaccessible directories.
57447         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57448         in <http://bugzilla.redhat.com/250077>.
57449
57450 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57451             Bruno Haible  <bruno@clisp.org>
57452
57453         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57454         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57455         #include_next, gives a diagnostic about it, but reports no error in
57456         the exit code.
57457         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57458
57459 2007-07-24  Ben Pfaff  <blp@gnu.org>
57460
57461         Improve name: "count-one-bits" is better than "popcount".
57462         * MODULES.html.sh: Update name.
57463         * lib/popcount.h: Renamed lib/count-one-bits.h.
57464         (popcount): Renamed count_one_bits.
57465         (popcountl): Renamed count_one_bits_l.
57466         (popcountll): Renamed count_one_bits_ll.
57467         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57468         * modules/popcount: Renamed module/count-one-bits.
57469         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57470         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57471
57472 2007-07-23  Ben Pfaff  <blp@gnu.org>
57473
57474         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57475         better code generation, and add U to large constants to avoid
57476         warnings, in non-GCC case.
57477         Suggested by Bruno Haible.
57478
57479 2007-07-23  Ben Pfaff  <blp@gnu.org>
57480
57481         * lib/popcount.h: Use verify_true instead of if...abort.
57482         * modules/popcount: Depend on verify module.
57483         Suggested by Jim Meyering.
57484
57485 2007-07-23  Bruno Haible  <bruno@clisp.org>
57486
57487         * gnulib-tool (func_import): Create a .cvsignore file also when the
57488         directory is not yet in CVS but the toplevel directory is. When
57489         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57490         Reported by Karl Berry.
57491
57492 2007-07-22  Ben Pfaff  <blp@gnu.org>
57493
57494         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57495         case.
57496         Suggested by Eric Blake.
57497
57498 2007-07-22  Ben Pfaff  <blp@gnu.org>
57499
57500         New module: popcount.
57501         * MODULES.html.sh: Add popcount.
57502         * modules/popcount: New file.
57503         * modules/popcount-tests: New file.
57504         * tests/test-popcount.c: New file.
57505         * lib/popcount.h: New file.
57506         * m4/popcount.m4: New file.
57507
57508 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57509
57510         * build-aux/announce-gen: Update to GPLv3.
57511
57512         * build-aux/config.guess: Update from config.
57513
57514 2007-07-21  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57517         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57518
57519 2007-07-20  Jim Meyering  <jim@meyering.net>
57520
57521         * check-module: Diagnose a self-dependency.
57522
57523 2007-07-19  Bruno Haible  <bruno@clisp.org>
57524
57525         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57526         empty.
57527         Reported by Eric Blake.
57528
57529 2007-07-18  Bruno Haible  <bruno@clisp.org>
57530
57531         * gnulib-tool: New options --po-base, --po-domain.
57532         (func_usage): Document them.
57533         (pobase, po_domain): New variables.
57534         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57535         DEFAULT_TEXT_DOMAIN.
57536         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57537         (func_import): Consider pobase and po_domain. Create a po/ directory.
57538         (func_create_testdir): Set pobase and po_domain to empty.
57539         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57540         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57541
57542 2007-07-18  Bruno Haible  <bruno@clisp.org>
57543
57544         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57545         EXTRA_DIST augmentation for files in build-aux/.
57546
57547 2007-07-16  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57550         * modules/getdelim (License): Likewise.
57551
57552 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57553
57554         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57555         * modules/d-type (License): Likewise.
57556         * modules/extensions (License): Likewise.
57557         * modules/fnmatch (License): Likewise.
57558         * modules/fseeko (License): Likewise.
57559         * modules/getaddrinfo (License): Likewise.
57560         * modules/getline (License): Likewise.
57561         * modules/getlogin_r (License): Likewise.
57562         * modules/getpass (License): Likewise.
57563         * modules/gettimeofday (License): Likewise.
57564         * modules/glob (License): Likewise.
57565         * modules/inet_ntop (License): Likewise.
57566         * modules/malloc (License): Likewise.
57567         * modules/malloca (License): Likewise.
57568         * modules/memmem (License): Likewise.
57569         * modules/mempcpy (License): Likewise.
57570         * modules/memset (License): Likewise.
57571         * modules/minmax (License): Likewise.
57572         * modules/mktime (License): Likewise.
57573         * modules/netinet_in (License): Likewise.
57574         * modules/pathmax (License): Likewise.
57575         * modules/poll (License): Likewise.
57576         * modules/regex (License): Likewise.
57577         * modules/snprintf (License): Likewise.
57578         * modules/stdbool (License): Likewise.
57579         * modules/stdint (License): Likewise.
57580         * modules/stdio (License): Likewise.
57581         * modules/strcase (License): Likewise.
57582         * modules/strcasestr (License): Likewise.
57583         * modules/strdup (License): Likewise.
57584         * modules/string (License): Likewise.
57585         * modules/strndup (License): Likewise.
57586         * modules/strnlen (License): Likewise.
57587         * modules/strpbrk (License): Likewise.
57588         * modules/strptime (License): Likewise.
57589         * modules/strsep (License): Likewise.
57590         * modules/sys_select (License): Likewise.
57591         * modules/sys_socket (License): Likewise.
57592         * modules/sys_stat (License): Likewise.
57593         * modules/sys_time (License): Likewise.
57594         * modules/time (License): Likewise.
57595         * modules/time_r (License): Likewise.
57596         * modules/timegm (License): Likewise.
57597         * modules/unistd (License): Likewise.
57598         * modules/vsnprintf (License): Likewise.
57599         * modules/wctype (License): Likewise.
57600
57601 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57602
57603         * modules/argz (License): LGPLv2+.
57604
57605 2007-07-15  Karl Berry  <karl@gnu.org>
57606
57607         * doc/gnulib.texi: revise node structure per new fdl.texi.
57608
57609 2007-07-14  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57612         the output file.
57613         * lib/uniname/uninames.h: Regenerated.
57614
57615 2007-07-14  Karl Berry  <karl@gnu.org>
57616
57617         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57618         omitting sectioning and index commands.
57619
57620 2007-07-13  Bruno Haible  <bruno@clisp.org>
57621
57622         New gnulib-tool option --more-symlinks.
57623         * gnulib-tool (func_usage): Document --more-symlinks.
57624         (do_copyrights): New variable.
57625         Recognize option --more-symlinks.
57626         (func_import): Don't add a copyright notice transform to
57627         sed_transform_lib_file if do_copyrights is empty.
57628
57629 2007-07-13  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/vasnprintf.c (decimal_point_char): Define also if
57632         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57633         && !NEED_PRINTF_DIRECTIVE_A.
57634         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57635         Gary V. Vaughan <gary@gnu.org>.
57636
57637 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57638
57639         * lib/inttypes_.h: Undo previous change, since it was fixed
57640         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57641
57642 2007-07-13  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57645         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57646
57647 2007-07-13  Jim Meyering  <jim@meyering.net>
57648
57649         df: Don't fail for Tru64's "file-on-file mount".
57650         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57651         so we fall through and use statfs instead.  Details here:
57652         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57653         Reported by Albert Chin.
57654
57655 2007-07-13  Bruno Haible  <bruno@clisp.org>
57656
57657         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57658         * modules/configmake (License): Likewise.
57659         * modules/gettext (License): Likewise.
57660         * modules/gettext-h (License): Likewise.
57661         * modules/include_next (License): Likewise.
57662         * modules/link-warning (License): Likewise.
57663         * modules/localcharset (License): Likewise.
57664         * modules/localename (License): Likewise.
57665         * modules/lock (License): Likewise.
57666         * modules/relocatable-lib-lgpl (License): Likewise.
57667         * modules/size_max (License): Likewise.
57668         * modules/vasnprintf (License): Likewise.
57669         * modules/wchar (License): Likewise.
57670         * modules/xsize (License): Likewise.
57671
57672 2007-07-13  Bruno Haible  <bruno@clisp.org>
57673
57674         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57675         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57676
57677 2007-07-12  Bruno Haible  <bruno@clisp.org>
57678
57679         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57680         in the modules files.
57681
57682 2007-07-11  Karl Berry  <karl@gnu.org>
57683
57684         * MODULES.html.sh (func_module): use
57685          sed -e '\|^'"${includefile}"'$|d'
57686          instead of /.../d, to avoid errors on $includefile's containing /.
57687
57688 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57689
57690         * gnulib-tool (func_import): Avoid duplication of --avoid
57691         statements
57692         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57693         names to `_' in variable names.
57694
57695 2007-07-10  Eric Blake  <ebb9@byu.net>
57696
57697         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57698         * NEWS: Document this change.
57699
57700 2007-07-08  Bruno Haible  <bruno@clisp.org>
57701
57702         Update to Unicode 5.0.
57703         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57704         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57705         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57706         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57707         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57708         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57709         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57710         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57711         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57712         U+10A3F, U+1D242..U+1D244.
57713         (nonspacing_table_ind): Update.
57714         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57715         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57716
57717 2007-07-08  Bruno Haible  <bruno@clisp.org>
57718
57719         Update to Unicode 5.0.
57720         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57721         code transform. Extend the name index field of unicode_name_to_code and
57722         unicode_code_to_name from 16 to 24 bits.
57723         * lib/uniname/uniname.c (unicode_character_name,
57724         unicode_name_character): Add the range 0x12xxx to the code transform.
57725         * lib/uniname/uninames.h: Regenerated.
57726         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57727
57728 2007-07-07  Bruno Haible  <bruno@clisp.org>
57729
57730         * modules/wcwidth-tests: New file.
57731         * tests/test-wcwidth.c: New file.
57732
57733         Work around MacOS X wcwidth() bug.
57734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57735         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57736         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57737         original wcwidth in non-UTF-8 locales.
57738         * modules/wcwidth (Depends-on): Add localcharset, streq,
57739         uniwidth/width.
57740         * doc/functions/wcwidth.texi: Update.
57741
57742 2007-07-07  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57745         (wcwidth): New declaration.
57746         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57747         macros.
57748         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57749         here. Prepare for creating <wchar.h> unconditionally.
57750         * modules/wchar (Depends-on): Add link-warning.
57751         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57752         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57753         * lib/wcwidth.h: Remove file.
57754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57755         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57756         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57757         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57758         (Include): Replace wcwidth.h with <wchar.h>.
57759         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57760         * lib/mbchar.h: Don't include wcwidth.h.
57761         * lib/mbswidth.c: Likewise.
57762         * NEWS: Mention the change.
57763
57764 2007-07-07  Bruno Haible  <bruno@clisp.org>
57765
57766         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57767         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57768         definition with an external declaration.
57769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57770         defined as a function. Remove AC_C_INLINE requirement.
57771         * modules/wcwidth (Files): Add lib/wcwidth.c.
57772         (Makefile.am): Remove redundant statement.
57773
57774 2007-07-07  Bruno Haible  <bruno@clisp.org>
57775
57776         * MODULES.html.sh (Unicode string functions): Add the new modules.
57777
57778         * tests/uniwidth/test-u32-strwidth.c: New file.
57779         * modules/uniwidth/u32-strwidth-tests: New file.
57780
57781         * lib/uniwidth/u32-strwidth.c: New file.
57782         * modules/uniwidth/u32-strwidth: New file.
57783
57784         * tests/uniwidth/test-u16-strwidth.c: New file.
57785         * modules/uniwidth/u16-strwidth-tests: New file.
57786
57787         * lib/uniwidth/u16-strwidth.c: New file.
57788         * modules/uniwidth/u16-strwidth: New file.
57789
57790         * tests/uniwidth/test-u8-strwidth.c: New file.
57791         * modules/uniwidth/u8-strwidth-tests: New file.
57792
57793         * lib/uniwidth/u8-strwidth.c: New file.
57794         * modules/uniwidth/u8-strwidth: New file.
57795
57796         * tests/uniwidth/test-u32-width.c: New file.
57797         * modules/uniwidth/u32-width-tests: New file.
57798
57799         * lib/uniwidth/u32-width.c: New file.
57800         * modules/uniwidth/u32-width: New file.
57801
57802         * tests/uniwidth/test-u16-width.c: New file.
57803         * modules/uniwidth/u16-width-tests: New file.
57804
57805         * lib/uniwidth/u16-width.c: New file.
57806         * modules/uniwidth/u16-width: New file.
57807
57808         * tests/uniwidth/test-u8-width.c: New file.
57809         * modules/uniwidth/u8-width-tests: New file.
57810
57811         * lib/uniwidth/u8-width.c: New file.
57812         * modules/uniwidth/u8-width: New file.
57813
57814         * tests/uniwidth/test-uc_width.c: New file.
57815         * modules/uniwidth/width-tests: New file.
57816
57817         * lib/uniwidth/width.c: New file, from GNU libiconv.
57818         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57819         * modules/uniwidth/width: New file.
57820
57821         * lib/uniwidth.h: New file, from GNU libiconv.
57822         * modules/uniwidth/base: New file.
57823
57824 2007-07-07  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/uniname.h: New file, from GNU gettext.
57827         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57828         * lib/uniname/uninames.h: New file, from GNU gettext.
57829         * lib/uniname/uniname.c: New file, from GNU gettext.
57830         * tests/uniname/test-uninames.sh: New file.
57831         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57832         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57833         * modules/uniname/base: New file.
57834         * modules/uniname/uniname: New file.
57835         * modules/uniname/uniname-tests: New file.
57836         * MODULES.html.sh (Unicode string functions): Add the new modules.
57837
57838 2007-07-06  Bruno Haible  <bruno@clisp.org>
57839
57840         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57841
57842 2007-07-06  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57845         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57846         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57847         include <sys/time.h>.
57848         Reported by Eric Blake.
57849
57850 2007-07-06  Eric Blake  <ebb9@byu.net>
57851
57852         Fix testing canonicalize on cygwin.
57853         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57854         Revert patch from 2007-06-19.
57855         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57856         canonicalize module is also in use.
57857         * tests/test-canonicalize.c: New file.
57858         * tests/test-canonicalize.sh: Likewise.
57859         * modules/canonicalize-tests: Likewise.
57860
57861 2007-07-06  Jim Meyering  <jim@meyering.net>
57862
57863         * lib/getugroups.c (getugroups): Detect getgrent failure.
57864         Adjust comment to reflect reality: this function may return -1.
57865
57866 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57867
57868         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57869         the new TP address.
57870         (usage): Fix typo
57871         (gnulib_mk): New variable.
57872
57873 2007-07-05  Jim Meyering  <jim@meyering.net>
57874
57875         Don't let endgrent clobber errno, no matter how improbable.
57876         * lib/getugroups.c (getugroups): Save and restore errno around
57877         endgrent call.
57878
57879         Close the group DB even when failing with 2^31 or more members.
57880         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57881
57882 2007-07-04  Jim Meyering  <jim@meyering.net>
57883
57884         * lib/getugroups.h: New file.
57885         * lib/getugroups.c: Include "getugroups.h".
57886         Remove uses of "register" keyword.
57887         Move local variable, "cp", down into scope where used.
57888         Give "username" parameter the "const" attribute.
57889         * modules/getugroups (Files): Add lib/getugroups.h
57890
57891 2007-07-04  Karl Berry  <karl@gnu.org>
57892
57893         * MODULES.html.sh (func_all_modules): Complete rename of
57894         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57895
57896 2007-07-02  Bruno Haible  <bruno@clisp.org>
57897
57898         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57899         mode, when inttypes.h comes from gnulib.
57900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57901
57902 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57903
57904         * NEWS: Mention lgpl module name change.
57905
57906         * modules/lgpl-2.1: Renamed from lgpl.
57907
57908         * NEWS: Mention gpl module name change.
57909
57910         * modules/gpl-3.0: New file, based on gpl-2.0.
57911
57912         * modules/gpl-2.0: Renamed from gpl.
57913
57914         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57915         doc/gpl-2.0.texi.
57916
57917 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57920         #define __STDC_LIMIT_MACROS temporarily while including
57921         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57922         Problem reported by Joel E. Denny in
57923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57924
57925 2007-07-01  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/unistdio.h: New file.
57928         * lib/unistdio/u-asnprintf.h: New file.
57929         * lib/unistdio/u-asprintf.h: New file.
57930         * lib/unistdio/u-printf-args.c: New file.
57931         * lib/unistdio/u-printf-args.h: New file.
57932         * lib/unistdio/u-printf-parse.h: New file.
57933         * lib/unistdio/u-snprintf.h: New file.
57934         * lib/unistdio/u-sprintf.h: New file.
57935         * lib/unistdio/u-vasprintf.h: New file.
57936         * lib/unistdio/u-vsnprintf.h: New file.
57937         * lib/unistdio/u-vsprintf.h: New file.
57938         * lib/unistdio/ulc-asnprintf.c: New file.
57939         * lib/unistdio/ulc-asprintf.c: New file.
57940         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57941         * lib/unistdio/ulc-printf-parse.c: New file.
57942         * lib/unistdio/ulc-snprintf.c: New file.
57943         * lib/unistdio/ulc-sprintf.c: New file.
57944         * lib/unistdio/ulc-vasnprintf.c: New file.
57945         * lib/unistdio/ulc-vasprintf.c: New file.
57946         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57947         * lib/unistdio/ulc-vsnprintf.c: New file.
57948         * lib/unistdio/ulc-vsprintf.c: New file.
57949         * lib/unistdio/u8-asnprintf.c: New file.
57950         * lib/unistdio/u8-asprintf.c: New file.
57951         * lib/unistdio/u8-printf-parse.c: New file.
57952         * lib/unistdio/u8-snprintf.c: New file.
57953         * lib/unistdio/u8-sprintf.c: New file.
57954         * lib/unistdio/u8-vasnprintf.c: New file.
57955         * lib/unistdio/u8-vasprintf.c: New file.
57956         * lib/unistdio/u8-vsnprintf.c: New file.
57957         * lib/unistdio/u8-vsprintf.c: New file.
57958         * lib/unistdio/u8-u8-asnprintf.c: New file.
57959         * lib/unistdio/u8-u8-asprintf.c: New file.
57960         * lib/unistdio/u8-u8-snprintf.c: New file.
57961         * lib/unistdio/u8-u8-sprintf.c: New file.
57962         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57963         * lib/unistdio/u8-u8-vasprintf.c: New file.
57964         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57965         * lib/unistdio/u8-u8-vsprintf.c: New file.
57966         * lib/unistdio/u16-asnprintf.c: New file.
57967         * lib/unistdio/u16-asprintf.c: New file.
57968         * lib/unistdio/u16-printf-parse.c: New file.
57969         * lib/unistdio/u16-snprintf.c: New file.
57970         * lib/unistdio/u16-sprintf.c: New file.
57971         * lib/unistdio/u16-vasnprintf.c: New file.
57972         * lib/unistdio/u16-vasprintf.c: New file.
57973         * lib/unistdio/u16-vsnprintf.c: New file.
57974         * lib/unistdio/u16-vsprintf.c: New file.
57975         * lib/unistdio/u16-u16-asnprintf.c: New file.
57976         * lib/unistdio/u16-u16-asprintf.c: New file.
57977         * lib/unistdio/u16-u16-snprintf.c: New file.
57978         * lib/unistdio/u16-u16-sprintf.c: New file.
57979         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57980         * lib/unistdio/u16-u16-vasprintf.c: New file.
57981         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57982         * lib/unistdio/u16-u16-vsprintf.c: New file.
57983         * lib/unistdio/u32-asnprintf.c: New file.
57984         * lib/unistdio/u32-asprintf.c: New file.
57985         * lib/unistdio/u32-printf-parse.c: New file.
57986         * lib/unistdio/u32-snprintf.c: New file.
57987         * lib/unistdio/u32-sprintf.c: New file.
57988         * lib/unistdio/u32-vasnprintf.c: New file.
57989         * lib/unistdio/u32-vasprintf.c: New file.
57990         * lib/unistdio/u32-vsnprintf.c: New file.
57991         * lib/unistdio/u32-vsprintf.c: New file.
57992         * lib/unistdio/u32-u32-asnprintf.c: New file.
57993         * lib/unistdio/u32-u32-asprintf.c: New file.
57994         * lib/unistdio/u32-u32-snprintf.c: New file.
57995         * lib/unistdio/u32-u32-sprintf.c: New file.
57996         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57997         * lib/unistdio/u32-u32-vasprintf.c: New file.
57998         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57999         * lib/unistdio/u32-u32-vsprintf.c: New file.
58000         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58001         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58002         * tests/unistdio/test-ulc-printf1.h: New file.
58003         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58004         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58005         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58006         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58007         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58008         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58009         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58010         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58011         * tests/unistdio/test-u8-asnprintf1.c: New file.
58012         * tests/unistdio/test-u8-asnprintf1.h: New file.
58013         * tests/unistdio/test-u8-printf1.h: New file.
58014         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58015         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58016         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58017         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58018         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58019         * tests/unistdio/test-u8-vasprintf1.c: New file.
58020         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58021         * tests/unistdio/test-u8-vsprintf1.c: New file.
58022         * tests/unistdio/test-u16-asnprintf1.c: New file.
58023         * tests/unistdio/test-u16-asnprintf1.h: New file.
58024         * tests/unistdio/test-u16-printf1.h: New file.
58025         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58026         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58027         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58028         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58029         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58030         * tests/unistdio/test-u16-vasprintf1.c: New file.
58031         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58032         * tests/unistdio/test-u16-vsprintf1.c: New file.
58033         * tests/unistdio/test-u32-asnprintf1.c: New file.
58034         * tests/unistdio/test-u32-asnprintf1.h: New file.
58035         * tests/unistdio/test-u32-printf1.h: New file.
58036         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58037         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58038         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58039         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58040         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58041         * tests/unistdio/test-u32-vasprintf1.c: New file.
58042         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58043         * tests/unistdio/test-u32-vsprintf1.c: New file.
58044         * modules/unistdio/base: New file.
58045         * modules/unistdio/u-printf-args: New file.
58046         * modules/unistdio/ulc-asnprintf: New file.
58047         * modules/unistdio/ulc-asprintf: New file.
58048         * modules/unistdio/ulc-fprintf: New file.
58049         * modules/unistdio/ulc-printf-parse: New file.
58050         * modules/unistdio/ulc-snprintf: New file.
58051         * modules/unistdio/ulc-sprintf: New file.
58052         * modules/unistdio/ulc-vasnprintf: New file.
58053         * modules/unistdio/ulc-vasprintf: New file.
58054         * modules/unistdio/ulc-vfprintf: New file.
58055         * modules/unistdio/ulc-vsnprintf: New file.
58056         * modules/unistdio/ulc-vsprintf: New file.
58057         * modules/unistdio/u8-asnprintf: New file.
58058         * modules/unistdio/u8-asprintf: New file.
58059         * modules/unistdio/u8-printf-parse: New file.
58060         * modules/unistdio/u8-snprintf: New file.
58061         * modules/unistdio/u8-sprintf: New file.
58062         * modules/unistdio/u8-vasnprintf: New file.
58063         * modules/unistdio/u8-vasprintf: New file.
58064         * modules/unistdio/u8-vsnprintf: New file.
58065         * modules/unistdio/u8-vsprintf: New file.
58066         * modules/unistdio/u8-u8-asnprintf: New file.
58067         * modules/unistdio/u8-u8-asprintf: New file.
58068         * modules/unistdio/u8-u8-snprintf: New file.
58069         * modules/unistdio/u8-u8-sprintf: New file.
58070         * modules/unistdio/u8-u8-vasnprintf: New file.
58071         * modules/unistdio/u8-u8-vasprintf: New file.
58072         * modules/unistdio/u8-u8-vsnprintf: New file.
58073         * modules/unistdio/u8-u8-vsprintf: New file.
58074         * modules/unistdio/u16-asnprintf: New file.
58075         * modules/unistdio/u16-asprintf: New file.
58076         * modules/unistdio/u16-printf-parse: New file.
58077         * modules/unistdio/u16-snprintf: New file.
58078         * modules/unistdio/u16-sprintf: New file.
58079         * modules/unistdio/u16-vasnprintf: New file.
58080         * modules/unistdio/u16-vasprintf: New file.
58081         * modules/unistdio/u16-vsnprintf: New file.
58082         * modules/unistdio/u16-vsprintf: New file.
58083         * modules/unistdio/u16-u16-asnprintf: New file.
58084         * modules/unistdio/u16-u16-asprintf: New file.
58085         * modules/unistdio/u16-u16-snprintf: New file.
58086         * modules/unistdio/u16-u16-sprintf: New file.
58087         * modules/unistdio/u16-u16-vasnprintf: New file.
58088         * modules/unistdio/u16-u16-vasprintf: New file.
58089         * modules/unistdio/u16-u16-vsnprintf: New file.
58090         * modules/unistdio/u16-u16-vsprintf: New file.
58091         * modules/unistdio/u32-asnprintf: New file.
58092         * modules/unistdio/u32-asprintf: New file.
58093         * modules/unistdio/u32-printf-parse: New file.
58094         * modules/unistdio/u32-snprintf: New file.
58095         * modules/unistdio/u32-sprintf: New file.
58096         * modules/unistdio/u32-vasnprintf: New file.
58097         * modules/unistdio/u32-vasprintf: New file.
58098         * modules/unistdio/u32-vsnprintf: New file.
58099         * modules/unistdio/u32-vsprintf: New file.
58100         * modules/unistdio/u32-u32-asnprintf: New file.
58101         * modules/unistdio/u32-u32-asprintf: New file.
58102         * modules/unistdio/u32-u32-snprintf: New file.
58103         * modules/unistdio/u32-u32-sprintf: New file.
58104         * modules/unistdio/u32-u32-vasnprintf: New file.
58105         * modules/unistdio/u32-u32-vasprintf: New file.
58106         * modules/unistdio/u32-u32-vsnprintf: New file.
58107         * modules/unistdio/u32-u32-vsprintf: New file.
58108         * modules/unistdio/ulc-asnprintf-tests: New file.
58109         * modules/unistdio/ulc-vasnprintf-tests: New file.
58110         * modules/unistdio/ulc-vasprintf-tests: New file.
58111         * modules/unistdio/ulc-vsnprintf-tests: New file.
58112         * modules/unistdio/ulc-vsprintf-tests: New file.
58113         * modules/unistdio/u8-asnprintf-tests: New file.
58114         * modules/unistdio/u8-vasnprintf-tests: New file.
58115         * modules/unistdio/u8-vasprintf-tests: New file.
58116         * modules/unistdio/u8-vsnprintf-tests: New file.
58117         * modules/unistdio/u8-vsprintf-tests: New file.
58118         * modules/unistdio/u16-asnprintf-tests: New file.
58119         * modules/unistdio/u16-vasnprintf-tests: New file.
58120         * modules/unistdio/u16-vasprintf-tests: New file.
58121         * modules/unistdio/u16-vsnprintf-tests: New file.
58122         * modules/unistdio/u16-vsprintf-tests: New file.
58123         * modules/unistdio/u32-asnprintf-tests: New file.
58124         * modules/unistdio/u32-vasnprintf-tests: New file.
58125         * modules/unistdio/u32-vasprintf-tests: New file.
58126         * modules/unistdio/u32-vsnprintf-tests: New file.
58127         * modules/unistdio/u32-vsprintf-tests: New file.
58128         * MODULES.html.sh (Unicode string functions): Add the new modules.
58129
58130 2007-07-01  Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/sprintf.c (sprintf): Limit the available length estimation,
58133         to avoid address wraparound.
58134         * lib/vsprintf.c (vsprintf): Likewise.
58135         * modules/sprintf-posix (Dependencies): Add stdint.
58136         * modules/vsprintf-posix (Dependencies): Likewise.
58137
58138 2007-07-01  Bruno Haible  <bruno@clisp.org>
58139
58140         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58141         Windows PATH as well. Conservative double-quoting. Comments.
58142
58143 2007-07-01  Bruno Haible  <bruno@clisp.org>
58144             Eric Blake  <ebb9@byu.net>
58145             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58146
58147         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58148         empty components in $PATH, denoting '.'.
58149
58150 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58151
58152         * gnulib-tool: Fix indentation.
58153         (func_create_megatestdir): Likewise.
58154         Report by Bruno Haible.
58155
58156 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58157
58158         Sync from Automake.
58159         * build-aux/gnupload: Fix shell portability issues with for loops.
58160         Report by Karl Berry.
58161
58162 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58163
58164         * build-aux/maint.mk (POURL): Use translationproject.org.
58165
58166 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58167             Bruno Haible  <bruno@clisp.org>
58168
58169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58170         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58171         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58172         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58173         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58174
58175 2007-06-27  Bruno Haible  <bruno@clisp.org>
58176
58177         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58178         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58179
58180 2007-06-26  Karl Berry  <karl@gnu.org>
58181
58182         * MODULES.html.sh: remove xreadlink-with-size.
58183
58184 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58187         method that I hope also handles the double-include problem noted
58188         by Bruno Haible in
58189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58190
58191 2007-06-23  Bruno Haible  <bruno@clisp.org>
58192
58193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58194         Don't let the 'mostlyclean' target fail if the last subdirectory could
58195         not be removed.
58196         Reported by Karl Berry.
58197
58198 2007-06-23  Bruno Haible  <bruno@clisp.org>
58199
58200         * gnulib-tool (echo): Add a speedier workaround for ksh.
58201         * tests/test-echo.sh: Likewise.
58202
58203 2007-06-23  Bruno Haible  <bruno@clisp.org>
58204
58205         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58206         * tests/test-echo.sh: Likewise.
58207
58208 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58209
58210         * gnulib-tool (IFS): Initialize early, so we don't set it to
58211         empty later.
58212         (self_abspathname): Rewrite algorithm to set it, reindent.
58213         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58214         (func_create_megatestdir): Merge some sed scripts.
58215
58216 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58217
58218         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58219         exposed by Sun Studio 11 cc on Solaris 8.
58220
58221 2007-06-22  Bruno Haible  <bruno@clisp.org>
58222
58223         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58224         backslashes.
58225         * tests/test-echo.sh: New file.
58226
58227 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58228
58229         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58230         simplify `sed_replace_build_aux' scripts, they are portable but
58231         echoing them with `echo' is not.
58232         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58233
58234 2007-06-21  Karl Berry  <karl@gnu.org>
58235
58236         * config/srclist.txt: guess we can't handle the licenses via
58237         srclist at the moment.
58238
58239 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * MODULES.html.sh: Add include_next.
58242         * modules/include_next: New file.
58243
58244 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58245
58246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58247         INCLUDE_NEXT.
58248         (gl_CHECK_NEXT_HEADERS): New macro.
58249         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58250         the obsolescent gl_ABSOLUTE_HEADER.
58251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58252         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58253         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58254         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58255         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58256         * m4/math_h.m4 (gl_MATH_H): Likewise.
58257         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58258         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58259         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58260         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58261         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58262         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58263         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58268         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58269         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58270         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58271         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58272         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58273         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58274         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58275         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58276         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58277         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58278         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58279         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58280         * lib/float_.h: Likewise.
58281         * lib/inttypes_.h: Likewise.
58282         * lib/math_.h: Likewise.
58283         * lib/search_.h: Likewise.
58284         * lib/signal_.h: Likewise.
58285         * lib/stdint_.h: Likewise.
58286         * lib/stdio_.h: Likewise.
58287         * lib/stdlib_.h: Likewise.
58288         * lib/string_.h: Likewise.
58289         * lib/sys_stat_.h: Likewise.
58290         * lib/sys_time_.h: Likewise.
58291         * lib/time_.h: Likewise.
58292         * lib/unistd_.h: Likewise.
58293         * lib/wchar_.h: Likewise.
58294         * lib/wctype_.h: Likewise.
58295         * lib/dirent_.h: Likewise.
58296         * lib/iconv_.h: Likewise.
58297         * lib/locale_.h: Likewise.
58298         * lib/netinet_in_.h: Likewise.
58299         * lib/sys_select_.h: Likewise.
58300         * lib/sys_socket_.h: Likewise.
58301         * lib/sysexits_.h: Likewise.
58302         * modules/fcntl (Depends-on): Depend on include_next, not
58303         absolute_header.
58304         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58305         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58306         * modules/fchdir: Likewise.
58307         * modules/float: Likewise.
58308         * modules/iconv_open: Likewise.
58309         * modules/inttypes: Likewise.
58310         * modules/locale: Likewise.
58311         * modules/math: Likewise.
58312         * modules/netinet_in: Likewise.
58313         * modules/search: Likewise.
58314         * modules/signal: Likewise.
58315         * modules/stdint: Likewise.
58316         * modules/stdio: Likewise.
58317         * modules/stdlib: Likewise.
58318         * modules/string: Likewise.
58319         * modules/sys_select: Likewise.
58320         * modules/sys_socket: Likewise.
58321         * modules/sys_stat: Likewise.
58322         * modules/sys_time: Likewise.
58323         * modules/sysexits: Likewise.
58324         * modules/time: Likewise.
58325         * modules/unistd: Likewise.
58326         * modules/wchar: Likewise.
58327         * modules/wctype: Likewise.
58328         * modules/sys_stat: Change maintainer to "all".
58329         * modules/unistd: Likewise.
58330
58331 2007-06-20  Karl Berry  <karl@gnu.org>
58332
58333         * config/srclist.txt: track www changes in license files.
58334
58335 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58336
58337         * build-aux/bootstrap: Remove stray dot.
58338         Make sure build_aux settings are honored when linking
58339         gnulib_extra_files.
58340
58341 2007-06-19  Eric Blake  <ebb9@byu.net>
58342
58343         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58344         Allow compilation on cygwin.
58345
58346 2007-06-19  Jim Meyering  <jim@meyering.net>
58347
58348         xreadlink-with-size: Remove module.  No longer used.
58349         Ex-callers now use xreadlink or mreadlink-with-size.
58350         * modules/xreadlink-with-size: Remove module.
58351         * lib/xreadlink-with-size.c: Remove file.
58352         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58353         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58354         just before the function definition *is* accurate.
58355
58356         Eliminate one way canonicalize_filename_mode could exit.
58357         * lib/canonicalize.c (canonicalize_filename_mode):
58358         Use mreadlink_with_size, not xreadlink_with_size.
58359
58360 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         Detect porting problems to FreeBSD/arm, which has time_t wider than
58363         long int.  Original problem reported for GNU diff by Xin Li in
58364         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58365         * modules/getdate (Depends-on): Add intprops, verify.
58366         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58367         is an integer type no wider than long int.
58368
58369 2007-06-18  Jim Meyering  <jim@meyering.net>
58370
58371         New module: mreadlink-with-size.
58372         * MODULES.html.sh: Add mreadlink-with-size.
58373         * modules/mreadlink-with-size: New module
58374         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58375         not xreadlink-with-size.
58376         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58377
58378 2007-06-16  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58381         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58382         Reported by Gary V. Vaughan <gary@gnu.org>.
58383
58384 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58385
58386         Revamp lchown so that it lives in unistd.h where it belongs.
58387         * lib/lchown.h: Remove.
58388         * lib/dirchownmod.c: Don't include lib/lchown.h.
58389         * lib/fchownat.c: Likewise.
58390         * lib/openat.c: Likewise.
58391         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58392         does not follow symlinks.
58393         (EOPNOTSUPP): Define if not defined.
58394         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58395         is defined to 0.
58396         (lchown): New decl.
58397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58398         Do not check for lchown decl.
58399         Set REPLACE_LCHOWN.
58400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58401         REPLACE_LCHOWN.
58402         * modules/chown: Make it clear it follows symlinks.
58403         * modules/lchown: Make it clear it doesn't follow symlinks.
58404         (Files): Remove lib/lchown.h
58405         (Depends-on): Add unistd.
58406         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58407         (Include): Include <unistd.h>, not "lchown.h".
58408         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58409         REPLACE_LCHOWN.
58410
58411 2007-06-15  Jim Meyering  <jim@meyering.net>
58412
58413         Change license (GPL to LGPL) of fsusage and dependents.
58414         * modules/fsusage (License): Change to LGPL.
58415         * modules/full-read (License): Likewise.
58416         * modules/full-write (License): Likewise.
58417         * modules/safe-read (License): Likewise.
58418         * modules/safe-write (License): Likewise.
58419
58420 2007-06-14  Ben Pfaff  <blp@gnu.org>
58421
58422         Missing part of allocsa -> malloca transition.
58423         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58424         gl_MALLOCA.
58425
58426 2007-06-12  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58429         to ia64, x86_64, i386.
58430         Reported by Eric Blake.
58431
58432 2007-06-12  Bruno Haible  <bruno@clisp.org>
58433
58434         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58435         cross-compiling to x86_64.
58436
58437 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58440         glitch reported by Ralf Wildenhues in
58441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58442
58443         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58444         Vin Shelton.
58445
58446 2007-06-11  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58449         replacement string.
58450         Reported by Eric Blake.
58451
58452 2007-06-10  Bruno Haible  <bruno@clisp.org>
58453
58454         Prepare vasnprintf code for use with Unicode strings.
58455         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58456         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58457         TYPE_U32_STRING.
58458         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58459         a_u32_string variants.
58460         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58461         * lib/printf-args.c: Don't include config.h and the specification
58462         header if PRINTF_FETCHARGS is already defined.
58463         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58464         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58465         TYPE_U16_STRING, TYPE_U32_STRING.
58466         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58467         u16_directive, u16_directives, u32_directive, u32_directives): New
58468         types.
58469         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58470         New declarations.
58471         * lib/printf-parse.c: Don't include config.h and the specification
58472         header if PRINTF_PARSE is already defined. Eliminate the set of
58473         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58474         them now. Include c-ctype.h.
58475         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58476         directive and CHAR_T_ONLY_ASCII.
58477         * lib/vasnprintf.c: Don't include config.h and the specification header
58478         if VASNPRINTF is already defined.
58479         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58480         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58481         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58482         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58483         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58484         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58485         code accordingly.
58486         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58487         pad_ourselves also in this case, with the 'c' and 's' directives, and
58488         with a different notion of "width".
58489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58490
58491 2007-06-10  Bruno Haible  <bruno@clisp.org>
58492
58493         * modules/unistr/u32-mbsnlen: New file.
58494         * lib/unistr/u32-mbsnlen.c: New file.
58495
58496         * modules/unistr/u16-mbsnlen: New file.
58497         * lib/unistr/u16-mbsnlen.c: New file.
58498
58499         * modules/unistr/u8-mbsnlen: New file.
58500         * lib/unistr/u8-mbsnlen.c: New file.
58501
58502         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58503         declarations.
58504
58505 2007-06-10  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/string_.h (mbsnlen): New declaration.
58508         * lib/mbsnlen.c: New file.
58509         * m4/mbsnlen.m4: New file.
58510         * modules/mbsnlen: New file.
58511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58512         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58513         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58514
58515 2007-06-10  Bruno Haible  <bruno@clisp.org>
58516
58517         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58518
58519 2007-06-10  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58522         * lib/mbuiter.h: Likewise.
58523
58524 2007-06-10  Bruno Haible  <bruno@clisp.org>
58525
58526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58527         declaration.
58528
58529 2007-06-10  Karl Berry  <karl@gnu.org>
58530
58531         * config/srclist.txt: remove gettext entries, Bruno prefers
58532         to update individually.
58533
58534 2007-06-10  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58537         'maxlen'. Ensure only length + width bytes are allocated, not
58538         length + 1 + width.
58539
58540 2007-06-09  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58543         (CHAR_T): Remove macro.
58544         (VASNPRINTF): Update.
58545
58546 2007-06-09  Bruno Haible  <bruno@clisp.org>
58547
58548         * MODULES.html.sh (Unicode string functions): Add the new modules.
58549
58550         * modules/uniconv/u32-conv-to-enc: New file.
58551         * lib/uniconv/u32-conv-to-enc.c: New file.
58552         * modules/uniconv/u32-conv-to-enc-tests: New file.
58553         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58554
58555         * modules/uniconv/u16-conv-to-enc: New file.
58556         * lib/uniconv/u16-conv-to-enc.c: New file.
58557         * lib/uniconv/u-conv-to-enc.h: New file.
58558         * modules/uniconv/u16-conv-to-enc-tests: New file.
58559         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58560
58561         * modules/uniconv/u8-conv-to-enc: New file.
58562         * lib/uniconv/u8-conv-to-enc.c: New file.
58563         * modules/uniconv/u8-conv-to-enc-tests: New file.
58564         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58565
58566         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58567         u32_conv_to_encoding): New declarations.
58568
58569 2007-06-09  Bruno Haible  <bruno@clisp.org>
58570
58571         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58572
58573 2007-06-09  Bruno Haible  <bruno@clisp.org>
58574
58575         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58576         * modules/malloca: Renamed from modules/allocsa, updated.
58577         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58578         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58579         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58580         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58581         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58582         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58583         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58584         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58585         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58586         * modules/c-strcasestr (Depends-on): Update.
58587         * lib/c-strcasestr.c: Update.
58588         * modules/c-strstr (Depends-on): Update.
58589         * lib/c-strstr.c: Update.
58590         * modules/canonicalize-lgpl (Depends-on): Update.
58591         * lib/canonicalize-lgpl.c: Update.
58592         * modules/clean-temp (Depends-on): Update.
58593         * lib/clean-temp.c: Update.
58594         * modules/csharpcomp (Depends-on): Update.
58595         * lib/csharpcomp.c: Update.
58596         * modules/csharpexec (Depends-on): Update.
58597         * lib/csharpexec.c: Update.
58598         * modules/javacomp (Depends-on): Update.
58599         * lib/javacomp.c: Update.
58600         * modules/javaexec (Depends-on): Update.
58601         * lib/javaexec.c: Update.
58602         * modules/mbscasestr (Depends-on): Update.
58603         * lib/mbscasestr.c: Update.
58604         * modules/mbsstr (Depends-on): Update.
58605         * lib/mbsstr.c: Update.
58606         * modules/setenv (Depends-on): Update.
58607         * lib/setenv.c: Update.
58608         * modules/strcasestr (Depends-on): Update.
58609         * lib/strcasestr.c: Update.
58610         * modules/striconveha (Depends-on): Update.
58611         * lib/striconveha.c: Update.
58612         * modules/relocatable-prog-wrapper (Files): Update.
58613         * lib/relocwrapper.c: Update.
58614         * build-aux/install-reloc: Update.
58615         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58616
58617 2007-06-08  Bruno Haible  <bruno@clisp.org>
58618
58619         Port to uClibc.
58620         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58621         * lib/fpurge.c (fpurge): Likewise.
58622         * lib/freading.c (freading): Likewise.
58623         * lib/fseeko.c (rpl_fseeko): Likewise.
58624         * lib/fseterr.c (fseterr): Likewise.
58625         * lib/fwriting.c (fwriting): Likewise.
58626         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58627
58628 2007-06-08  Bruno Haible  <bruno@clisp.org>
58629
58630         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58631         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58632         * modules/gettext (Files): Add m4/intlmacosx.m4.
58633
58634 2007-06-07  Bruno Haible  <bruno@clisp.org>
58635
58636         * modules/localename-tests: New file.
58637         * tests/test-localename.c: New file.
58638
58639         New module 'localename'.
58640         * lib/localename.h: New file.
58641         * lib/localename.c: New file, from GNU gettext.
58642         * m4/localename.m4: New file.
58643         * modules/localename: New file.
58644
58645 2007-06-07  Bruno Haible  <bruno@clisp.org>
58646
58647         Work around the lack of <wchar.h> on some builds of uClibc.
58648         * doc/headers/wchar.texi: Update.
58649         * lib/wchar_.h: Include <wchar.h> only if it exists.
58650         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58651         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58652         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58653         doesn't exist.
58654         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58655         * modules/mbfile (Depends-on): Add wchar.
58656         * modules/mbiter (Depends-on): Likewise.
58657         * modules/mbuiter (Depends-on): Likewise.
58658         Reported by Simon Josefsson.
58659
58660 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         Work around problem reported by Steven M. Schweda in
58663         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58664         Tru64 5.1B with the Compaq compiler environment installed declares
58665         an 'isblank' function but does not define it in the C library.
58666         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58667         * lib/regex_internal.h (isblank): Likewise.
58668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58669         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58670
58671 2007-06-05  Bruno Haible  <bruno@clisp.org>
58672
58673         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58674         ia64.
58675         * modules/printf-safe: New file.
58676         * modules/fprintf-posix (Depends-on): Add printf-safe.
58677         * modules/printf-posix (Depends-on): Likewise.
58678         * modules/snprintf-posix (Depends-on): Likewise.
58679         * modules/sprintf-posix (Depends-on): Likewise.
58680         * modules/vasnprintf-posix (Depends-on): Likewise.
58681         * modules/vasprintf-posix (Depends-on): Likewise.
58682         * modules/vfprintf-posix (Depends-on): Likewise.
58683         * modules/vprintf-posix (Depends-on): Likewise.
58684         * modules/vsnprintf-posix (Depends-on): Likewise.
58685         * modules/vsprintf-posix (Depends-on): Likewise.
58686         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58687         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58688         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58689         "no" on i386, x86_64, ia64.
58690         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58692         on i386, x86_64, ia64.
58693         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58694         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58695         on i386, x86_64, ia64.
58696         * tests/test-vasnprintf-posix.c: Include float.h.
58697         (LDBL80_WORDS): New macro.
58698         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58699         on i386, x86_64, ia64.
58700         * tests/test-vasprintf-posix.c: Include float.h.
58701         (LDBL80_WORDS): New macro.
58702         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58703         on i386, x86_64, ia64.
58704         * tests/test-snprintf-posix.c: Include float.h.
58705         * tests/test-sprintf-posix.c: Likewise.
58706         * tests/test-vsnprintf-posix.c: Likewise.
58707         * tests/test-vsprintf-posix.c: Likewise.
58708
58709 2007-06-05  Bruno Haible  <bruno@clisp.org>
58710
58711         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58713         non-IEEE numbers on i386, x86_64, ia64.
58714         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58715         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58716         * tests/test-isnanl.h: Include float.h.
58717         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58718
58719 2007-06-05  Bruno Haible  <bruno@clisp.org>
58720
58721         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58722         also the %a / %A. Handle the %a / %A code before this extra handling.
58723
58724 2007-06-05  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58727         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58728
58729 2007-06-05  Bruno Haible  <bruno@clisp.org>
58730
58731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58732         typo in variable name.
58733
58734 2007-06-05  Eric Blake  <ebb9@byu.net>
58735
58736         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58737         Reported by Simon Josefsson.
58738
58739 2007-06-04  Bruno Haible  <bruno@clisp.org>
58740
58741         Avoid test failures on some PowerPC platforms.
58742         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58743         Define differently for PowerPC.
58744         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58745         Reported by Gary V. Vaughan <gary@gnu.org>.
58746
58747 2007-06-02  Bruno Haible  <bruno@clisp.org>
58748
58749         Fix test-stdint failure on FreeBSD/ia64.
58750         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58751         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58752         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58753         * doc/headers/stdint.texi: Update.
58754
58755 2007-06-01  Bruno Haible  <bruno@clisp.org>
58756
58757         * tests/test-binary-io.c (main): Pass a third argument to open().
58758         Reported by Gary V. Vaughan <gary@gnu.org>.
58759
58760 2007-06-01  Bruno Haible  <bruno@clisp.org>
58761
58762         * doc/functions/frexpl.texi: Update for mingw.
58763
58764 2007-06-01  Bruno Haible  <bruno@clisp.org>
58765
58766         * tests/test-lseek.c (main): Disable test of errno for invalid third
58767         argument.
58768         * doc/functions/lseek.texi: Update.
58769         Reported by Gary V. Vaughan <gary@gnu.org>.
58770
58771 2007-05-28  Bruno Haible  <bruno@clisp.org>
58772
58773         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58774
58775 2007-05-31  Eric Blake  <ebb9@byu.net>
58776
58777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58778         cross compiling.
58779
58780 2007-05-30  Eric Blake  <ebb9@byu.net>
58781         and Bruno Haible  <bruno@clisp.org>
58782
58783         Work around mingw test failures exposed by m4-1.4.9b.
58784         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58785         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58786         moment.
58787
58788 2007-05-30  Bruno Haible  <bruno@clisp.org>
58789
58790         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58791         assuming that they are closed. Needed on HP-UX 11.
58792
58793 2007-05-29  Bruno Haible  <bruno@clisp.org>
58794
58795         Fix a problem with #include_next.
58796         * lib/dirent_.h: Split the double-inclusion guard.
58797         * lib/fcntl_.h: Likewise.
58798         * lib/float_.h: Likewise.
58799         * lib/iconv_.h: Likewise.
58800         * lib/inttypes_.h: Likewise.
58801         * lib/locale_.h: Likewise.
58802         * lib/math_.h: Likewise.
58803         * lib/netinet_in_.h: Likewise.
58804         * lib/search_.h: Likewise.
58805         * lib/signal_.h: Likewise.
58806         * lib/stdint_.h: Likewise.
58807         * lib/stdio_.h: Likewise.
58808         * lib/stdlib_.h: Likewise.
58809         * lib/string_.h: Likewise.
58810         * lib/sys_select_.h: Likewise.
58811         * lib/sys_socket_.h: Likewise.
58812         * lib/sys_stat_.h: Likewise.
58813         * lib/sys_time_.h: Likewise.
58814         * lib/sysexits_.h: Likewise.
58815         * lib/time_.h: Likewise.
58816         * lib/unistd_.h: Likewise.
58817         * lib/wchar_.h: Likewise.
58818         * lib/wctype_.h: Likewise.
58819
58820 2007-05-29  Bruno Haible  <bruno@clisp.org>
58821
58822         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58823         for the moment.
58824
58825 2007-05-29  Bruno Haible  <bruno@clisp.org>
58826
58827         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58828         invocation.
58829         Reported by Eric Blake.
58830
58831 2007-05-29  Bruno Haible  <bruno@clisp.org>
58832
58833         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58834         compiling case.
58835
58836 2007-05-29  Eric Blake  <ebb9@byu.net>
58837             Bruno Haible  <bruno@clisp.org>
58838
58839         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58840         cross compiles.
58841
58842 2007-05-28  Eric Blake  <ebb9@byu.net>
58843
58844         * modules/closein-tests (test_closein_LDADD): Support test on
58845         cygwin with libtool.
58846
58847 2007-05-28  Bruno Haible  <bruno@clisp.org>
58848
58849         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58850         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58851         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58852         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58853         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58854         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58855         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58856         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58857         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58858
58859 2007-05-28  Eric Blake  <ebb9@byu.net>
58860
58861         Unconditionally include <config.h> in unit tests.
58862         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58863         * tests/test-allocsa.c, tests/test-arcfour.c,
58864         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58865         tests/test-array_list.c, tests/test-array_oset.c,
58866         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58867         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58868         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58869         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58870         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58871         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58872         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58873         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58874         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58875         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58876         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58877         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58878         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58879         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58880         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58881         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58882         test-md5.c, test-memmem.c, test-printf-posix.c,
58883         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58884         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58885         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58886         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58887         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58888         test-vasnprintf-posix2.c, test-vasnprintf.c,
58889         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58890         test-vfprintf-posix.c, test-vprintf-posix.c,
58891         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58892         test-xvasprintf.c: Likewise.
58893
58894 2007-05-28  Bruno Haible  <bruno@clisp.org>
58895
58896         * gnulib-tool (func_import): Remember the --with-tests command-line
58897         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58898         Reported by Eric Blake.
58899
58900 2007-05-28  Bruno Haible  <bruno@clisp.org>
58901
58902         * modules/ftell-tests: New file.
58903         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58904         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58905
58906         * lib/ftell.c: New file.
58907         * modules/ftell: New file.
58908         * m4/ftell.m4: New file.
58909         * doc/functions/ftell.texi: Update.
58910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58911         REPLACE_FTELL.
58912         * lib/stdio_.h (rpl_ftell): New declaration.
58913         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58914         REPLACE_FTELL.
58915
58916 2007-05-28  Eric Blake  <ebb9@byu.net>
58917
58918         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58919
58920 2007-05-28  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/fseek-tests: New file.
58923         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58924         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58925
58926         * lib/fseek.c: New file.
58927         * modules/fseek: New file.
58928         * m4/fseek.m4: New file.
58929         * doc/functions/fseek.texi: Update.
58930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58931         REPLACE_FSEEK.
58932         * lib/stdio_.h (rpl_fseek): New declaration.
58933         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58934         REPLACE_FSEEK.
58935
58936 2007-05-28  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/stdio_.h (fflush): More comments.
58939
58940 2007-05-28  Bruno Haible  <bruno@clisp.org>
58941
58942         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58943         runtime test.
58944
58945 2007-05-28  Eric Blake  <ebb9@byu.net>
58946
58947         Improve lseek module.
58948         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58949         * lib/unistd_.h (lseek): Scale back link warning message.
58950         * tests/test-lseek.c: Beef up test.
58951         * tests/test-lseek.sh: Exercise more facets of lseek.
58952         Reported by Bruno Haible.
58953
58954 2007-05-28  Bruno Haible  <bruno@clisp.org>
58955
58956         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58957         to define.
58958
58959 2007-05-27  Bruno Haible  <bruno@clisp.org>
58960
58961         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58962
58963 2007-05-27  Bruno Haible  <bruno@clisp.org>
58964
58965         * modules/openmp: New file.
58966         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58967         Noah Misch.
58968
58969 2007-05-26  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/chdir-long (Depends-on): Add fchdir.
58972         * modules/chdir-safer (Depends-on): Likewise.
58973         * modules/fts (Depends-on): Likewise.
58974         * modules/fts-lgpl (Depends-on): Likewise.
58975         * modules/openat (Depends-on): Likewise.
58976         * modules/savewd (Depends-on): Likewise.
58977
58978 2007-05-24  Eric Blake  <ebb9@byu.net>
58979
58980         Fix lseek on mingw.
58981         * modules/lseek: New module.
58982         * m4/lseek.m4: New file.
58983         * lib/lseek.c: New file.
58984         * modules/lseek-tests: New file.
58985         * tests/test-lseek.c: New file.
58986         * tests/test-lseek.sh: New file.
58987         * MODULES.html.sh: Document lseek module.
58988         * modules/fflush (Depends-on): Add lseek, fseeko.
58989         * modules/fseeko (Depends-on): Likewise.
58990         * modules/ftello (Depends-on): Likewise.
58991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58992         broken.
58993         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58994         broken.
58995         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58996         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58997         * lib/ftello.c (rpl_ftello): Likewise.
58998         * tests/test-fseeko.c (main): Test this.
58999         * tests/test-fseeko.sh: Likewise.
59000         * tests/test-ftello.c (main): Likewise.
59001         * tests/test-ftello.sh: Likewise.
59002         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59003         implies replacing fseek.
59004         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59005         HAVE_FTELLO.
59006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59007         * modules/unistd (Makefile.am): Likewise.
59008         * lib/unistd_.h (lseek): Declare a replacement.
59009         * doc/functions/lseek.texi (lseek): Document this fix.
59010         * doc/functions/fseek.texi (fseek): Likewise.
59011         * doc/functions/ftell.texi (ftell): Likewise.
59012
59013 2007-05-24  Bruno Haible  <bruno@clisp.org>
59014
59015         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59016         in the printed representation of a NaN.
59017         * tests/test-vasprintf-posix.c (test_function): Likewise.
59018         * tests/test-snprintf-posix.h (test_function): Likewise.
59019         * tests/test-sprintf-posix.h (test_function): Likewise.
59020         Reported by Eric Blake.
59021
59022 2007-05-23  Eric Blake  <ebb9@byu.net>
59023
59024         Fix fseeko/ftello on cygwin 1.5.24.
59025         * doc/functions/fseeko.texi (fseeko): Document the fix.
59026         * doc/functions/ftello.texi (ftello): Document the fix.
59027         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59028         * doc/functions/stdout.text (stdout): New file.
59029         * doc/functions/stderr.text (stderr): New file.
59030         * doc/gnulib.texi (Function Substitutes): Use new files.
59031         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59032         prior to 1.7.0.
59033         * tests/test-ftello.c (main): Likewise for ftello.
59034         * tests/test-fseeko.sh: New file.
59035         * tests/test-ftello.sh: New file.
59036         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59037         with seekable stdin.
59038         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59040         (gl_REPLACE_FSEEKO): New macro.
59041         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59042         * modules/fseeko (Files): Distribute fseeko.c.
59043         * modules/ftello (Files): Distribute ftello.c.
59044         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59045         mode.
59046         * lib/ftello.c (rpl_ftello): New file.
59047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59048         fseeko, ftello.
59049         (gl_STDIN_LARGE_OFFSET): New macro.
59050         * modules/stdio (Makefile.am): Perform the replacement.
59051         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59052
59053 2007-05-23  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59056         GNULIB_POSIXCHECK is defined.
59057
59058 2007-05-21  Bruno Haible  <bruno@clisp.org>
59059
59060         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59061         Check also the output for NaN arguments. When cross-compiling, guess
59062         no on IRIX.
59063         * lib/vasnprintf.c: Update comments.
59064         * tests/test-vasnprintf-posix.c (strisnan): New function.
59065         (test_function): Use it.
59066         * tests/test-vasprintf-posix.c (strisnan): New function.
59067         (test_function): Use it.
59068         * tests/test-snprintf-posix.h (strisnan): New function.
59069         (test_function): Use it.
59070         * tests/test-sprintf-posix.h (strisnan): New function.
59071         (test_function): Use it.
59072         Reported by Eric Blake.
59073
59074 2007-05-20  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59077         numbers that fails on BeOS.
59078         * doc/functions/frexpl.texi: Update.
59079
59080 2007-05-20  Jim Meyering  <jim@meyering.net>
59081
59082         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59083         forced upon us by glibc-2.6.
59084
59085 2007-05-20  Bruno Haible  <bruno@clisp.org>
59086
59087         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59088         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59089         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59090         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59091         NEED_PRINTF_INFINITE.
59092         (is_infinitel): New function.
59093         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59095         gl_PREREQ_VASNPRINTF_INFINITE.
59096         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59098         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59099         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59100         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59101         gl_PREREQ_VASNPRINTF_INFINITE.
59102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59109         * doc/functions/fprintf.texi: Update.
59110         * doc/functions/printf.texi: Update.
59111         * doc/functions/snprintf.texi: Update.
59112         * doc/functions/sprintf.texi: Update.
59113         * doc/functions/vfprintf.texi: Update.
59114         * doc/functions/vprintf.texi: Update.
59115         * doc/functions/vsnprintf.texi: Update.
59116         * doc/functions/vsprintf.texi: Update.
59117
59118 2007-05-20  Bruno Haible  <bruno@clisp.org>
59119
59120         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59121         was not found in libc.
59122         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59123
59124 2007-05-20  Bruno Haible  <bruno@clisp.org>
59125
59126         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59127         printed as "-nan" instead of "nan".
59128         * tests/test-vasprintf-posix.c (test_function): Likewise.
59129         * tests/test-snprintf-posix.h (test_function): Likewise.
59130         * tests/test-sprintf-posix.h (test_function): Likewise.
59131         Needed for HP-UX 11.
59132
59133 2007-05-20  Jim Meyering  <jim@meyering.net>
59134
59135         Fix buggy test for the fchownat-deref bug.
59136         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59137         symlink required for the run-test.  Without it, this test would
59138         always declare that fchownat doesn't work, and client code would
59139         unnecessarily use the replacement function with fixed libc.
59140         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59141         Reported by Greg Schafer.
59142
59143 2007-05-19  Bruno Haible  <bruno@clisp.org>
59144
59145         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59146         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59147         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59148         Needed for IRIX 6.5 and Solaris 2.5.1.
59149
59150 2007-05-19  Bruno Haible  <bruno@clisp.org>
59151
59152         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59153         (test_function): Skip tests involving -0.0 on platforms where
59154         -0.0 = 0.0.
59155         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59156         (test_function): Skip tests involving -0.0 on platforms where
59157         -0.0 = 0.0.
59158         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59159         (test_function): Skip tests involving -0.0 on platforms where
59160         -0.0 = 0.0.
59161         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59162         (test_function): Skip tests involving -0.0 on platforms where
59163         -0.0 = 0.0.
59164         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59165         tests.
59166         * tests/test-printf-posix.h (test_function): Likewise.
59167         * tests/test-printf-posix.output: Remove all -0.0 related results.
59168         Needed for IRIX 6.5.
59169
59170 2007-05-19  Bruno Haible  <bruno@clisp.org>
59171
59172         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59173         printed as "nan0x7fffffff" instead of "nan".
59174         * tests/test-vasprintf-posix.c (test_function): Likewise.
59175         * tests/test-snprintf-posix.h (test_function): Likewise.
59176         * tests/test-sprintf-posix.h (test_function): Likewise.
59177         * tests/test-fprintf-posix.h (NaN): Remove macro.
59178         (test_function): Remove all NaN related tests.
59179         * tests/test-printf-posix.h (NaN): Remove macro.
59180         (test_function): Remove all NaN related tests.
59181         * tests/test-printf-posix.output: Remove all NaN related results.
59182         Needed for IRIX 6.5.
59183
59184 2007-05-19  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59188
59189 2007-05-19  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/float_.h: New file.
59192         * m4/float_h.m4: New file.
59193         * modules/float: New file.
59194         * modules/isnanl (Dependencies): Add float.
59195         * modules/isnanl-nolibm (Dependencies): Likewise.
59196         * modules/mathl (Dependencies): Likewise.
59197         * modules/printf-frexpl (Dependencies): Likewise.
59198         * modules/signbit (Dependencies): Likewise.
59199         * modules/vasnprintf (Dependencies): Likewise.
59200         * doc/headers/float.texi: Update.
59201
59202 2007-05-19  Jim Meyering  <jim@meyering.net>
59203
59204         * lib/utimens.c (gl_futimens): Rename from futimens,
59205         now that glibc-2.6 declares futimens.
59206         * lib/utimens.h: Likewise.
59207
59208 2007-05-19  Bruno Haible  <bruno@clisp.org>
59209
59210         Avoid test failures on mingw.
59211         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59212         * tests/test-printf-posix.sh: Likewise.
59213         * tests/test-vfprintf-posix.sh: Likewise.
59214         * tests/test-vprintf-posix.sh: Likewise.
59215
59216 2007-05-19  Bruno Haible  <bruno@clisp.org>
59217
59218         Fix *printf result for NaN, Inf, -0.0 on mingw.
59219         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59220         * lib/vasnprintf.c: Include math.h and isnan.h.
59221         (is_infinite_or_zero): New function.
59222         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59223         values in the %f, %F, %e, %E, %g, %G directives.
59224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59226         gl_PRINTF_INFINITE and test its result. Invoke
59227         gl_PREREQ_VASNPRINTF_INFINITE.
59228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59235         * doc/functions/fprintf.texi: Update.
59236         * doc/functions/printf.texi: Update.
59237         * doc/functions/snprintf.texi: Update.
59238         * doc/functions/sprintf.texi: Update.
59239         * doc/functions/vfprintf.texi: Update.
59240         * doc/functions/vprintf.texi: Update.
59241         * doc/functions/vsnprintf.texi: Update.
59242         * doc/functions/vsprintf.texi: Update.
59243
59244 2007-05-19  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59247         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59248         Instead of multiplying with 10^k, set extra_zeroes to k.
59249         (scale10_round_long_double): Remove function.
59250
59251 2007-05-18  Bruno Haible  <bruno@clisp.org>
59252
59253         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59254         introduced on 2007-05-06.
59255
59256 2007-05-18  Bruno Haible  <bruno@clisp.org>
59257
59258         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59259         %g directives.
59260         * tests/test-vasprintf-posix.c (test_function): Likewise.
59261         * tests/test-snprintf-posix.h (test_function): Likewise.
59262         * tests/test-sprintf-posix.h (test_function): Likewise.
59263
59264 2007-05-18  Bruno Haible  <bruno@clisp.org>
59265
59266         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59267         (strmatch): New function.
59268         (test_function): Test the %f directive on numbers of various exponents.
59269         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59270         (strmatch): New function.
59271         (test_function): Test the %f directive on numbers of various exponents.
59272         * tests/test-snprintf-posix.h (strmatch): New function.
59273         (test_function): Test the %f directive on numbers of various exponents.
59274         * tests/test-sprintf-posix.h (strmatch): New function.
59275         (test_function): Test the %f directive on numbers of various exponents.
59276         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59277         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59278         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59279         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59280
59281 2007-05-18  Bruno Haible  <bruno@clisp.org>
59282
59283         Add support for 'long double' number output.
59284         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59285         * lib/vasnprintf.c: Include math.h and float+.h.
59286         (mp_limb_t): New type.
59287         (GMP_LIMB_BITS): New macro.
59288         (mp_twolimb_t): New type.
59289         (GMP_TWOLIMB_BITS): New macro.
59290         (mpn_t): New type.
59291         (multiply, divide, convert_to_decimal, decode_long_double,
59292         scale10_round_long_double, scale10_round_decimal_long_double,
59293         floorlog10l): New functions.
59294         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59295         for the %f, %F, %e, %E, %g, %G directives.
59296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59298         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59299         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59307         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59308         * modules/snprintf-posix (Depends-on): Likewise.
59309         * modules/sprintf-posix (Depends-on): Likewise.
59310         * modules/vasnprintf-posix (Depends-on): Likewise.
59311         * modules/vasprintf-posix (Depends-on): Likewise.
59312         * modules/vfprintf-posix (Depends-on): Likewise.
59313         * modules/vsnprintf-posix (Depends-on): Likewise.
59314         * modules/vsprintf-posix (Depends-on): Likewise.
59315         * modules/vasnprintf (Files): Add lib/float+.h.
59316         * doc/functions/fprintf.texi: Update.
59317         * doc/functions/printf.texi: Update.
59318         * doc/functions/snprintf.texi: Update.
59319         * doc/functions/sprintf.texi: Update.
59320         * doc/functions/vfprintf.texi: Update.
59321         * doc/functions/vprintf.texi: Update.
59322         * doc/functions/vsnprintf.texi: Update.
59323         * doc/functions/vsprintf.texi: Update.
59324
59325 2007-05-18  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59328
59329 2007-05-18  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59332         for printing 64-bit integers. Needed for mingw.
59333
59334 2007-05-18  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59337         gl_FUNC_FREXPL_WORKS.
59338         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59339
59340 2007-05-18  Bruno Haible  <bruno@clisp.org>
59341
59342         * modules/frexpl-nolibm-tests: New file.
59343
59344         * modules/frexpl-nolibm: New file.
59345         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59346
59347 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59348
59349         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59350         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59351         GCC 4.2, which otherwise issues a lot of warnings.
59352         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59353         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59354         Likewise.
59355         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59356         * modules/iconv_open (iconv.h): Likewise.
59357         * modules/locale (locale.h): Likewise.
59358         * modules/netinet_in (netinet/in.h): Likewise.
59359         * modules/sys_select (sys_select.h): Likewise.
59360         * modules/sys_socket (sys/socket.h): Likewise.
59361         * modules/sys_stat (sys/stat.h): Likewise.
59362         * modules/sysexits (sysexits.h): Likewise.
59363         * modules/unistd (unistd.h): Likewise.
59364
59365 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59366
59367         * modules/closein-tests (Makefile.am): Distribute
59368         `test-closein.sh'.
59369
59370 2007-05-17  Bruno Haible  <bruno@clisp.org>
59371
59372         * tests/test-printf-posix.output: Renamed from
59373         tests/test-fprintf-posix.out.
59374         * modules/fprintf-posix-tests: Update.
59375         * modules/printf-posix-tests: Update.
59376         * modules/vfprintf-posix-tests: Update.
59377         * modules/vprintf-posix-tests: Update.
59378         * tests/test-fprintf-posix.sh: Update.
59379         * tests/test-printf-posix.sh: Update.
59380         * tests/test-vfprintf-posix.sh: Update.
59381         * tests/test-vprintf-posix.sh: Update.
59382         Reported by Ralf Wildenhues.
59383
59384 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59387         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59388         GCC 4.2, which otherwise issues a lot of warnings.
59389         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59390         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59391         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59392         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59393         it should no longer be needed.
59394         * lib/string_.h: Likewise.
59395         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59396         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59397         * modules/inttypes (inttypes.h): Likewise.
59398         * modules/math (math.h): Likewise.
59399         * modules/search (search.h): Likewise.
59400         * modules/signal (signal.h): Likewise.
59401         * modules/stdint (stdint.h): Likewise.
59402         * modules/stdio (stdio.h): Likewise.
59403         * modules/stdlib (stdlib.h): Likewise.
59404         * modules/string (string.h): Likewise.
59405         * modules/sys_time (sys/time.h): Likewise.
59406         * modules/time (time.h): Likewise.
59407         * modules/wchar (wchar.h): Likewise.
59408         * modules/wctype (wtype.h): Likewise.
59409
59410 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59411
59412         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59413
59414 2007-05-13  Bruno Haible  <bruno@clisp.org>
59415
59416         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59417         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59418         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59419         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59420         (gl_PREREQ_STRTOK_R): Don't require it here.
59421
59422 2007-05-13  Bruno Haible  <bruno@clisp.org>
59423
59424         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59425         when used in C++ mode.
59426
59427 2007-05-12  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/linebuffer.h: Tweak doc.
59430         * lib/linebuffer.c: Likewise.
59431
59432 2007-05-12  James Youngman  <jay@gnu.org>
59433
59434         * lib/linebuffer.c (readlinebuffer_delim): New function,
59435         like readlinebuffer, but use a caller-specified delimiter.
59436         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59437         as the delimiter.
59438         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59439
59440 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59441
59442         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59443         * modules/openat (Files): Remove openat-die.c.
59444         (Depends-on): Add openat-die.
59445         * modules/openat-die: New module.
59446
59447 2007-05-06  Bruno Haible  <bruno@clisp.org>
59448
59449         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59450         Update with info about Cygwin.
59451         * doc/functions/fprintf.texi: Update.
59452         * doc/functions/printf.texi: Update.
59453         * doc/functions/snprintf.texi: Update.
59454         * doc/functions/sprintf.texi: Update.
59455         * doc/functions/vfprintf.texi: Update.
59456         * doc/functions/vprintf.texi: Update.
59457         * doc/functions/vsnprintf.texi: Update.
59458         * doc/functions/vsprintf.texi: Update.
59459         Reported by Eric Blake.
59460
59461 2007-05-06  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59464         padding ourselves for the floating-point directives.
59465         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59468         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59469         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
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 width
59478         and some flags in the %f directive.
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-06  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59494         pass the ' flag character to sprintf or snprintf.
59495         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59498         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59499         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59507         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59508         flag.
59509         * tests/test-sprintf-posix.h (test_function): Likewise.
59510         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59511         * tests/test-vasprintf-posix.c (test_function): Likewise.
59512         * doc/functions/fprintf.texi: Update.
59513         * doc/functions/printf.texi: Update.
59514         * doc/functions/snprintf.texi: Update.
59515         * doc/functions/sprintf.texi: Update.
59516         * doc/functions/vfprintf.texi: Update.
59517         * doc/functions/vprintf.texi: Update.
59518         * doc/functions/vsnprintf.texi: Update.
59519         * doc/functions/vsprintf.texi: Update.
59520
59521 2007-05-01  Bruno Haible  <bruno@clisp.org>
59522
59523         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59524
59525 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59528         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59529
59530 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59533         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59535
59536 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59537
59538         * lib/argp-help.c (struct hol_entry): New member `ord'.
59539         (HOL_ENTRY_PTRCMP): Use ord for comparison
59540         (hol_sort): Initialize ord.
59541
59542 2007-05-01  Bruno Haible  <bruno@clisp.org>
59543
59544         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59545         Reported by Eric Blake.
59546         * doc/gnulib.texi (Function Substitutes): Update.
59547
59548 2007-05-01  Bruno Haible  <bruno@clisp.org>
59549
59550         * doc/functions.texi: Remove file, now redundant through
59551         doc/functions/*.texi.
59552
59553 2007-05-01  Bruno Haible  <bruno@clisp.org>
59554
59555         * modules/argp (Depends-on): Add sleep.
59556
59557 2007-05-01  Bruno Haible  <bruno@clisp.org>
59558
59559         * modules/sleep-tests: New file.
59560         * tests/test-sleep.c: New file.
59561
59562         * modules/sleep: New file.
59563         * lib/sleep.c: New file.
59564         * m4/sleep.m4: New file.
59565         * lib/unistd_.h (sleep): New declaration.
59566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59567         HAVE_SLEEP.
59568         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59569         * doc/functions/sleep.texi: Document the sleep module.
59570
59571 2007-05-01  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/sigprocmask.h: Remove file.
59574         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59575         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59576         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59577         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59578         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59579         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59580         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59581         HAVE_SIGSET_T as a shell variable.
59582         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59583         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59584         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59585         (Depends-on): Add signal. Remove verify.
59586         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59587         (Include): Mention <signal.h> instead of sigprocmask.h.
59588         * NEWS: Mention the change.
59589         * lib/fatal-signal.c: Don't include sigprocmask.h.
59590
59591 2007-05-01  Bruno Haible  <bruno@clisp.org>
59592
59593         * modules/signal: New file.
59594         * lib/signal_.h: New file.
59595         * m4/signal_h.m4: New file.
59596
59597 2007-05-01  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59600         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59601         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59602         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59603
59604 2007-05-01  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59607         configure time.
59608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59609         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59610         * modules/sys_stat (Makefile.am): Substitute their values into
59611         sys/stat.h.
59612
59613 2007-05-01  Bruno Haible  <bruno@clisp.org>
59614
59615         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59616         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59617         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59618
59619 2007-05-01  Bruno Haible  <bruno@clisp.org>
59620
59621         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59622         'assert' module here.
59623
59624 2007-05-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * doc/functions/*.texi: New files.
59627         * doc/functions/google-ranking.txt: New file.
59628         * doc/gnulib.texi (Function Substitutes): New chapter.
59629         (ctime, inet_ntoa): Remove sections.
59630         * doc/ctime.texi: Remove file.
59631         * doc/inet_ntoa.texi: Remove file.
59632         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59633         dependencies.
59634         (%.info): New rule, specifying a --reference-limit.
59635
59636 2007-05-01  Bruno Haible  <bruno@clisp.org>
59637
59638         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59639
59640 2007-05-01  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59643         the portability of 'mkdir' to mingw systems.
59644
59645 2007-05-01  Bruno Haible  <bruno@clisp.org>
59646
59647         * doc/headers/google-ranking.txt: New file.
59648
59649 2007-04-30  Eric Blake  <ebb9@byu.net>
59650
59651         Prefer fseeko to fseek.
59652         * modules/getpass (Depends-on): Add fseeko.
59653         * lib/getpass.c (getpass): Use fseeko, not fseek.
59654
59655 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59656
59657         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59658         assumes the sorting is stable, while most qsort implementations
59659         are not.  Use argument addresses to ensure they never compare as
59660         equal.
59661
59662         * tests/test-argp-2.sh (usage-indent test): Fix output
59663         (func_compare): Restore diff options
59664         * tests/test-argp.c: Restore #include "progname.h"
59665
59666 2007-04-29  Bruno Haible  <bruno@clisp.org>
59667
59668         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59670         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59672         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59673         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59674         (TESTS, check_PROGRAMS): Add test-snprintf.
59675         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59676         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59677         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59678         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59679         assertions that fail on HP-UX, OSF/1, or IRIX.
59680         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59681
59682 2007-04-29  Bruno Haible  <bruno@clisp.org>
59683
59684         * MODULES.html.sh (posix_functions): Remove 'contents'.
59685
59686 2007-04-29  Karl Berry  <karl@gnu.org>
59687
59688         * config/srclist.txt (gendocs_template_min): new entry.
59689
59690 2007-04-29  Bruno Haible  <bruno@clisp.org>
59691
59692         Work around fpurge bug on BSD systems.
59693         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59695         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59696         fpurge to rpl_fpurge if the system already has this function.
59697         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59698         the case where the system already has this function. Correct invariants
59699         on BSD systems.
59700         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59701         BSD systems.
59702
59703 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59704
59705         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59706         proposed by Sven Verdoolaege.
59707
59708         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59709         options.
59710         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59711         (usage and help tests): Update
59712
59713 2007-04-29  Bruno Haible  <bruno@clisp.org>
59714
59715         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59716         Print more information in case of failure. Disable a test on BeOS.
59717
59718 2007-04-29  Bruno Haible  <bruno@clisp.org>
59719
59720         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59721         This helps debugging on systems on which no gdb is available.
59722
59723 2007-04-29  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/freading.h: Improve comments.
59726         * lib/fwriting.h: Likewise.
59727         * tests/test-freading.c (main): Don't check freading immediately after
59728         repositioning. Needed for glibc.
59729
59730 2007-04-29  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/freading.c (freading): Trivial simplification.
59733
59734 2007-04-28  Bruno Haible  <bruno@clisp.org>
59735
59736         * tests/test-fwriting.c (main): Also test the interaction between
59737         fflush and fwriting.
59738         * modules/fwriting-tests (Depends-on): Add fflush.
59739
59740         * tests/test-freading.c (main): Also test the interaction between
59741         fflush and freading.
59742         * modules/freading-tests (Depends-on): Add fflush.
59743
59744 2007-04-28  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59747         fseeko and ftello.
59748         Suggested by Eric Blake.
59749
59750 2007-04-28  Jim Meyering  <jim@meyering.net>
59751
59752         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59753         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59754         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59755
59756 2007-04-27  Eric Blake  <ebb9@byu.net>
59757
59758         * doc/headers/assert.texi (assert.h): Document assert module use.
59759
59760 2007-04-27  Bruno Haible  <bruno@clisp.org>
59761
59762         * doc/headers/*.texi: New files.
59763         * doc/gnulib.texi (Header File Substitutes): New chapter.
59764         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59765         dependencies.
59766         (standards.info ,standards.html, standards.dvi): Update dependencies.
59767         (mostlyclean, clean): New targets.
59768
59769 2007-04-27  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59772         * modules/sysexits (Files, Makefile.am): Update.
59773
59774         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59775         * modules/sys_socket (Files, Makefile.am): Update.
59776
59777         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59778         * modules/sys_stat (Files, Makefile.am): Update.
59779
59780 2007-04-27  Eric Blake  <ebb9@byu.net>
59781
59782         * lib/freading.h: Improve comments.
59783         * lib/fwriting.h: Likewise.
59784         * lib/fflush.c: Likewise.
59785
59786         Fix closein for mingw.
59787         * modules/closein-tests: Add tests for closein.
59788         * tests/test-closein.c: New file.
59789         * tests/test-closein.sh: Likewise.
59790         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59791         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59792
59793 2007-04-27  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59796         version is < 6.
59797         * lib/math_.h [__DECC]: Likewise.
59798         * lib/stdio_.h [__DECC]: Likewise.
59799         * lib/stdlib_.h [__DECC]: Likewise.
59800         * lib/string_.h [__DECC]: Likewise.
59801         * lib/time_.h [__DECC]: Likewise.
59802         * lib/wchar_.h [__DECC]: Likewise.
59803         * lib/wctype_.h [__DECC]: Likewise.
59804
59805 2007-04-27  Bruno Haible  <bruno@clisp.org>
59806
59807         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59808
59809 2007-04-27  Bruno Haible  <bruno@clisp.org>
59810
59811         * lib/fflush.c: Add comments.
59812         * modules/fpurge-tests (Depends-on): Add fflush.
59813         * modules/freadable-tests (Depends-on): Likewise.
59814         * modules/fwritable-tests (Depends-on): Likewise.
59815
59816 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59817
59818         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59819         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59820         Report by Bruno Haible <bruno@clisp.org>.
59821
59822 2007-04-26  Eric Blake  <ebb9@byu.net>
59823
59824         Fix fflush on mingw.
59825         * modules/fflush (Depends-on): Add freading.
59826         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59827         but unread data.
59828
59829 2007-04-26  Eric Blake  <ebb9@byu.net>
59830         and Bruno Haible  <bruno@clisp.org>
59831
59832         Implement freading and fwriting.
59833         * lib/freading.c: New file.
59834         * lib/freading.h: Likewise.
59835         * m4/freading.m4: Likewise.
59836         * modules/freading: Likewise.
59837         * modules/freading-tests: Likewise.
59838         * tests/test-freading.c: Likewise.
59839         * lib/fwriting.c: New file.
59840         * lib/fwriting.h: Likewise.
59841         * m4/fwriting.m4: Likewise.
59842         * modules/fwriting: Likewise.
59843         * modules/fwriting-tests: Likewise.
59844         * tests/test-fwriting.c: Likewise.
59845         * MODULES.html.sh (File stream based Input/Output): Mention them.
59846
59847 2007-04-26  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59850         'long' when we assume it.
59851         Suggested by Eric Blake.
59852
59853 2007-04-26  Bruno Haible  <bruno@clisp.org>
59854
59855         Ensure fseeko, ftello are declared on glibc systems.
59856         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59857         * modules/fseeko (configure.ac-early): Likewise.
59858         * modules/ftello (configure.ac-early): Likewise.
59859         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59860         AC_FUNC_FSEEKO for this.
59861         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59862         (gl_CHECK_FSEEKO): Remove macro.
59863
59864 2007-04-26  Bruno Haible  <bruno@clisp.org>
59865
59866         * tests/test-fflush.c (main): Also check the ftell result after
59867         fflush and fseek/fseeko.
59868         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59869         file descriptor position cache in the stream.
59870         * lib/fseeko.c (rpl_fseeko): Likewise.
59871
59872 2007-04-26  Bruno Haible  <bruno@clisp.org>
59873
59874         * modules/fflush-tests (Depends-on): Add fseeko.
59875
59876 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59877             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59878
59879         * lib/argz_.h: ensure error_t definition is obtained in same
59880         mechanism system argz.h would have.
59881         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59882         argz facilities are known bad.  Err on the side of caution if
59883         cross-compiling.
59884
59885 2007-04-25  Eric Blake  <ebb9@byu.net>
59886
59887         * lib/fpurge.c (includes): Use stdlib.h for free.
59888         * tests/test-fflush.c (main): Also test fflush-fseeko.
59889
59890 2007-04-25  Bruno Haible  <bruno@clisp.org>
59891
59892         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59893         * lib/fseeko.c: New file.
59894         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59895         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59896         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59897         gl_FUNC_FSEEKO.
59898         (gl_FUNC_FSEEKO): Invoke it.
59899         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59900         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59901         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59902
59903 2007-04-25  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/fflush (Depends-on): Add ftello.
59906
59907 2007-04-25  Bruno Haible  <bruno@clisp.org>
59908
59909         * modules/ftello-tests: New file.
59910         * tests/test-ftello.c: New file.
59911
59912         * modules/ftello: New file.
59913         * m4/ftello.m4: New file.
59914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59915         HAVE_FTELLO.
59916         * lib/stdio_.h (ftello): New declaration.
59917         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59918         HAVE_FTELLO.
59919
59920 2007-04-25  Bruno Haible  <bruno@clisp.org>
59921
59922         * modules/fseeko-tests: New file.
59923         * tests/test-fseeko.c: New file.
59924
59925         * modules/fseeko: New file.
59926         * m4/fseeko.m4: New file.
59927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59928         HAVE_FSEEKO.
59929         * lib/stdio_.h (fseeko): New declaration.
59930         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59931         HAVE_FSEEKO.
59932
59933 2007-04-25  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59936
59937 2007-04-25  Bruno Haible  <bruno@clisp.org>
59938
59939         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59940         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59941         * tests/test-unistd.c: Likewise.
59942         * tests/test-fcntl.c: Likewise.
59943
59944 2007-04-23  Eric Blake  <ebb9@byu.net>
59945
59946         * lib/fflush.c: Fix missing include.
59947         Reported by Bruno Haible.
59948
59949 2007-04-23  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59952         Reported by Eric Blake.
59953
59954 2007-04-23  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59957
59958 2007-04-23  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59961
59962 2007-04-23  Bruno Haible  <bruno@clisp.org>
59963
59964         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59965         Needed on HP-UX 11.
59966
59967 2007-04-16  Eric Blake  <ebb9@byu.net>
59968
59969         Make fflush rely on fpurge.
59970         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59971         open coding all variants.
59972         * modules/fflush (Depends-on): Add fpurge and unistd.
59973         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59975
59976         Fix --with-tests compilation on cygwin.
59977         * modules/argmatch-tests (Makefile.am): List gnulib library first
59978         in LDADD.
59979         * modules/argp-tests (Makefile.am): Likewise.
59980         * modules/array-list-tests (Makefile.am): Likewise.
59981         * modules/array-oset-tests (Makefile.am): Likewise.
59982         * modules/avltree-list-tests (Makefile.am): Likewise.
59983         * modules/avltree-oset-tests (Makefile.am): Likewise.
59984         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59985         * modules/carray-list-tests (Makefile.am): Likewise.
59986         * modules/dirname-tests (Makefile.am): Likewise.
59987         * modules/frexp-tests (Makefile.am): Likewise.
59988         * modules/isnanl-tests (Makefile.am): Likewise.
59989         * modules/linked-list-tests (Makefile.am): Likewise.
59990         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59991         * modules/lock-tests (Makefile.am): Likewise.
59992         * modules/rbtree-list-tests (Makefile.am): Likewise.
59993         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59994         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59995         * modules/tls-tests (Makefile.am): Likewise.
59996         * modules/tsearch-tests (Makefile.am): Likewise.
59997         * modules/xvasprintf-tests (Makefile.am): Likewise.
59998
59999         Fix fpurge for cygwin.
60000         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60001         value.
60002         * modules/fpurge-tests (Depends-on): Clean up trash.
60003
60004 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60005
60006         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60007
60008         * m4/autobuild.m4: Re-indent.
60009
60010 2007-04-13  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/fpurge-tests: New file.
60013         * tests/test-fpurge.c: New file.
60014
60015         * modules/fpurge: New file.
60016         * lib/fpurge.h: New file.
60017         * lib/fpurge.c: New file.
60018         * m4/fpurge.m4: New file.
60019
60020 2007-04-13  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/fbufmode-tests: New file.
60023         * tests/test-fbufmode.c: New file.
60024
60025         * modules/fbufmode: New file.
60026         * lib/fbufmode.h: New file.
60027         * lib/fbufmode.c: New file.
60028         * m4/fbufmode.m4: New file.
60029
60030 2007-04-13  Bruno Haible  <bruno@clisp.org>
60031
60032         * modules/fwritable-tests: New file.
60033         * tests/test-fwritable.c: New file.
60034
60035         * modules/fwritable: New file.
60036         * lib/fwritable.h: New file.
60037         * lib/fwritable.c: New file.
60038         * m4/fwritable.m4: New file.
60039
60040 2007-04-13  Bruno Haible  <bruno@clisp.org>
60041
60042         * modules/freadable-tests: New file.
60043         * tests/test-freadable.c: New file.
60044
60045         * modules/freadable: New file.
60046         * lib/freadable.h: New file.
60047         * lib/freadable.c: New file.
60048         * m4/freadable.m4: New file.
60049
60050 2007-04-13  Bruno Haible  <bruno@clisp.org>
60051
60052         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60053         MOSTLYCLEANFILES.
60054
60055 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60058         gzip bootstrap.conf to avoid dragging in i18n machinery.
60059         (gnulib_tool_option): Use it.
60060
60061 2007-04-13  Bruno Haible  <bruno@clisp.org>
60062
60063         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60064         %F directives.
60065         * tests/test-vasprintf-posix.c (test_function): Likewise.
60066         * tests/test-snprintf-posix.h (test_function): Likewise.
60067         * tests/test-sprintf-posix.h (test_function): Likewise.
60068         * tests/test-fprintf-posix.h (test_function): Likewise.
60069         * tests/test-printf-posix.h (test_function): Likewise.
60070         * tests/test-fprintf-posix.out: Likewise.
60071
60072 2007-04-13  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60075         * modules/tls-tests (configure.ac): Likewise.
60076         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60077
60078 2007-04-13  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/tls.c (glthread_tls_get): Fix return type.
60081         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60082
60083 2007-04-12  Eric Blake  <ebb9@byu.net>
60084
60085         * modules/gettime (Depends-on): Remove gettime.
60086         Reported by Dmitry V. Levin.
60087
60088 2007-04-12  Bruno Haible  <bruno@clisp.org>
60089
60090         * modules/fflush (Include): Mention <stdio.h>.
60091         * modules/strtoimax (Include): Mention <inttypes.h>.
60092         * modules/strtoumax (Include): Likewise.
60093
60094 2007-04-12  Eric Blake  <ebb9@byu.net>
60095
60096         * .cvsignore: New file.
60097         * .gitignore: Likewise.
60098
60099 2007-04-12  Bruno Haible  <bruno@clisp.org>
60100
60101         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60102         not before, since $(LDADD) often contains libgnu.a.
60103         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60104         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60105         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60106         Needed on Cygwin.
60107
60108 2007-04-12  Eric Blake  <ebb9@byu.net>
60109
60110         Work around glibc's failure to flush stdin on fclose.
60111         * lib/closein.c (close_stdin): Flush stdin before closing.
60112
60113         Work around glibc's failure to reset seekable stdin on exit.
60114         * modules/closein: New module.
60115         * lib/closein.c: New file.
60116         * lib/closein.h: Likewise.
60117         * m4/closein.m4: Likewise.
60118         * MODULES.html.sh (File stream based Input/Output): Document it.
60119
60120 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60121
60122         * gnulib-tool: Rename generated 'autobuild' script to
60123         'do-autobuild' in --create-megatestdir output.
60124
60125         * doc/gnulib.texi (Build robot for gnulib): Fix.
60126
60127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60128
60129         * modules/sysexits (Depends-on): Add absolute-header.
60130
60131 2007-04-12  Eric Blake  <ebb9@byu.net>
60132
60133         No need to preserve errno on success.
60134         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60135         Reported by Bruno Haible.
60136
60137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60138
60139         * MODULES.html.sh (Support for maintaining and releasing
60140         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60141
60142 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60143
60144         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60145
60146 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60147
60148         * modules/autobuild: New module.
60149
60150         * m4/autobuild.m4: New file.
60151
60152 2007-04-11  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60155         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60182         Reported by Eric Blake.
60183
60184 2007-04-11  Bruno Haible  <bruno@clisp.org>
60185
60186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60187
60188 2007-04-10  Bruno Haible  <bruno@clisp.org>
60189
60190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60191         for NaN and Infinity. Needed on FreeBSD 6.1.
60192         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60193         regarding results for "%010a" of Infinity and NaN.
60194         * tests/test-vasprintf-posix.c (test_function): Likewise.
60195         * tests/test-snprintf-posix.h (test_function): Likewise.
60196         * tests/test-sprintf-posix.h (test_function): Likewise.
60197         * tests/test-fprintf-posix.h (test_function): Likewise.
60198         * tests/test-printf-posix.h (test_function): Likewise.
60199         * tests/test-fprintf-posix.out: Likewise.
60200
60201 2007-04-10  Bruno Haible  <bruno@clisp.org>
60202
60203         * modules/locale-tests: New file.
60204         * tests/test-locale.c: New file.
60205
60206         * modules/locale: New file.
60207         * lib/locale_.h: New file.
60208         * m4/locale_h.m4: New file.
60209
60210 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60211             Bruno Haible  <bruno@clisp.org>
60212
60213         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60214         be determined, test for availability of the copysignf, copysign,
60215         copysignl functions.
60216         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60217         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60218         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60219
60220 2007-04-09  Eric Blake  <ebb9@byu.net>
60221
60222         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60223         * modules/stdio (Makefile.am): Support fflush.
60224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60225         * modules/fflush: New file.
60226         * lib/fflush.c: Likewise.
60227         * m4/fflush.m4: Likewise.
60228         * modules/fflush-tests: New test.
60229         * tests/test-fflush.c: Likewise.
60230         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60231
60232 2007-04-06  Bruno Haible  <bruno@clisp.org>
60233
60234         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60235         (VASNPRINTF): Use signbit for faster determination whether to print a
60236         minus sign.
60237         * modules/vasnprintf (Files): Remove lib/float+.h.
60238         * modules/fprintf-posix (Depends-on): Add signbit.
60239         * modules/snprintf-posix (Depends-on): Likewise.
60240         * modules/sprintf-posix (Depends-on): Likewise.
60241         * modules/vasnprintf-posix (Depends-on): Likewise.
60242         * modules/vasprintf-posix (Depends-on): Likewise.
60243         * modules/vfprintf-posix (Depends-on): Likewise.
60244         * modules/vsnprintf-posix (Depends-on): Likewise.
60245         * modules/vsprintf-posix (Depends-on): Likewise.
60246
60247 2007-04-06  Bruno Haible  <bruno@clisp.org>
60248
60249         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60250         * tests/test-frexpl.c (main): Likewise.
60251         * tests/test-ldexpl.c (main): Likewise.
60252         * modules/frexp-tests (Depends-on): Add signbit.
60253         * modules/frexpl-tests (Depdends-on): Likewise.
60254         * modules/ldexpl-tests (Depdends-on): Likewise.
60255
60256 2007-04-06  Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/signbit-tests: New file.
60259         * tests/test-signbit.c: New file.
60260
60261         * modules/signbit: New file.
60262         * lib/signbitf.c: New file.
60263         * lib/signbitd.c: New file.
60264         * lib/signbitl.c: New file.
60265         * m4/signbit.m4: New file.
60266         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60267         (signbit): New macro.
60268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60269         REPLACE_SIGNBIT.
60270         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60271         REPLACE_FREXPL into math.h.
60272
60273 2007-04-06  Bruno Haible  <bruno@clisp.org>
60274
60275         * modules/isnanf-nolibm-tests: New file.
60276         * tests/test-isnanf.c: New file.
60277
60278         * modules/isnanf-nolibm: New file.
60279         * lib/isnanf.h: New file.
60280         * lib/isnanf.c: New file.
60281         * lib/isnan.c: Consider the USE_FLOAT macro.
60282         * m4/isnanf.m4: New file.
60283
60284 2007-04-06  Bruno Haible  <bruno@clisp.org>
60285
60286         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60287         (Link): New section.
60288
60289         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60290
60291 2007-04-06  Bruno Haible  <bruno@clisp.org>
60292
60293         Assume the 'long double' type.
60294         * m4/longdouble.m4: Remove file.
60295         * config/srclist.txt: Don't mention longdouble.m4.
60296         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60297         * lib/float+.h: Likewise.
60298         * lib/frexp.c: Likewise.
60299         * lib/printf-args.h: Likewise.
60300         * lib/printf-args.c: Likewise.
60301         * lib/printf-frexp.c: Likewise.
60302         * lib/printf-parse.c: Likewise.
60303         * lib/vasnprintf.c: Likewise.
60304         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60305         * m4/intl.m4: Likewise.
60306         * m4/isnanl.m4: Likewise.
60307         * m4/printf.m4: Likewise.
60308         * m4/printf-frexpl.m4: Likewise.
60309         * m4/vasnprintf.m4: Likewise.
60310         * modules/allocsa (Files): Remove m4/longdouble.m4.
60311         * modules/gettext (Files): Likewise.
60312         * modules/relocatable-prog-wrapper (Files): Likewise.
60313         * modules/vasnprintf (Files): Likewise.
60314         * modules/isnanl (Files): Likewise.
60315         (Include): Simplify.
60316         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60317         (Include): Simplify.
60318         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60319         (Include): Simplify.
60320         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60322         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60324         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60326         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60328         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60330         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60332         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60333         * tests/test-isnanl.c: Likewise.
60334         * tests/test-snprintf-posix.h: Likewise.
60335         * tests/test-sprintf-posix.h: Likewise.
60336         * tests/test-vasnprintf-posix.c: Likewise.
60337         * tests/test-vasnprintf-posix2.c: Likewise.
60338         * tests/test-vasprintf-posix.c: Likewise.
60339
60340 2007-04-06  Bruno Haible  <bruno@clisp.org>
60341
60342         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60343         * lib/math_.h [__DECC]: Include the overridden include file through
60344         #include_next, outside the double-inclusion guard.
60345         * lib/stdio_.h [__DECC]: Likewise.
60346         * lib/stdlib_.h [__DECC]: Likewise.
60347         * lib/string_.h [__DECC]: Likewise.
60348         * lib/time_.h [__DECC]: Likewise.
60349         * lib/wchar_.h [__DECC]: Likewise.
60350         * lib/wctype_.h [__DECC]: Likewise.
60351         * lib/inttypes_.h [__DECC]: Likewise.
60352         Reported by Albert Chin <china@thewrittenword.com> in
60353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60354
60355 2007-04-04  Eric Blake  <ebb9@byu.net>
60356
60357         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60358         1.5.x.
60359
60360 2007-04-04  Bruno Haible  <bruno@clisp.org>
60361
60362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60363         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60364
60365 2007-04-04  Bruno Haible  <bruno@clisp.org>
60366
60367         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60368         results for "%010a" of Infinity and NaN.
60369         * tests/test-vasprintf-posix.c (test_function): Likewise.
60370         * tests/test-snprintf-posix.h (test_function): Likewise.
60371         * tests/test-sprintf-posix.h (test_function): Likewise.
60372         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60373         * tests/test-printf-posix.h (test_function): Likewise.
60374         * tests/test-fprintf-posix.out: Update.
60375         Needed for FreeBSD 6.1.
60376
60377 2007-04-04  Bruno Haible  <bruno@clisp.org>
60378
60379         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60380         directly used by the gnulib modules nor by gnulib-tool.
60381
60382 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * DEPENDENCIES: Give overall description of version dependency
60385         desirability.  Use more-typical names for apps.
60386         Add shell, coreutils, diffutils, grep, tar, gzip.
60387
60388 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60389
60390         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60391
60392 2007-04-04  Karl Berry  <karl@gnu.org>
60393
60394         * MODULES.html.sh (func_module): missing '.
60395
60396 2007-04-03  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/argmatch-tests (Makefile.am): New variable
60399         test_argmatch_LDADD.
60400         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60401         * modules/array-list-tests (Makefile.am): New variable
60402         test_array_list_LDADD.
60403         * modules/array-oset-tests (Makefile.am): New variable
60404         test_array_oset_LDADD.
60405         * modules/avltree-list-tests (Makefile.am): New variable
60406         test_avltree_list_LDADD.
60407         * modules/avltree-oset-tests (Makefile.am): New variable
60408         test_avltree_oset_LDADD.
60409         * modules/avltreehash-list-tests (Makefile.am): New variable
60410         test_avltreehash_list_LDADD.
60411         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60412         test_canonicalize_lgpl_LDADD.
60413         * modules/carray-list-tests (Makefile.am): New variable
60414         test_carray_list_LDADD.
60415         * modules/dirname-tests (Makefile.am): New variable
60416         test_dirname_LDADD.
60417         * modules/linked-list-tests (Makefile.am): New variable
60418         test_linked_list_LDADD.
60419         * modules/linkedhash-list-tests (Makefile.am): New variable
60420         test_linkedhash_list_LDADD.
60421         * modules/rbtree-list-tests (Makefile.am): New variable
60422         test_rbtree_list_LDADD.
60423         * modules/rbtree-oset-tests (Makefile.am): New variable
60424         test_rbtree_oset_LDADD.
60425         * modules/rbtreehash-list-tests (Makefile.am): New variable
60426         test_rbtreehash_list_LDADD.
60427         * modules/xvasprintf-tests (Makefile.am): New variable
60428         test_xvasprintf_LDADD.
60429         Reported by Eric Blake.
60430
60431 2007-04-03  Eric Blake  <ebb9@byu.net>
60432
60433         * DEPENDENCIES: Weaken m4 requirements.
60434
60435 2007-04-03  Bruno Haible  <bruno@clisp.org>
60436
60437         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60438         * modules/isnanl-tests (configure.ac): Likewise.
60439
60440 2007-04-03  Ben Pfaff  <blp@gnu.org>
60441
60442         * modules/iconv_open: Add $(srcdir)/ to source directory
60443         references in Makefile fragments that call gperf, to fix VPATH
60444         builds.
60445
60446 2007-04-03  Bruno Haible  <bruno@clisp.org>
60447
60448         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60449         * lib/ldexpl.c: Undo last change.
60450
60451 2007-04-03  Bruno Haible  <bruno@clisp.org>
60452
60453         * modules/printf-frexpl (Depends-on): Undo last change.
60454         (Files): Add m4/ldexpl.m4.
60455
60456 2007-04-03  Bruno Haible  <bruno@clisp.org>
60457
60458         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60459         * modules/isnanl (Link): New section.
60460
60461         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60462         * modules/frexp (Link): New section.
60463
60464         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60465         * modules/frexpl (Link): New section.
60466
60467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60468         * modules/ldexpl (Link): New section.
60469
60470 2007-04-03  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/TEMPLATE-EXTENDED: New file.
60473         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60474
60475 2007-04-03  Bruno Haible  <bruno@clisp.org>
60476
60477         * DEPENDENCIES: New file.
60478         Suggested by Simon Josefsson.
60479
60480 2007-04-03  Bruno Haible  <bruno@clisp.org>
60481
60482         * doc/gnulib.texi: Escape @.
60483
60484 2007-04-03  James Youngman  <jay@gnu.org>
60485         and Paul Eggert  <eggert@cs.ucla.edu>
60486
60487         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60488         birthtime on all systems that have birthtime, not just those which
60489         use st_birthtimensec rather than st_birthtim.  Putting zero in
60490         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60491         that the birth time is not available for files on an NFS mount.
60492
60493 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60494
60495         * modules/memxor: Move back from crypto/, suggested by Bruno.
60496         * modules/crypto/hmac-sha1: Fix memxor dependency.
60497
60498         * modules/crypto/gc: Moved from ../.
60499
60500 2007-04-02  Eric Blake  <ebb9@byu.net>
60501
60502         * lib/ldexpl.c (includes): Avoid libm.
60503
60504         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60505
60506 2007-04-02  Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60509         on IRIX.
60510
60511 2007-04-02  Bruno Haible  <bruno@clisp.org>
60512
60513         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60514         x86 or x86_64 platforms running MacOS X.
60515         Reported by Ryan Schmidt <@ryandesign.com>.
60516
60517 2007-04-02  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60520         i386.
60521
60522 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60523
60524         * modules/crypto/arcfour: Moved from ../.
60525         * modules/crypto/arcfour-tests: Moved from ../.
60526         * modules/crypto/arctwo: Moved from ../.
60527         * modules/crypto/arctwo-tests: Moved from ../.
60528         * modules/crypto/des: Moved from ../.
60529         * modules/crypto/des-tests: Moved from ../.
60530         * modules/crypto/gc-arcfour: Moved from ../.
60531         * modules/crypto/gc-arcfour-tests: Moved from ../.
60532         * modules/crypto/gc-arctwo: Moved from ../.
60533         * modules/crypto/gc-arctwo-tests: Moved from ../.
60534         * modules/crypto/gc-des: Moved from ../.
60535         * modules/crypto/gc-des-tests: Moved from ../.
60536         * modules/crypto/gc-hmac-md5: Moved from ../.
60537         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60538         * modules/crypto/gc-hmac-sha1: Moved from ../.
60539         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60540         * modules/crypto/gc-md2: Moved from ../.
60541         * modules/crypto/gc-md2-tests: Moved from ../.
60542         * modules/crypto/gc-md4: Moved from ../.
60543         * modules/crypto/gc-md4-tests: Moved from ../.
60544         * modules/crypto/gc-md5: Moved from ../.
60545         * modules/crypto/gc-md5-tests: Moved from ../.
60546         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60547         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60548         * modules/crypto/gc-random: Moved from ../.
60549         * modules/crypto/gc-rijndael: Moved from ../.
60550         * modules/crypto/gc-rijndael-tests: Moved from ../.
60551         * modules/crypto/gc-sha1: Moved from ../.
60552         * modules/crypto/gc-sha1-tests: Moved from ../.
60553         * modules/crypto/gc-tests: Moved from ../.
60554         * modules/crypto/hmac-md5: Moved from ../.
60555         * modules/crypto/hmac-md5-tests: Moved from ../.
60556         * modules/crypto/hmac-sha1: Moved from ../.
60557         * modules/crypto/hmac-sha1-tests: Moved from ../.
60558         * modules/crypto/md2: Moved from ../.
60559         * modules/crypto/md2-tests: Moved from ../.
60560         * modules/crypto/md4: Moved from ../.
60561         * modules/crypto/md4-tests: Moved from ../.
60562         * modules/crypto/md5: Moved from ../.
60563         * modules/crypto/md5-tests: Moved from ../.
60564         * modules/crypto/memxor: Moved from ../.
60565         * modules/crypto/rijndael: Moved from ../.
60566         * modules/crypto/rijndael-tests: Moved from ../.
60567         * modules/crypto/sha1: Moved from ../.
60568
60569 2007-03-30  James Youngman  <jay@gnu.org>
60570
60571         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60572         rename() to change the ctime of a file (because ctime is unaffected
60573         by rename on jfs2 on AIX 5.1).
60574         (main): Start by doing cleanup, in case a previous run failed leaving
60575         test files behind.
60576
60577 2007-03-31  Bruno Haible  <bruno@clisp.org>
60578
60579         Support old proprietary implementations of iconv.
60580         * modules/iconv_open: New file.
60581         * lib/iconv_.h: New file.
60582         * m4/iconv_h.m4: New file.
60583         * lib/iconv_open.c: New file.
60584         * lib/iconv_open-aix.gperf: New file.
60585         * lib/iconv_open-hpux.gperf: New file.
60586         * lib/iconv_open-irix.gperf: New file.
60587         * lib/iconv_open-osf.gperf: New file.
60588         * m4/iconv_open.m4: New file.
60589         * modules/linebreak (Depends-on): Add iconv_open.
60590         * modules/striconv (Depends-on): Likewise.
60591         * modules/striconveh (Depends-on): Likewise.
60592         * modules/unicodeio (Depends-on): Likewise.
60593         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60594         (iconv_t)(-1).
60595         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60596         conversion if cd is (iconv_t)(-1).
60597         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60598         is not possible.
60599
60600 2007-03-31  Bruno Haible  <bruno@clisp.org>
60601
60602         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60603         work on Solaris either. Protect also second use of "autodetect_jp".
60604
60605 2007-03-31  Bruno Haible  <bruno@clisp.org>
60606
60607         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60608         the function is not present.
60609
60610 2007-03-31  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60613         the function is not present.
60614
60615 2007-03-31  Bruno Haible  <bruno@clisp.org>
60616
60617         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60618         a bug in HP-UX iconv_open().
60619
60620 2007-03-31  Bruno Haible  <bruno@clisp.org>
60621
60622         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60623         (Mathematics <math.h>): New section, add fpieee.
60624         (Input/output <stdio.h>): Add fseterr.
60625         (Mathematics <math.h>): New section, add printf-frexp.
60626         (Container data structures): Add sublist.
60627         (Core language properties): Add fpucw, inline.
60628         (Functions for greatest-width integer types <inttypes.h>): Add
60629         imaxabs, imaxdiv, inttypes.
60630         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60631         isnanl-nolibm, ldexp.
60632         (Mathematics <math.h>): New section, add printf-frexpl.
60633         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60634         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60635         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60636         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60637         (Unicode string functions): Add unistr/u*-mbtoucr.
60638         (Java): Add javacomp-script, javaexec-script.
60639         (C#): Add csharpcomp-script, csharpexec-script.
60640         (Support for building libraries and executables): Add havelib,
60641         relocatable-*.
60642         (Support for maintaining and releasing projects): Renamed from
60643         'Support for maintaining and release projects'. Add announce-gen.
60644
60645 2007-03-31  Bruno Haible  <bruno@clisp.org>
60646
60647         * README: Talk primarily about git.
60648         (git and CVS): Renamed from CVS.
60649         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60650         gnulib is available through git.
60651         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60652
60653 2007-03-30  Bruno Haible  <bruno@clisp.org>
60654
60655         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60656         * lib/poll_.h: Likewise.
60657         * lib/stat_.h: Likewise.
60658         * lib/sys_time_.h: Likewise.
60659         * lib/sysexit_.h: Likewise.
60660         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60661         * lib/stdbool_.h: Likewise.
60662         * lib/byteswap_.h: Add double-inclusion guard.
60663
60664 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60665
60666         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60667
60668 2007-03-30  Karl Berry  <karl@gnu.org>
60669
60670         * config/srclist-update: double space after USA in the license
60671         substitution, since that's how it's usually (?) written.
60672
60673 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60676         reported by Bruno Haible.
60677
60678 2007-03-29  Bruno Haible  <bruno@clisp.org>
60679
60680         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60681         a bug in AIX iconv().
60682
60683 2007-03-29  Bruno Haible  <bruno@clisp.org>
60684
60685         * modules/ldexpl-tests: New file.
60686         * tests/test-ldexpl.c: New file.
60687
60688 2007-03-29  Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/ldexpl.c: Include fpucw.h.
60691         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60692         multiplication.
60693         * modules/ldexpl (Depends-on): Add fpucw.
60694
60695 2007-03-29  Bruno Haible  <bruno@clisp.org>
60696
60697         * modules/ldexpl: New file.
60698         * m4/ldexpl.m4: New file.
60699         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60700         set.
60701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60702         REPLACE_LDEXPL.
60703         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60704         REPLACE_LDEXPL.
60705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60706         gl_FUNC_LDEXPL_WORKS.
60707         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60708         * modules/mathl (Files): Remove lib/ldexpl.c.
60709         (Depends-on): Add ldexpl.
60710
60711 2007-03-29  Bruno Haible  <bruno@clisp.org>
60712
60713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60714
60715 2007-03-29  Bruno Haible  <bruno@clisp.org>
60716
60717         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60718         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60719         and possibly also HP-UX.
60720         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60721         work on AIX, IRIX, HP-UX, OSF/1.
60722         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60723         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60724         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60725         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60726         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60727         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60728
60729 2007-03-29  Bruno Haible  <bruno@clisp.org>
60730
60731         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60732
60733 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60736         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60737
60738 2007-03-29  Eric Blake  <ebb9@byu.net>
60739
60740         * lib/acl-internal.h: Remove redundant include.
60741         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60742         Cygwin when a file is locked.
60743
60744 2007-03-29  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60747         file.
60748         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60749
60750 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60753         try to remove a parent directory if the child couldn't be removed
60754         (except for the first rmdir, which could fail because the child
60755         doesn't exist).  Problem reported by Jeff Blaine in
60756         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60757
60758 2007-03-28  Bruno Haible  <bruno@clisp.org>
60759
60760         * lib/striconveh.c (utf8conv_carefully): New function.
60761         (mem_cd_iconveh_internal): Invoke it.
60762
60763 2007-03-28  Bruno Haible  <bruno@clisp.org>
60764
60765         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60766         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60767         input.
60768         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60769         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60770         unistr/u8-uctomb.
60771
60772 2007-03-28  Bruno Haible  <bruno@clisp.org>
60773
60774         * modules/unistr/u8-mbtoucr: New file.
60775         * lib/unistr/u8-mbtoucr.c: New file.
60776         * modules/unistr/u16-mbtoucr: New file.
60777         * lib/unistr/u16-mbtoucr.c: New file.
60778         * modules/unistr/u16-mbtoucr: New file.
60779         * lib/unistr/u16-mbtoucr.c: New file.
60780         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60781
60782 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60783             Bruno Haible  <bruno@clisp.org>
60784
60785         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60786         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60787         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60788
60789         * m4/stdio_h.m4: Add stubs for vasprintf too.
60790
60791         * modules/stdio: Support vasprintf in sed command.
60792
60793         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60794         vasprintf.h.  Add stdio module indicator.
60795
60796         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60797         vasprintf.h.
60798
60799         * lib/vasprintf.h: File removed.
60800
60801         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60802         * lib/vasprintf.c: Ditto.
60803         * lib/xvasprintf.c: Ditto.
60804         * tests/test-vasprintf-posix.c: Ditto.
60805         * tests/test-vasprintf.c: Ditto.
60806
60807 2007-03-27  Bruno Haible  <bruno@clisp.org>
60808
60809         Make vasnprintf multithread-safe.
60810         * lib/vasnprintf.c (decimal_point_char): New function.
60811         (VASNPRINTF): Use it.
60812         Suggested by Simon Josefsson.
60813
60814 2007-03-27  Eric Blake  <ebb9@byu.net>
60815
60816         Support sub-second birthtime on cygwin.
60817         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60818         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60819         (get_stat_birthtime): Also work with st_birthtim.
60820
60821 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60824         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60825         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60826         (get_stat_birthtime_ns): Simplify compile-time tests.
60827         (get_stat_birthtime): Change the API to look like
60828         get_stat_mtime etc., except return a negative tv_nsec on error.
60829         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60830         Don't check for "spare" fields.
60831         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60832         or for struct stat.st_birthtime, as these tests aren't used.
60833         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60834
60835 2007-03-27  Bruno Haible  <bruno@clisp.org>
60836
60837         * lib/stat-time.h: Include <sys/stat.h>.
60838
60839 2007-03-27  James Youngman  <jay@gnu.org>
60840
60841         * lib/stat-time.h (get_stat_birthtime): New function for
60842           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60843         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60844           and its variants.
60845         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60846         * modules/stat-time-test: New file.
60847         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60848
60849 2007-03-26  Bruno Haible  <bruno@clisp.org>
60850
60851         Better support of signalling NaNs.
60852         * lib/atanl.c: Include isnanl.h.
60853         (atanl): Perform test for NaN at the beginning of the function and
60854         through a call to isnanl.
60855         * lib/cosl.c: Include isnanl.h.
60856         (cosl): Perform test for NaN at the beginning of the function and
60857         through a call to isnanl.
60858         * lib/ldexpl.c: Include isnanl.h.
60859         (ldexpl): Perform test for NaN through a call to isnanl.
60860         * lib/logl.c: Include isnanl.h.
60861         (logl): Perform test for NaN at the beginning of the function and
60862         through a call to isnanl.
60863         * lib/sinl.c: Include isnanl.h.
60864         (sinl): Perform test for NaN at the beginning of the function and
60865         through a call to isnanl.
60866         * lib/sqrtl.c: Include isnanl.h.
60867         (sqrtl): Perform test for NaN at the beginning of the function and
60868         through a call to isnanl.
60869         * lib/tanl.c: Include isnanl.h.
60870         (tanl): Perform test for NaN at the beginning of the function and
60871         through a call to isnanl.
60872         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60873         * modules/mathl (Depends-on): Add isnanl.
60874
60875 2007-03-26  Eric Blake  <ebb9@byu.net>
60876
60877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60878         regression in logic sense of previous patch.
60879
60880 2007-03-26  Bruno Haible  <bruno@clisp.org>
60881
60882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60883         unportable shell command "if ! ...".
60884         Reported by Ralf Wildenhues.
60885
60886 2007-03-25  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60889         <sysexits.h> file, and only add EX_CONFIG.
60890         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60891         absolute file name and whether it is sufficient. Substitute also
60892         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60893         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60894         ABSOLUTE_SYSEXITS_H into sysexits.h.
60895
60896 2007-03-25  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60899         hints is NULL.
60900
60901 2007-03-25  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60904         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60905
60906 2007-03-25  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/vasnprintf.c: Include langinfo.h.
60909         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60910         multithread-safe.
60911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60920         Reported by Simon Josefsson.
60921
60922 2007-03-25  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60925         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60926         * modules/vasnprintf (Depends-on): Add stdint.
60927
60928 2007-03-25  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/fpieee: New file.
60931         * m4/fpieee.m4: New file.
60932         * modules/isnan-nolibm (Depends-on): Add fpieee.
60933         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60934         * modules/isnanl (Depends-on): Add fpieee.
60935
60936 2007-03-25  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60939
60940 2007-03-25  Bruno Haible  <bruno@clisp.org>
60941
60942         Avoid test failures on IRIX 6.5.
60943         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60944         (main): Use it.
60945         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60946         macros.
60947         (main): Use them.
60948
60949 2007-03-25  Bruno Haible  <bruno@clisp.org>
60950
60951         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60952         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60953         exists but doesn't work.
60954         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60955         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60957         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60958         math.h.
60959
60960 2007-03-25  Bruno Haible  <bruno@clisp.org>
60961
60962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60963         returns inf. Needed on IRIX 6.5.
60964
60965 2007-03-25  Bruno Haible  <bruno@clisp.org>
60966
60967         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60968         (main): Use isnanl instead of x != x idiom.
60969         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60970
60971         * tests/test-frexp.c: Include isnan.h.
60972         (main): Use isnan instead of x != x idiom.
60973         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60974
60975 2007-03-25  Bruno Haible  <bruno@clisp.org>
60976
60977         * tests/test-frexp.c (NaN): New function/macro.
60978         (main): Use it instead of 0.0 / 0.0.
60979         * tests/test-isnan.c (NaN): New function/macro.
60980         (main): Use it instead of 0.0 / 0.0.
60981         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60982         (test_function): Use it instead of 0.0 / 0.0.
60983         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60984         (test_function): Use it instead of 0.0 / 0.0.
60985         * tests/test-snprintf-posix.h (NaN): New function/macro.
60986         (test_function): Use it instead of 0.0 / 0.0.
60987         * tests/test-sprintf-posix.h (NaN): New function/macro.
60988         (test_function): Use it instead of 0.0 / 0.0.
60989         * tests/test-fprintf-posix.h (NaN): New function/macro.
60990         (test_function): Use it instead of 0.0 / 0.0.
60991         * tests/test-printf-posix.h (NaN): New function/macro.
60992         (test_function): Use it instead of 0.0 / 0.0.
60993
60994         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60995
60996 2007-03-25  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60999
61000 2007-03-25  Bruno Haible  <bruno@clisp.org>
61001
61002         * lib/regexec.c (merge_state_with_log): Make static.
61003
61004 2007-03-25  Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/trigl.c (kernel_rem_pio2): Make static.
61007
61008 2007-03-25  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/sincosl.c (sincosl_table): Make static.
61011
61012 2007-03-25  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61015         if the compiler does not support C99.
61016
61017 2007-03-25  Bruno Haible  <bruno@clisp.org>
61018
61019         * modules/time (Makefile.am): Ensure all rule action lines start with a
61020         tab.
61021
61022 2007-03-24  Bruno Haible  <bruno@clisp.org>
61023
61024         * modules/tsearch-tests: New file.
61025         * tests/test-tsearch.sh: New file.
61026         * tests/test-tsearch.c: New file, mostly copied from glibc.
61027
61028         * modules/search-tests: New file.
61029         * tests/test-search.c: New file.
61030
61031         * modules/search: New file.
61032         * lib/search_.h: New file, incorporating lib/tsearch.h.
61033         * m4/search_h.m4: New file.
61034         * lib/tsearch.h: Remove file.
61035         * lib/tsearch.c: Include search.h instead of tsearch.h.
61036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61037         HAVE_TSEARCH.
61038         * modules/tsearch (Files): Remove lib/tsearch.h.
61039         (Depends-on): Add search.
61040         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61041         (Include): Change tsearch.h into search.h.
61042
61043 2007-03-24  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/fpucw: New file.
61046         * lib/fpucw.h: New file.
61047         * lib/frexp.c: Include fpucw.h.
61048         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61049         (FUNC): Use them.
61050         * lib/printf-frexp.c: Include fpucw.h.
61051         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61052         (FUNC): Use them.
61053         * lib/vasnprintf.c: Include fpucw.h.
61054         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61055         'long double' calculations.
61056         * tests/test-frexpl.c: Include fpucw.h.
61057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61058         * tests/test-printf-frexpl.c: Include fpucw.h.
61059         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61060         * modules/frexpl (Depends-on): Add fpucw.
61061         * modules/printf-frexpl (Depends-on): Likewise.
61062         * modules/fprintf-posix (Depends-on): Likewise.
61063         * modules/snprintf-posix (Depends-on): Likewise.
61064         * modules/sprintf-posix (Depends-on): Likewise.
61065         * modules/vasnprintf-posix (Depends-on): Likewise.
61066         * modules/vasprintf-posix (Depends-on): Likewise.
61067         * modules/vfprintf-posix (Depends-on): Likewise.
61068         * modules/vsnprintf-posix (Depends-on): Likewise.
61069         * modules/vsprintf-posix (Depends-on): Likewise.
61070         * modules/frexpl-tests (Depends-on): Likewise.
61071         * modules/printf-frexpl-tests (Depends-on): Likewise.
61072
61073 2007-03-24  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/float+.h: New file.
61076         * lib/isnan.c: Include float+.h.
61077         (SIZE): New macro.
61078         (FUNC): Compare only SIZE bytes of the value.
61079         * lib/vasnprintf.c: Include float+.h.
61080         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61081         SIZEOF_LDBL or SIZEOF_DBL bytes.
61082         * modules/isnan-nolibm (Files): Add lib/float+.h.
61083         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61084         * modules/isnanl (Files): Add lib/float+.h.
61085         * modules/vasnprintf (Files): Add lib/float+.h.
61086
61087 2007-03-24  Bruno Haible  <bruno@clisp.org>
61088
61089         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61090         include isnanl-nolibm.h.
61091
61092 2007-03-24  Bruno Haible  <bruno@clisp.org>
61093
61094         * tests/test-read-file.c (main): Don't produce spurious output for
61095         expected situations. Make the test fail if it encountered unexpected
61096         results.
61097
61098 2007-03-24  Bruno Haible  <bruno@clisp.org>
61099
61100         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61101         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61102
61103 2007-03-24  Bruno Haible  <bruno@clisp.org>
61104
61105         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61106
61107 2007-03-24  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61110         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61111
61112         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61113         * modules/utf8-ucs4: Turn into a symbolic link to module
61114         unistr/u8-mbtouc.
61115
61116         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61117         utf8-ucs4-unsafe.
61118         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61119         unistr/u8-mbtouc-unsafe.
61120
61121         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61122         * modules/utf16-ucs4: Turn into a symbolic link to module
61123         unistr/u16-mbtouc.
61124
61125         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61126         utf16-ucs4-unsafe.
61127         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61128         unistr/u16-mbtouc-unsafe.
61129
61130         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61131         * modules/ucs4-utf8: Turn into a symbolic link to module
61132         unistr/u8-ubtomb.
61133
61134         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61135         * modules/ucs4-utf16: Turn into a symbolic link to module
61136         unistr/u16-ubtomb.
61137
61138 2007-03-24  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61141         Enable the function only if HAVE_INLINE.
61142         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61143         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61144         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61145         Enable the function only if HAVE_INLINE.
61146         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61147         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61148         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61149         Enable the function only if HAVE_INLINE.
61150         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61151         Enable the function only if HAVE_INLINE.
61152         * modules/utf8-ucs4: Update.
61153         * modules/utf8-ucs4-unsafe: Update.
61154         * modules/utf16-ucs4: Update.
61155         * modules/utf16-ucs4-unsafe: Update.
61156         * modules/ucs4-utf8: Update.
61157         * modules/ucs4-utf16: Update.
61158
61159 2007-03-24  Bruno Haible  <bruno@clisp.org>
61160
61161         * lib/utf8-ucs4.h: Remove file.
61162         * lib/utf8-ucs4-unsafe.h: Remove file.
61163         * lib/utf16-ucs4.h: Remove file.
61164         * lib/utf16-ucs4-unsafe.h: Remove file.
61165         * lib/ucs4-utf8.h: Remove file.
61166         * lib/ucs4-utf16.h: Remove file.
61167         * lib/unistr.h: Include their previous contents.
61168         * m4/utf-ucs4.m4: Remove file.
61169         * m4/ucs4-utf.m4: Remove file.
61170         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61171         (Depends-on): Add unistr/base.
61172         (configure.ac): Remove gl_UTF_UCS4.
61173         (Makefile.am): Update.
61174         (Include): Change to unistr.h.
61175         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61176         (Depends-on): Add unistr/base.
61177         (configure.ac): Remove gl_UTF_UCS4.
61178         (Makefile.am): Update.
61179         (Include): Change to unistr.h.
61180         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61181         (Depends-on): Add unistr/base.
61182         (configure.ac): Remove gl_UTF_UCS4.
61183         (Makefile.am): Update.
61184         (Include): Change to unistr.h.
61185         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61186         (Depends-on): Add unistr/base.
61187         (configure.ac): Remove gl_UTF_UCS4.
61188         (Makefile.am): Update.
61189         (Include): Change to unistr.h.
61190         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61191         (Depends-on): Add unistr/base.
61192         (configure.ac): Remove gl_UCS4_UTF.
61193         (Makefile.am): Update.
61194         (Include): Change to unistr.h.
61195         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61196         (Depends-on): Add unistr/base.
61197         (configure.ac): Remove gl_UCS4_UTF.
61198         (Makefile.am): Update.
61199         (Include): Change to unistr.h.
61200         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61201         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61202         utf8-ucs4-unsafe.h.
61203         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61204         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61205         utf16-ucs4-unsafe.h.
61206         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61207         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61208         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61209         * lib/unistr/u8-strchr.c: Likewise.
61210         * lib/unistr/u8-strrchr.c: Likewise.
61211         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61212         * lib/unistr/u16-strchr.c: Likewise.
61213         * lib/unistr/u16-strrchr.c: Likewise.
61214         * lib/striconveh.c: Update.
61215         * lib/linebreak.c: Update.
61216
61217 2007-03-24  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61220         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61221
61222 2007-03-22  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61225
61226 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61227
61228         * MODULES.html.sh (File system functions): New module write-any-file.
61229         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61230         * m4/write-any-file.m4: New files.
61231
61232 2007-03-23  Eric Blake  <ebb9@byu.net>
61233
61234         * gnulib-tool: Rearrange space-tab sequences, since some editors
61235         like to eat them.
61236
61237 2007-03-23  Eric Blake  <ebb9@byu.net>
61238
61239         * lib/version-etc.c (version_etc_va): Update license wording to
61240         be more concise.  Recommended by Richard Stallman.
61241
61242 2007-03-22  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/poll.c (MSG_PEEK): New fallback definition.
61245
61246 2007-03-22  Bruno Haible  <bruno@clisp.org>
61247
61248         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61249         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61250         (main): Update.
61251         Fixes a compilation error on BeOS.
61252
61253 2007-03-22  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/frexpl-tests: New file.
61256         * tests/test-frexpl.c: New file.
61257
61258         * modules/frexpl: New file.
61259         * m4/frexpl.m4: New file.
61260         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61261         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61263         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61264         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61265         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61266
61267 2007-03-22  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/frexpl.c: Share code with lib/frexp.c.
61270         * modules/mathl (Files): Add lib/frexp.c.
61271         (Depends-on): Add isnanl-nolibm.
61272
61273 2007-03-22  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/printf-frexp (Files): Add m4/frexp.m4.
61276         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61277         only if the found frexp function actually works.
61278
61279 2007-03-22  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/frexp.c: Remove older implementation that uses divisions.
61282
61283 2007-03-21  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/frexp-tests: New file.
61286         * tests/test-frexp.c: New file.
61287
61288         * modules/frexp: New file.
61289         * lib/frexp.c: New file.
61290         * m4/frexp.m4: New file.
61291         * lib/math_.h (frexp): New declaration.
61292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61293         REPLACE_FREXP.
61294         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61295
61296 2007-03-21  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/isnanl-tests: New file.
61299         * tests/test-isnanl.c: New file.
61300
61301         * modules/isnanl: New file.
61302         * lib/isnanl.h: New file.
61303         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61304         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61305         gl_FUNC_ISNANL_WORKS.
61306         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61307         New macros.
61308
61309 2007-03-21  Bruno Haible  <bruno@clisp.org>
61310
61311         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61312         lib/isnanl.h.
61313         (Include): Update.
61314         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61315         * lib/vasnprintf.c: Update.
61316         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61317         tests/test-isnanl.h, remove tests/test-isnanl.c.
61318         (Makefile.am): Update.
61319         * tests/test-isnanl-nolibm.c: New file.
61320         * tests/test-isnanl.h: New file.
61321         * tests/test-isnanl.c: Remove file.
61322
61323 2007-03-21  Jim Meyering  <jim@meyering.net>
61324
61325         When trying to open ".", treat ESTALE like EACCES.
61326         * lib/savewd.c (savewd_save): Resort to forking not just upon
61327         failure with EACCES, but also when errno is ESTALE.
61328
61329 2007-03-20  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61332         Needed on AIX 5.1. Reported by Matthew Woehlke.
61333
61334 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         Suggestions by Bruno Haible:
61337         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61338         our own.
61339         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61340         * modules/acl (Depends-on): Add gettext.
61341
61342 2007-03-19  Bruno Haible  <bruno@clisp.org>
61343
61344         * modules/iconvme: Remove file.
61345         * lib/iconvme.h: Remove file.
61346         * lib/iconvme.c: Remove file.
61347         * m4/iconvme.m4: Remove file.
61348
61349 2007-03-19  Bruno Haible  <bruno@clisp.org>
61350
61351         * doc/relocatable-maint.texi: Break long shell script line.
61352         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61353
61354 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61357         handle file_has_acl.
61358         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61359         * lib/acl.c: Move header inclusions and related macro defns into
61360         lib/acl-internal.h.
61361         (S_ISLNK): Remove defn, since that's now done for us.
61362         (file_has_acl): Move to lib/file-has-acl.c.
61363         Call acl_trivial if available.  This is the crucial part of the fix.
61364         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61365         shared within the library.  Rewrite a bit, partly to make it compatible
61366         with the GNU coding style.
61367         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61368         Remove unnecessary double-quotes.
61369         Don't test for acl_to_text; the build will catch that.
61370         Replace acl_entries if it doesn't exist and it is needed.
61371         Check for -lsec and acl_trivial (as used on Solaris 10).
61372         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61373         lib/file-has-acl.c.
61374         (Depends-on): Add sys_stat, for S_ISLNK.
61375
61376 2007-03-19  Ben Pfaff  <blp@gnu.org>
61377
61378         * doc/gnulib.texi: Fix typos.
61379         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61380
61381 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61384         If size is zero here, buf must be zero.
61385
61386 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61387
61388         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61389         <bruno@clisp.org>.
61390
61391 2007-03-18  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61394         Suggested by Eric Blake.
61395
61396 2007-03-18  Ben Pfaff  <blp@gnu.org>
61397
61398         * doc/relocatable.texi: Recommend using as prefix a directory
61399         that does not exist and will never be created.  Based on
61400         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61401         and others.
61402
61403 2007-03-17  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/fchownat.c: Include lchown.h.
61406
61407 2007-03-17  Bruno Haible  <bruno@clisp.org>
61408
61409         Fix endless loop when the given allocated size was > INT_MAX.
61410         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61411         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61412         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61413         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61414         * lib/sprintf.c (sprintf): Likewise.
61415
61416 2007-03-17  Bruno Haible  <bruno@clisp.org>
61417
61418         * tests/test-argp-2.sh (func_compare): Output a context diff.
61419
61420 2007-03-17  Bruno Haible  <bruno@clisp.org>
61421
61422         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61423         locale's decimal-point character.
61424
61425 2007-03-17  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61428         before comparing it. Needed because on some platforms (e.g. x86) a
61429         'long double' occupies less bytes than sizeof (long double).
61430
61431 2007-03-17  Bruno Haible  <bruno@clisp.org>
61432
61433         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61434         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61435         * tests/test-getaddrinfo.c (simple): Likewise.
61436         * tests/test-read-file.c (main): Likewise.
61437
61438 2007-03-17  Bruno Haible  <bruno@clisp.org>
61439
61440         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61441
61442 2007-03-17  Bruno Haible  <bruno@clisp.org>
61443
61444         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61445         unused variable.
61446
61447 2007-03-17  Bruno Haible  <bruno@clisp.org>
61448
61449         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61450         * tests/test-c-strncasecmp.c: Likewise.
61451
61452 2007-03-17  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/stdlib (Depends-on): Add unistd.
61455         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61456         Needed for MacOS X 10.3.
61457
61458 2007-03-17  Bruno Haible  <bruno@clisp.org>
61459
61460         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61461
61462 2007-03-17  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61465
61466 2007-03-17  Bruno Haible  <bruno@clisp.org>
61467
61468         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61469         to reflect files copied from gnulib (with or without modifications).
61470         Suggested by Jim Meyering.
61471
61472 2007-03-17  Eric Blake  <ebb9@byu.net>
61473
61474         * NEWS: Document stdlib change from 2007-02-18.
61475
61476 2007-03-17  Jim Meyering  <jim@meyering.net>
61477
61478         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61479         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61480         someone uses a name containing shell meta-characters.
61481         Reported by Alfred M. Szmidt.
61482
61483         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61484
61485 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61486
61487         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61488         and copy gettext configuration files only if configure.ac contains
61489         a use of AM_GNU_GETTEXT_VERSION.
61490
61491 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61492
61493         * build-aux/bootstrap (gnulib_name): New variable.
61494         (gnulib_tool_options): Use it.
61495
61496 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61497
61498         * tests/test-des.c: Use new namespace.
61499
61500 2007-03-15  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61503         Reported by James Youngman <jay@gnu.org>.
61504
61505 2007-03-15  Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61508         declared prototype. Needed with cc on OSF/1 5.1.
61509
61510 2007-03-15  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61513         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61514         (struct gl_list_implementation): Add dispose_fn argument to the
61515         'create_empty', 'create' methods.
61516         (struct gl_list_impl_base): Add field 'dispose_fn'.
61517         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61518         argument.
61519         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61520         dispose_fn argument.
61521         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61522         dispose_fn on the dropped values.
61523         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61524         dispose_fn argument.
61525         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61526         dropped values.
61527         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61528         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61529         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61530         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61531         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61532         argument.
61533         (gl_tree_list_free): Call dispose_fn on the dropped values.
61534         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61535         the dropped values.
61536         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61537         Add dispose_fn argument.
61538         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61539         Call dispose_fn on the dropped values.
61540         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61541         Add dispose_fn argument.
61542         (gl_sublist_create): Initialize the 'dispose_fn' field.
61543         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61544         * tests/test-array_list.c (main): Update.
61545         * tests/test-carray_list.c (main): Update.
61546         * tests/test-avltree_list.c (main): Update.
61547         * tests/test-rbtree_list.c (main): Update.
61548         * tests/test-avltreehash_list.c (main): Update.
61549         * tests/test-rbtreehash_list.c (main): Update.
61550         * tests/test-linked_list.c (main): Update.
61551         * tests/test-linkedhash_list.c (main): Update.
61552         * tests/test-array_oset.c (main): Update.
61553
61554 2007-03-15  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61557         (gl_oset_create_empty): Add dispose_fn argument.
61558         (struct gl_oset_implementation): Add dispose_fn argument to
61559         'create_empty' method.
61560         (struct gl_oset_impl_base): Add dispose_fn field.
61561         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61562         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61563         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61564         values.
61565         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61566         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61567         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61568         dropped value.
61569         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61570         dropped value.
61571         * tests/test-array_oset.c (main): Update.
61572         * tests/test-avltree_oset.c (main): Update.
61573         * tests/test-rbtree_oset.c (main): Update.
61574         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61575
61576 2007-03-13  Bruno Haible  <bruno@clisp.org>
61577
61578         * tests/test-stdbool.c (i): Update after last patch.
61579
61580 2007-03-12  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61583         the iswprint macro. Needed on Solaris 2.5.1.
61584
61585 2007-03-12  Bruno Haible  <bruno@clisp.org>
61586
61587         * tests/test-printf-frexp.c (main): Declare x as volatile.
61588
61589 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61590
61591         * doc/gnulib.texi (Build robot for gnulib): New section.
61592
61593 2007-03-12  Jim Meyering  <jim@meyering.net>
61594
61595         * build-aux/bootstrap: New file.
61596         * build-aux/bootstrap.conf: New file, from coreutils.
61597
61598 2007-03-11  Bruno Haible  <bruno@clisp.org>
61599
61600         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61601
61602 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61603
61604         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61605         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61606         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61607
61608 2007-03-11  Bruno Haible  <bruno@clisp.org>
61609
61610         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61611         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61612
61613 2007-03-11  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61616         formula. Needed for SunPRO C 5.0.
61617
61618 2007-03-11  Bruno Haible  <bruno@clisp.org>
61619
61620         * modules/long-options (Depends-on): Add getopt.
61621
61622 2007-03-11  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/modechange (Depends-on): Add stdbool.
61625
61626 2007-03-11  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/i-ring (Depends-on): Add stdbool.
61629
61630 2007-03-11  Bruno Haible  <bruno@clisp.org>
61631
61632         * modules/gc-des (Depends-on): Add stdbool.
61633
61634 2007-03-11  Bruno Haible  <bruno@clisp.org>
61635
61636         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61637
61638 2007-03-11  Bruno Haible  <bruno@clisp.org>
61639
61640         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61641
61642 2007-03-11  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61645
61646 2007-03-11  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/vasnprintf.c (sprintf): Undefine.
61649
61650 2007-03-11  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61653         initializers in SunPRO C and Compaq C compilers.
61654
61655 2007-03-11  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61658         decrementing code ANSI C compliant.
61659
61660 2007-03-11  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61663         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61664
61665 2007-03-11  Bruno Haible  <bruno@clisp.org>
61666
61667         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61668         <stdbool.h> substitute doesn't pass.
61669
61670 2007-03-11  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61673
61674 2007-03-11  Bruno Haible  <bruno@clisp.org>
61675
61676         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61677         script, for submission to autobuild.josefsson.org.
61678
61679 2007-03-10  Bruno Haible  <bruno@clisp.org>
61680
61681         * modules/canonicalize-lgpl-tests: New file.
61682         * tests/test-canonicalize-lgpl.sh: New file.
61683         * tests/test-canonicalize-lgpl.c: New file.
61684
61685         * modules/c-strcase-tests: New file.
61686         * tests/test-c-strcase.sh: New file.
61687         * tests/test-c-strcasecmp.c: New file.
61688         * tests/test-c-strncasecmp.c: New file.
61689
61690         * modules/atexit-tests: New file.
61691         * tests/test-atexit.sh: New file.
61692         * tests/test-atexit.c: New file.
61693
61694 2007-03-10  Bruno Haible  <bruno@clisp.org>
61695
61696         * tests/test-binary-io.sh: Use temporary filenames that are not so
61697         likely to clash with those of other tests (in a parallel make).
61698         * tests/test-binary-io.c: Likewise.
61699
61700 2007-03-10  Bruno Haible  <bruno@clisp.org>
61701
61702         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61703         fallback; use #error instead.
61704         Suggested by Simon Josefsson.
61705
61706 2007-03-10  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61709         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61710         first and the last.
61711
61712 2007-03-10  Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61715
61716 2007-03-10  Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61719         "make distcheck".
61720         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61721         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61722         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61723
61724 2007-03-10  Bruno Haible  <bruno@clisp.org>
61725
61726         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61727         variable.
61728         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61729         variable.
61730
61731 2007-03-09  Eric Blake  <ebb9@byu.net>
61732         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61733
61734         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61735         types are not being provided by gnulib.
61736         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61737         types are supported.
61738
61739 2007-03-10  Bruno Haible  <bruno@clisp.org>
61740
61741         * lib/stdio_.h (__attribute__): New macro.
61742         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61743         vsprintf): Specify __attribute__ __format__ for GCC.
61744         Suggested by Eric Blake.
61745
61746 2007-03-09  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/printf-posix-tests: New file.
61749         * tests/test-printf-posix.sh: New file.
61750         * tests/test-printf-posix.c: New file.
61751
61752         * modules/printf-posix: New file.
61753         * lib/printf.c: New file.
61754         * m4/printf-posix-rpl.m4: New file.
61755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61756         REPLACE_PRINTF.
61757         * lib/stdio_.h (printf): New declaration.
61758         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61759         ____strfmon____): New macros.
61760         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61761         REPLACE_PRINTF.
61762
61763 2007-03-09  Bruno Haible  <bruno@clisp.org>
61764
61765         * tests/test-vasnprintf-posix2.sh: New file.
61766         * tests/test-vasnprintf-posix2.c: New file.
61767         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61768         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61769         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61770
61771         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61772         a locale dependent decimal point, rather than always '.'.
61773
61774 2007-03-09  Eric Blake  <ebb9@byu.net>
61775
61776         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61777         spite of platforms like Tandem/NSK that define it to -1.
61778
61779 2007-03-08  Bruno Haible  <bruno@clisp.org>
61780
61781         * modules/vprintf-posix-tests: New file.
61782         * tests/test-vprintf-posix.sh: New file.
61783         * tests/test-vprintf-posix.c: New file.
61784         * tests/test-printf-posix.h: New file.
61785
61786         * modules/vprintf-posix: New file.
61787         * lib/vprintf.c: New file.
61788         * m4/vprintf-posix.m4: New file.
61789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61790         REPLACE_VPRINTF.
61791         * lib/stdio_.h (vprintf): New declaration.
61792         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61793         REPLACE_VPRINTF.
61794
61795 2007-03-08  Bruno Haible  <bruno@clisp.org>
61796
61797         * modules/fprintf-posix-tests: New file.
61798         * tests/test-fprintf-posix.sh: New file.
61799         * tests/test-fprintf-posix.c: New file.
61800
61801         * modules/fprintf-posix: New file.
61802         * lib/fprintf.c: New file.
61803         * m4/fprintf-posix.m4: New file.
61804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61805         REPLACE_FPRINTF.
61806         * lib/stdio_.h (fprintf): New declaration.
61807         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61808         REPLACE_FPRINTF.
61809
61810 2007-03-08  Bruno Haible  <bruno@clisp.org>
61811
61812         * modules/vfprintf-posix-tests: New file.
61813         * tests/test-vfprintf-posix.sh: New file.
61814         * tests/test-vfprintf-posix.c: New file.
61815         * tests/test-fprintf-posix.h: New file.
61816         * tests/test-fprintf-posix.out: New file.
61817
61818         * modules/vfprintf-posix: New file.
61819         * lib/vfprintf.c: New file.
61820         * m4/vfprintf-posix.m4: New file.
61821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61822         REPLACE_VFPRINTF.
61823         * lib/stdio_.h (vfprintf): New declaration.
61824         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61825         REPLACE_VFPRINTF.
61826
61827 2007-03-08  Bruno Haible  <bruno@clisp.org>
61828
61829         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61830
61831 2007-03-08  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61834         instead of 'expr' invocations.
61835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61840         Suggested by Paul Eggert.
61841
61842 2007-03-08  Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/fseterr-tests: New file.
61845         * tests/test-fseterr.c: New file.
61846
61847         * modules/fseterr: New file.
61848         * lib/fseterr.h: New file.
61849         * lib/fseterr.c: New file.
61850
61851 2007-03-08  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61854         * lib/getopt_.h: Likewise.
61855         * lib/mbswidth.h: Likewise.
61856         * lib/setenv.h: Likewise.
61857         * lib/vasnprintf.h: Likewise.
61858         * lib/vasprintf.h: Likewise.
61859         * lib/verror.h: Likewise.
61860         * lib/xsetenv.h: Likewise.
61861         * lib/xvasprintf.h: Likewise.
61862
61863 2007-03-08  Jim Meyering  <jim@meyering.net>
61864
61865         * users.txt: Add parted.
61866
61867         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61868
61869 2007-03-07  Bruno Haible  <bruno@clisp.org>
61870
61871         * m4/printf.m4: Make the shell script snippets copy&pastable.
61872
61873 2007-03-02  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/netinet_in_.h: New file.
61876         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61877         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61878         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61879         (Depends-on): Add absolute-header.
61880         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61881         into netinet/in.h.
61882
61883 2007-03-03  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/sys_select_.h: New file.
61886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61887         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61888         * modules/sys_select (Files): Add lib/sys_select_.h.
61889         (Depends-on): Add absolute-header.
61890         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61891         into sys/select.h.
61892
61893 2007-03-02  Bruno Haible  <bruno@clisp.org>
61894
61895         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61896         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61897         values.
61898         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61899         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61900         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61901         * modules/sys_socket (Depends-on): Add absolute-header.
61902         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61903         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61904         (Include): Remove requirement of inclusion of <sys/types.h>.
61905
61906 2007-03-02  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/byteswap_.h (bswap_32): Fix formula.
61909
61910 2007-03-06  Bruno Haible  <bruno@clisp.org>
61911
61912         * modules/sprintf-posix-tests: New file.
61913         * tests/test-sprintf-posix.c: New file.
61914
61915         * modules/sprintf-posix: New file.
61916         * lib/sprintf.c: New file.
61917         * m4/sprintf-posix.m4: New file.
61918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61919         REPLACE_SPRINTF.
61920         * lib/stdio_.h (sprintf): New declaration.
61921         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61922         REPLACE_SPRINTF.
61923
61924 2007-03-06  Bruno Haible  <bruno@clisp.org>
61925
61926         * modules/vsprintf-posix-tests: New file.
61927         * tests/test-vsprintf-posix.c: New file.
61928         * tests/test-sprintf-posix.h: New file.
61929
61930         * modules/vsprintf-posix: New file.
61931         * lib/vsprintf.c: New file.
61932         * m4/vsprintf-posix.m4: New file.
61933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61934         REPLACE_VSPRINTF.
61935         * lib/stdio_.h (vsprintf): New declaration.
61936         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61937         REPLACE_VSPRINTF.
61938
61939 2007-03-06  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/vsnprintf (Depend-on): Remove minmax.
61942
61943 2007-03-06  Bruno Haible  <bruno@clisp.org>
61944
61945         * modules/snprintf-posix-tests: New file.
61946         * tests/test-snprintf-posix.c: New file.
61947
61948         * modules/snprintf-posix: New file.
61949         * m4/snprintf-posix.m4: New file.
61950         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61951         gl_FUNC_SNPRINTF.
61952         (gl_FUNC_SNPRINTF): Invoke it.
61953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61954         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61955         is set.
61956         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61957
61958 2007-03-06  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/vsnprintf-posix-tests: New file.
61961         * tests/test-vsnprintf-posix.c: New file.
61962         * tests/test-snprintf-posix.h: New file.
61963
61964         * modules/vsnprintf-posix: New file.
61965         * m4/vsnprintf-posix.m4: New file.
61966         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61967         gl_FUNC_VSNPRINTF.
61968         (gl_FUNC_VSNPRINTF): Invoke it.
61969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61970         * lib/stdio_.h (vsnprintf): Define as a replacement if
61971         REPLACE_VSNPRINTF is set.
61972         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61973
61974 2007-03-06  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61978
61979 2007-03-06  Bruno Haible  <bruno@clisp.org>
61980
61981         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61982         (asinl): Declare also if HAVE_DECL_ASINL is set.
61983         (atanl): Declare also if HAVE_DECL_ATANL is set.
61984         (ceill): Declare also if HAVE_DECL_CEILL is set.
61985         (cosl): Declare also if HAVE_DECL_COSL is set.
61986         (expl): Declare also if HAVE_DECL_EXPL is set.
61987         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61988         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61989         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61990         (logl): Declare also if HAVE_DECL_LOGL is set.
61991         (sinl): Declare also if HAVE_DECL_SINL is set.
61992         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61993         (tanl): Declare also if HAVE_DECL_TANL is set.
61994         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61997         declaration of frexpl, ldexpl.
61998         * modules/printf-frexpl (Depends-on): Add math.
61999         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62000
62001 2007-03-05  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62004         frexpl and ldexpl are declared.
62005         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62006
62007 2007-03-05  Bruno Haible  <bruno@clisp.org>
62008
62009         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62010         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62011
62012 2007-03-05  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/stdio_.h: Include <stddef.h>.
62015
62016 2007-03-05  Bruno Haible  <bruno@clisp.org>
62017
62018         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62019
62020 2007-03-05  Bruno Haible  <bruno@clisp.org>
62021
62022         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62023         NetBSD 4, from Ralf Wildenhues.
62024
62025 2007-03-04  Bruno Haible  <bruno@clisp.org>
62026
62027         * lib/vasprintf.h: Update #if logic for the case when the functions
62028         exist but are overridden.
62029
62030 2007-03-04  Bruno Haible  <bruno@clisp.org>
62031
62032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62033         implementations: glibc-2.4 and MacOS X 10.3.
62034         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62035         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62036         * tests/test-vasprintf-posix.c (test_function): Likewise.
62037
62038 2007-03-04  Bruno Haible  <bruno@clisp.org>
62039
62040         * modules/vasprintf-posix-tests: New file.
62041         * tests/test-vasprintf-posix.c: New file.
62042
62043         * modules/vasprintf-posix: New file.
62044         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62045         defined.
62046         * m4/vasprintf-posix.m4: New file.
62047         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62048         gl_FUNC_VASPRINTF.
62049         (gl_FUNC_VASPRINTF): Invoke it.
62050         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62051         here.
62052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62053
62054 2007-03-04  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62057         REPLACE_GETTIMEOFDAY.
62058         * modules/sys_time (Makefile.am): Likewise.
62059         * m4/sys_time_h.m4: Likewise.
62060         * m4/gettimeofday.m4: Likewise.
62061
62062 2007-03-04  Bruno Haible  <bruno@clisp.org>
62063
62064         * modules/vasnprintf-posix-tests: New file.
62065         * tests/test-vasnprintf-posix.c: New file.
62066
62067         * modules/vasnprintf-posix: New file.
62068         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62069         printf-frexpl.h.
62070         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62071         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62072         REPLACE_VASNPRINTF is defined.
62073         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62074         gl_FUNC_VASNPRINTF.
62075         (gl_FUNC_VASNPRINTF): Invoke it.
62076         * m4/vasnprintf-posix.m4: New file.
62077         * m4/printf.m4: New file.
62078
62079 2007-03-04  Bruno Haible  <bruno@clisp.org>
62080
62081         Compile progreloc.c only if --enable-relocatable is specified.
62082         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62083         if --enable-relocatable was specified.
62084         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62085         lib_SOURCES.
62086
62087 2007-03-04  Jim Meyering  <jim@meyering.net>
62088
62089         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62090         Use it consistently, rather than enumerating errno constants.
62091
62092 2007-03-04  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/xvasprintf-tests: New file.
62095         * tests/test-xvasprintf.c: New file.
62096
62097         * modules/vasprintf-tests: New file.
62098         * tests/test-vasprintf.c: New file.
62099
62100         * modules/vasnprintf-tests: New file.
62101         * tests/test-vasnprintf.c: New file.
62102
62103         * modules/vsnprintf-tests: New file.
62104         * tests/test-vsnprintf.c: New file.
62105
62106         * modules/snprintf-tests: New file.
62107         * tests/test-snprintf.c: New file.
62108
62109 2007-03-04  Bruno Haible  <bruno@clisp.org>
62110
62111         Compile relocatable.c only if --enable-relocatable is specified.
62112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62113         gl_RELOCATABLE_LIBRARY.
62114         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62115         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62116         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62117         gl_RELOCATABLE_LIBRARY.
62118         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62119         (Makefile.am): Remove lib_SOURCES.
62120         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62121         gl_RELOCATABLE_LIBRARY.
62122         (Makefile.am): Remove lib_SOURCES.
62123         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62124         always.
62125         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62126         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62127
62128 2007-03-04  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/argmatch-tests: New file.
62131         * tests/test-argmatch.c: New file.
62132
62133         * tests/test-allocsa.c (main): Halve the number of loop runs.
62134
62135         * modules/alloca-opt-tests: New file.
62136         * tests/test-alloca-opt.c: New file.
62137
62138 2007-03-04  Jim Meyering  <jim@meyering.net>
62139
62140         Work around difference between Linux ACLs and Solaris 10 ZFS.
62141         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62142         for EINVAL.
62143
62144 2007-03-03  Bruno Haible  <bruno@clisp.org>
62145
62146         * modules/relocatable-prog (Depends-on): Add back progreloc's
62147         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62148
62149 2007-03-03  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62152         * modules/relocatable-lib: New file.
62153
62154 2007-03-03  Bruno Haible  <bruno@clisp.org>
62155
62156         * modules/relocatable-prog: Renamed from modules/relocatable.
62157         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62158
62159 2007-03-03  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62162         m4/relocatable-lib.m4.
62163         (Depends-on): Remove 'relocatable'.
62164         (configure.ac): Add gl_RELOCATABLE_NOP.
62165
62166 2007-03-03  Bruno Haible  <bruno@clisp.org>
62167
62168         * modules/relocatable-prog-wrapper: New file.
62169         * modules/relocatable (Depends-on): Add it. Remove all other
62170         dependencies except progname.
62171         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62172
62173         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62174         (gl_FUNC_STRERROR): Nop.
62175         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62176
62177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62178         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62179
62180         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62181         (gl_FUNC_READLINK): Update.
62182
62183         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62184
62185 2007-03-03  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62188         * modules/xreadlink (Depends-on): Add unistd.
62189         * modules/xreadlink-with-size (Depends-on): Likewise.
62190
62191 2007-03-03  Bruno Haible  <bruno@clisp.org>
62192
62193         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62194         extracted from gt_FUNC_SETENV.
62195         (gt_FUNC_SETENV): Remove macro.
62196         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62197         remove gt_FUNC_SETENV.
62198
62199 2007-03-03  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62202         ENABLE_RELOCATABLE here.
62203         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62204
62205 2007-03-03  Bruno Haible  <bruno@clisp.org>
62206
62207         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62208         * tests/test-rbtreehash_list.c: Include progname.h.
62209         (main): Call set_program_name.
62210
62211         * modules/rbtree-oset-tests (Depends-on): Add progname.
62212         * tests/test-rbtree_oset.c: Include progname.h.
62213         (main): Call set_program_name.
62214
62215         * modules/rbtree-list-tests (Depends-on): Add progname.
62216         * tests/test-rbtree_list.c: Include progname.h.
62217         (main): Call set_program_name.
62218
62219         * modules/linked-list-tests (Depends-on): Add progname.
62220         * tests/test-linked_list.c: Include progname.h.
62221         (main): Call set_program_name.
62222
62223 2007-03-03  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62226         All uses of __restrict changed to _Restrict_.
62227         * lib/glob_.h (__restrict): Remove macro.
62228
62229 2007-03-02  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/gettext (configure.ac): Require gettext infrastructure
62232         from version 0.16.1.
62233
62234 2007-03-02  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/linkedhash-list-tests (Depends-on): Add progname.
62237         * tests/test-linkedhash_list.c: Include progname.h.
62238         (main): Call set_program_name.
62239
62240         * modules/carray-list-tests (Depends-on): Add progname.
62241         * tests/test-carray_list.c: Include progname.h.
62242         (main): Call set_program_name.
62243
62244         * modules/avltreehash-list-tests (Depends-on): Add progname.
62245         * tests/test-avltreehash_list.c: Include progname.h.
62246         (main): Call set_program_name.
62247
62248         * modules/avltree-oset-tests (Depends-on): Add progname.
62249         * tests/test-avltree_oset.c: Include progname.h.
62250         (main): Call set_program_name.
62251
62252         * modules/avltree-list-tests (Depends-on): Add progname.
62253         * tests/test-avltree_list.c: Include progname.h.
62254         (main): Call set_program_name.
62255
62256         * modules/array-oset-tests (Depends-on): Add progname.
62257         * tests/test-array_oset.c: Include progname.h.
62258         (main): Call set_program_name.
62259
62260         * modules/array-list-tests (Depends-on): Add progname.
62261         * tests/test-array_list.c: Include progname.h.
62262         (main): Call set_program_name.
62263
62264         * modules/argp-tests (Depends-on): Add progname.
62265         * tests/test-argp.c: Include argp.h first. Include progname.h.
62266         (main): Call set_program_name.
62267
62268 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         * doc/gnulib-tool.texi (Initial import): Reword description of
62271         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62272         limited effect even if defined after the first system include.
62273
62274 2007-03-01  Bruno Haible  <bruno@clisp.org>
62275
62276         * build-aux/config.libpath: Update to libtool-1.5.22.
62277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62278
62279 2007-03-01  Bruno Haible  <bruno@clisp.org>
62280
62281         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62282         foo_CFLAGS.
62283         Reported by Ralf Wildenhues.
62284
62285 2007-03-01  Bruno Haible  <bruno@clisp.org>
62286
62287         * build-aux/install-reloc: Remove object files left over by some
62288         compilers.
62289         Reported by Ralf Wildenhues.
62290
62291 2007-03-01  Bruno Haible  <bruno@clisp.org>
62292
62293         * build-aux/install-reloc: Break long lines.
62294
62295 2007-03-01  Bruno Haible  <bruno@clisp.org>
62296
62297         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62298         Reported by Ralf Wildenhues.
62299
62300 2007-03-01  Bruno Haible  <bruno@clisp.org>
62301
62302         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62303         include ordering constraints.
62304
62305 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62309         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62310         as another example.
62311         * lib/time_.h: Fix misspelling.
62312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62313         Require gl_HEADER_TIME_H_DEFAULTS.
62314         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62315         * m4/time_r.m4 (gl_TIME_R): Likewise.
62316         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62317
62318 2007-03-01  Bruno Haible  <bruno@clisp.org>
62319
62320         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62321         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62322
62323 2007-03-01  Jim Meyering  <jim@meyering.net>
62324
62325         * modules/xreadlink (Maintainer): Add my name.
62326         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62327
62328 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62329             Bruno Haible  <bruno@clisp.org>
62330
62331         * build-aux/install-reloc: Compile also c-ctype.c.
62332         * build-aux/relocatable.sh.in: New file.
62333         * doc/relocatable.texi: New file.
62334         * doc/relocatable-maint.texi: New file.
62335         * doc/gnulib.texi: Include relocatable-maint.texi.
62336         * lib/progreloc.c: Include unistd.h unconditionally.
62337         * lib/relocwrapper.c: Include unistd.h unconditionally.
62338         Include c-ctype.h.
62339         (add_dotbin): Use c_tolower.
62340         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62341         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62342         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62343         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62344         to m4/relocatable-lib.m4.
62345         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62346         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62347         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62348         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62349         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62350         * modules/relocatable: New file.
62351         * modules/relocatable-lib: New file.
62352         * modules/relocatable-script: New file.
62353
62354 2007-02-28  Bruno Haible  <bruno@clisp.org>
62355
62356         Import --enable-relocatable infrastructure.
62357         * build-aux/config.libpath: New file, from GNU gettext.
62358         * build-aux/install-reloc: New file, from GNU gettext.
62359         * build-aux/reloc-ldflags: New file, from GNU gettext.
62360         * lib/relocatable.h: New file, from GNU gettext.
62361         * lib/relocatable.c: New file, from GNU gettext.
62362         * lib/relocwrapper.c: New file, from GNU gettext.
62363         * m4/relocatable.m4: New file, from GNU gettext.
62364
62365 2007-02-28  Bruno Haible  <bruno@clisp.org>
62366
62367         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62368
62369         * modules/xreadlink: New file, from GNU gettext with modifications.
62370         * lib/xreadlink.c: New file, from GNU gettext.
62371         * lib/xreadlink.h: Add comments.
62372         (xreadlink): New declaration.
62373
62374         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62375         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62376         lib/xreadlink-with-size.c.
62377         (configure.ac): Remove gl_XREADLINK invocation.
62378         (Makefile.am): Augment lib_SOURCES.
62379         * m4/xreadlink.m4: Remove file.
62380         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62381         (xreadlink_with_size): Renamed from xreadink.
62382         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62383         * modules/canonicalize (Depends-on): Replace xreadlink with
62384         xreadlink-with-size.
62385         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62386
62387 2007-02-25  Jim Meyering  <jim@meyering.net>
62388
62389         * build-aux/announce-gen: When complaining about excess arguments,
62390         list them.
62391
62392 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         * README: Document signed integer overflow situation more
62395         accurately.
62396
62397 2007-02-25  Bruno Haible  <bruno@clisp.org>
62398
62399         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62400         'a' or 'A' conversion.
62401
62402 2007-02-25  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/filename: Renamed from modules/pathname.
62405         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62406         lib/concatpath.c with lib/concat-filename.c.
62407         (Makefile.am): Update.
62408         (Include): Replace pathname.h with filename.h.
62409         * lib/filename.h: Renamed from lib/pathname.h.
62410         (concatenated_filename): Renamed from concatenated_pathname.
62411         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62412         (concatenated_filename): Renamed from concatenated_pathname.
62413         * lib/findprog.c: Include filename.h instead of pathname.h.
62414         (find_in_path): Update.
62415         * lib/javacomp.c: Include filename.h instead of pathname.h.
62416         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62417         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62418         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62419         is_oldgcj_14_13_usable, is_javac_usable): Update.
62420         * lib/javaexec.c: Include filename.h instead of pathname.h.
62421         (execute_java_class): Update.
62422         * modules/findprog: Update.
62423         * modules/javacomp: Update.
62424         * modules/javaexec: Update.
62425         * MODULES.html.sh (File system functions): Add 'filename', remove
62426         'pathname'.
62427
62428 2007-02-25  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/printf-frexpl-tests: New file.
62431         * tests/test-printf-frexpl.c: New file.
62432
62433         * modules/printf-frexpl: New file.
62434         * lib/printf-frexpl.h: New file.
62435         * lib/printf-frexpl.c: New file.
62436         * m4/printf-frexpl.m4: New file.
62437
62438 2007-02-25  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/printf-frexp-tests: New file.
62441         * tests/test-printf-frexp.c: New file.
62442
62443         * modules/printf-frexp: New file.
62444         * lib/printf-frexp.h: New file.
62445         * lib/printf-frexp.c: New file.
62446         * m4/printf-frexp.m4: New file.
62447
62448 2007-02-25  Bruno Haible  <bruno@clisp.org>
62449
62450         Assume automake >= 1.10 for the tests.
62451         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62452         * modules/arctwo-tests: Likewise.
62453         * modules/argp-tests: Likewise.
62454         * modules/avltree-list-tests: Likewise.
62455         * modules/avltree-oset-tests: Likewise.
62456         * modules/avltreehash-list-tests: Likewise.
62457         * modules/carray-list-tests: Likewise.
62458         * modules/crc-tests: Likewise.
62459         * modules/des-tests: Likewise.
62460         * modules/gc-arcfour-tests: Likewise.
62461         * modules/gc-arctwo-tests: Likewise.
62462         * modules/gc-des-tests: Likewise.
62463         * modules/gc-hmac-md5-tests: Likewise.
62464         * modules/gc-hmac-sha1-tests: Likewise.
62465         * modules/gc-md2-tests: Likewise.
62466         * modules/gc-md4-tests: Likewise.
62467         * modules/gc-md5-tests: Likewise.
62468         * modules/gc-pbkdf2-sha1-tests: Likewise.
62469         * modules/gc-rijndael-tests: Likewise.
62470         * modules/gc-sha1-tests: Likewise.
62471         * modules/gc-tests: Likewise.
62472         * modules/getaddrinfo-tests: Likewise.
62473         * modules/hmac-md5-tests: Likewise.
62474         * modules/hmac-sha1-tests: Likewise.
62475         * modules/linked-list-tests: Likewise.
62476         * modules/linkedhash-list-tests: Likewise.
62477         * modules/lock-tests: Likewise.
62478         * modules/md2-tests: Likewise.
62479         * modules/md4-tests: Likewise.
62480         * modules/md5-tests: Likewise.
62481         * modules/rbtree-list-tests: Likewise.
62482         * modules/rbtree-oset-tests: Likewise.
62483         * modules/rbtreehash-list-tests: Likewise.
62484         * modules/read-file-tests: Likewise.
62485         * modules/rijndael-tests: Likewise.
62486         * modules/stdint-tests: Likewise.
62487         * modules/tls-tests: Likewise.
62488
62489 2007-02-24  Bruno Haible  <bruno@clisp.org>
62490
62491         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62492         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62493         function; instead check whether isnan with a double argument links.
62494         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62495         function; instead check whether isnan with a 'long double' argument
62496         links.
62497         Reported by Eric Blake <ebb9@byu.net>.
62498
62499 2007-02-24  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62502         defined.
62503         * lib/isnanl.c: Remove all code. Just include isnan.c.
62504         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62505
62506 2007-02-25  Jim Meyering  <jim@meyering.net>
62507
62508         Avoid conflicting types for 'unsetenv' on FreeBSD.
62509         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62510         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62511         in stdlib.h.
62512
62513 2007-02-24  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/isnanl-nolibm-tests: New file.
62516         * tests/test-isnanl.c: New file.
62517
62518         * modules/isnanl-nolibm: New file.
62519         * lib/isnanl.h: New file.
62520         * lib/isnanl.c: New file.
62521         * m4/isnanl.m4: New file.
62522
62523 2007-02-24  Bruno Haible  <bruno@clisp.org>
62524
62525         * modules/isnan-nolibm-tests: New file.
62526         * tests/test-isnan.c: New file.
62527
62528         * modules/isnan-nolibm: New file.
62529         * lib/isnan.h: New file.
62530         * lib/isnan.c: New file.
62531         * m4/isnan.m4: New file.
62532
62533 2007-02-24  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62536         assume that an exponent fits in 20 bits.
62537
62538 2007-02-24  Jim Meyering  <jim@meyering.net>
62539
62540         * m4/regex.m4: Update the description of the configure-time option,
62541         --without-included-regex, to state accurately what the defaults are,
62542         and perhaps to give people an idea why using this option is risky.
62543
62544 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62545
62546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62547         loops on small arguments.  This attempts to avoid the problem
62548         Bruno Haible reported for AIX 4.3.2 in
62549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62550
62551 2007-02-23  Bruno Haible  <bruno@clisp.org>
62552
62553         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62554         Needed for help2man.
62555
62556 2007-02-23  Karl Berry  <karl@gnu.org>
62557
62558         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62559         exists, foo.h should be cvs-ignored, not committed.
62560
62561 2007-02-23  Eric Blake  <ebb9@byu.net>
62562
62563         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62564         * lib/stat-time.h (includes): Likewise.
62565         * lib/utimecmp.c (includes): Likewise.
62566         * lib/utimens.h (includes): Likewise.
62567         * lib/getdate.y (includes): Also include "timespec.h" for use
62568         internal to the module.
62569         * modules/utimens (Depends-on): Revert yesterday's patch.
62570         * modules/nanosleep (Depends-on): Add missing dependency.
62571
62572 2007-02-22  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/glob.c: Don't include getlogin_r.h.
62575
62576 2007-02-22  Jim Meyering  <jim@meyering.net>
62577
62578         * modules/utimens (Depends-on): Add timespec, required for
62579         utimens.h's inclusion of timespec.h.
62580
62581 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62584         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62585         Schwab in
62586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62587         I'll try to think of a better way to fix the Solaris problem.
62588
62589         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62590         like glibc; on Solaris 10, it fails with errno == EINVAL.
62591         POSIX says the behavior is unspecified if the first argument is NULL,
62592         so play it safe and never pass NULL to the system getcwd.
62593
62594 2007-02-21  Jim Meyering  <jim@meyering.net>
62595
62596         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62597         of gettimeofday.  It would conflict with the one now always
62598         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62599         an IRIX 6.5 build failure.
62600
62601 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         Minor fixups to port to Solaris 10 with Sun C 5.8.
62604         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62605         * modules/getcwd (Depends-on): Add dirfd.
62606         * lib/putenv.c (putenv): #undef it.
62607         (rpl_putenv): New decl.
62608         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62609
62610 2007-02-20  Bruno Haible  <bruno@clisp.org>
62611
62612         * modules/stdio-tests: New file.
62613         * tests/test-stdio.c: New file.
62614
62615         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62616         (Depends-on): Add stdio.
62617         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62618         (Include): Use <stdio.h> instead of vsnprintf.h.
62619         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62620         HAVE_DECL_VSNPRINTF.
62621         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62622
62623         * modules/snprintf (Files): Remove lib/snprintf.h.
62624         (Depends-on): Add stdio.
62625         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62626         (Include): Use <stdio.h> instead of snprintf.h.
62627         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62628         HAVE_DECL_SNPRINTF.
62629         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62630         * lib/getaddrinfo.c: Likewise.
62631
62632         * modules/stdio: New file.
62633         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62634         * lib/snprintf.h: Remove file.
62635         * lib/vsnprintf.h: Remove file.
62636         * lib/.cppi-disable: Remove snprintf.h.
62637         * m4/stdio_h.m4: New file.
62638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62639
62640 2007-02-20  Jim Meyering  <jim@meyering.net>
62641
62642         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62643         used by e.g., mingw.  From Bruno Haible.
62644
62645 2007-02-19  Bruno Haible  <bruno@clisp.org>
62646
62647         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62648         warnings.
62649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62650
62651 2007-02-19  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62654         from mingw users.
62655
62656 2007-02-19  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62659         warnings.
62660         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62661
62662 2007-02-19  Jim Meyering  <jim@meyering.net>
62663
62664         Don't use FD after a successful "fdopendir (fd)".
62665         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62666         Reset it by calling dirfd on the just-obtained DIR*.
62667
62668         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62669         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62670
62671 2007-02-18  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/readlink.c: Include <unistd.h>.
62674         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62675         HAVE_READLINK.
62676         * modules/readlink (Depends-on): Add unistd.
62677         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62678         (Include): Add <unistd.h>.
62679
62680         * lib/getlogin_r.h: Remove file.
62681         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62682         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62683         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62684         HAVE_DECL_GETLOGIN_R.
62685         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62687         (Include): Use <unistd.h> instead of getlogin_r.h.
62688
62689         * lib/getcwd.h: Remove file.
62690         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62691         * lib/xgetcwd.c: Likewise.
62692         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62693         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62694         * modules/getcwd (Files): Remove lib/getcwd.h.
62695         (Depends-on): Add unistd.
62696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62697         (Include): Use <unistd.h> instad of getcwd.h.
62698
62699         * lib/ftruncate.c: Include <unistd.h> first.
62700         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62701         Set HAVE_FTRUNCATE.
62702         * modules/ftruncate (Depends-on): Add unistd.
62703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62704
62705         * lib/fchdir.c: Include <unistd.h> first.
62706         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62708         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62709         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62710         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62711
62712         * lib/dup2.c: Include <unistd.h> first.
62713         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62714         HAVE_DUP2.
62715         * modules/dup2 (Depends-on): Add unistd.
62716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62717
62718         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62719         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62720         REPLACE_CHOWN. Don't define chown as a macro here.
62721         * modules/chown (Depends-on): Add unistd.
62722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62723
62724         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62725         Add definition for GL_LINK_WARNING.
62726         (chown, dup2): New declarations.
62727         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62728         link warning.
62729         (ftruncate): New declaration.
62730         (getcwd): New declaration, taken from old getcwd.h.
62731         (getlogin_r): New declaration, taken from old getlogin_r.h.
62732         (readlink): New declaration.
62733         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62734         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62735         (gl_PREREQ_UNISTD): Remove macro.
62736         (gl_UNISTD_MODULE_INDICATOR): New macro.
62737         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62738         many new variables. Don't set UNISTD_H.
62739         * modules/unistd (Description): Change.
62740         (Depends-on): Add link-warning.
62741         (configure.ac): Update.
62742         (Makefile.am): Create unistd.h always. Substitute many new variables
62743         into it.
62744
62745 2007-02-18  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62748         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62749         HAVE_GETSUBOPT.
62750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62751         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62752         * lib/getsubopt.h: Remove file.
62753         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62754         (Depends-on): Add stdlib.
62755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62756         (Includes): Use <stdlib.h> instead of getsubopt.h.
62757         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62758         Set HAVE_GETSUBOPT.
62759         * lib/getsubopt.c: Don't include getsubopt.h.
62760
62761 2007-02-18  Bruno Haible  <bruno@clisp.org>
62762
62763         * modules/fchdir (Depends-on): Add dup2.
62764
62765 2007-02-18  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/stdlib_.h: Handle glibc's special invocation convention
62768         specially.
62769
62770 2007-02-18  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/stdlib-tests: New file.
62773         * tests/test-stdlib.c: New file.
62774
62775         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62776         (Depends-on): Add stdlib.
62777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62778         (Includes): Use <stdlib.h> instead of mkstemp.h.
62779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62780         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62781         * lib/mkstemp.c: Don't include mkstemp.h.
62782         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62783         * lib/stdlib--.h: Don't include mkstemp.h.
62784
62785         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62786         (Depends-on): Add stdlib.
62787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62788         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62789         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62790         HAVE_MKDTEMP.
62791         * lib/mkdtemp.c: Don't include mkdtemp.h.
62792         * lib/clean-temp.c: Don't include mkdtemp.h.
62793
62794         * modules/exit (Files): Remove lib/exit.h.
62795         (Depends-on): Add stdlib.
62796         (Makefile.am): Remove lib_SOURCES.
62797         (Include): Use <stdlib.h> instead of exit.h.
62798         * lib/argmatch.c: Don't include exit.h.
62799         * lib/execute.c: Likewise.
62800         * lib/pagealign_alloc.c: Likewise.
62801         * lib/pipe.c: Likewise.
62802         * lib/wait-process.c: Likewise.
62803         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62804         * lib/exitfail.c: Likewise.
62805         * lib/savewd.c: Likewise.
62806         * lib/xsetenv.c: Likewise.
62807
62808         * modules/stdlib: New file.
62809         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62810         and extra comments about mkstemp().
62811         * lib/exit.h: Remove file.
62812         * lib/mkdtemp.h: Remove file.
62813         * lib/mkstemp.h: Remove file.
62814         * m4/stdlib_h.m4: New file.
62815         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62816
62817 2007-02-18  Bruno Haible  <bruno@clisp.org>
62818
62819         * modules/math-tests: New file.
62820         * tests/test-math.c: New file.
62821
62822         * modules/math: New file.
62823         * modules/mathl (Files): Remove lib/mathl.h.
62824         (Depends-on): Add math.
62825         (Makefile.am): Don't mention mathl.h.
62826         (Include): Use <math.h> instead of mathl.h.
62827         * lib/math_.h: New file.
62828         * lib/mathl.h: Remove file.
62829         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62830         mathl.h.
62831         * lib/asinl.c: Likewise.
62832         * lib/atanl.c: Likewise.
62833         * lib/ceill.c: Likewise.
62834         * lib/cosl.c: Likewise.
62835         * lib/expl.c: Likewise.
62836         * lib/floorl.c: Likewise.
62837         * lib/frexpl.c: Likewise.
62838         * lib/ldexpl.c: Likewise.
62839         * lib/logl.c: Likewise.
62840         * lib/sincosl.c: Likewise.
62841         * lib/sinl.c: Likewise.
62842         * lib/sqrtl.c: Likewise.
62843         * lib/tanl.c: Likewise.
62844         * lib/trigl.c: Likewise.
62845         * m4/math_h.m4: New file.
62846         * MODULES.html.sh (Mathematics): Add math.
62847
62848 2007-02-17  Bruno Haible  <bruno@clisp.org>
62849
62850         * modules/wctype-tests: New file.
62851         * tests/test-wctype.c: New file.
62852
62853         * modules/wchar-tests: New file.
62854         * tests/test-wchar.c: New file.
62855
62856         * modules/unistd-tests: New file.
62857         * tests/test-unistd.c: New file.
62858
62859         * modules/time-tests: New file.
62860         * tests/test-time.c: New file.
62861
62862         * modules/sysexits-tests: New file.
62863         * tests/test-sysexits.c: New file.
62864
62865         * modules/sys_time-tests: New file.
62866         * tests/test-sys_time.c: New file.
62867
62868         * modules/sys_stat-tests: New file.
62869         * tests/test-sys_stat.c: New file.
62870
62871         * modules/sys_socket-tests: New file.
62872         * tests/test-sys_socket.c: New file.
62873
62874         * modules/sys_select-tests: New file.
62875         * tests/test-sys_select.c: New file.
62876
62877         * modules/string-tests: New file.
62878         * tests/test-string.c: New file.
62879
62880         * modules/stdbool-tests: New file.
62881         * tests/test-stdbool.c: New file.
62882
62883         * modules/netinet_in-tests: New file.
62884         * tests/test-netinet_in.c: New file.
62885
62886         * modules/inttypes-tests: New file.
62887         * tests/test-inttypes.c: New file.
62888
62889         * modules/fcntl-tests: New file.
62890         * tests/test-fcntl.c: New file.
62891
62892         * modules/byteswap-tests: New file.
62893         * tests/test-byteswap.c: New file.
62894
62895         * modules/arpa_inet-tests: New file.
62896         * tests/test-arpa_inet.c: New file.
62897
62898 2007-02-17  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62901         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62902         if the corresponding module is not enabled. Emit link warnings if
62903         the function is used nevertheless.
62904         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62905         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62906         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62907         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62908         * modules/inttypes (Depends-on): Add link-warning.
62909         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62910         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62911         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62912         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62913         * modules/imaxdiv (configure.ac): Likewise.
62914         * modules/strtoimax (configure.ac): Likewise.
62915         * modules/strtoumax (configure.ac): Likewise.
62916
62917 2007-02-17  Bruno Haible  <bruno@clisp.org>
62918
62919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62920         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62921         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62922         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62923
62924 2007-02-17  Bruno Haible  <bruno@clisp.org>
62925
62926         * modules/link-warning: New file.
62927         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62928         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62929         * modules/string (Depends-on): Add link-warning.
62930         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62931         string.h.
62932         * MODULES.html.sh (Support for building libraries and executables): Add
62933         link-warning.
62934
62935 2007-02-17  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62938         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62939         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62940         long lines.
62941
62942 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62943             Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/tmpfile: New file.
62946         * lib/tmpfile.c: New file.
62947         * m4/tmpfile.m4: New file.
62948         * MODULES.html.sh (func_all_modules): New section "Input/output".
62949
62950 2007-02-15  Bruno Haible  <bruno@clisp.org>
62951
62952         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62953         (supports_delete_on_close): New function.
62954         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62955
62956 2007-02-14  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/mbspcasecmp-tests: New file.
62959         * tests/test-mbspcasecmp.sh: New file.
62960         * tests/test-mbspcasecmp.c: New file.
62961
62962         New module mbspcasecmp.
62963         * modules/mbspcasecmp: New file.
62964         * lib/mbspcasecmp.c: New file.
62965         * lib/string_.h (strncasecmp): Change warning message.
62966         (mbspcasecmp): New declaration.
62967         * m4/mbspcasecmp.m4: New file.
62968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62969         GNULIB_MBSPCASECMP.
62970         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62971         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62972
62973 2007-02-14  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/mbsncasecmp-tests: New file.
62976         * tests/test-mbsncasecmp.sh: New file.
62977         * tests/test-mbsncasecmp.c: New file.
62978
62979         New module mbsncasecmp.
62980         * modules/mbsncasecmp: New file.
62981         * lib/mbsncasecmp.c: New file.
62982         * lib/string_.h (mbsncasecmp): New declaration.
62983         * m4/mbsncasecmp.m4: New file.
62984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62985         GNULIB_MBSNCASECMP.
62986         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62987         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62988
62989 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62992         Verify that it doesn't overlap with our flags.
62993         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62994         do not have the desired effect in multibyte locales; instead, use
62995         mbscasecmp.
62996         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62997         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62998         we don't require GNU fnmatch ourselves (if our users require it, they
62999         should do so explicitly).
63000
63001         Fix regex code so it doesn't rely on strcasecmp.
63002         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63003         Otherwise, include gnulib's langinfo.h.
63004         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63005         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63006         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63007         * modules/regex (FILES): Remove m4/codeset.m4.
63008         (Depends-on): Add localcharset.  Remove strcase.
63009
63010 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63011
63012         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63013         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63014
63015 2007-02-13  Bruno Haible  <bruno@clisp.org>
63016
63017         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63019
63020 2007-02-12  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63023         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63024         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63025         time warning rather than a link error.
63026
63027 2007-02-12  Bruno Haible  <bruno@clisp.org>
63028
63029         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63030         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63032
63033 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63036         args, not 2.
63037
63038 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         New module 'time', so that apps can include <time.h> as per
63041         POSIX and GNU instead of separate include files like time_r.h
63042         and timegm.h.  This implementation tries out a simpler approach
63043         for replacing decls in standard include files (as compared to
63044         the string module), somewhat as an experiment.
63045
63046         * config/srclist.txt: Comment out mktime.c for now.
63047         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63048         since it doesn't apply any more.  Use generic wording instead.
63049         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63050         'time'.
63051         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63052         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63053         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63054         Don't include <sys/types.h>; no longer needed since we assume C89.
63055         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63056         * lib/strftime.c: Likewise.
63057         * lib/time_r.c: Likewise.
63058         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63059         * lib/nanosleep.c: Include <time.h> first, to check interface.
63060         * lib/strptime.c: Likewise.
63061         * lib/time_r.c: Likewise.
63062         * lib/timegm.c: Likewise.
63063         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63064         needed.
63065         * lib/timegm.c: Don't include timegm.h; no longer needed.
63066         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63067         time.h now handles any problems in that area.
63068         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63069         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63070         that time.h defines struct timespec.
63071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63072         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63073         handles that.
63074         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63075         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63076         needed.  Set REPLACE_LOCALTIME.
63077         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63078         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63079         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63080         nanosleep; time_h.m4 now does that.  Don't require
63081         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63082         module handles this now.
63083         * modules/getdate (Depends-on): Remove timespec.  Add time.
63084         * modules/nanosleep (Depends-on): Likewise.
63085         * modules/stat-time (Depends-on): Likewise.
63086         * modules/nanosleep (Include): Include time.h, not timespec.h.
63087         * modules/strptime (Files): Remove lib/strptime.h.
63088         (Depends-on): Add extensions, time.
63089         (Include): Include time.h, not strptime.h.
63090         * modules/time_r (Files): Remove lib/time_r.h.
63091         (Depends-on): Add time.
63092         (Include): Include time.h, not time_r.h.
63093         * modules/timegm: Likewise.
63094         * modules/timespec (Description): Now does timespec-related decls
63095         of our own, instead of struct timespec itself.
63096         (Depends-on): Add time; remove extensions.
63097         (Maintainer): Add self.
63098         * modules/utimecmp (Depends-on): Add time; remove timespec.
63099         * modules/utimens (Depends-on): Likewise.
63100         * modules/xnanosleep (Depends-on): Likewise.
63101
63102 2007-02-11  Bruno Haible  <bruno@clisp.org>
63103
63104         * lib/c-strstr.c: Include allocsa.h.
63105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63106         * lib/c-strcasestr.c: Include allocsa.h.
63107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63108         * lib/strcasestr.c: Include allocsa.h.
63109         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63110         * lib/mbsstr.c: Include allocsa.h.
63111         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63112         allocsa/freesa instead of malloc/free.
63113         * lib/mbscasestr.c: Include allocsa.h.
63114         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63115         allocsa/freesa instead of malloc/free.
63116         * modules/c-strstr (Depends-on): Add allocsa.
63117         * modules/c-strcasestr (Depends-on): Likewise.
63118         * modules/strcasestr (Depends-on): Likewise.
63119         * modules/mbsstr (Depends-on): Likewise.
63120         * modules/mbscasestr (Depends-on): Likewise.
63121
63122 2007-02-11  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63125
63126         * modules/mbsspn-tests: New file.
63127         * tests/test-mbsspn.sh: New file.
63128         * tests/test-mbsspn.c: New file.
63129
63130 2007-02-11  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63133
63134         * modules/mbspbrk-tests: New file.
63135         * tests/test-mbspbrk.sh: New file.
63136         * tests/test-mbspbrk.c: New file.
63137
63138 2007-02-11  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63141         unneeded cast.
63142
63143         * modules/mbscspn-tests: New file.
63144         * tests/test-mbscspn.sh: New file.
63145         * tests/test-mbscspn.c: New file.
63146
63147 2007-02-11  Bruno Haible  <bruno@clisp.org>
63148
63149         * modules/mbscasecmp-tests: New file.
63150         * tests/test-mbscasecmp.sh: New file.
63151         * tests/test-mbscasecmp.c: New file.
63152
63153 2007-02-11  Bruno Haible  <bruno@clisp.org>
63154
63155         Ensure O(n) worst-case complexity of mbscasestr.
63156         * lib/mbscasestr.c: Include stdbool.h.
63157         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63158         functions.
63159         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63160         the bookkeeping indicates that it's worth it.
63161         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63162
63163         * modules/mbscasestr-tests: New file.
63164         * tests/test-mbscasestr1.c: New file.
63165         * tests/test-mbscasestr2.sh: New file.
63166         * tests/test-mbscasestr2.c: New file.
63167         * tests/test-mbscasestr3.sh: New file.
63168         * tests/test-mbscasestr3.c: New file.
63169         * tests/test-mbscasestr4.sh: New file.
63170         * tests/test-mbscasestr4.c: New file.
63171         * m4/locale-tr.m4: New file.
63172
63173 2007-02-11  Bruno Haible  <bruno@clisp.org>
63174
63175         Ensure O(n) worst-case complexity of mbsstr.
63176         * lib/mbsstr.c: Include stdbool.h.
63177         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63178         functions.
63179         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63180         bookkeeping indicates that it's worth it.
63181         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63182
63183         * modules/mbsstr-tests: New file.
63184         * tests/test-mbsstr1.c: New file.
63185         * tests/test-mbsstr2.sh: New file.
63186         * tests/test-mbsstr2.c: New file.
63187         * tests/test-mbsstr3.sh: New file.
63188         * tests/test-mbsstr3.c: New file.
63189         * m4/locale-fr.m4: New file.
63190
63191 2007-02-11  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/mbsrchr.c (mbsrchr): Fix bug.
63194
63195         * modules/mbsrchr-tests: New file.
63196         * tests/test-mbsrchr.sh: New file.
63197         * tests/test-mbsrchr.c: New file.
63198
63199 2007-02-11  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/mbschr.c (mbschr): Fix bug.
63202
63203         * modules/mbschr-tests: New file.
63204         * tests/test-mbschr.sh: New file.
63205         * tests/test-mbschr.c: New file.
63206         * m4/locale-zh.m4: New file.
63207
63208 2007-02-11  Bruno Haible  <bruno@clisp.org>
63209
63210         Support for copying multibyte string iterators.
63211         * lib/mbiter.h: Include <string.h>.
63212         (mbiter_multi_copy): New function.
63213         (mbi_copy): New macro.
63214         * lib/mbuiter.h: Include <string.h>.
63215         (mbuiter_multi_copy): New function.
63216         (mbui_copy): New macro.
63217
63218 2007-02-11  Bruno Haible  <bruno@clisp.org>
63219
63220         New module mbslen.
63221         * modules/mbslen: New file.
63222         * lib/mbslen.c: New file.
63223         * lib/string_.h (mbslen): New declaration.
63224         * m4/mbslen.m4: New file.
63225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63226         GNULIB_MBSLEN.
63227         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63228         * MODULES.html.sh (Internationalization functions): Add mbslen.
63229
63230 2007-02-11  Bruno Haible  <bruno@clisp.org>
63231
63232         Ensure O(n) worst-case complexity of strcasestr substitute.
63233         * lib/strcasestr.c: Include stdbool.h.
63234         (knuth_morris_pratt): New function.
63235         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63236         bookkeeping indicates that it's worth it.
63237         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63238
63239         * modules/strcasestr-tests: New file.
63240         * tests/test-strcasestr.c: New file.
63241
63242 2007-02-11  Bruno Haible  <bruno@clisp.org>
63243
63244         Ensure O(n) worst-case complexity of c_strcasestr.
63245         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63246         (knuth_morris_pratt): New function.
63247         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63248         the bookkeeping indicates that it's worth it.
63249         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63250
63251         * modules/c-strcasestr-tests: New file.
63252         * tests/test-c-strcasestr.c: New file.
63253
63254 2007-02-11  Bruno Haible  <bruno@clisp.org>
63255
63256         Ensure O(n) worst-case complexity of c_strstr.
63257         * lib/c-strstr.c: Include stdbool.h, string.h.
63258         (knuth_morris_pratt): New function.
63259         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63260         bookkeeping indicates that it's worth it.
63261         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63262
63263         * lib/c-strstr.c: Complete rewrite for maintainability.
63264
63265         * modules/c-strstr-tests: New file.
63266         * tests/test-c-strstr.c: New file.
63267
63268 2007-02-11  Bruno Haible  <bruno@clisp.org>
63269
63270         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63271         5.2.1 and earlier, whereby \055 was treated just like the range
63272         delimiter '-'.
63273         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63274
63275 2007-02-08  Bruno Haible  <bruno@clisp.org>
63276
63277         * modules/regex (Depends-on): Add stdbool.
63278         Reported by Dalibor Topic <robilad@kaffe.org>.
63279
63280 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63283         Prefer returning from main to exiting from it.
63284         Remove unnecessary parens after sizeof.
63285
63286 2007-02-05  Bruno Haible  <bruno@clisp.org>
63287
63288         New module mbssep.
63289         * modules/mbssep: New file.
63290         * lib/mbssep.c: New file.
63291         * lib/string_.h (strsep): Add a conditional link warning.
63292         (mbssep): New declaration.
63293         * m4/mbssep.m4: New file.
63294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63295         GNULIB_MBSSEP.
63296         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63297         * MODULES.html.sh (Internationalization functions): Add mbssep.
63298
63299 2007-02-05  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63302         Optimize search in case of 1 delimiter.
63303
63304 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63305
63306         * lib/acl.h: Include sys/types.h before sys/acl.h.
63307
63308 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63309
63310         Merge upstream fix for glibc bugzilla #3957:
63311
63312         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63313
63314         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63315         bit for RE_HAT_LISTS_NOT_NEWLINE.
63316         (build_charclass_op): Remove bogus comment.
63317
63318 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63319
63320         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63321
63322 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63325         * lib/memmem.c [!defined _LIBC]: Include config.h.
63326
63327 2007-02-04  Bruno Haible  <bruno@clisp.org>
63328
63329         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63330         warning message.
63331
63332 2007-02-04  Bruno Haible  <bruno@clisp.org>
63333
63334         New module mbstok_r.
63335         * modules/mbstok_r: New file.
63336         * lib/mbstok_r.c: New file.
63337         * lib/string_.h (strtok_r): Change argument names to match the
63338         comments. Add a conditional link warning.
63339         (mbstok_r): New declaration.
63340         * m4/mbstok_r.m4: New file.
63341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63342         GNULIB_MBSTOK_R.
63343         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63344         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63345
63346 2007-02-04  Bruno Haible  <bruno@clisp.org>
63347
63348         New module mbsspn.
63349         * modules/mbsspn: New file.
63350         * lib/mbsspn.c: New file.
63351         * lib/string_.h (strspn): Add a conditional link warning.
63352         (mbsspn): New declaration.
63353         * m4/mbsspn.m4: New file.
63354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63355         GNULIB_MBSSPN.
63356         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63357         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63358
63359 2007-02-04  Bruno Haible  <bruno@clisp.org>
63360
63361         New module mbspbrk.
63362         * modules/mbspbrk: New file.
63363         * lib/mbspbrk.c: New file.
63364         * lib/string_.h (strpbrk): Add a conditional link warning.
63365         (mbspbrk): New declaration.
63366         * m4/mbspbrk.m4: New file.
63367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63368         GNULIB_MBSPBRK.
63369         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63370         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63371
63372 2007-02-04  Bruno Haible  <bruno@clisp.org>
63373
63374         New module mbscspn.
63375         * modules/mbscspn: New file.
63376         * lib/mbscspn.c: New file.
63377         * lib/string_.h (strcspn): Add a conditional link warning.
63378         (mbscspn): New declaration.
63379         * m4/mbscspn.m4: New file.
63380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63381         GNULIB_MBSCSPN.
63382         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63383         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63384
63385 2007-02-04  Bruno Haible  <bruno@clisp.org>
63386
63387         New module mbscasestr, reduced goal of strcasestr.
63388         * modules/mbscasestr: New file.
63389         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63390         (mbscasestr): Renamed from strcasestr.
63391         * lib/strcasestr.c: Don't include mbuiter.h.
63392         (strcasestr): Remove support for multibyte locales.
63393         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63394         Change the conditional link warning.
63395         (mbscasestr): New declaration.
63396         * m4/mbscasestr.m4: New file.
63397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63398         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63399         REPLACE_STRCASESTR.
63400         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63402         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63403         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63404         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63405         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63406         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63407         (Depends-on): Remove mbuiter.
63408         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63409
63410 2007-02-04  Bruno Haible  <bruno@clisp.org>
63411
63412         Simplify handling of strncasecmp.
63413         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63414         the conditional link warning.
63415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63416         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63417         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63418         * modules/strcase (configure.ac): Don't invoke
63419         gl_STRING_MODULE_INDICATOR.
63420         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63421
63422 2007-02-04  Bruno Haible  <bruno@clisp.org>
63423
63424         New module mbscasecmp, reduced goal of strcasecmp.
63425         * modules/mbscasecmp: New file.
63426         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63427         (mbscasecmp): Renamed from strcasecmp.
63428         * lib/strcasecmp.c: Don't include mbuiter.h.
63429         (strcasecmp): Remove support for multibyte locales.
63430         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63431         Change the conditional link warning.
63432         (mbscasecmp): New declaration.
63433         * m4/mbscasecmp.m4: New file.
63434         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63435         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63436         REPLACE_STRCASECMP.
63437         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63439         GNULIB_MBSCASECMP.
63440         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63441         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63442         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63443         (Depends-on): Remove mbuiter.
63444         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63445
63446 2007-02-04  Bruno Haible  <bruno@clisp.org>
63447
63448         New module mbsstr. Remove module strstr.
63449         * modules/mbsstr: New file.
63450         * modules/strstr: Remove file.
63451         * lib/mbsstr.c: Renamed from lib/strstr.c.
63452         (mbsstr): Renamed from strstr.
63453         * lib/string_.h (strstr): Remove declaration. Change the conditional
63454         link warning.
63455         (mbsstr): New declaration.
63456         * m4/mbsstr.m4: New file.
63457         * m4/strstr.m4: Remove file.
63458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63459         REPLACE_STRSTR.
63460         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63461         Don't initialize GNULIB_STRSTR.
63462         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63463         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63464         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63465         (Support for systems lacking ANSI C 89): Remove strstr.
63466
63467 2007-02-04  Bruno Haible  <bruno@clisp.org>
63468
63469         New module mbsrchr.
63470         * modules/mbsrchr: New file.
63471         * lib/mbsrchr.c: New file.
63472         * lib/string_.h (strrchr): Add a conditional link warning.
63473         (mbsrchr): New declaration.
63474         * m4/mbsrchr.m4: New file.
63475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63476         GNULIB_MBSRCHR.
63477         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63478         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63479
63480 2007-02-04  Bruno Haible  <bruno@clisp.org>
63481
63482         New module mbschr.
63483         * modules/mbschr: New file.
63484         * lib/mbschr.c: New file.
63485         * lib/string_.h (strchr): Add a conditional link warning.
63486         (mbschr): New declaration.
63487         * m4/mbschr.m4: New file.
63488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63489         GNULIB_MBSCHR.
63490         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63491         * MODULES.html.sh (Internationalization functions): Add mbschr.
63492
63493 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63496
63497         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63498
63499 2007-02-04  Bruno Haible  <bruno@clisp.org>
63500
63501         New module description section 'configure.ac-early'.
63502         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63503         (func_get_autoconf_early_snippet): New function.
63504         (func_import, func_create_testdir): Use it. Remove special cases for
63505         modules 'extensions' and 'lock'.
63506         * modules/extensions (configure.ac-early): Require
63507         gl_USE_SYSTEM_EXTENSIONS.
63508         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63509
63510 2007-02-04  Bruno Haible  <bruno@clisp.org>
63511
63512         Make use of gcj-4.3's -fsource and -ftarget option.
63513         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63514         and if so try the options -fsource and -ftarget.
63515         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63516         source_version, ftarget_option, target_version arguments.
63517         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63518         (is_envjavac_oldgcj_14_14_usable): Renamed from
63519         is_envjavac_gcj_14_14_usable.
63520         (is_envjavac_oldgcj_14_13_usable): Renamed from
63521         is_envjavac_gcj_14_13_usable.
63522         (is_gcj_present): Update.
63523         (is_gcj_43, is_gcj43_usable): New functions.
63524         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63525         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63526         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63527         try the options -fsource and -ftarget.
63528
63529 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63532         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63533         larger value.
63534
63535 2007-02-03  Jim Meyering  <jim@meyering.net>
63536
63537         Give tools a better chance to allocate space for very large buffers.
63538         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63539
63540         Make pwd and readlink work also when run with an unreadable parent dir
63541         on systems with openat support.
63542         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63543         provided getcwd function, even when we have openat support.
63544         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63545
63546 2007-02-02  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63549         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63550         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63551         portability problems if one of these functions is only used on specific
63552         platforms.
63553         Reported by Paul Eggert.
63554
63555 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63558         is causing more trouble than it's curing.
63559         * lib/regex_internal.h (__mempcpy): Remove.
63560         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63561         (and make the code a tad smaller to boot).
63562         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63563
63564 2007-02-02  Jim Meyering  <jim@meyering.net>
63565
63566         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63567         section, not in the Makefile.am: one.
63568
63569 2007-02-02  Eric Blake  <ebb9@byu.net>
63570
63571         * lib/strchrnul.c: Always include config.h first.
63572
63573         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63574         gnulib strstr is not necessary here.
63575
63576 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63577
63578         * m4/socklen.m4: Fix typo.
63579
63580 2007-02-02  Eric Blake  <ebb9@byu.net>
63581
63582         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63583         * modules/netinet_in (Makefile.am): Likewise.
63584
63585 2007-02-01  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/string_.h (GL_LINK_WARNING): New macro.
63588         (strcasecmp, strstr, strcasestr): If provided by the system,
63589         conditionally define as a macro that leads to a warning instead of to
63590         an error.
63591         (strncasecmp): Conditionally define as a macro that leads to a warning.
63592
63593 2007-02-01  Karl Berry  <karl@gnu.org>
63594
63595         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63596
63597 2007-02-01  Bruno Haible  <bruno@clisp.org>
63598
63599         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63600         renamings.
63601
63602 2007-02-01  Eric Blake  <ebb9@byu.net>
63603
63604         * modules/regex (Depends-on): Revert dependence on mempcpy.
63605         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63606         module's definition of mempcpy.
63607         Reported by Paul Eggert.
63608
63609 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63612         the symbol XYZ before redefining it.  This fixes a problem with
63613         programs that don't use XYZ, when compiled on systems that define
63614         XYZ to something else.
63615
63616 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63617
63618         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63619         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63620         writeable to group or other and (2) is intended to have a special
63621         mode bit that is set or cleared.  In such a case, the directory
63622         should be neither group- nor other-writeable until the special
63623         mode bits are right.
63624
63625 2007-01-31  Eric Blake  <ebb9@byu.net>
63626
63627         * modules/mountlist (Depends-on): Add strstr.
63628
63629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63630         bug.
63631         * modules/string (Makefile.am): Remove redundant replacement.
63632         * modules/regex (Depends-on): Add mempcpy.
63633
63634 2007-01-31  Bruno Haible  <bruno@clisp.org>
63635
63636         New module description field 'Link'.
63637         * gnulib-tool (func_usage): Document --extract-link-directive.
63638         (sed_extract_prog): Recognize 'Link' directive.
63639         (func_get_link_directive): New function.
63640         (func_import): Show summary of link directives.
63641         Handle --extract-link-directive option.
63642         * modules/acl (Link): New section.
63643         * modules/clock-time (Link): New section.
63644         * modules/euidaccess (Link): New section.
63645         * modules/gettext (Link): New section.
63646         * modules/iconv (Link): New section.
63647         * modules/lock (Link): New section.
63648         * modules/nanosleep (Link): New section.
63649         * modules/readline (Link): New section.
63650
63651 2007-01-27  Bruno Haible  <bruno@clisp.org>
63652
63653         Enforce the use of gnulib modules for unportable <string.h> functions.
63654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63655         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63656         (gl_HEADER_STRING_H_BODY): Require it.
63657         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63658         the symbol XYZ to one that gives a link error.
63659         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63660         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63661         * modules/mempcpy (configure.ac): Likewise.
63662         * modules/memrchr (configure.ac): Likewise.
63663         * modules/stpcpy (configure.ac): Likewise.
63664         * modules/stpncpy (configure.ac): Likewise.
63665         * modules/strcase (configure.ac): Likewise.
63666         * modules/strcasestr (configure.ac): Likewise.
63667         * modules/strchrnul (configure.ac): Likewise.
63668         * modules/strdup (configure.ac): Likewise.
63669         * modules/strndup (configure.ac): Likewise.
63670         * modules/strnlen (configure.ac): Likewise.
63671         * modules/strpbrk (configure.ac): Likewise.
63672         * modules/strsep (configure.ac): Likewise.
63673         * modules/strstr (configure.ac): Likewise.
63674         * modules/strtok_r (configure.ac): Likewise.
63675
63676 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63677
63678         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63679
63680 2007-01-30  Jim Meyering  <jim@meyering.net>
63681
63682         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63683
63684 2007-01-29  Bruno Haible  <bruno@clisp.org>
63685
63686         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63687         * lib/execute.c: Likewise.
63688         * lib/pipe.c: Likewise.
63689         * lib/printf-args.h: Likewise.
63690         * lib/printf-args.c: Likewise.
63691         * lib/printf-parse.c: Likewise.
63692         * lib/vasnprintf.c: Likewise.
63693
63694 2007-01-29  Eric Blake  <ebb9@byu.net>
63695
63696         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63697         declaration.
63698
63699 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * lib/strptime.h (strptime): Use 'restrict' for args where
63702         POSIX requires this.
63703         * lib/strptime.c (strptime): Likewise.
63704         Change license notice from LGPL to GPL, since gnulib-tool will
63705         change this as needed.
63706         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63707         defined.
63708         Include "strptime.h" first, to check interface.
63709         Do not #undef _LIBC and _NL_CURRENT.
63710         Do not include <stdlib.h>; no longer needed.
63711         Include "time_r.h" and declare ptime_locale_status
63712         only if _LIBC is not defined.
63713         (__P): Remove unused macro.
63714         (match_string): Bring back glibc version, but use it only if _LIBC
63715         is defined.
63716         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63717         Remove unnecessary assertion and abort() call.
63718         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63719         * m4/strptime.m4: Fix serial number comment.
63720         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63721         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63722         (Depends-on): Add time_r.
63723
63724 2007-01-29  Bruno Haible  <bruno@clisp.org>
63725
63726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63727         strptime.
63728         * modules/strptime (Depends-on): Add stdbool.
63729         * lib/strptime.h: Include <time.h> always. Add comments.
63730
63731 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63732
63733         * modules/strptime: New file.
63734         * lib/strptime.h: New file.
63735         * lib/strptime.c: New file.
63736         * m4/strptime.m4: New file.
63737
63738 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * MODULES.html.sh: New module mpsort.
63741         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63742
63743         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63744         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63746         All uses changed.
63747         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63748         All uses changed.
63749         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63750         to _Restrict_.
63751         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63752         the parameter matches the prototype.
63753
63754 2007-01-28  Jim Meyering  <jim@meyering.net>
63755
63756         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63757         sys/time.h here, reverting that part of the previous patch:
63758         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63759
63760 2007-01-28  Bruno Haible  <bruno@clisp.org>
63761
63762         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63763         value of $(SYS_TIME_H).
63764         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63765         remove it conditionally, too. [added by Jim Meyering]
63766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63769         GETTIMEOFDAY_REPLACEMENT to 1.
63770
63771 2007-01-28  Bruno Haible  <bruno@clisp.org>
63772
63773         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63774         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63776         Set UNISTD_H instead of UNISTD_H2.
63777         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63778
63779 2007-01-28  Bruno Haible  <bruno@clisp.org>
63780
63781         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63782         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63783
63784 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63785
63786         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63787         (func_create_testdir): Ensure C locale for `grep' and `tr'
63788         character ranges.
63789         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63790         ACLOCAL_AMFLAGS parsing state machine.
63791
63792 2007-01-27  Bruno Haible  <bruno@clisp.org>
63793
63794         * modules/unistr/base: Update.
63795
63796 2007-01-27  Bruno Haible  <bruno@clisp.org>
63797
63798         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63799         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63800         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63801         modules/unistr/u32-mbtouc.
63802         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63803         * lib/unistr.h: Update.
63804         * lib/linebreak.c: Update.
63805         * modules/unistr/u32-mbtouc: Renamed from
63806         modules/unistr/u32-mbtouc-safe.
63807         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63808         * lib/unistr.h: Update.
63809         * lib/unistr/u32-to-u8.c: Update.
63810         * lib/unistr/u32-to-u16.c: Update.
63811
63812 2007-01-27  Bruno Haible  <bruno@clisp.org>
63813
63814         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63815         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63816         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63817         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63818         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63819         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63820         modules/unistr/u16-mbtouc.
63821         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63822         * lib/unistr.h: Update.
63823         * lib/linebreak.c: Update.
63824         * modules/linebreak: Update.
63825         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63826         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63827         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63828         * modules/unistr/u16-mbtouc: Renamed from
63829         modules/unistr/u16-mbtouc-safe.
63830         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63831         * lib/unistr.h: Update.
63832         * lib/unistr/u16-to-u8.c: Update.
63833         * modules/unistr/u16-to-u8: Update.
63834         * lib/unistr/u16-to-u32.c: Update.
63835         * modules/unistr/u16-to-u32: Update.
63836
63837 2007-01-27  Bruno Haible  <bruno@clisp.org>
63838
63839         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63840         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63841         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63842         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63843         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63844         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63845         modules/unistr/u8-mbtouc.
63846         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63847         * lib/unistr.h: Update.
63848         * lib/striconveh.c: Update.
63849         * modules/striconveh: Update.
63850         * lib/linebreak.c: Update.
63851         * modules/linebreak: Update.
63852         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63853         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63854         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63855         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63856         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63857         * lib/unistr.h: Update.
63858         * lib/striconveh.c: Update.
63859         * modules/striconveh: Update.
63860         * lib/unistr/u8-to-u16.c: Update.
63861         * modules/unistr/u8-to-u16: Update.
63862         * lib/unistr/u8-to-u32.c: Update.
63863         * modules/unistr/u8-to-u32: Update.
63864
63865 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63866
63867         Sync from Libtool.
63868         * lib/argz.c: Do not include strings.h nor memory.h, include
63869         string.h unconditionally.  Patch by Simon Josefsson.
63870
63871 2007-01-27  Bruno Haible  <bruno@clisp.org>
63872
63873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63874         from gl_HEADER_STRING_H_BODY.
63875         (gl_HEADER_STRING_H_BODY): Require it.
63876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63877         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63878         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63879         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63881         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63883         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63884         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63885         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63886         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63887         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63888         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63891
63892 2007-01-27  Bruno Haible  <bruno@clisp.org>
63893
63894         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63895         check_PROGRAMS into noinst_PROGRAMS.
63896         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63897         check_PROGRAMS in this case.
63898         (func_import): Set for_test to false.
63899         (func_create_testdir): Set for_test to true.
63900
63901 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63902             Bruno Haible  <bruno@clisp.org>
63903
63904         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63905         (Depends-on): Add string.
63906         (Includes): Use <string.h> instead of strcasestr.h.
63907         * modules/string (Makefile.am): Also substitute the value of
63908         REPLACE_STRCASESTR.
63909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63910         assume strcasestr is declared in <string.h> not <strings.h>. Also
63911         set REPLACE_STRCASESTR.
63912         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63913         REPLACE_STRCASESTR.
63914         * lib/strcasestr.h: Remove file.
63915         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63916         * lib/string_.h (strcasestr): New declaration.
63917
63918 2007-01-27  Bruno Haible  <bruno@clisp.org>
63919
63920         * lib/string_.h: Use 'extern'.
63921
63922 2007-01-27  Jim Meyering  <jim@meyering.net>
63923
63924         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63925         of set-but-not-used local, "q".
63926
63927         * lib/mempcpy.c: Include <config.h> before <string.h>.
63928         This fixes a compilation error on HP-UX, due to the system's
63929         "restrict"-using mempcpy prototype.
63930
63931 2007-01-26  Bruno Haible  <bruno@clisp.org>
63932
63933         Small optimization.
63934         * lib/javacomp.c: Include c-strstr.h.
63935          (is_envjavac_gcj): Use c_strstr instead of strstr.
63936         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63937
63938 2007-01-26  Bruno Haible  <bruno@clisp.org>
63939
63940         * MODULES.html.sh (Unicode string functions): Add the new modules.
63941
63942         * modules/uniconv/u32-strconv-to-locale: New file.
63943         * lib/uniconv/u32-strconv-to-locale.c: New file.
63944
63945         * modules/uniconv/u16-strconv-to-locale: New file.
63946         * lib/uniconv/u16-strconv-to-locale.c: New file.
63947
63948         * modules/uniconv/u8-strconv-to-locale: New file.
63949         * lib/uniconv/u8-strconv-to-locale.c: New file.
63950
63951         * modules/uniconv/u32-strconv-from-locale: New file.
63952         * lib/uniconv/u32-strconv-from-locale.c: New file.
63953
63954         * modules/uniconv/u16-strconv-from-locale: New file.
63955         * lib/uniconv/u16-strconv-from-locale.c: New file.
63956
63957         * modules/uniconv/u8-strconv-from-locale: New file.
63958         * lib/uniconv/u8-strconv-from-locale.c: New file.
63959
63960         * modules/uniconv/u32-strconv-to-enc: New file.
63961         * lib/uniconv/u32-strconv-to-enc.c: New file.
63962         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63963         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63964
63965         * modules/uniconv/u16-strconv-to-enc: New file.
63966         * lib/uniconv/u16-strconv-to-enc.c: New file.
63967         * lib/uniconv/u-strconv-to-enc.h: New file.
63968         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63969         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63970
63971         * modules/uniconv/u8-strconv-to-enc: New file.
63972         * lib/uniconv/u8-strconv-to-enc.c: New file.
63973         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63974         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63975
63976         * modules/uniconv/u32-strconv-from-enc: New file.
63977         * lib/uniconv/u32-strconv-from-enc.c: New file.
63978         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63979         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63980
63981         * modules/uniconv/u16-strconv-from-enc: New file.
63982         * lib/uniconv/u16-strconv-from-enc.c: New file.
63983         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63984         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63985
63986         * modules/uniconv/u8-strconv-from-enc: New file.
63987         * lib/uniconv/u8-strconv-from-enc.c: New file.
63988         * lib/uniconv/u-strconv-from-enc.h: New file.
63989         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63990         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63991
63992         * modules/uniconv/u32-conv-from-enc: New file.
63993         * lib/uniconv/u32-conv-from-enc.c: New file.
63994         * modules/uniconv/u32-conv-from-enc-tests: New file.
63995         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63996
63997         * modules/uniconv/u16-conv-from-enc: New file.
63998         * lib/uniconv/u16-conv-from-enc.c: New file.
63999         * lib/uniconv/u-conv-from-enc.h: New file.
64000         * modules/uniconv/u16-conv-from-enc-tests: New file.
64001         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64002
64003         * modules/uniconv/u8-conv-from-enc: New file.
64004         * lib/uniconv/u8-conv-from-enc.c: New file.
64005         * modules/uniconv/u8-conv-from-enc-tests: New file.
64006         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64007
64008         * modules/uniconv/base: New file.
64009         * lib/uniconv.h: New file.
64010
64011 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         * doc/gnulib-tool.texi (Initial import): Update to match current
64014         behavior with strdup module.
64015         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64016         * lib/memmem.h: Remove; all uses removed.  This is now done
64017         by <string.h>.
64018         * lib/mempcpy.h: Likewise.
64019         * lib/memrchr.h: Likewise.
64020         * lib/stpcpy.h: Likewise.
64021         * lib/stpncpy.h: Likewise.
64022         * lib/strcase.h: Likewise.
64023         * lib/strchrnul.h: Likewise.
64024         * lib/strdup.h: Likewise.
64025         * lib/strndup.h: Likewise.
64026         * lib/strnlen.h: Likewise.
64027         * lib/strpbrk.h: Likewise.
64028         * lib/strsep.h: Likewise.
64029         * lib/strstr.h: Likewise.
64030         * lib/strtok_r.h: Likewise.
64031         * lib/string_.h: New file.
64032         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64033         Rely on <string.h> instead.
64034         * lib/canon-host.c: Likewise.
64035         * lib/chdir-long.c: Likewise.
64036         * lib/concatpath.c: Likewise.
64037         * lib/exclude.c: Likewise.
64038         * lib/fchdir.c: Likewise.
64039         * lib/getaddrinfo.c: Likewise.
64040         * lib/getcwd.c: Likewise.
64041         * lib/getsubopt.c: Likewise.
64042         * lib/glob.c: Likewise.
64043         * lib/hard-locale.c: Likewise.
64044         * lib/iconvme.c: Likewise.
64045         * lib/javacomp.c: Likewise.
64046         * lib/mempcpy.c: Likewise.
64047         * lib/memrchr.c: Likewise.
64048         * lib/regex_internal.h: Likewise.
64049         * lib/stpncpy.c: Likewise.
64050         * lib/strcasecmp.c: Likewise.
64051         * lib/strchrnul.c: Likewise.
64052         * lib/strdup.c: Likewise.
64053         * lib/striconv.c: Likewise.
64054         * lib/striconveh.c: Likewise.
64055         * lib/striconveha.c: Likewise.
64056         * lib/strncasecmp.c: Likewise.
64057         * lib/strndup.c: Likewise.
64058         * lib/strnlen.c: Likewise.
64059         * lib/strsep.c: Likewise.
64060         * lib/strstr.c: Likewise.
64061         * lib/strtok_r.c: Likewise.
64062         * lib/userspec.c: Likewise.
64063         * lib/w32spawn.h: Likewise.
64064         * lib/xstrndup.c: Likewise.
64065         * lib/mountlist.c (strstr): Remove decl.
64066         * m4/string_h.m4: New file.
64067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64068         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64069         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64070         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64071         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64072         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64073         Set REPLACE_STRCASECMP if necessary.
64074         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64075         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64076         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64078         HAVE_DECL_STRDUP if necessary.
64079         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64080         since gl_FUNC_STRNDUP does that now.
64081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64082         Check for decl here...
64083         (gl_PREREQ_STRNLEN): ... not here.
64084         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64085         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64086         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64087         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64088         necessary.
64089         * modules/string: New file.
64090         * modules/memmem (Files): Remove special-purpose include file.
64091         (Depends-on): Add string.
64092         (Include): Include <string.h>, not the removed file.
64093         * modules/mempcpy: Likewise.
64094         * modules/memrchr: Likewise.
64095         * modules/stpcpy: Likewise.
64096         * modules/stpncpy: Likewise.
64097         * modules/strcase: Likewise.
64098         * modules/strchrnul: Likewise.
64099         * modules/strdup: Likewise.
64100         * modules/strndup: Likewise.
64101         * modules/strnlen: Likewise.
64102         * modules/strpbrk: Likewise.
64103         * modules/strsep: Likewise.
64104         * modules/strstr: Likewise.
64105         * modules/strtok_r: Likewise.
64106         * tests/test-dirname.c: Don't include "strdup.h", since
64107         <string.h> now suffices.
64108         * tests/test-memmem.c: Don't include "memmem.h", since
64109         <string.h> now suffices.
64110
64111 2007-01-25  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64114         *resultp is 0.
64115
64116         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64117         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64118         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64119         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64120
64121         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64122         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64123         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64124         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64125         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64126         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64127
64128 2007-01-24  Bruno Haible  <bruno@clisp.org>
64129
64130         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64132         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64133         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64134         gl_FUNC_FTS_CORE.
64135         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64136         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64138         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64139         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64140         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64141         gl_FUNC_FCHOWNAT.
64142         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64143         gl_FUNC_STRFTIME.
64144         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64145         Reported by Ralf Wildenhues.
64146
64147 2007-01-24  Bruno Haible  <bruno@clisp.org>
64148
64149         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64150         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64151         gl_GETADDRINFO.
64152         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64153         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64154         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64155
64156 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64159         Don't use 'exit'; just return from 'main'.
64160         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64161
64162         * lib/fnmatch_.h: Readjust white space and comments to match
64163         glibc, to avoid spurious diffs.
64164
64165 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64168         2004-12-01 change by Jakub Jelinek, since this code won't compile
64169         if !LIBC.  Problem reported by Bob Proulx.
64170
64171 2007-01-23  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/striconveh.c: Include c-strcaseeq.h.
64174         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64175         * modules/striconveh (Depends-on): Add c-strcaseeq.
64176
64177 2007-01-23  Bruno Haible  <bruno@clisp.org>
64178
64179         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64180
64181         * modules/c-strcaseeq: New file.
64182         * lib/c-strcaseeq.h: New file.
64183
64184         * modules/streq: New file.
64185         * lib/streq.h: New file.
64186
64187 2007-01-23  Bruno Haible  <bruno@clisp.org>
64188
64189         * modules/striconveha-tests: New file.
64190         * tests/test-striconveha.c: New file.
64191
64192         * lib/striconveha.h: Include <stdbool.h>.
64193         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64194         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64195         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64196         (mem_iconveha): New function.
64197         (str_iconveha_notranslit): Renamed from str_iconveha.
64198         (str_iconveha): New function.
64199         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64200         c-strcase.
64201
64202 2007-01-23  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64205         encodings without forgiving before trying any encoding with handler.
64206         (str_iconveha): Try all encodings without forgiving before trying any
64207         encoding with handler.
64208
64209 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         Import the following changes from libc.
64212
64213         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64214
64215         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64216
64217         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64218
64219         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64220         normal_bracket label.
64221
64222         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64223
64224         [BZ #361]
64225         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64226         to normal_bracket after fetching the next character.
64227
64228 2007-01-22  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64231         argument.
64232         * lib/striconveh.c (iconv_carefully_1): New function.
64233         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64234         argument.
64235         (str_cd_iconveh): Update.
64236         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64237         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64238         * tests/test-striconveh.c (MAGIC): New macro.
64239         (new_offsets): New function.
64240         (main): Test call with and without offsets.
64241
64242 2007-01-22  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64245         * modules/sys_select (Makefile.am): Likewise.
64246         * modules/sys_socket (Makefile.am): Likewise.
64247         * modules/sys_time (Makefile.am): Likewise.
64248
64249 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * modules/gettimeofday (License): Change from GPL to LGPL, since
64252         gettimeofday is a library function.
64253
64254 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64255
64256         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64257
64258 2007-01-21  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64261
64262 2007-01-21  Bruno Haible  <bruno@clisp.org>
64263
64264         * modules/striconveha: New file.
64265         * lib/striconveha.h: New file.
64266         * lib/striconveha.c: New file.
64267         * MODULES.html.sh (Internationalization functions): Add striconveha.
64268         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64269         string.
64270         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64271
64272 2007-01-21  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64275         * lib/striconveh.c (str_iconveh): Likewise.
64276
64277 2007-01-21  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/striconveh.h (mem_iconveh): New declaration.
64280         * lib/striconveh.c (mem_iconveh): New function.
64281         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64282
64283 2007-01-21  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64286
64287         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64288         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64289         original result buffer.
64290         (str_cd_iconveh): Update.
64291         * tests/test-striconveh.c (main): Update.
64292
64293         * lib/striconv.h (mem_cd_iconv): Change specification.
64294         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64295         result buffer.
64296         (str_cd_iconv): Update.
64297         * tests/test-striconv.c (main): Update.
64298
64299 2007-01-21  Bruno Haible  <bruno@clisp.org>
64300
64301         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64302
64303 2007-01-20  Jim Meyering  <jim@meyering.net>
64304
64305         * lib/userspec.c (parse_with_separator): If a user or group string
64306         starts with "+", skip the corresponding name-to-ID look-up, since
64307         such a look-up must fail: user and group names may not include "+".
64308
64309 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64312         since we now assume the sys_time module.
64313         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64314         check for sys/time.h; no longer needed.
64315         * modules/poll (Depends-on): Depend on sys_time.
64316
64317 2007-01-18  Bruno Haible  <bruno@clisp.org>
64318
64319         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64321
64322         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64323         gettimeofday.
64324
64325         * tests/test-gettimeofday.c: Include <time.h>.
64326         (dummy): Remove variable.
64327
64328         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64329         gl_HEADER_SYS_TIME_H.
64330         (gl_HEADER_SYS_TIME_H): New macro.
64331
64332         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64333         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64335         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64336         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64338         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64339         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64340         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64341         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64342         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64343
64344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64345         last change; it caused a compilation error when cross-compiling to
64346         Cygwin.
64347
64348 2007-01-18  Jim Meyering  <jim@meyering.net>
64349
64350         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64351         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64352         than the race-prone "test -d sys || mkdir sys".
64353         (configure.ac): Use AC_PROG_MKDIR_P.
64354         * modules/sys_select: Likewise.
64355         * modules/sys_socket: Likewise.
64356         * modules/sys_time: Likewise.
64357
64358 2007-01-18  Eric Blake  <ebb9@byu.net>
64359
64360         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64361         replace gettimeofday.
64362         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64363         name, to avoid infinite recursion.
64364
64365 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64366
64367         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64368         module sys_time.
64369         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64370         assume timespec.h defines struct timeval.
64371         * lib/settime.c: Likewise.
64372         * lib/utimens.c: Likewise.
64373         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64374         since we now assume the gettimeofday module.
64375         * lib/tempname.c (__gen_tempname): Likewise.
64376         * lib/gettimeofday.h: Remove.
64377         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64378         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64379         Include <time.h>, for 'time()'.
64380         (localtime_buffer_addr): Also use this workaround if
64381         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64382         to simplify the uses.  All uses changed.
64383         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64384         that #undef is inside {}, and 'const' follows type name consistently.
64385         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64386         (gettimeofday): Do not use the maximum possible value for
64387         tv->tv_usec, since that might break usages other than ls.c.
64388         Instead, we'll leave ls.c alone.  This undoes today's patch
64389         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64390         we've never observed the problem but might as well keep the
64391         canary.
64392         * lib/nanosleep.c: Include timespec.h first, for interface check.
64393         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64394         now assume the sys_time module.
64395         * lib/tempname.c: Likewise.
64396         * lib/timespec.h: Likewise.
64397         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64398         needed.
64399         * lib/strftime.c: Likewise.
64400         * lib/timespec.h: Likewise.
64401         * lib/posixtm.c: Include posixtm.h first, for interface check.
64402         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64403         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64404         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64405         * lib/sys_time_.h: New file.
64406         * lib/timespec.h (struct timespec): Use long int, not long.
64407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64408         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64409         Remove obsolescent call to AC_HEADER_TIME.
64410         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64412         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64413         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64414         Likewise.
64415         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64416         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64418         into the sys_time module.  Check for gettimeofday just once.
64419         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64420         for gettimeofday signature to just check the signature.  Merely
64421         compile it, since linking doesn't test signature.  Improve test for
64422         whether gettimeofday.o is actually needed.
64423         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64424         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64425         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64426         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64427         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64428         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64429         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64430         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64431         than worrying about sys/time.h.
64432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64433         Don't bother worrying about TIME_WITH_SYS_TIME.
64434         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64435         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64436         * m4/sys_time_h.m4: New file.
64437         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64438         Don't include sys/time.h.  Return from main rather than exiting.
64439         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64440         all uses changed.
64441         * modules/gethrxtime (Depends-on): Add sys_time.
64442         * modules/gettime (Depends-on): Likewise.
64443         * modules/gettimeofday (Depends-on): Likewise.
64444         * modules/nanosleep (Depends-on): Likewise.
64445         * modules/settime (Depends-on): Likewise.
64446         * modules/tempname (Depends-on): Likewise.
64447         * modules/utimens (Depends-on): Likewise.
64448         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64449         (Include): Change back to <sys/time.h>.
64450         (Maintainer): Add self.
64451         * modules/sys_time: New file.
64452         * modules/tempname (Depends-on): Add gettimeofday.
64453         * tests/test-gettimeofday.c: Include <sys/time.h>
64454         rather than gettimeofday.h.
64455
64456 2007-01-17  Bruno Haible  <bruno@clisp.org>
64457
64458         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64459         the license default to GPL.
64460         (func_create_testdir): Don't complain if a module is LGPL and its
64461         tests module depends on GPLed modules.
64462
64463 2007-01-17  Bruno Haible  <bruno@clisp.org>
64464
64465         * lib/gettimeofday.c (gettimeofday): Add code for the case
64466         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64467         maximum possible value for tv->tv_usec, rather than the minimum one.
64468
64469 2005-10-08  Martin Lambers  <marlam@marlam.de>
64470 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64471 2007-01-16  Bruno Haible  <bruno@clisp.org>
64472
64473         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64474         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64475         gl_FUNC_GETTIMEOFDAY.
64476         (Include): Add gettimeofday.h.
64477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64478         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64479         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64480         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64481         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64482         * lib/gettimeofday.h: New file.
64483         * lib/gettimeofday.c: Include <sys/timeb.h>.
64484         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64485         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64486         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64487         fall back on time().
64488
64489         * tests/test-gettimeofday.c: New file.
64490         * modules/gettimeofday-tests: New file.
64491
64492 2007-01-16  Eric Blake  <ebb9@byu.net>
64493
64494         * modules/fnmatch (Depends-on): Depend on wchar.
64495         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64496         * m4/fnmatch.m4: Likewise.
64497         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64498         * m4/mbchar.m4: Likewise.
64499         * modules/mbswidth (Depends-on): Depend on wchar.
64500         * lib/mbswidth.c: Assume <wchar.h>.
64501         * m4/mbswidth.m4: Likewise.
64502         * modules/quotearg (Depends-on): Depend on wchar.
64503         * lib/quotearg.c: Assume <wchar.h>.
64504         * m4/quotearg.m4: Likewise.
64505         * modules/regex (Depends-on): Depend on wchar.
64506         * lib/regex_internal.h: Assume <wchar.h>.
64507         * m4/regex.m4: Likewise.
64508         * modules/stdint (Depends-on): Depend on wchar.
64509         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64510         * m4/stdint.m4: Likewise.
64511         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64512         * modules/strftime (Depends-on): Depend on wchar.
64513         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64514         * modules/strtol (Depends-on): Depend on wchar.
64515         * lib/strtol.c: Assume <wchar.h>.
64516         * modules/wcwidth (Depends-on): Depend on wchar.
64517         * lib/wcwidth.h: Assume <wchar.h>.
64518         * m4/wcwidth.m4: Likewise.
64519
64520 2007-01-16  Bruno Haible  <bruno@clisp.org>
64521
64522         * modules/csharpexec-script: New, created from...
64523         * modules/csharpexec: ... this.
64524
64525 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64526
64527         * modules/javaexec-script: New, created from...
64528         * modules/javaexec: ... this.
64529
64530 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64531
64532         * modules/poll (Dependencies): Add sys_select.
64533
64534 2007-01-15  Jim Meyering  <jim@meyering.net>
64535
64536         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64537         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64538         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64539         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64540
64541 2007-01-15  Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/striconveh: New file.
64544         * lib/striconveh.h: New file.
64545         * lib/striconveh.c: New file.
64546         * MODULES.html.sh (Internationalization functions): Add striconveh.
64547
64548         * modules/striconveh-tests: New file.
64549         * tests/test-striconveh.c: New file.
64550
64551 2007-01-15  Bruno Haible  <bruno@clisp.org>
64552
64553         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64554         not from GNU libiconv or GNU libc.
64555
64556 2007-01-15  Bruno Haible  <bruno@clisp.org>
64557
64558         * doc/gnulib-intro.texi (Copyright): Explain the different license
64559         terms for module descriptions, autoconf macros, tests, documentation.
64560
64561 2007-01-14  Bruno Haible  <bruno@clisp.org>
64562
64563         * modules/striconv-tests: New file.
64564         * tests/test-striconv.c: New file.
64565
64566 2007-01-14  Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/iconv-tests: New file.
64569         * tests/test-iconv.c: New file.
64570
64571 2007-01-14  Bruno Haible  <bruno@clisp.org>
64572
64573         * gnulib-tool (func_get_license): For test modules, use the license of
64574         the main module.
64575
64576 2007-01-14  Bruno Haible  <bruno@clisp.org>
64577
64578         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64579         if iconv is found to exist.
64580
64581 2007-01-14  Bruno Haible  <bruno@clisp.org>
64582
64583         * modules/c-ctype-tests: New file.
64584         * tests/test-c-ctype.c: New file.
64585
64586 2007-01-14  Bruno Haible  <bruno@clisp.org>
64587
64588         * modules/binary-io-tests: New file.
64589         * tests/test-binary-io.sh: New file.
64590         * tests/test-binary-io.c: New file.
64591
64592 2007-01-14  Bruno Haible  <bruno@clisp.org>
64593
64594         * modules/array-oset-tests: New file.
64595         * tests/test-array_oset.c: New file.
64596
64597 2007-01-14  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/array-list-tests: New file.
64600         * tests/test-array_list.c: New file.
64601
64602 2007-01-14  Bruno Haible  <bruno@clisp.org>
64603
64604         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64605         and make.
64606         Reported by Simon Josefsson in
64607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64608
64609 2007-01-14  Bruno Haible  <bruno@clisp.org>
64610
64611         * modules/allocsa-tests: New file.
64612         * tests/test-allocsa.c: New file.
64613
64614 2007-01-14  Bruno Haible  <bruno@clisp.org>
64615
64616         * modules/fchdir (Depends-on): Add absolute-header.
64617         * modules/unistd (Depends-on): Likewise.
64618
64619 2006-12-30  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/fchdir: New file.
64622         * modules/unistd (Files): Add lib/unistd_.h.
64623         (Makefile.am): Generate unistd.h from unistd_.h.
64624         * lib/fchdir.c: New file.
64625         * lib/dirent_.h: New file.
64626         * lib/unistd_.h: New file.
64627         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64628         * m4/fchdir.m4: New file.
64629         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64630         (gl_HEADER_UNISTD): Invoke it.
64631         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64632         function.
64633         * lib/backupfile.c (opendir, closedir): Undefine.
64634         * lib/chown.c (open, close): Undefine.
64635         * lib/clean-temp.c (open, close): Undefine.
64636         * lib/copy-file.c (open, close): Undefine.
64637         * lib/execute.c (open, close): Undefine.
64638         * lib/fsusage.c (open, close): Undefine.
64639         * lib/gc-gnulib.c (open, close): Undefine.
64640         * lib/getcwd.c (opendir, closedir): Undefine.
64641         * lib/glob.c (opendir, closedir): Undefine.
64642         * lib/javacomp.c (open, close): Undefine.
64643         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64644         * lib/openat-proc.c (open, close): Undefine.
64645         * lib/pagealign_alloc.c (open, close): Undefine.
64646         * lib/pipe.c (open, close): Undefine.
64647         * lib/progreloc.c (open, close): Undefine.
64648         * lib/savedir.c (opendir, closedir): Undefine.
64649         * lib/utime.c (open, close): Undefine.
64650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64651
64652 2007-01-10  Bruno Haible  <bruno@clisp.org>
64653
64654         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64655
64656 2007-01-12  Eric Blake  <ebb9@byu.net>
64657
64658         Provide a robust <wchar.h>.  Further simplifications are now
64659         possible in other modules, but not included here.
64660         * modules/wchar: New module.
64661         * m4/wchar.m4: New file.
64662         * lib/wchar_.h: Likewise.
64663         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64664         of the new module.
64665         * MODULES.html.sh (Extended multibyte and wide character utilities):
64666         New section.
64667
64668 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64669
64670         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64671         to a reasonable default for memory allocation.
64672         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64673         file system that reports garbage st_size values for symlinks.
64674         Problem reported by Liyang Hu.
64675
64676 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64677
64678         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64679         Emacs .#* auto-save files).
64680
64681 2007-01-11  Bruno Haible  <bruno@clisp.org>
64682
64683         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64684         directory.
64685
64686 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64687
64688         Use @...@ consistently in lib/wctype_.h.
64689         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64690         on it being set to 1 or 0.
64691         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64692         go back to AC_SUBSTing it.
64693         * modules/wctype (Makefile.am): Undo previous change.
64694
64695 2007-01-10  Eric Blake  <ebb9@byu.net>
64696
64697         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64698         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64699         * modules/wctype (Makefile.am): Likewise.
64700         Reported by Chris McGuire.
64701
64702 2007-01-10  Jim Meyering  <jim@meyering.net>
64703
64704         fts.c: a small readability/maintainability improvement
64705         * lib/fts.c (fts_read): Make this code slightly more readable and
64706         maintainable by hoisting the "sp->fts_cur = p" assignments to
64707         immediately follow the statements that set P.  Derived from
64708         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64709
64710 2007-01-10  Eric Blake  <ebb9@byu.net>
64711
64712         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64713         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64715         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64716         Reported by Chris McGuire.
64717
64718 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64719
64720         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64721         in sed script.
64722
64723 2007-01-09  Bruno Haible  <bruno@clisp.org>
64724
64725         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64726         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64727         variables.
64728         (func_module): Use them.
64729
64730 2007-01-09  Bruno Haible  <bruno@clisp.org>
64731
64732         * modules/unistr/base: New file.
64733         * lib/unistr.h: New file.
64734
64735         * modules/unistr/u8-to-u16: New file.
64736         * lib/unistr/u8-to-u16.c: New file.
64737
64738         * modules/unistr/u8-to-u32: New file.
64739         * lib/unistr/u8-to-u32.c: New file.
64740
64741         * modules/unistr/u16-to-u8: New file.
64742         * lib/unistr/u16-to-u8.c: New file.
64743
64744         * modules/unistr/u16-to-u32: New file.
64745         * lib/unistr/u16-to-u32.c: New file.
64746
64747         * modules/unistr/u32-to-u8: New file.
64748         * lib/unistr/u32-to-u8.c: New file.
64749
64750         * modules/unistr/u32-to-u16: New file.
64751         * lib/unistr/u32-to-u16.c: New file.
64752
64753         * modules/unistr/u8-check: New file.
64754         * modules/unistr/u16-check: New file.
64755         * modules/unistr/u32-check: New file.
64756         * lib/unistr/u8-check.c: New file.
64757         * lib/unistr/u16-check.c: New file.
64758         * lib/unistr/u32-check.c: New file.
64759
64760         * modules/unistr/u8-chr: New file.
64761         * modules/unistr/u16-chr: New file.
64762         * modules/unistr/u32-chr: New file.
64763         * lib/unistr/u8-chr.c: New file.
64764         * lib/unistr/u16-chr.c: New file.
64765         * lib/unistr/u32-chr.c: New file.
64766
64767         * modules/unistr/u8-cmp: New file.
64768         * modules/unistr/u16-cmp: New file.
64769         * modules/unistr/u32-cmp: New file.
64770         * lib/unistr/u8-cmp.c: New file.
64771         * lib/unistr/u16-cmp.c: New file.
64772         * lib/unistr/u32-cmp.c: New file.
64773
64774         * modules/unistr/u8-cpy: New file.
64775         * modules/unistr/u16-cpy: New file.
64776         * modules/unistr/u32-cpy: New file.
64777         * lib/unistr/u8-cpy.c: New file.
64778         * lib/unistr/u16-cpy.c: New file.
64779         * lib/unistr/u32-cpy.c: New file.
64780         * lib/unistr/u-cpy.h: New file.
64781
64782         * modules/unistr/u8-cpy-alloc: New file.
64783         * modules/unistr/u16-cpy-alloc: New file.
64784         * modules/unistr/u32-cpy-alloc: New file.
64785         * lib/unistr/u8-cpy-alloc.c: New file.
64786         * lib/unistr/u16-cpy-alloc.c: New file.
64787         * lib/unistr/u32-cpy-alloc.c: New file.
64788         * lib/unistr/u-cpy-alloc.h: New file.
64789
64790         * modules/unistr/u8-endswith: New file.
64791         * modules/unistr/u16-endswith: New file.
64792         * modules/unistr/u32-endswith: New file.
64793         * lib/unistr/u8-endswith.c: New file.
64794         * lib/unistr/u16-endswith.c: New file.
64795         * lib/unistr/u32-endswith.c: New file.
64796         * lib/unistr/u-endswith.h: New file.
64797
64798         * modules/unistr/u8-mblen: New file.
64799         * modules/unistr/u16-mblen: New file.
64800         * modules/unistr/u32-mblen: New file.
64801         * lib/unistr/u8-mblen.c: New file.
64802         * lib/unistr/u16-mblen.c: New file.
64803         * lib/unistr/u32-mblen.c: New file.
64804
64805         * modules/unistr/u8-mbtouc: New file.
64806         * modules/unistr/u16-mbtouc: New file.
64807         * modules/unistr/u32-mbtouc: New file.
64808         * lib/unistr/u8-mbtouc.c: New file.
64809         * lib/unistr/u16-mbtouc.c: New file.
64810         * lib/unistr/u32-mbtouc.c: New file.
64811
64812         * modules/unistr/u8-mbtouc-safe: New file.
64813         * modules/unistr/u16-mbtouc-safe: New file.
64814         * modules/unistr/u32-mbtouc-safe: New file.
64815         * lib/unistr/u8-mbtouc-safe.c: New file.
64816         * lib/unistr/u16-mbtouc-safe.c: New file.
64817         * lib/unistr/u32-mbtouc-safe.c: New file.
64818
64819         * modules/unistr/u8-move: New file.
64820         * modules/unistr/u16-move: New file.
64821         * modules/unistr/u32-move: New file.
64822         * lib/unistr/u8-move.c: New file.
64823         * lib/unistr/u16-move.c: New file.
64824         * lib/unistr/u32-move.c: New file.
64825         * lib/unistr/u-move.h: New file.
64826
64827         * modules/unistr/u8-next: New file.
64828         * modules/unistr/u16-next: New file.
64829         * modules/unistr/u32-next: New file.
64830         * lib/unistr/u8-next.c: New file.
64831         * lib/unistr/u16-next.c: New file.
64832         * lib/unistr/u32-next.c: New file.
64833
64834         * modules/unistr/u8-prev: New file.
64835         * modules/unistr/u16-prev: New file.
64836         * modules/unistr/u32-prev: New file.
64837         * lib/unistr/u8-prev.c: New file.
64838         * lib/unistr/u16-prev.c: New file.
64839         * lib/unistr/u32-prev.c: New file.
64840
64841         * modules/unistr/u8-set: New file.
64842         * modules/unistr/u16-set: New file.
64843         * modules/unistr/u32-set: New file.
64844         * lib/unistr/u8-set.c: New file.
64845         * lib/unistr/u16-set.c: New file.
64846         * lib/unistr/u32-set.c: New file.
64847         * lib/unistr/u-set.h: New file.
64848
64849         * modules/unistr/u8-startswith: New file.
64850         * modules/unistr/u16-startswith: New file.
64851         * modules/unistr/u32-startswith: New file.
64852         * lib/unistr/u8-startswith.c: New file.
64853         * lib/unistr/u16-startswith.c: New file.
64854         * lib/unistr/u32-startswith.c: New file.
64855         * lib/unistr/u-startswith.h: New file.
64856
64857         * modules/unistr/u8-stpcpy: New file.
64858         * modules/unistr/u16-stpcpy: New file.
64859         * modules/unistr/u32-stpcpy: New file.
64860         * lib/unistr/u8-stpcpy.c: New file.
64861         * lib/unistr/u16-stpcpy.c: New file.
64862         * lib/unistr/u32-stpcpy.c: New file.
64863         * lib/unistr/u-stpcpy.h: New file.
64864
64865         * modules/unistr/u8-stpncpy: New file.
64866         * modules/unistr/u16-stpncpy: New file.
64867         * modules/unistr/u32-stpncpy: New file.
64868         * lib/unistr/u8-stpncpy.c: New file.
64869         * lib/unistr/u16-stpncpy.c: New file.
64870         * lib/unistr/u32-stpncpy.c: New file.
64871         * lib/unistr/u-stpncpy.h: New file.
64872
64873         * modules/unistr/u8-strcat: New file.
64874         * modules/unistr/u16-strcat: New file.
64875         * modules/unistr/u32-strcat: New file.
64876         * lib/unistr/u8-strcat.c: New file.
64877         * lib/unistr/u16-strcat.c: New file.
64878         * lib/unistr/u32-strcat.c: New file.
64879         * lib/unistr/u-strcat.h: New file.
64880
64881         * modules/unistr/u8-strchr: New file.
64882         * modules/unistr/u16-strchr: New file.
64883         * modules/unistr/u32-strchr: New file.
64884         * lib/unistr/u8-strchr.c: New file.
64885         * lib/unistr/u16-strchr.c: New file.
64886         * lib/unistr/u32-strchr.c: New file.
64887
64888         * modules/unistr/u8-strcmp: New file.
64889         * modules/unistr/u16-strcmp: New file.
64890         * modules/unistr/u32-strcmp: New file.
64891         * lib/unistr/u8-strcmp.c: New file.
64892         * lib/unistr/u16-strcmp.c: New file.
64893         * lib/unistr/u32-strcmp.c: New file.
64894
64895         * modules/unistr/u8-strcpy: New file.
64896         * modules/unistr/u16-strcpy: New file.
64897         * modules/unistr/u32-strcpy: New file.
64898         * lib/unistr/u8-strcpy.c: New file.
64899         * lib/unistr/u16-strcpy.c: New file.
64900         * lib/unistr/u32-strcpy.c: New file.
64901         * lib/unistr/u-strcpy.h: New file.
64902
64903         * modules/unistr/u8-strcspn: New file.
64904         * modules/unistr/u16-strcspn: New file.
64905         * modules/unistr/u32-strcspn: New file.
64906         * lib/unistr/u8-strcspn.c: New file.
64907         * lib/unistr/u16-strcspn.c: New file.
64908         * lib/unistr/u32-strcspn.c: New file.
64909         * lib/unistr/u-strcspn.h: New file.
64910
64911         * modules/unistr/u8-strdup: New file.
64912         * modules/unistr/u16-strdup: New file.
64913         * modules/unistr/u32-strdup: New file.
64914         * lib/unistr/u8-strdup.c: New file.
64915         * lib/unistr/u16-strdup.c: New file.
64916         * lib/unistr/u32-strdup.c: New file.
64917         * lib/unistr/u-strdup.h: New file.
64918
64919         * modules/unistr/u8-strlen: New file.
64920         * modules/unistr/u16-strlen: New file.
64921         * modules/unistr/u32-strlen: New file.
64922         * lib/unistr/u8-strlen.c: New file.
64923         * lib/unistr/u16-strlen.c: New file.
64924         * lib/unistr/u32-strlen.c: New file.
64925         * lib/unistr/u-strlen.h: New file.
64926
64927         * modules/unistr/u8-strmblen: New file.
64928         * modules/unistr/u16-strmblen: New file.
64929         * modules/unistr/u32-strmblen: New file.
64930         * lib/unistr/u8-strmblen.c: New file.
64931         * lib/unistr/u16-strmblen.c: New file.
64932         * lib/unistr/u32-strmblen.c: New file.
64933
64934         * modules/unistr/u8-strmbtouc: New file.
64935         * modules/unistr/u16-strmbtouc: New file.
64936         * modules/unistr/u32-strmbtouc: New file.
64937         * lib/unistr/u8-strmbtouc.c: New file.
64938         * lib/unistr/u16-strmbtouc.c: New file.
64939         * lib/unistr/u32-strmbtouc.c: New file.
64940
64941         * modules/unistr/u8-strncat: New file.
64942         * modules/unistr/u16-strncat: New file.
64943         * modules/unistr/u32-strncat: New file.
64944         * lib/unistr/u8-strncat.c: New file.
64945         * lib/unistr/u16-strncat.c: New file.
64946         * lib/unistr/u32-strncat.c: New file.
64947         * lib/unistr/u-strncat.h: New file.
64948
64949         * modules/unistr/u8-strncmp: New file.
64950         * modules/unistr/u16-strncmp: New file.
64951         * modules/unistr/u32-strncmp: New file.
64952         * lib/unistr/u8-strncmp.c: New file.
64953         * lib/unistr/u16-strncmp.c: New file.
64954         * lib/unistr/u32-strncmp.c: New file.
64955
64956         * modules/unistr/u8-strncpy: New file.
64957         * modules/unistr/u16-strncpy: New file.
64958         * modules/unistr/u32-strncpy: New file.
64959         * lib/unistr/u8-strncpy.c: New file.
64960         * lib/unistr/u16-strncpy.c: New file.
64961         * lib/unistr/u32-strncpy.c: New file.
64962         * lib/unistr/u-strncpy.h: New file.
64963
64964         * modules/unistr/u8-strnlen: New file.
64965         * modules/unistr/u16-strnlen: New file.
64966         * modules/unistr/u32-strnlen: New file.
64967         * lib/unistr/u8-strnlen.c: New file.
64968         * lib/unistr/u16-strnlen.c: New file.
64969         * lib/unistr/u32-strnlen.c: New file.
64970         * lib/unistr/u-strnlen.h: New file.
64971
64972         * modules/unistr/u8-strpbrk: New file.
64973         * modules/unistr/u16-strpbrk: New file.
64974         * modules/unistr/u32-strpbrk: New file.
64975         * lib/unistr/u8-strpbrk.c: New file.
64976         * lib/unistr/u16-strpbrk.c: New file.
64977         * lib/unistr/u32-strpbrk.c: New file.
64978         * lib/unistr/u-strpbrk.h: New file.
64979
64980         * modules/unistr/u8-strrchr: New file.
64981         * modules/unistr/u16-strrchr: New file.
64982         * modules/unistr/u32-strrchr: New file.
64983         * lib/unistr/u8-strrchr.c: New file.
64984         * lib/unistr/u16-strrchr.c: New file.
64985         * lib/unistr/u32-strrchr.c: New file.
64986
64987         * modules/unistr/u8-strspn: New file.
64988         * modules/unistr/u16-strspn: New file.
64989         * modules/unistr/u32-strspn: New file.
64990         * lib/unistr/u8-strspn.c: New file.
64991         * lib/unistr/u16-strspn.c: New file.
64992         * lib/unistr/u32-strspn.c: New file.
64993         * lib/unistr/u-strspn.h: New file.
64994
64995         * modules/unistr/u8-strstr: New file.
64996         * modules/unistr/u16-strstr: New file.
64997         * modules/unistr/u32-strstr: New file.
64998         * lib/unistr/u8-strstr.c: New file.
64999         * lib/unistr/u16-strstr.c: New file.
65000         * lib/unistr/u32-strstr.c: New file.
65001         * lib/unistr/u-strstr.h: New file.
65002
65003         * modules/unistr/u8-strtok: New file.
65004         * modules/unistr/u16-strtok: New file.
65005         * modules/unistr/u32-strtok: New file.
65006         * lib/unistr/u8-strtok.c: New file.
65007         * lib/unistr/u16-strtok.c: New file.
65008         * lib/unistr/u32-strtok.c: New file.
65009         * lib/unistr/u-strtok.h: New file.
65010
65011         * modules/unistr/u8-uctomb: New file.
65012         * modules/unistr/u16-uctomb: New file.
65013         * modules/unistr/u32-uctomb: New file.
65014         * lib/unistr/u8-uctomb.c: New file.
65015         * lib/unistr/u16-uctomb.c: New file.
65016         * lib/unistr/u32-uctomb.c: New file.
65017
65018         * MODULES.html.sh (Unicode string functions): Add the new modules.
65019
65020 2007-01-08  Bruno Haible  <bruno@clisp.org>
65021
65022         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65023         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65024         subdirectories.
65025
65026 2007-01-08  Karl Berry  <karl@gnu.org>
65027
65028         * doc/error.texi: mention that main() fns must set program_name
65029         when progname is used.
65030
65031 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65034         WCTYPE_H is empty, for the benefit of builds from non-distclean
65035         directories.  Problem reported by Eric Blake in
65036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65037
65038 2007-01-08  Bruno Haible  <bruno@clisp.org>
65039
65040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65041         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65042         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65043         PROVIDE_CANONICALIZE_FILENAME_MODE.
65044         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65045
65046 2007-01-08  Bruno Haible  <bruno@clisp.org>
65047
65048         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65049         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65050         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65051         * lib/fts.c: Likewise.
65052         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65053
65054 2006-12-25  Bruno Haible  <bruno@clisp.org>
65055
65056         * modules/utf8-ucs4-safe: New file.
65057         * lib/utf8-ucs4-safe.h: New file.
65058         * lib/unistr/utf8-ucs4-safe.c: New file.
65059
65060         * modules/utf16-ucs4-safe: New file.
65061         * lib/utf16-ucs4-safe.h: New file.
65062         * lib/unistr/utf16-ucs4-safe.c: New file.
65063
65064         * MODULES.html.sh (Unicode string functions): Add the new modules.
65065
65066 2007-01-08  Bruno Haible  <bruno@clisp.org>
65067
65068         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65069         (Depends-on): Add unitypes.
65070         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65071         (u8_mbtouc_aux): Move out to separate file.
65072         (u8_mbtouc): Use ucs4_t, uint8_t types.
65073         * lib/unistr/utf8-ucs4.c: New file.
65074
65075         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65076         (Depends-on): Add unitypes.
65077         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65078         (u16_mbtouc_aux): Move out to separate file.
65079         (u16_mbtouc): Use ucs4_t, uint16_t types.
65080         * lib/unistr/utf16-ucs4.c: New file.
65081
65082         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65083         (Depends-on): Add unitypes.
65084         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65085         (u8_uctomb_aux): Move out to separate file.
65086         (u8_uctomb): Use ucs4_t, uint8_t types.
65087         * lib/unistr/ucs4-utf8.c: New file.
65088
65089         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65090         (Depends-on): Add unitypes.
65091         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65092         (u16_uctomb_aux): Move out to separate file.
65093         (u16_uctomb): Use ucs4_t, uint16_t types.
65094         * lib/unistr/ucs4-utf16.c: New file.
65095
65096 2006-12-25  Bruno Haible  <bruno@clisp.org>
65097
65098         * modules/unitypes: New file.
65099         * lib/unitypes.h: New file.
65100         * MODULES.html.sh (func_all_modules): New section "Unicode string
65101         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65102         this section. Add unitypes.
65103
65104 2007-01-08  Bruno Haible  <bruno@clisp.org>
65105
65106         Avoid variable names that conflict with those from libtool.
65107         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65108         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65109         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65110         library_names_spec to acl_library_names_spec, hardcode_* to
65111         acl_hardcode_*.
65112         Reported by Ralf Wildenhues.
65113
65114 2007-01-08  Bruno Haible  <bruno@clisp.org>
65115
65116         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65117         definition.
65118         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65119         definition.
65120         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65121         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65122         definition.
65123         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65124         definition.
65125         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65126         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65127         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65128         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65129         definition.
65130         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65131         definition.
65132         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65133         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65134         GC_USE_<algorithm>.
65135         * lib/gc-libgcrypt.c: Likewise.
65136         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65137         * modules/gc-arctwo (configure.ac): Likewise.
65138         * modules/gc-des (configure.ac): Likewise.
65139         * modules/gc-hmac-md5 (configure.ac): Likewise.
65140         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65141         * modules/gc-md2 (configure.ac): Likewise.
65142         * modules/gc-md4 (configure.ac): Likewise.
65143         * modules/gc-md5 (configure.ac): Likewise.
65144         * modules/gc-random (configure.ac): Likewise.
65145         * modules/gc-rijndael (configure.ac): Likewise.
65146         * modules/gc-sha1 (configure.ac): Likewise.
65147
65148 2007-01-08  Bruno Haible  <bruno@clisp.org>
65149
65150         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65151         macro definition.
65152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65153         definition.
65154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65155         definition.
65156         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65157         * modules/fcntl-safer (configure.ac): Likewise.
65158         * modules/fopen-safer (configure.ac): Likewise.
65159         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65160         GNULIB_FWRITEERROR macro definition.
65161
65162 2007-01-08  Bruno Haible  <bruno@clisp.org>
65163
65164         * m4/gnulib-common.m4: New file.
65165         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65166         (func_get_filelist): Add m4/gnulib-common.m4.
65167
65168 2007-01-08  Bruno Haible  <bruno@clisp.org>
65169
65170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65171         command.
65172
65173 2007-01-08  Jim Meyering  <jim@meyering.net>
65174
65175         Use a more robust test for a "can't happen" condition.
65176         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65177         narrowed the st_size value.  Presuming the "can't happen" condition
65178         is true, that narrowing could conceivably convert an invalid st_size
65179         value into a valid one.  Instead, use a change based on Matthew
65180         Woehlke's original patch.
65181
65182         Slight readability improvement: use an assert-like macro
65183         in place of literal "abort ()" uses.
65184         * lib/fts.c (fts_assert): Define.
65185         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65186         Use this macro instead of a bare 'abort'.
65187
65188 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65191         simply work around them.
65192         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65193         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65194         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65195         declaring.
65196         Don't bother to define as macros, since the standard doesn't require it.
65197         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65198         longer worry about IRIX 5.3.
65199         (HAVE_WCTYPE_CTMP_BUG): Remove.
65200
65201 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65204         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65205         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65206         Problems reported by Georg Schwarz for IRIX 5.3.
65207
65208         * gnulib-tool (autoconf_minversion): Take the maximum version number
65209         found, not the minimum.  Problem reported by James Youngman.
65210
65211 2007-01-03  Karl Berry  <karl@gnu.org>
65212
65213         * doc/error.texi: new file, explaining interaction with progname.
65214         * doc/gnulib.texi: include it.  Update copyright.
65215
65216 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65217
65218         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65219         AC_CANONICAL_HOST, to improve autobuild outputs.
65220
65221 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65222             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65223
65224         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65225         sockets, server sockets, and other file descriptors.  Count errors
65226         to compute the return value.  Reorder the code a bit to be easier
65227         to follow.  Don't set event bits that were not requested (except
65228         POLLERR and POLLHUP).
65229
65230 2007-01-01  Bruno Haible  <bruno@clisp.org>
65231
65232         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65233
65234 2007-01-03  Jim Meyering  <jim@meyering.net>
65235
65236         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65237
65238 2007-01-02  Bruno Haible  <bruno@clisp.org>
65239
65240         * modules/settime (Include): Require timespec.h.
65241         * modules/nanosleep (Include): Likewise.
65242
65243 2007-01-01  Bruno Haible  <bruno@clisp.org>
65244
65245         * gnulib-tool (func_emit_copyright_notice): Bump year.
65246         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65247
65248 2007-01-01  Bruno Haible  <bruno@clisp.org>
65249
65250         Improve support for OpenBSD.
65251         * build-aux/config.rpath (libname_spec): Export.
65252         (library_names_spec): New variable. Export.
65253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65254         library_names_spec from the config.rpath output. Locate shared library
65255         through the name pattern in library_names_spec.
65256
65257 2007-01-01  Eric Blake  <ebb9@byu.net>
65258
65259         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65260
65261 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65262
65263         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65264         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65265         assume the C locale, and avoid an "eval" that could cause trouble.
65266         Problem with SORT reported by Bob Proulx.
65267
65268         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65269         Define.  Trivial patch from Henning Nielsen Lund, originally
65270         sent to bug-grep@gnu.org today.
65271
65272 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65275         struct stat.  Problem reported by Henning Nielsen Lund.
65276         * lib/acl.c: Include acl.h first, to check interface.  Don't
65277         bother to include sys/types.h and sys/stat.h again.
65278
65279 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         Import the following change from libc; problem reported by
65282         Sven Verdoolaege.
65283
65284         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65285
65286         [BZ #1373]
65287         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65288
65289 2006-12-28  Jim Meyering  <jim@meyering.net>
65290
65291         * build-aux/announce-gen: Do not assume that the package
65292         builds any of tar.gz, tar.bz2, and .xdelta files.
65293         Suggestion from Simon Josefsson.
65294
65295 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65296
65297         * modules/announce-gen: New file.
65298
65299 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65302         handles its gotchas now.
65303         * lib/mbswidth.c: Likewise.
65304         * lib/wcwidth.h: Likewise.
65305         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65306         and iswcntrl; the wctype module does this stuff now.
65307         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65309         * modules/mbchar (Depends-on): Add wctype.
65310         * modules/mbswidth (Depends-on): Likewise.
65311         * modules/wcwidth (Depends-on): Likewise.
65312
65313 2006-12-27  Eric Blake  <ebb9@byu.net>
65314
65315         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65316         module uses more than what <wctype.h> is required to provide.
65317
65318 2006-12-26  Eric Blake  <ebb9@byu.net>
65319
65320         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65321
65322 2006-12-26  Eric Blake  <ebb9@byu.net>
65323
65324         * modules/absolute-header: New module.
65325         * modules/fcntl (Depends-on): Depend on it.
65326         * modules/inttypes (Depends-on): Likewise.
65327         * modules/stdint (Depends-on): Likewise.
65328         * modules/sys_stat (Depends-on): Likewise.
65329         * modules/wctype (Depends-on): Likewise.
65330         * MODULES.html.sh (Support for building libraries and
65331         executables): Document it.
65332
65333 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * gnulib-tool (SED): Remove, undoing previous change.
65336         The problem was that it broke coreutils on Solaris, because
65337         "sed --posix" leaked into a makefile.
65338         (sed): New alias, if 'alias' and GNU sed.
65339
65340 2006-12-24  Jim Meyering  <jim@meyering.net>
65341
65342         Work around an fchownat bug in glibc-2.4:
65343         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65344         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65345         in spite of the -P option.
65346         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65347         New macros.
65348         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65349         * modules/openat (Files): Add lib/fchownat.c.
65350         * lib/openat.c (fchownat): Don't define here.  Move to...
65351         * lib/fchownat.c: ...this new file.
65352
65353 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         Fix bug reported by Bruno Haible in
65356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65357         where quotearg.c didn't compile on Mac OS X 10.2 because it
65358         lacks <wchar.h> and wint_t.
65359         * lib/wctype_.h (__wctype_wint_t): New type.
65360         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65361         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65362         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65363         Arg is now of type __wctype_wint_t, not wint_t.
65364         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65365         substitute HAVE_WINT_T.
65366         * modules/wctype (Files): Add m4/wint_t.m4.
65367         (wctype.h): Substitute HAVE_WINT_T.
65368
65369 2006-12-23  Bruno Haible  <bruno@clisp.org>
65370
65371         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65372
65373 2006-12-23  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65376         S_ISLNK.
65377         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65378         mingw.
65379
65380 2006-12-22  Bruno Haible  <bruno@clisp.org>
65381
65382         * lib/copy-file.c: Include acl.h.
65383         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65384         Close the file descriptors only after being done with copy_acl.
65385         * modules/copy-file (Depends-on): Add acl.
65386
65387 2006-12-22  Bruno Haible  <bruno@clisp.org>
65388
65389         * gnulib-tool (SED): New variable.
65390         Use $SED instead of sed everywhere.
65391
65392 2006-12-22  Bruno Haible  <bruno@clisp.org>
65393
65394         * modules/no-c++: New file.
65395         * m4/no-c++.m4: New file.
65396         * MODULES.html.sh (Support for building libraries and executables):
65397         Add no-c++.
65398
65399 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65402         Include <limits.h>, and use its INT_MAX to rewrite the
65403         j loop so that it does not overflow 'int'.  Problem reported by
65404         Ralf Wildenhues in
65405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65406         Play it safe by shifting left by 1 rather than multiplying by 2,
65407         as GCC is less likely to optimize this away when the value
65408         is signed (when it assumes overflow leads to undefined behavior).
65409         Also, don't assume time_t uses two's complement.
65410
65411 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65412
65413         * MODULES.html.sh: New module wctype.
65414         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65415         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65416         <wctype.h>, since the new wctype module should fix this.
65417         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65418         the wctype module should arrange for it.
65419         * lib/regex_internal.h: Likewise.
65420         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65421         since the wctype module should handle this now.
65422         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65423         * modules/fnmatch (Depends-on): Add wctype.
65424         * modules/quotearg (Depends-on): Likewise.
65425         * modules/regex (Depends-on): Likewise.
65426
65427 2006-12-19  Bruno Haible  <bruno@clisp.org>
65428
65429         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65430         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65431
65432 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65433
65434         * modules/savewd (Depends-on): Fix dependency on fcntl.
65435
65436 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65439         conforms to C99, rather than relying on the user's environment
65440         setting of STDINT_H.
65441
65442 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65443         and Eric Blake  <ebb9@byu.net>
65444
65445         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65446         This is more consistent with the other defines here.
65447         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65448         Port to z/OS.  Problem reported by Paul Gilmartin.
65449         Change local vars to use gl_ prefix rather than ac_.
65450         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65451         with other defines.
65452         * modules/double-slash-root: New module.
65453         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65454         (Depends-on): Add double-slash-root.
65455         * MODULES.html.sh (File system functions): Mention new module.
65456
65457 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65458
65459         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65460         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65461         This is for the benefit of gzip, which doesn't do i18n.
65462
65463 2006-12-12  Jim Meyering  <jim@meyering.net>
65464
65465         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65466         Reported by Andreas Schwab <schwab@suse.de>.
65467
65468 2006-12-12  Bruno Haible  <bruno@clisp.org>
65469
65470         Merge these changes.
65471         2006-09-05  Bruno Haible  <bruno@clisp.org>
65472         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65473         iconv_alloc succeeded.
65474         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65475         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65476         test for " && dest " at the end - dest is always != NULL there. Call
65477         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65478         with 2xNULL arguments, also to flush the state storage. Handle the
65479         IRIX iconv behaviour. Realloc the final result, to throw away unused
65480         memory.
65481
65482 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65485         and fchmodat unconditionally, since glibc 2.4 has them.
65486         Problem reported by Arkadiusz Miskiewicz.
65487
65488 2006-12-10  Bruno Haible  <bruno@clisp.org>
65489
65490         * gnulib-tool (func_import): Show the include files only for those
65491         modules that are copied and specified.
65492         Reported by Karl Berry.
65493
65494 2006-12-08  Jim Meyering  <jim@meyering.net>
65495
65496         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65497         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65498
65499         * build-aux/announce-gen: Add two new options, both optional:
65500         --bootstrap-tools=TOOL_LIST
65501               a comma-separated list of tools, e.g.,
65502               autoconf,automake,bison,gnulib
65503         --gnulib-snapshot-date=DATE
65504               if gnulib is in the bootstrap tool list,
65505               then report this as the snapshot date.
65506               If not specified, use the current date/time.
65507               If you specify a date here, be sure it's UTC.
65508
65509 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65510
65511         * tests/test-argp-2.sh: Fix test to match actual output.
65512         (func_compare): Fix sed script to be portable.
65513
65514 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65515
65516         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65517         workaround for this case.  It is not autoconfigured now; offhand
65518         it's hard to see how to autoconfigure it.
65519
65520 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65523         a directory that is about to be chowned.  Such a directory's
65524         initial file permissions should permit the owner only and this
65525         should not be changed until after the chown, since the group and
65526         other bits would be incorrect if they granted permission before
65527         the chown.
65528
65529         Fix porting problem for iswctype reported by Georg Schwarz in:
65530         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65531         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65532         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65534         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65535
65536 2006-12-03  Jim Meyering  <jim@meyering.net>
65537
65538         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65539         p->fts_statp may not yet be defined.
65540         (fts_read): Instead, set it in the caller, once p->fts_statp is
65541         sure to be defined, and corresponds to a top-level directory.
65542         This bug made du -x fail.  Here's the coreutils test case:
65543         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65544         Reported by Mike Frysinger.
65545
65546 2006-12-01  Jim Meyering  <jim@meyering.net>
65547
65548         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65549         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65550         Reported by Simon Josefsson.
65551
65552 2006-11-30  Jim Meyering  <jim@meyering.net>
65553
65554         * m4/warning.m4: Use the all-permissive copyright notice
65555         recommended by RMS (rather than LGPL).
65556         * m4/vararrays.m4: Likewise.
65557         * m4/flexmember.m4: Likewise.
65558
65559 2006-11-29  Bruno Haible  <bruno@clisp.org>
65560
65561         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65562         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65563         using +=.
65564         Reported by Simon Josefsson <simon@josefsson.org>.
65565
65566 2006-11-28  James Youngman <jay@gnu.org>
65567
65568         * README: Advise users that they might find the bug-gnulib@gnu.org
65569         and autotools-announce@gnu.org mailing lists useful.
65570
65571 2006-11-28  Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/ptrdiff_max.m4: Remove file.
65574
65575 2006-11-21  Bruno Haible  <bruno@clisp.org>
65576
65577         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65578         _AC_COMPUTE_INT.
65579         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65580         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65581         _AC_COMPUTE_INT.
65582         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65583         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65584         _AC_COMPUTE_INT.
65585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65586
65587 2006-11-28  Jim Meyering  <jim@meyering.net>
65588
65589         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65590         warning from "gcc -Wshadow" about shadowing the builtin.
65591
65592 2006-11-27  Bruno Haible  <bruno@clisp.org>
65593
65594         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65595         _AC_COMPUTE_INT.
65596         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65597
65598 2006-11-27  Bruno Haible  <bruno@clisp.org>
65599             Paul Eggert  <eggert@cs.ucla.edu>
65600
65601         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65602
65603 2006-11-26  Bruno Haible  <bruno@clisp.org>
65604
65605         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65606         noinst_LTLIBRARIES.
65607
65608 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65609             Bruno Haible  <bruno@clisp.org>
65610
65611         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65612         if compiling with "gcc -ansi".
65613
65614 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65615
65616         Fix some incompatibilities with gcc -ansi -pedantic.
65617         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65618         if compiling pedantically with GCC, unless it's C99 or later.
65619         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65620         it mishandles gcc -ansi -pedantic as well.
65621         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65622         if gcc -pedantic.
65623         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65624         initializers for struct if -pedantic, unless it's C99 or later.
65625
65626 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65627
65628         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65629         Don't close an fd more than once. Identical atimes indicate
65630         success, not failure.
65631
65632 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65633
65634         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65635
65636 2006-11-23  Jim Meyering  <jim@meyering.net>
65637
65638         * build-aux/announce-gen: New file.  From coreutils.
65639
65640 2006-11-22  Jim Meyering  <jim@meyering.net>
65641
65642         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65643         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65644         (fts_read): Use a temporary to narrow the overused st_size member
65645         before using it in a switch statement.  Reported by Matthew Woehlke.
65646
65647         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65648         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65649
65650 2006-11-20  Bruno Haible  <bruno@clisp.org>
65651
65652         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65653         changequote instead of pairs of brackets.
65654         Reported by Andreas Schwab <schwab@suse.de>.
65655
65656 2006-11-21  Jim Meyering  <jim@meyering.net>
65657
65658         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65659         so as to remain compatible with older compilers.
65660         Patch from Michael Deutschmann.
65661
65662 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65663
65664         * MODULES.html.sh (File system functions): Add openat.
65665
65666         * lib/openat.h (rpl_fstatat): New macro, if
65667         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65668         (fstatat): Define to rpl_fstatat under the same conditions,
65669         unless COMPILING_FSTATAT.
65670         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65671         seems to have the bug.
65672         * lib/fstatat.c: New file.
65673         * modules/openat (Files): Add it.
65674
65675 2006-11-20  Bruno Haible  <bruno@clisp.org>
65676
65677         * Makefile: New file.
65678
65679 2006-11-20  Jim Meyering  <jim@meyering.net>
65680
65681         The beginnings of syntax-related checks for gnulib.
65682         * lib/Makefile: New file.
65683         * lib/t-idcache: New script.  Ensure that the two halves of
65684         idcache.c stay in sync.
65685
65686         * lib/idcache.c: Adjust comments in user- and group- portions to
65687         be more accurate, and to be consistent with one another.
65688
65689 2006-11-20  Jim Meyering  <jim@meyering.net>
65690
65691         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65692         continue using the flexible array member (thus, this module performs
65693         half as many malloc calls), with the addition that...
65694         (getgroup, getuser): Consistently record a non-match via an empty
65695         "name" string, and map an empty string match to a NULL return value.
65696         * modules/idcache (Depends-on): Re-add flexmember.
65697
65698         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65699         (getuidbyname, getgroup, getgidbyname): Likewise.
65700
65701         Use cleaner syntax: NULL rather than 0.
65702         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65703
65704 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65707         It mishandled the case where the group was missing.
65708         Problem reported by Greg Schafer.
65709         * modules/idcache: Likewise.
65710
65711 2006-11-18  Jim Meyering  <jim@meyering.net>
65712
65713         * check-module (%exempt_header): Add exception for some
65714         conditionally-included headers.
65715
65716         * modules/i-ring (Depends-on): Add verify.
65717         (License): Change to LGPL.
65718
65719 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65722         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65723         and inttostr.h.  Use snprintf rather than uinttostr, so that
65724         LGPLed code doesn't depend on GPLed.
65725
65726 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         * modules/inline (License): Change from GPL to LGPL.
65729
65730 2006-11-17  Jim Meyering  <jim@meyering.net>
65731
65732         * modules/d-type (License): Switch to LGPL.
65733
65734 2006-11-15  Bruno Haible  <bruno@clisp.org>
65735
65736         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65737
65738 2006-11-15  Eric Blake  <ebb9@byu.net>
65739
65740         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65741         the module dependency.
65742
65743 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65744             Bruno Haible  <bruno@clisp.org>
65745
65746         * gnulib-tool (func_create_testdir): Add license consistency check.
65747
65748 2006-11-15  Eric Blake  <ebb9@byu.net>
65749
65750         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65751         random "(cached)" in configure output.
65752
65753 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65754
65755         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65756         test for conforming inttypes.h is both announced and cached.
65757
65758         * MODULES.html.sh (seen_modules, seen_files): New variables.
65759         (func_module): Rewrite to use a few less gnulib-tool and sed
65760         invocations.  Avoid a couple of quadratic algorithms for ...
65761         (missed_modules, missed_files): ... these, with ...
65762         (func_append, func_tmpdir): ... these new functions, from
65763         gnulib-tool.  Analogously, install traps for cleanup.
65764
65765         * tests/test-gc.c (main): Remove unused variables.
65766         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65767
65768 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         * modules/inttostr (License): Change to LGPL.
65771
65772 2006-11-14  Eric Blake  <ebb9@byu.net>
65773
65774         * modules/tempname (License): Change to LGPL.
65775
65776 2006-11-14  Eric Blake  <ebb9@byu.net>
65777
65778         * doc/functions.texi (Function Portability): *printf functions on
65779         Cygwin now understand all POSIX size specifiers.
65780
65781 2006-11-14  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/c-ctype (License): Change to LGPL.
65784
65785 2006-11-12  Bruno Haible  <bruno@clisp.org>
65786
65787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65788         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65789         for GNOME libraries, for which the include files are installed in
65790         subdirectories of $prefix/include.
65791
65792 2006-11-12  Bruno Haible  <bruno@clisp.org>
65793
65794         * m4/lib-link.m4: Require at least autoconf-2.54.
65795         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65796         name to underscores for the --with option.
65797
65798 2006-11-13  Bruno Haible  <bruno@clisp.org>
65799
65800         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65801         the tests directory.
65802         Reported by Ralf Wildenhues.
65803
65804 2006-11-13  Bruno Haible  <bruno@clisp.org>
65805
65806         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65807         (func_emit_initmacro_end): Undo the override here.
65808         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65809         Works around the famous automake error in coreutils.
65810
65811 2006-11-13  Eric Blake  <ebb9@byu.net>
65812
65813         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65814         element, not its node.
65815
65816 2006-11-12  Bruno Haible  <bruno@clisp.org>
65817
65818         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65819         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65820
65821 2006-11-12  Bruno Haible  <bruno@clisp.org>
65822
65823         * gnulib-tool: New option --local-symlink.
65824         (func_usage): Document it.
65825         (lsymbolic): New variable.
65826         (func_import, func_create_testdir): If --symlink was not specified,
65827         test whether --local-symlink was specified and the file comes from
65828         the local_gnulib_dir.
65829
65830 2006-11-12  Bruno Haible  <bruno@clisp.org>
65831
65832         * gnulib-tool (func_ln): New function.
65833         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65834
65835 2006-11-12  Bruno Haible  <bruno@clisp.org>
65836
65837         Finish support for source files in subdirectories.
65838         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65839         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65840         AUTOMAKE_OPTIONS.
65841         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65842
65843 2006-11-12  Bruno Haible  <bruno@clisp.org>
65844
65845         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65846         EXTRA_lib_SOURCES augmentation.
65847         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65848
65849 2006-11-12  Jim Meyering  <jim@meyering.net>
65850
65851         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65852         file descriptors.  This also averts a failure on systems with
65853         native openat support when a traversed directory lacks "x" access.
65854         * lib/fts_.h: Include "i-ring.h"
65855         (struct FTS) [fts_fd_ring]: New member.
65856         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65857         (FCHDIR): Add parentheses.
65858         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65859         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65860         When descending, rather than simply closing the previous
65861         fts_cwd_fd value, push that file descriptor onto the ring.
65862         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65863         (fts_open): Initialize the new fd_ring member.
65864         (fts_close): Clear the ring.
65865         (fts_safe_changedir): When possible, use our new fd_ring to skip
65866         the diropen and fstat and dev/ino comparison that would normally
65867         accompany a virtual `chdir ("..")'.
65868
65869         * modules/fts (Depends-on): Add i-ring.
65870         * modules/i-ring: New module.
65871         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65872         * m4/i-ring.m4: New file.
65873
65874 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65875
65876         * gnulib-tool (func_create_testdir): Fix replacement of
65877         `build-aux' in configure.ac.  Run autotools in gltests
65878         subdirectory.
65879         (func_create_testdir, func_create_megatestdir, test): There is
65880         no need for '--force' in most autotool invocations in a new
65881         tree.  Actually fail the whole test if any of the tools, or the
65882         configure or make stages fail.
65883
65884         Sync from Automake.
65885         * build-aux/gnupload: Revert last change.  Add pointer to upload
65886         instructions of the GNU Maintenance Instructions.
65887         Suggestion by Karl Berry.
65888
65889 2006-11-10  Jim Meyering  <jim@meyering.net>
65890
65891         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65892
65893 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65896         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65897         (bind_textdomain_codeset) [! ENABLE_NLS]:
65898         Evaluate all the arguments.  That way, callers get compatible behavior
65899         if the arguments have side effects.  Also, it avoids some GCC
65900         diagnostics in some cases; Joel E. Denny reported problems when Bison
65901         was configured with --enable-gcc-warnigs.
65902
65903 2006-11-10  Jim Meyering  <jim@meyering.net>
65904
65905         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65906         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65907         account.
65908
65909 2006-11-10  Jim Meyering  <jim@meyering.net>
65910
65911         * modules/inline: New file/module.
65912         * modules/xalloc (Files): Remove m4/inline.m4.
65913         (Depends-on): Add inline, instead.
65914         * modules/oset: Likewise.
65915         * modules/list: Likewise.
65916
65917 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65920         Problem reported by Matthew Woehlke.
65921
65922 2006-11-09  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/tempname.c (gen_tempname): Remove variant that invokes
65925         __gen_tempname.
65926         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65927         __gen_tempname.
65928
65929 2006-11-08  Bruno Haible  <bruno@clisp.org>
65930
65931         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65932         to 'yes' instead of 'cross-compiling'.
65933
65934 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * lib/quotearg.h (quotearg_free): New decl.
65937         * lib/quotearg.c (quotearg_free): New function.
65938         (slot0, nslots, slotvec0, slotvec):
65939         Now file-scope so that quotearg_free can get at them.
65940
65941 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65942
65943         Sync from Automake.
65944         * build-aux/gnupload: Add missing 'gnu' to example URL.
65945         Report by Karl Berry.
65946
65947 2006-11-08  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65950         Suggested by Paul Eggert.
65951
65952 2006-11-08  Jim Meyering  <jim@meyering.net>
65953
65954         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65955         It's already included if !_LIBC.
65956         (fts_safe_changedir): Add a comment.
65957
65958 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65959
65960         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65961         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65962         Matthew Woehlke.
65963
65964         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65965         definitions up, to avoid colliding with change below.
65966         (static_inline) [HAVE_INLINE]: New macro.
65967         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65968         Provide extern decls when !HAVE_INLINE.  Do not define unless
65969         static_inline is defined, either by us or by xmalloc.c.  Use
65970         static_inline rather than static inline.
65971         (XCALLOC): Optimize sizeof(T) = 1 case.
65972         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65973
65974 2006-11-07  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65977         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65978         AC_C_INLINE.
65979         * modules/xalloc (Files): Add m4/inline.m4.
65980
65981 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65982
65983         * README: Fix typo.
65984         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65985         (Miscellanous Notes): ...from this.
65986
65987 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65990         Mention that offsetof should be used instead of sizeof.
65991         From Bruno Haible.
65992
65993 2006-11-07  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65996
65997 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66000         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66001         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66002         (gl_tree_add_before, gl_tree_add_after):
66003         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66004         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66005         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66006         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66007         (gl_linked_add_after, gl_linked_add_at): Likewise.
66008         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66009         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66010         (gl_tree_add_before, gl_tree_add_after): Likewise.
66011         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66012         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66013         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66014
66015 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66016
66017         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66018
66019 2006-11-06  Bruno Haible  <bruno@clisp.org>
66020
66021         * m4/inline.m4: New file.
66022         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66023         * modules/list (Files): Add m4/inline.m4.
66024         * modules/oset (Files): Likewise.
66025
66026 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         * lib/idcache.c: Include <stddef.h>, for offsetof.
66029         (struct userid.name): Change from char * to a flexible array member.
66030         All uses changed.
66031         * modules/idcache (Depends-on): Add flexmember.
66032
66033         * MODULES.html.sh (Core language properties): New module flexmember.
66034         * modules/flexmember, m4/flexmember.m4: New files.
66035
66036         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66037         inline functions that are identical with the old xnmalloc_inline,
66038         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66039         that we can avoid some unnecessary integer multiplications and
66040         divisions in the common case where the element size is known at
66041         compile time.
66042         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66043         needed.
66044         (xnboundedmalloc): Remove.
66045         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66046         arguments, for consistency with rest of this header.
66047         (xcharalloc): Rewrite using XNMALLOC.
66048         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66049         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66050         versions have been moved to lib/xalloc.h and renamed to be the
66051         non-*_inline versions.
66052         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66053         and xnrealloc functions, since those functions are now inline and
66054         now call us.
66055         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66056         renaming described above.
66057         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66058         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66059         captures the dependency in AC_C_INLINE.
66060
66061         New module canonicalize-lgpl, proposed by Charles Wilson in
66062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66063         with a few small changes afterwards.
66064         * MODULES.html.sh (File system functions): New module
66065         canonicalize-lgpl.
66066         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66067         and canonicalize_file_name.
66068         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66069         * modules/canonicalize-lgpl: New files.
66070
66071 2006-11-05  Bruno Haible  <bruno@clisp.org>
66072
66073         * gnulib-tool (func_import, func_create_testdir): Create directories
66074         also for files in subdirectories of lib/.
66075
66076 2006-11-05  Bruno Haible  <bruno@clisp.org>
66077
66078         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66079         ANSI C compliant.
66080
66081 2006-11-03  Bruno Haible  <bruno@clisp.org>
66082
66083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66084         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66085         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66086         (xnboundedmalloc): New inline function.
66087         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66088         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66089         xmalloc.
66090         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66091         xmalloc.
66092         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66093         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66094         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66095         xmalloc.
66096         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66097         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66098         xmalloc.
66099         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66100         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66101         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66102         xmalloc.
66103         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66104         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66105         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66106         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66107         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66108         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66109         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66110
66111 2006-11-03  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/c-ctype.h [C++]: Define functions without name mangling.
66114         * lib/fwriteerror.h [C++]: Likewise.
66115         * lib/gcd.h [C++]: Likewise.
66116         * lib/linebreak.h [C++]: Likewise.
66117
66118 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66121         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66122         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66124         Check for functions and headers just once.
66125         Check for declaration of canonicalize_file_name.
66126         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66127
66128 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66129
66130         * gnulib-tool (func_import): Fix typo in actioncmd.
66131
66132 2006-11-02  Bruno Haible  <bruno@clisp.org>
66133
66134         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66135         newline sequence in the Makefile.am snippet as a space, like "make"
66136         does.
66137         Reported by Roger Persson <perrog@gmail.com>.
66138
66139 2006-11-01  Bruno Haible  <bruno@clisp.org>
66140
66141         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66142         already declared in <string.h>.
66143         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66144
66145 2006-11-01  Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66148         * lib/strcase.h: Include <string.h>.
66149         (strcasecmp): Define to rpl_strcasecmp here.
66150
66151 2006-11-01  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66154
66155 2006-11-01  Eric Blake  <ebb9@byu.net>
66156
66157         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66158
66159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66160
66161 2006-10-29  Bruno Haible  <bruno@clisp.org>
66162
66163         Make it compile in C++ mode.
66164         * lib/full-write.c (full_rw): Add a cast.
66165
66166 2006-11-01  Bruno Haible  <bruno@clisp.org>
66167
66168         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66169         be POSIX compliant.
66170         Reported by Roger Persson <perrog@gmail.com>.
66171
66172 2006-11-01  Eric Blake  <ebb9@byu.net>
66173
66174         * lib/getopt_.h: Fix comments.
66175
66176 2006-10-31  Eric Blake  <ebb9@byu.net>
66177
66178         * modules/tmpdir (Depends-on): Add sys_stat.
66179         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66180         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66181         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66182         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66183         tempname.
66184
66185 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         Avoid some C++ diagnostics reported by Bruno Haible.
66188         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66189         xmalloc.
66190         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66191         (struct slotvec): Move to top level.
66192         (quotearg_n_options): Rewrite to avoid xmalloc.
66193         * lib/xalloc.h (xcharalloc): New function.
66194         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66195         [defined __cplusplus]: Add function template that provides result
66196         type propagation.  This part of the change is from Bruno Haible.
66197
66198 2006-10-29  Bruno Haible  <bruno@clisp.org>
66199
66200         Make it compile in C++ mode.
66201         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66202         * lib/strnlen1.c (strnlen1): Cast memchr result.
66203         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66204         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66205         (create_temp_dir): Rename local variable 'template'.
66206         (compile_csharp_using_sscli): Add cast.
66207         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66208         * lib/findprog.c (find_in_path): Likewise.
66209         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66210         * lib/wait-process.c (register_slave_subprocess): Likewise.
66211
66212 2006-10-22  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/tsearch: New file.
66215         * lib/tsearch.h: New file.
66216         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66217         * m4/tsearch.m4: New file.
66218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66219
66220 2006-10-29  Eric Blake  <ebb9@byu.net>
66221
66222         * lib/arcfour.c: Assume config.h.
66223         * lib/arctwo.c: Likewise.
66224         * lib/base64.c: Likewise.
66225         * lib/check-version.c: Likewise.
66226         * lib/crc.c: Likewise.
66227         * lib/des.c: Likewise.
66228         * lib/gc-gnulib.c: Likewise.
66229         * lib/gc-libgcrypt.c: Likewise.
66230         * lib/gc-pbkdf2-sha1.c: Likewise.
66231         * lib/getaddrinfo.c: Likewise.
66232         * lib/getdelim.c: Likewise.
66233         * lib/getline.c: Likewise.
66234         * lib/hmac-md5.c: Likewise.
66235         * lib/hmac-sha1.c: Likewise.
66236         * lib/iconvme.c: Likewise.
66237         * lib/md2.c: Likewise.
66238         * lib/md4.c: Likewise.
66239         * lib/memxor.c: Likewise.
66240         * lib/read-file.c: Likewise.
66241         * lib/readline.c: Likewise.
66242         * lib/rijndael-alg-fst.c: Likewise.
66243         * lib/rijndael-api-fst.c: Likewise.
66244         * lib/xgetdomainname.c: Likewise.
66245
66246 2006-10-28  Eric Blake  <ebb9@byu.net>
66247
66248         * lib/xstrndup.c: Assume config.h.
66249
66250 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66251
66252         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66253         stat-macros.h is now for our own macros, whereas stat_h is for
66254         macros in the <sys/stat.h> name space.
66255         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66256         (STAT_MACROS_H): Remove.
66257         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66258         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66259         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66260         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66261         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66262         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66263         Move these macros to ...
66264         * lib/stat_.h: here.  Don't include stat-macros.h.
66265         * lib/canonicalize.c: Don't include stat-macros.h.
66266         * lib/chown.c: Likewise.
66267         * lib/euidaccess.c: Likewise.
66268         * lib/file-type.c: Likewise.
66269         * lib/filemode.c: Likewise.
66270         * lib/glob.c: Likewise.
66271         * lib/isapipe.c: Likewise.
66272         * lib/lchown.c: Likewise.
66273         * lib/lstat.c: Likewise.
66274         * lib/mkdir-p.c: Likewise.
66275         * lib/rmdir.c: Likewise.
66276         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66278         unless mkdir isn't declared, to speed up 'configure'.
66279         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66280         would define all the S_* symbols.
66281         * modules/canonicalize (Depends-on):
66282         Depend on sys_stat, not stat-macros.
66283         * modules/chown: Likewise.
66284         * modules/euidaccess: Likewise.
66285         * modules/filemode: Likewise.
66286         * modules/file-type: Likewise.
66287         * modules/glob: Likewise.
66288         * modules/isapipe: Likewise.
66289         * modules/lchown: Likewise.
66290         * modules/lstat: Likewise.
66291         * modules/mkancesdirs: Likewise.
66292         * modules/rmdir: Likewise.
66293         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66294         * modules/modechange: Likewise.
66295         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66296         (configure.ac): Remove gl_STAT_MACROS.
66297         * modules/sys_stat (Depends-on): Remove stat-macros.
66298
66299 2006-10-27  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/signed.m4: Remove file.
66302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66303         invocation.
66304         * modules/vasnprintf (Files): Remove m4/signed.m4.
66305
66306 2006-10-27  Bruno Haible  <bruno@clisp.org>
66307
66308         Update to GNU gettext 0.16.
66309         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66310         m4/inttypes-h.m4, m4/signed.m4.
66311         * m4/gettext.m4: Update to GNU gettext 0.16.
66312         * m4/intl.m4: New file, from GNU gettext.
66313         * m4/intldir.m4: New file, from GNU gettext.
66314         * config/srclist.txt: Update
66315
66316 2006-10-27  Eric Blake  <ebb9@byu.net>
66317
66318         * MODULES.html.sh: Document tempname.
66319         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66320         dependencies.
66321         (Files): Move lib/tempname.c...
66322         * modules/tempname: ...to this new module.
66323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66324         (gl_PREREQ_TEMPNAME): Move...
66325         * m4/tempname.m4: ...to this new file.
66326         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66327         * modules/sys_stat (Depends-on): Add stat-macros.
66328         * lib/stat_.h (includes): Pick up stat macros.
66329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66330         if stat macros are broken.
66331         * lib/tempname.c (includes): No need to include "stat-macros.h".
66332         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66333         (direxists, __path_search) [!_LIBC]: Don't compile these in
66334         gnulib; the tmpdir module covers that.
66335         * lib/tempname.h: New file.
66336
66337 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * COPYING: Explain how gnulib-tool converts licence headers.
66340         Almost all wording by Eric Blake.
66341
66342 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66343
66344         * lib/mbchar.h (is_basic_table): Make read-only.
66345         * lib/mbchar.c (is_basic_table): Likewise.
66346         Reported by John Darrington.
66347
66348 2006-10-25  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/progname.h (set_program_name): Undefine before defining.
66351
66352 2006-10-25  Bruno Haible  <bruno@clisp.org>
66353
66354         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66355         false for non-gcc C++ compilers.
66356         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66357
66358 2006-10-24  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66361         iconv implementations like Irix iconv.
66362
66363 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66364
66365         * modules/vararrays: New file.
66366         * m4/vararrays.m4: New file, taken from diffutils.
66367         * MODULES.html.sh: New module vararrays.
66368
66369 2006-10-24  Karl Berry  <karl@gnu.org>
66370
66371         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66372         Don't call GNU Unix.
66373
66374 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66375
66376         * users.txt: Add Libtool.
66377
66378         Sync from Libtool:
66379
66380         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66383         to gnulib's policy of including config.h unconditionally.
66384
66385 2006-10-24  Bruno Haible  <bruno@clisp.org>
66386
66387         * modules/wcwidth (Files): Add m4/wint_t.m4.
66388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66389         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66390
66391 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66394         to pacify GCC with some -W flags enabled.  Problem reported by
66395         Bruno Haible.
66396
66397 2006-10-24  Jim Meyering  <jim@meyering.net>
66398
66399         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66400         Reported by Karl Berry.
66401
66402 2006-10-23  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66405
66406 2006-10-24  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/gl_list.h: Use C comment style, not C++ comment style.
66409
66410 2006-10-23  Eric Blake  <ebb9@byu.net>
66411
66412         * lib/getaddrinfo.c (includes): Add missing include.
66413
66414 2006-10-23  Bruno Haible  <bruno@clisp.org>
66415             Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         Ability to rename obstack_free.
66418         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66419         obstack_free.
66420         (obstack_free): Invoke the __obstack_free macro.
66421         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66422
66423 2006-10-23  Bruno Haible  <bruno@clisp.org>
66424             Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66427         __argc, __argv from the declaration. (They are defined as macros on
66428         mingw.)
66429
66430 2006-10-22  Bruno Haible  <bruno@clisp.org>
66431
66432         * doc/gnulib-intro.texi: New file.
66433         * doc/gnulib.texi: Include it.
66434
66435 2006-10-21  Bruno Haible  <bruno@clisp.org>
66436
66437         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66438         "Introduction", "Miscellanous Notes", "Particular Modules".
66439
66440 2006-10-21  Bruno Haible  <bruno@clisp.org>
66441
66442         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66443         Change mostlyclean-local rule to avoid sh syntax error from bash
66444         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66445
66446 2006-10-23  Jim Meyering  <jim@meyering.net>
66447
66448         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66449         in place of snprintf.
66450
66451         * modules/inttostr (Files): Add lib/uinttostr.c.
66452         * lib/uinttostr.c (inttostr): New file/function.
66453         * lib/inttostr.h (uinttostr): Declare.
66454         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66455         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66456         Add uinttostr.
66457         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66458
66459 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * lib/canonicalize.c (ELOOP): Define if not already defined.
66462         Problem reported by Bruno Haible in
66463         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66464
66465 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66468         Problem reported by Perry Smith and Ville Laurikari.
66469
66470         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66471         uses.
66472
66473 2006-10-19  Bruno Haible  <bruno@clisp.org>
66474
66475         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66476         for mingw.
66477
66478 2006-10-19  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66481         Needed for mingw.
66482
66483 2006-10-19  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66486
66487 2006-10-19  Bruno Haible  <bruno@clisp.org>
66488
66489         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66490         it.
66491
66492 2006-10-19  Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66495         invocation.
66496
66497 2006-10-19  Bruno Haible  <bruno@clisp.org>
66498
66499         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66500         mountlist by default.
66501
66502 2006-10-16  Bruno Haible  <bruno@clisp.org>
66503
66504         * lib/c-strstr.c: Include c-strstr.h.
66505
66506 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66507
66508         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66509         in a slash.
66510
66511 2006-10-18  Bruno Haible  <bruno@clisp.org>
66512
66513         * lib/lock.h [C++]: Wrap definitions in extern "C".
66514
66515 2006-10-18  Bruno Haible  <bruno@clisp.org>
66516
66517         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66518         gl_LIBOBJS list.
66519
66520 2006-10-18  Bruno Haible  <bruno@clisp.org>
66521
66522         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66523
66524 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * lib/xstrtol.h: Include gettext.h.
66527         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66528         Problem reported by Eric Blake.
66529         * modules/xstrtol (Depends-on): Add gettext-h.
66530
66531 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66532
66533         * lib/strftime.c (advance): New macro.
66534         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66535         incomplete type, so you can't add 0 to it.  Problem and patch
66536         reported by Eelco Dolstra for dietlibc.
66537
66538 2006-10-18  Jim Meyering  <jim@meyering.net>
66539
66540         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66541         type for a local, and rename it: s/up/user_proc/.
66542
66543 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66544
66545         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66546         READ_UTMP_USER_PROCESS.
66547         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66548
66549 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66550
66551         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66552         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66553
66554 2006-10-17  Eric Blake  <ebb9@byu.net>
66555
66556         * lib/sigprocmask.c (sigprocmask): Fix typo.
66557
66558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66559
66560         * modules/clean-temp (Makefile.am): Don't add to make output...
66561         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66562         config.h.
66563
66564 2006-10-17  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66567         differently if DEFAULT_TEXT_DOMAIN is set.
66568
66569 2006-10-16  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/clean-temp.c: Include fwriteerror.h.
66572
66573 2006-10-16  Bruno Haible  <bruno@clisp.org>
66574
66575         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66576
66577 2006-10-16  Bruno Haible  <bruno@clisp.org>
66578
66579         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66580         * lib/sigprocmask.h: Include <sys/types.h>.
66581         (sigset_t): Use the system's definition if present.
66582
66583 2006-10-17  Eric Blake  <ebb9@byu.net>
66584
66585         * lib/xvasprintf.c (includes): Assume config.h.
66586         * lib/xasprintf.c (includes): Likewise.
66587
66588 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66591         at least as wide as intmax_t.
66592
66593 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66594
66595         (Imported from Automake.)
66596         * build-aux/gnupload: Update to version 1.1 of directive file.
66597
66598 2006-10-16  Eric Blake  <ebb9@byu.net>
66599
66600         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66601         match Automake 1.10a.
66602
66603 2006-10-14  Bruno Haible  <bruno@clisp.org>
66604
66605         * modules/sigprocmask: New file.
66606         * lib/sigprocmask.h: New file.
66607         * lib/sigprocmask.c: New file.
66608         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66609         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66610         request sigprocmask.o.
66611         (gl_PREREQ_SIGPROCMASK): New macro.
66612         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66613         (Depends-on): Add sigprocmask.
66614         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66615         gt_SIGNALBLOCKING. Test for 'raise' only once.
66616         * lib/fatal-signal.c: Include sigprocmask.h.
66617         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66618         unblock_fatal_signals): Define always.
66619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66620         sigprocmask.
66621
66622 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         Sync from Automake.
66625         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66626         which incorrectly sets the mode of an existing destination
66627         directory.  In some cases the unpatched install-sh could do the
66628         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66629         system.  We hope this is rare in practice, but it's clearly worth
66630         fixing.  Problem reported by Alex Unleashed in
66631         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66632         Also, don't bother to check for -m bugs unless we're using -m;
66633         suggested by Stepan Kasal.
66634
66635 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66636
66637         Sync from Automake.
66638         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66639         `-c' flag, so they appear at the same position as in %FASTDEP%
66640         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66641         which ignores unknown options only after the first non-option.
66642         Bug report against M4 by Nelson H. F. Beebe.
66643
66644 2006-10-13  Jim Meyering  <jim@meyering.net>
66645
66646         Fix a bug in yesterday's change.
66647         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66648         p->fts_statp->st_dev would be used uninitialized.
66649         Ensures that we always call fts_stat on the very first entry.
66650         Miklos Szeredi reported that find -xdev stopped working.
66651
66652 2006-10-12  Bruno Haible  <bruno@clisp.org>
66653
66654         * gnulib-tool (func_get_automake_snippet): Append an automatically
66655         computed EXTRA_DIST augmentation.
66656         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66657         * modules/alloca-opt (Makefile.am): Likewise.
66658         * modules/allocsa (Makefile.am): Likewise.
66659         * modules/arcfour (Makefile.am): Likewise.
66660         * modules/arctwo (Makefile.am): Likewise.
66661         * modules/argmatch (Makefile.am): Likewise.
66662         * modules/argz (Makefile.am): Likewise.
66663         * modules/atexit (Makefile.am): Likewise.
66664         * modules/backupfile (Makefile.am): Likewise.
66665         * modules/byteswap (Makefile.am): Likewise.
66666         * modules/c-strtod (Makefile.am): Likewise.
66667         * modules/c-strtold (Makefile.am): Likewise.
66668         * modules/calloc (Makefile.am): Likewise.
66669         * modules/canon-host (Makefile.am): Likewise.
66670         * modules/canonicalize (Makefile.am): Likewise.
66671         * modules/chdir-long (Makefile.am): Likewise.
66672         * modules/chdir-safer (Makefile.am): Likewise.
66673         * modules/check-version (Makefile.am): Likewise.
66674         * modules/chown (Makefile.am): Likewise.
66675         * modules/cloexec (Makefile.am): Likewise.
66676         * modules/close-stream (Makefile.am): Likewise.
66677         * modules/closeout (Makefile.am): Likewise.
66678         * modules/crc (Makefile.am): Likewise.
66679         * modules/csharpexec (Makefile.am): Likewise.
66680         * modules/cycle-check (Makefile.am): Likewise.
66681         * modules/des (Makefile.am): Likewise.
66682         * modules/dev-ino (Makefile.am): Likewise.
66683         * modules/dirfd (Makefile.am): Likewise.
66684         * modules/dirname (Makefile.am): Likewise.
66685         * modules/dup2 (Makefile.am): Likewise.
66686         * modules/eealloc (Makefile.am): Likewise.
66687         * modules/error (Makefile.am): Likewise.
66688         * modules/euidaccess (Makefile.am): Likewise.
66689         * modules/exclude (Makefile.am): Likewise.
66690         * modules/exitfail (Makefile.am): Likewise.
66691         * modules/fcntl-safer (Makefile.am): Likewise.
66692         * modules/fcntl (Makefile.am): Likewise.
66693         * modules/file-type (Makefile.am): Likewise.
66694         * modules/fileblocks (Makefile.am): Likewise.
66695         * modules/filemode (Makefile.am): Likewise.
66696         * modules/filenamecat (Makefile.am): Likewise.
66697         * modules/fnmatch (Makefile.am): Likewise.
66698         * modules/fopen-safer (Makefile.am): Likewise.
66699         * modules/fpending (Makefile.am): Likewise.
66700         * modules/fprintftime (Makefile.am): Likewise.
66701         * modules/free (Makefile.am): Likewise.
66702         * modules/fsusage (Makefile.am): Likewise.
66703         * modules/ftruncate (Makefile.am): Likewise.
66704         * modules/fts (Makefile.am): Likewise.
66705         * modules/gc-arcfour (Makefile.am): Likewise.
66706         * modules/gc-des (Makefile.am): Likewise.
66707         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66708         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66709         * modules/gc-md4 (Makefile.am): Likewise.
66710         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66711         * modules/gc-sha1 (Makefile.am): Likewise.
66712         * modules/gc (Makefile.am): Likewise.
66713         * modules/getaddrinfo (Makefile.am): Likewise.
66714         * modules/getcwd (Makefile.am): Likewise.
66715         * modules/getdelim (Makefile.am): Likewise.
66716         * modules/getdomainname (Makefile.am): Likewise.
66717         * modules/getgroups (Makefile.am): Likewise.
66718         * modules/gethostname (Makefile.am): Likewise.
66719         * modules/gethrxtime (Makefile.am): Likewise.
66720         * modules/getline (Makefile.am): Likewise.
66721         * modules/getloadavg (Makefile.am): Likewise.
66722         * modules/getlogin_r (Makefile.am): Likewise.
66723         * modules/getndelim2 (Makefile.am): Likewise.
66724         * modules/getopt (Makefile.am): Likewise.
66725         * modules/getpagesize (Makefile.am): Likewise.
66726         * modules/getpass-gnu (Makefile.am): Likewise.
66727         * modules/getpass (Makefile.am): Likewise.
66728         * modules/getsubopt (Makefile.am): Likewise.
66729         * modules/gettime (Makefile.am): Likewise.
66730         * modules/gettimeofday (Makefile.am): Likewise.
66731         * modules/getugroups (Makefile.am): Likewise.
66732         * modules/getusershell (Makefile.am): Likewise.
66733         * modules/glob (Makefile.am): Likewise.
66734         * modules/group-member (Makefile.am): Likewise.
66735         * modules/hard-locale (Makefile.am): Likewise.
66736         * modules/hash (Makefile.am): Likewise.
66737         * modules/hmac-md5 (Makefile.am): Likewise.
66738         * modules/hmac-sha1 (Makefile.am): Likewise.
66739         * modules/human (Makefile.am): Likewise.
66740         * modules/idcache (Makefile.am): Likewise.
66741         * modules/imaxabs (Makefile.am): Likewise.
66742         * modules/imaxdiv (Makefile.am): Likewise.
66743         * modules/inet_ntop (Makefile.am): Likewise.
66744         * modules/inet_pton (Makefile.am): Likewise.
66745         * modules/intprops (Makefile.am): Likewise.
66746         * modules/inttostr (Makefile.am): Likewise.
66747         * modules/inttypes (Makefile.am): Likewise.
66748         * modules/isapipe (Makefile.am): Likewise.
66749         * modules/javaversion (Makefile.am): Likewise.
66750         * modules/lchmod (Makefile.am): Likewise.
66751         * modules/lchown (Makefile.am): Likewise.
66752         * modules/localcharset (Makefile.am): Likewise.
66753         * modules/long-options (Makefile.am): Likewise.
66754         * modules/lstat (Makefile.am): Likewise.
66755         * modules/malloc (Makefile.am): Likewise.
66756         * modules/mathl (Makefile.am): Likewise.
66757         * modules/mbchar (Makefile.am): Likewise.
66758         * modules/md2 (Makefile.am): Likewise.
66759         * modules/md4 (Makefile.am): Likewise.
66760         * modules/md5 (Makefile.am): Likewise.
66761         * modules/memcasecmp (Makefile.am): Likewise.
66762         * modules/memchr (Makefile.am): Likewise.
66763         * modules/memcmp (Makefile.am): Likewise.
66764         * modules/memcoll (Makefile.am): Likewise.
66765         * modules/memcpy (Makefile.am): Likewise.
66766         * modules/memmem (Makefile.am): Likewise.
66767         * modules/memmove (Makefile.am): Likewise.
66768         * modules/mempcpy (Makefile.am): Likewise.
66769         * modules/memrchr (Makefile.am): Likewise.
66770         * modules/memset (Makefile.am): Likewise.
66771         * modules/memxor (Makefile.am): Likewise.
66772         * modules/mkancesdirs (Makefile.am): Likewise.
66773         * modules/mkdir-p (Makefile.am): Likewise.
66774         * modules/mkdir (Makefile.am): Likewise.
66775         * modules/mkdtemp (Makefile.am): Likewise.
66776         * modules/mkstemp (Makefile.am): Likewise.
66777         * modules/mktime (Makefile.am): Likewise.
66778         * modules/modechange (Makefile.am): Likewise.
66779         * modules/mountlist (Makefile.am): Likewise.
66780         * modules/nanosleep (Makefile.am): Likewise.
66781         * modules/obstack (Makefile.am): Likewise.
66782         * modules/openat (Makefile.am): Likewise.
66783         * modules/pagealign_alloc (Makefile.am): Likewise.
66784         * modules/pathmax (Makefile.am): Likewise.
66785         * modules/physmem (Makefile.am): Likewise.
66786         * modules/poll (Makefile.am): Likewise.
66787         * modules/posixtm (Makefile.am): Likewise.
66788         * modules/posixver (Makefile.am): Likewise.
66789         * modules/putenv (Makefile.am): Likewise.
66790         * modules/quote (Makefile.am): Likewise.
66791         * modules/quotearg (Makefile.am): Likewise.
66792         * modules/raise (Makefile.am): Likewise.
66793         * modules/read-file (Makefile.am): Likewise.
66794         * modules/readline (Makefile.am): Likewise.
66795         * modules/readlink (Makefile.am): Likewise.
66796         * modules/readtokens (Makefile.am): Likewise.
66797         * modules/readutmp (Makefile.am): Likewise.
66798         * modules/realloc (Makefile.am): Likewise.
66799         * modules/regex (Makefile.am): Likewise.
66800         * modules/rename-dest-slash (Makefile.am): Likewise.
66801         * modules/rename (Makefile.am): Likewise.
66802         * modules/rijndael (Makefile.am): Likewise.
66803         * modules/rmdir (Makefile.am): Likewise.
66804         * modules/rpmatch (Makefile.am): Likewise.
66805         * modules/safe-read (Makefile.am): Likewise.
66806         * modules/safe-write (Makefile.am): Likewise.
66807         * modules/same-inode (Makefile.am): Likewise.
66808         * modules/same (Makefile.am): Likewise.
66809         * modules/save-cwd (Makefile.am): Likewise.
66810         * modules/savedir (Makefile.am): Likewise.
66811         * modules/setenv (Makefile.am): Likewise.
66812         * modules/settime (Makefile.am): Likewise.
66813         * modules/sha1 (Makefile.am): Likewise.
66814         * modules/sig2str (Makefile.am): Likewise.
66815         * modules/snprintf (Makefile.am): Likewise.
66816         * modules/stat-macros (Makefile.am): Likewise.
66817         * modules/stat-time (Makefile.am): Likewise.
66818         * modules/stdbool (Makefile.am): Likewise.
66819         * modules/stdint (Makefile.am): Likewise.
66820         * modules/stdlib-safer (Makefile.am): Likewise.
66821         * modules/stpcpy (Makefile.am): Likewise.
66822         * modules/stpncpy (Makefile.am): Likewise.
66823         * modules/strcase (Makefile.am): Likewise.
66824         * modules/strcasestr (Makefile.am): Likewise.
66825         * modules/strchrnul (Makefile.am): Likewise.
66826         * modules/strcspn (Makefile.am): Likewise.
66827         * modules/strdup (Makefile.am): Likewise.
66828         * modules/strerror (Makefile.am): Likewise.
66829         * modules/strftime (Makefile.am): Likewise.
66830         * modules/strndup (Makefile.am): Likewise.
66831         * modules/strnlen (Makefile.am): Likewise.
66832         * modules/strpbrk (Makefile.am): Likewise.
66833         * modules/strsep (Makefile.am): Likewise.
66834         * modules/strstr (Makefile.am): Likewise.
66835         * modules/strtod (Makefile.am): Likewise.
66836         * modules/strtoimax (Makefile.am): Likewise.
66837         * modules/strtok_r (Makefile.am): Likewise.
66838         * modules/strtol (Makefile.am): Likewise.
66839         * modules/strtoll (Makefile.am): Likewise.
66840         * modules/strtoul (Makefile.am): Likewise.
66841         * modules/strtoull (Makefile.am): Likewise.
66842         * modules/strtoumax (Makefile.am): Likewise.
66843         * modules/strverscmp (Makefile.am): Likewise.
66844         * modules/sys_socket (Makefile.am): Likewise.
66845         * modules/sys_stat (Makefile.am): Likewise.
66846         * modules/sysexits (Makefile.am): Likewise.
66847         * modules/time_r (Makefile.am): Likewise.
66848         * modules/timegm (Makefile.am): Likewise.
66849         * modules/timespec (Makefile.am): Likewise.
66850         * modules/tmpfile-safer (Makefile.am): Likewise.
66851         * modules/trim (Makefile.am): Likewise.
66852         * modules/unistd-safer (Makefile.am): Likewise.
66853         * modules/unlinkdir (Makefile.am): Likewise.
66854         * modules/unlocked-io (Makefile.am): Likewise.
66855         * modules/userspec (Makefile.am): Likewise.
66856         * modules/utime (Makefile.am): Likewise.
66857         * modules/utimecmp (Makefile.am): Likewise.
66858         * modules/utimens (Makefile.am): Likewise.
66859         * modules/vasnprintf (Makefile.am): Likewise.
66860         * modules/vasprintf (Makefile.am): Likewise.
66861         * modules/vsnprintf (Makefile.am): Likewise.
66862         * modules/xalloc (Makefile.am): Likewise.
66863         * modules/xgetcwd (Makefile.am): Likewise.
66864         * modules/xnanosleep (Makefile.am): Likewise.
66865         * modules/xreadlink (Makefile.am): Likewise.
66866         * modules/xstrtod (Makefile.am): Likewise.
66867         * modules/xstrtol (Makefile.am): Likewise.
66868         * modules/xstrtold (Makefile.am): Likewise.
66869         * modules/yesno (Makefile.am): Likewise.
66870         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66871
66872 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66873
66874         * modules/error (Makefile.am): Distribute files through
66875         EXTRA_DIST, not lib_SOURCES.
66876
66877 2006-10-12  Eric Blake  <ebb9@byu.net>
66878
66879         * modules/error (Makefile.am): Distribute files in /lib.
66880         * modules/obstack (Makefile.am): Likewise.
66881
66882 2006-10-12  Bruno Haible  <bruno@clisp.org>
66883
66884         * modules/acl (Makefile.am): Distribute all files in lib/ through
66885         EXTRA_DIST.
66886         * modules/arcfour (Makefile.am): Likewise.
66887         * modules/arctwo (Makefile.am): Likewise.
66888         * modules/argmatch (Makefile.am): Likewise.
66889         * modules/argz (Makefile.am): Likewise.
66890         * modules/atexit (Makefile.am): Likewise.
66891         * modules/backupfile (Makefile.am): Likewise.
66892         * modules/c-strtod (Makefile.am): Likewise.
66893         * modules/c-strtold (Makefile.am): Likewise.
66894         * modules/calloc (Makefile.am): Likewise.
66895         * modules/canon-host (Makefile.am): Likewise.
66896         * modules/canonicalize (Makefile.am): Likewise.
66897         * modules/chdir-long (Makefile.am): Likewise.
66898         * modules/chdir-safer (Makefile.am): Likewise.
66899         * modules/check-version (Makefile.am): Likewise.
66900         * modules/chown (Makefile.am): Likewise.
66901         * modules/cloexec (Makefile.am): Likewise.
66902         * modules/close-stream (Makefile.am): Likewise.
66903         * modules/closeout (Makefile.am): Likewise.
66904         * modules/crc (Makefile.am): Likewise.
66905         * modules/cycle-check (Makefile.am): Likewise.
66906         * modules/des (Makefile.am): Likewise.
66907         * modules/dirfd (Makefile.am): Likewise.
66908         * modules/dirname (Makefile.am): Likewise.
66909         * modules/dup2 (Makefile.am): Likewise.
66910         * modules/euidaccess (Makefile.am): Likewise.
66911         * modules/exclude (Makefile.am): Likewise.
66912         * modules/exitfail (Makefile.am): Likewise.
66913         * modules/fcntl-safer (Makefile.am): Likewise.
66914         * modules/file-type (Makefile.am): Likewise.
66915         * modules/fileblocks (Makefile.am): Likewise.
66916         * modules/filemode (Makefile.am): Likewise.
66917         * modules/filenamecat (Makefile.am): Likewise.
66918         * modules/fnmatch (Makefile.am): Likewise.
66919         * modules/fopen-safer (Makefile.am): Likewise.
66920         * modules/fpending (Makefile.am): Likewise.
66921         * modules/fprintftime (Makefile.am): Likewise.
66922         * modules/free (Makefile.am): Likewise.
66923         * modules/fsusage (Makefile.am): Likewise.
66924         * modules/ftruncate (Makefile.am): Likewise.
66925         * modules/fts (Makefile.am): Likewise.
66926         * modules/gc (Makefile.am): Likewise.
66927         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66928         * modules/getaddrinfo (Makefile.am): Likewise.
66929         * modules/getcwd (Makefile.am): Likewise.
66930         * modules/getdelim (Makefile.am): Likewise.
66931         * modules/getdomainname (Makefile.am): Likewise.
66932         * modules/getgroups (Makefile.am): Likewise.
66933         * modules/gethostname (Makefile.am): Likewise.
66934         * modules/gethrxtime (Makefile.am): Likewise.
66935         * modules/getline (Makefile.am): Likewise.
66936         * modules/getloadavg (Makefile.am): Likewise.
66937         * modules/getlogin_r (Makefile.am): Likewise.
66938         * modules/getopt (Makefile.am): Likewise.
66939         * modules/getpass (Makefile.am): Likewise.
66940         * modules/getpass-gnu (Makefile.am): Likewise.
66941         * modules/getsubopt (Makefile.am): Likewise.
66942         * modules/gettime (Makefile.am): Likewise.
66943         * modules/gettimeofday (Makefile.am): Likewise.
66944         * modules/getugroups (Makefile.am): Likewise.
66945         * modules/getusershell (Makefile.am): Likewise.
66946         * modules/glob (Makefile.am): Likewise.
66947         * modules/group-member (Makefile.am): Likewise.
66948         * modules/hard-locale (Makefile.am): Likewise.
66949         * modules/hash (Makefile.am): Likewise.
66950         * modules/hmac-md5 (Makefile.am): Likewise.
66951         * modules/hmac-sha1 (Makefile.am): Likewise.
66952         * modules/human (Makefile.am): Likewise.
66953         * modules/idcache (Makefile.am): Likewise.
66954         * modules/imaxabs (Makefile.am): Likewise.
66955         * modules/imaxdiv (Makefile.am): Likewise.
66956         * modules/inet_ntop (Makefile.am): Likewise.
66957         * modules/inet_pton (Makefile.am): Likewise.
66958         * modules/inttostr (Makefile.am): Likewise.
66959         * modules/isapipe (Makefile.am): Likewise.
66960         * modules/lchown (Makefile.am): Likewise.
66961         * modules/long-options (Makefile.am): Likewise.
66962         * modules/lstat (Makefile.am): Likewise.
66963         * modules/malloc (Makefile.am): Likewise.
66964         * modules/mathl (Makefile.am): Likewise.
66965         * modules/mbchar (Makefile.am): Likewise.
66966         * modules/md2 (Makefile.am): Likewise.
66967         * modules/md4 (Makefile.am): Likewise.
66968         * modules/md5 (Makefile.am): Likewise.
66969         * modules/memcasecmp (Makefile.am): Likewise.
66970         * modules/memchr (Makefile.am): Likewise.
66971         * modules/memcmp (Makefile.am): Likewise.
66972         * modules/memcoll (Makefile.am): Likewise.
66973         * modules/memcpy (Makefile.am): Likewise.
66974         * modules/memmem (Makefile.am): Likewise.
66975         * modules/memmove (Makefile.am): Likewise.
66976         * modules/mempcpy (Makefile.am): Likewise.
66977         * modules/memrchr (Makefile.am): Likewise.
66978         * modules/memset (Makefile.am): Likewise.
66979         * modules/memxor (Makefile.am): Likewise.
66980         * modules/mkancesdirs (Makefile.am): Likewise.
66981         * modules/mkdir (Makefile.am): Likewise.
66982         * modules/mkdir-p (Makefile.am): Likewise.
66983         * modules/mkdtemp (Makefile.am): Likewise.
66984         * modules/mkstemp (Makefile.am): Likewise.
66985         * modules/mktime (Makefile.am): Likewise.
66986         * modules/modechange (Makefile.am): Likewise.
66987         * modules/mountlist (Makefile.am): Likewise.
66988         * modules/nanosleep (Makefile.am): Likewise.
66989         * modules/openat (Makefile.am): Likewise.
66990         * modules/pagealign_alloc (Makefile.am): Likewise.
66991         * modules/physmem (Makefile.am): Likewise.
66992         * modules/poll (Makefile.am): Likewise.
66993         * modules/posixtm (Makefile.am): Likewise.
66994         * modules/posixver (Makefile.am): Likewise.
66995         * modules/putenv (Makefile.am): Likewise.
66996         * modules/quote (Makefile.am): Likewise.
66997         * modules/quotearg (Makefile.am): Likewise.
66998         * modules/raise (Makefile.am): Likewise.
66999         * modules/read-file (Makefile.am): Likewise.
67000         * modules/readline (Makefile.am): Likewise.
67001         * modules/readlink (Makefile.am): Likewise.
67002         * modules/readtokens (Makefile.am): Likewise.
67003         * modules/readutmp (Makefile.am): Likewise.
67004         * modules/realloc (Makefile.am): Likewise.
67005         * modules/regex (Makefile.am): Likewise.
67006         * modules/rename (Makefile.am): Likewise.
67007         * modules/rename-dest-slash (Makefile.am): Likewise.
67008         * modules/rijndael (Makefile.am): Likewise.
67009         * modules/rmdir (Makefile.am): Likewise.
67010         * modules/rpmatch (Makefile.am): Likewise.
67011         * modules/safe-read (Makefile.am): Likewise.
67012         * modules/safe-write (Makefile.am): Likewise.
67013         * modules/same (Makefile.am): Likewise.
67014         * modules/save-cwd (Makefile.am): Likewise.
67015         * modules/savedir (Makefile.am): Likewise.
67016         * modules/setenv (Makefile.am): Likewise.
67017         * modules/settime (Makefile.am): Likewise.
67018         * modules/sha1 (Makefile.am): Likewise.
67019         * modules/sig2str (Makefile.am): Likewise.
67020         * modules/snprintf (Makefile.am): Likewise.
67021         * modules/stdlib-safer (Makefile.am): Likewise.
67022         * modules/stpcpy (Makefile.am): Likewise.
67023         * modules/stpncpy (Makefile.am): Likewise.
67024         * modules/strcase (Makefile.am): Likewise.
67025         * modules/strcasestr (Makefile.am): Likewise.
67026         * modules/strchrnul (Makefile.am): Likewise.
67027         * modules/strcspn (Makefile.am): Likewise.
67028         * modules/strdup (Makefile.am): Likewise.
67029         * modules/strerror (Makefile.am): Likewise.
67030         * modules/strftime (Makefile.am): Likewise.
67031         * modules/strndup (Makefile.am): Likewise.
67032         * modules/strnlen (Makefile.am): Likewise.
67033         * modules/strpbrk (Makefile.am): Likewise.
67034         * modules/strsep (Makefile.am): Likewise.
67035         * modules/strstr (Makefile.am): Likewise.
67036         * modules/strtod (Makefile.am): Likewise.
67037         * modules/strtoimax (Makefile.am): Likewise.
67038         * modules/strtok_r (Makefile.am): Likewise.
67039         * modules/strtol (Makefile.am): Likewise.
67040         * modules/strtoll (Makefile.am): Likewise.
67041         * modules/strtoul (Makefile.am): Likewise.
67042         * modules/strtoull (Makefile.am): Likewise.
67043         * modules/strtoumax (Makefile.am): Likewise.
67044         * modules/strverscmp (Makefile.am): Likewise.
67045         * modules/time_r (Makefile.am): Likewise.
67046         * modules/timegm (Makefile.am): Likewise.
67047         * modules/tmpfile-safer (Makefile.am): Likewise.
67048         * modules/unistd-safer (Makefile.am): Likewise.
67049         * modules/unlinkdir (Makefile.am): Likewise.
67050         * modules/userspec (Makefile.am): Likewise.
67051         * modules/utime (Makefile.am): Likewise.
67052         * modules/utimecmp (Makefile.am): Likewise.
67053         * modules/utimens (Makefile.am): Likewise.
67054         * modules/vasnprintf (Makefile.am): Likewise.
67055         * modules/vasprintf (Makefile.am): Likewise.
67056         * modules/vsnprintf (Makefile.am): Likewise.
67057         * modules/xalloc (Makefile.am): Likewise.
67058         * modules/xgetcwd (Makefile.am): Likewise.
67059         * modules/xnanosleep (Makefile.am): Likewise.
67060         * modules/xreadlink (Makefile.am): Likewise.
67061         * modules/xstrtod (Makefile.am): Likewise.
67062         * modules/xstrtol (Makefile.am): Likewise.
67063         * modules/xstrtold (Makefile.am): Likewise.
67064         * modules/yesno (Makefile.am): Likewise.
67065
67066 2006-10-12  Jim Meyering  <jim@meyering.net>
67067
67068         * m4/getloadavg.m4: Revert the change below.
67069
67070         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67071         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67072         fail with a symlink, which is what coreutils' ./bootstrap now
67073         creates by default.
67074
67075 2006-10-12  Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67078         mingw.
67079         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67080         MSVC and mingw explicitly.
67081
67082 2006-10-11  Simon Josefsson  <jas@extundo.com>
67083             Bruno Haible  <bruno@clisp.org>
67084
67085         Add support for multiple gnulib-tool invocations in the scope of a
67086         single configure.ac file.
67087         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67088         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67089         with the same contents as the _LIBADD variable.
67090         (func_emit_initmacro_start, func_emit_initmacro_end,
67091         func_emit_initmacro_done): New functions.
67092         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67093         gl_LIBOBJS and gl_LTLIBOBJS.
67094
67095 2006-10-11  Bruno Haible  <bruno@clisp.org>
67096
67097         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67098         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67099         autoreconf. Instead, invoke autopoint explicitly but move back the
67100         *.m4 files from gnulib.
67101
67102 2006-10-11  Bruno Haible  <bruno@clisp.org>
67103
67104         * gnulib-tool (func_usage): Make module names after --create-testdir
67105         optional.
67106         (func_create_testdir): If no module was specified, use nearly all
67107         modules.
67108
67109 2006-10-12  Jim Meyering  <jim@meyering.net>
67110
67111         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67112         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67113         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67114         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67115         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67116         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67117         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67118         (fts_set_stat_required): New function.
67119         (fts_open): Defer the calls to fts_stat, if possible or requested.
67120         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67121         into fts_stat itself.
67122         (fts_read): Perform any required (deferred) fts_stat call.
67123         (fts_build): Likewise, for the directory we're about to open and read.
67124         In the readdir loop, carefully decide whether each entry will require
67125         an eventual call to fts_stat, using dirent.d_type info if available.
67126         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67127         a command line argument into this function.  Update all callers.
67128         Map a return value of FTS_DOT to FTS_D for a command line argument.
67129         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67130         Thanks to Miklos Szeredi for his tenacity and for the initial
67131         bug report about "find" failing on a FUSE-based file system.
67132
67133         * lib/fts.c (fts_open): Use consistent indentation.
67134
67135 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67136
67137         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67138         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67139         reported by Jim Meyering.  All uses of cache variables renamed
67140         to match Autoconf's.
67141         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67142         the other one.
67143
67144         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67145         Fix misspelling in diagnostic.
67146
67147 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67150         defined.  Problem reported by Matthew Woehlke.
67151
67152         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67153         Add support for Tandem NonStop R series.
67154         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67155         Use new macro.
67156
67157         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67158         (has_trailing_slash): Omit size arg; all callers changed.
67159         Omit 'inline', since it doesn't help performance and we'd
67160         need to configure it.
67161         Don't count //, ///, etc. as having a trailing slash.
67162         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67163         (rpl_rename_dest_slash): On failure, use rename's errno rather
67164         than (in some cases) an incorrect or junk errno.
67165         Simplify code by removing need to compute length; this does
67166         cause it to make two passes instead of one over the file name,
67167         but it's worth it.
67168
67169         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67170         change, since Autoconf's version may no longer be appropriate now
67171         that we are using CVS Autoconf's version.  Add support for Tandem.
67172
67173 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67174             Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67177         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67178         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67179         gl_AC_TYPE_LONG_LONG.
67180
67181         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67182         instead of HAVE_LONG_LONG.
67183         * lib/printf-args.c (printf_fetchargs): Likewise.
67184         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67185         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67187         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67188         gl_AC_TYPE_LONG_LONG.
67189
67190 2006-10-11  Bruno Haible  <bruno@clisp.org>
67191
67192         * m4/longlong.m4: Add comments.
67193         * m4/ulonglong.m4: Likewise.
67194
67195 2006-10-10  Bruno Haible  <bruno@clisp.org>
67196
67197         Make it possible to #define stpcpy, strdup to aliases.
67198         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67199         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67200
67201 2006-10-10  Bruno Haible  <bruno@clisp.org>
67202
67203         Make it possible to #define gcd to an alias.
67204         * lib/gcd.c: Include config.h.
67205
67206 2006-10-10  Bruno Haible  <bruno@clisp.org>
67207
67208         Make it possible to #define c_isascii to an alias.
67209         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67210         defined. Undefine the macros before defining them, to avoid gcc
67211         warnings.
67212         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67213         define NO_C_CTYPE_MACROS early.
67214
67215 2006-10-10  Bruno Haible  <bruno@clisp.org>
67216
67217         Make it possible to #define set_program_name to an alias.
67218         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67219         ENABLE_RELOCATABLE early.
67220
67221 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67224         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67225         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67226         More generally, don't assume that 64-bit signed int is available
67227         if unsigned int is, and vice versa.
67228         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67229         unsigned symbols, not on their signed counterparts.
67230         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67231         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67232         (UINT64_C, UINTMAX_C):
67233         Likewise.
67234         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67235         unsigned counterparts.
67236         (Have_long_long, Unsigned): New macros.
67237         (Int): Renamed from INT.
67238         (strtoimax): Use the new macros.
67239         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67240         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67241         * modules/inttypes (inttypes.h): Substitute
67242         HAVE_UNSIGNED_LONG_LONG_INT.
67243         * modules/stdint (stdint.h): Likewise.
67244         (Files): Add m4/ulonglong.m4.
67245
67246 2006-10-10  Bruno Haible  <bruno@clisp.org>
67247
67248         Fix a gcc -Wshadow warning.
67249         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67250         to 'bucket'.
67251         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67252         gl_linked_indexof_from_to): Likewise.
67253         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67254         Likewise.
67255         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67256         Likewise.
67257         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67258         Reported by Eric Blake.
67259
67260 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67263         for NetBSD.  Problem reported by Bruno Haible.
67264
67265 2006-10-09  Jim Meyering  <jim@meyering.net>
67266
67267         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67268         Patch from Bruno Haible.
67269
67270 2006-10-09  Jim Meyering  <jim@meyering.net>
67271
67272         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67273         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67274         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67275
67276 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         Don't include <config.h> twice; this doesn't work in some cases,
67279         e.g., when config.h has "#define intmax_t long long int" and
67280         we include <config.h>, <inttypes.h>, <config.h> in that order.
67281         Problem reported by Matthew Woehlke in:
67282         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67283         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67284         * lib/fts-cycle.c: Don't include config.h.
67285         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67286         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67287         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67288         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67289         inttypes.h.
67290         * lib/xstrtoumax.c: Likewise.
67291         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67292         __strtol and the like, so that this module is more like its siblings.
67293         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67294         Remove; no longer needed now that we assume gnulib inttypes.h.
67295
67296 2006-10-08  Bruno Haible  <bruno@clisp.org>
67297
67298         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67299         option.
67300
67301 2006-10-07  Jim Meyering  <jim@meyering.net>
67302
67303         * modules/inttypes (inttypes.h): Revert what seems to have been
67304         an inadvertent part of today's change: use "|", not "/" in the
67305         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67306
67307 2006-10-07  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/sublist: New file.
67310
67311 2006-10-07  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67314         * modules/argz (argz.h): Likewise.
67315         * modules/arpa_inet (arpa/inet.h): Likewise.
67316         * modules/byteswap (byteswap.h): Likewise.
67317         * modules/configmake (configmake.h): Likewise.
67318         * modules/fcntl (fcntl.h): Likewise.
67319         * modules/fnmatch (fnmatch.h): Likewise.
67320         * modules/getopt (getopt.h): Likewise.
67321         * modules/glob (glob.h): Likewise.
67322         * modules/inttypes (inttypes.h): Likewise.
67323         * modules/netinet_in (netinet/in.h): Likewise.
67324         * modules/poll (poll.h): Likewise.
67325         * modules/stdbool (stdbool.h): Likewise.
67326         * modules/stdint (stdint.h): Likewise.
67327         * modules/sys_select (sys/select.h): Likewise.
67328         * modules/sys_socket (sys/socket.h): Likewise.
67329         * modules/sys_stat (sys/stat.h): Likewise.
67330         * modules/sysexits (sysexits.h): Likewise.
67331         * modules/unistd (unistd.h): Likewise.
67332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67333         Add a "DO NOT EDIT" comment to the generated file.
67334         (func_import): Likewise for gnulib-comp.m4.
67335
67336 2006-10-07  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/gl_sublist.h: New file.
67339         * lib/gl_sublist.c: New file.
67340
67341 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67344         name (relative to the original working directory) and the file
67345         name component (relative to the temporary working directory).  All
67346         callers changed.
67347         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67348         * lib/mkdir-p.c (make_dir_parents): Likewise.
67349         * lib/mkdir-p.h (make_dir_parents): Likewise.
67350
67351 2006-10-06  Eric Blake  <ebb9@byu.net>
67352
67353         Define several macros for use by the clean-temp module.
67354         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67355         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67356         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67357
67358         * lib/clean-temp.h (close_stream_temp): New declaration.
67359         * lib/clean-temp.c (includes): Pull in headers according to what
67360         other modules are in use.
67361         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67362
67363 2006-10-06  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67366         instead of fopen, fwriteerror.
67367
67368 2006-10-06  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67371         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67372         int.
67373         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67374         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67375         Return an error indicator.
67376         Suggested by Eric Blake.
67377
67378 2006-10-06  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67381         Reported by Eric Blake.
67382
67383 2006-10-06  Bruno Haible  <bruno@clisp.org>
67384
67385         * modules/closeout (Description): Mention stderr too.
67386
67387 2006-10-06  Bruno Haible  <bruno@clisp.org>
67388         and Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/closeout.c (close_stdout): Also close stderr.
67391         * lib/closeout.h: Update comment.
67392
67393 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67396         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67397         * lib/dirchownmod.c: Include lchown.h.
67398         * lib/lchown.c: Don't include files that lchown.h now includes.
67399         Don't declare chown, since lchown.h now does that.
67400         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67401         (lchown): Define to rpl_chown if lchown is declared but
67402         does not exist.  Declare using a prototype if lchown is not
67403         declared.  Add a copyright notice.
67404         * lib/mkstemp.h: Include <unistd.h>.
67405         * lib/openat.c: Include lchown.h.
67406
67407         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67408         we now test for that separately.
67409         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67410         rather than O_NOFOLLOW, when testing whether it's possible to
67411         avoid a race condition reliably.
67412         * lib/savewd.c (savewd_chdir): Likewise.
67413
67414         Remove macros that are no longer needed now that stdint.h is
67415         reliable.
67416         * lib/fsusage.c (UINTMAX_MAX): Remove.
67417         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67418         * lib/utimecmp.c (SIZE_MAX): Remove.
67419
67420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67421
67422         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67423         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67424         O_NOATIME works.
67425
67426 2006-10-05  Bruno Haible  <bruno@clisp.org>
67427
67428         * lib/gl_list.h (gl_sortedlist_search_from_to,
67429         gl_sortedlist_indexof_from_to): New declarations.
67430         (gl_list_implementation): New fields sortedlist_search_from_to,
67431         sortedlist_indexof_from_to.
67432         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67433         inline functions.
67434         * lib/gl_list.c (gl_sortedlist_search_from_to,
67435         gl_sortedlist_indexof_from_to): New functions.
67436         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67437         function.
67438         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67439         (gl_array_sortedlist_search_from_to): New function.
67440         (gl_array_list_implementation): Update.
67441         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67442         function.
67443         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67444         (gl_carray_sortedlist_search_from_to): New function.
67445         (gl_carray_list_implementation): Update.
67446         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67447         gl_linked_sortedlist_indexof_from_to): New functions.
67448         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67449         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67450         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67451         gl_tree_sortedlist_indexof_from_to): New functions.
67452         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67453         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67454         Update.
67455         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67456         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67457         Update.
67458
67459 2006-10-05  Bruno Haible  <bruno@clisp.org>
67460
67461         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67462         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67463         (struct gl_list_implementation): Add fields search_from_to,
67464         indexof_from_to. Remove fields search, indexof.
67465         (gl_list_search): Use the search_from_to method.
67466         (gl_list_search_from, gl_list_search_from_to): New functions.
67467         (gl_list_indexof): Use the indexof_from_to method.
67468         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67469         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67470         (gl_list_search_from, gl_list_search_from_to): New functions.
67471         (gl_list_indexof): Use the indexof_from_to method.
67472         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67473         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67474         gl_array_indexof. Add start_index, end_index arguments.
67475         (gl_array_search_from_to): Renamed from gl_array_search. Add
67476         start_index, end_index arguments.
67477         (gl_array_remove, gl_array_list_implementation): Update.
67478         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67479         gl_carray_indexof. Add start_index, end_index arguments.
67480         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67481         start_index, end_index arguments.
67482         (gl_carray_remove, gl_carray_list_implementation): Update.
67483         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67484         gl_linked_search. Add start_index, end_index arguments.
67485         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67486         start_index, end_index arguments.
67487         (gl_linked_remove): Update.
67488         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67489         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67490         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67491         field to 'size_t'.
67492         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67493         gl_tree_search. Add start_index, end_index arguments.
67494         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67495         start_index, end_index arguments.
67496         (gl_tree_remove): Update.
67497         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67498         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67499         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67500         function.
67501         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67502         gl_tree_search. Add start_index, end_index arguments.
67503         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67504         start_index, end_index arguments.
67505         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67506         Update.
67507         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67508
67509 2006-10-05  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67512
67513         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67514         fwriteerror_temp): New declarations.
67515         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67516         (descriptors): New variable.
67517         (cleanup): First, close the descriptors.
67518         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67519         fclose_temp, fwriteerror_temp): New functions.
67520
67521 2006-10-04  Jim Meyering  <jim@meyering.net>
67522
67523         * lib/fts.c (fts_open): Tiny comment change.
67524
67525 2006-10-04  Bruno Haible  <bruno@clisp.org>
67526
67527         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67528         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67529         gl_LOCK_BODY.
67530         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67531         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67532         gl_LOCK_EARLY_BODY.
67533         (gl_LOCK): Require gl_LOCK_BODY.
67534
67535 2006-10-04  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67538         (gl_oset_search_atleast): New declaration.
67539         (struct gl_oset_implementation): Add field 'search_atleast'.
67540         (gl_oset_search_atleast): New inline function.
67541         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67542         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67543         (gl_array_oset_implementation): Update.
67544         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67545         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67546         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67547
67548 2006-10-04  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67551
67552 2006-10-03  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67555         from gl_avltreehash_list_implementation.
67556
67557 2006-10-03  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/gl_oset.c (gl_oset_add): Fix return type.
67560
67561 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67562
67563         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67564
67565 2006-10-02  Eric Blake  <ebb9@byu.net>
67566
67567         * modules/strnlen (Depends-on): Add extensions.
67568
67569 2006-10-02  Eric Blake  <ebb9@byu.net>
67570
67571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67572         definition in 2.60+.
67573
67574 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67575
67576         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67577         checks.
67578
67579 2006-10-02  Bruno Haible  <bruno@clisp.org>
67580
67581         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67582         to the AUTOMAKE_OPTIONS.
67583         Reported by Jim Meyering.
67584
67585 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         Work around bug in Solaris 10 /proc file system:
67588         /proc/self/fd/NNN/.. isn't the parent directory of
67589         the directory whose file descriptor is NNN.  This needs to
67590         be worked around at run time, not compile time, since a
67591         program might be built on Solaris 8, where things work, and
67592         run on Solaris 10.
67593         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67594         to use the following interface instead:
67595         (OPENAT_BUFFER_SIZE): New macro.
67596         (openat_proc_name): New function.
67597         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67598         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67599         Likewise.
67600         * lib/openat-proc.c: New file.
67601         * modules/openat (Files): Add lib/openat-proc.c.
67602         (Depends-on): Add same-inode, stdbool.
67603         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67604
67605 2006-09-29  Bruno Haible  <bruno@clisp.org>
67606
67607         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67608         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67609         argument. Set stdout_closed before testing for ferror, not after.
67610         (fwriteerror, fwriteerror_no_ebadf): New functions.
67611
67612 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67613
67614         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67615
67616 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67617
67618         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67619         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67620
67621 2006-09-28  Jim Meyering  <jim@meyering.net>
67622
67623         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67624         Include <unistd.h>.
67625
67626 2006-09-28  Bruno Haible  <bruno@clisp.org>
67627
67628         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67629         * modules/linkedhash-list (Depends-on): Likewise.
67630         * modules/rbtreehash-list (Depends-on): Likewise.
67631
67632 2006-09-28  Bruno Haible  <bruno@clisp.org>
67633
67634         * lib/strndup.h: Simplify the redefinition of strndup.
67635         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67637
67638 2006-09-28  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67641         * lib/gl_linkedhash_list.c: Likewise.
67642         * lib/gl_rbtreehash_list.c: Likewise.
67643
67644 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67647         getaddrinfo.
67648
67649         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67650         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67651         it causes <stdio_ext.h> to cause a compile-time error.
67652         Problem reported by Nelson H. F. Beebe.
67653         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67654         of HAVE_DECL___PENDING.
67655
67656         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67657         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67658         declaration.
67659
67660 2006-09-27  Jim Meyering  <jim@meyering.net>
67661
67662         This file could end up with a definition for a function
67663         named __strndup, rather than rpl_strndup on a system with
67664         incomplete weak_alias support.
67665         * lib/strndup.c (strndup): Rename from __strndup.
67666         Remove #defines that used to map __strndup to strndup.
67667         Don't use K&R prototypes.
67668         Remove LIBC-related code, since this file is not sync'd with glibc.
67669         * lib/strndup.h: Revamp, accordingly.
67670         * m4/strndup.m4: Modernize.
67671
67672 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         * modules/savewd (Depends-on): Add 'raise'.
67675         * lib/savewd.c: Include <signal.h>, for 'raise'.
67676
67677 2006-09-26  Jim Meyering  <jim@meyering.net>
67678
67679         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67680         when we detect Darwin 8.7.0's acl_get_file bug.
67681         Rearrange to perform the new (below) run-test while $LIBS
67682         contains any acl-related library.  Set USE_ACL at the end.
67683         (gl_ACL_GET_FILE): New function.
67684
67685 2006-09-26  Eric Blake  <ebb9@byu.net>
67686
67687         * lib/verror.c: Include <config.h> unconditionally.
67688
67689 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * modules/clock-time (Maintainer): Add self.
67692         * modules/getlogin_r (Depends-on): Add extensions.
67693
67694 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67695
67696         * modules/clock-time: New module.
67697         * modules/nanosleep (Depends-on): Add clock-time.
67698         * modules/gethrxtime (Depends-on): Likewise.
67699         * modules/gettime (Depends-on): Likewise.
67700         * modules/settime (Depends-on): Likewise.
67701
67702         * modules/fts-lgpl: Depend on openat.
67703         * modules/mkancesdirs: Depend on savewd.
67704         * modules/mkdir-p: Likewise.
67705
67706 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67707
67708         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67709
67710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67711         `gl_have_arbitrary_file_name_length_limit' to
67712         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67713         actually works between configure runs.
67714
67715 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67716             Bruno Haible  <bruno@clisp.org>
67717
67718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67719
67720 2006-09-25  Jim Meyering  <jim@meyering.net>
67721
67722         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67723         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67724
67725 2006-09-25  Eric Blake  <ebb9@byu.net>
67726
67727         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67728         exec's in 2006-09-18 patch when shuffling fds.
67729
67730 2006-09-25  Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67733         Reported by Jim Meyering.
67734
67735 2006-09-24  Jim Meyering  <jim@meyering.net>
67736
67737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67738         compare a pointer against a literal "0".  That caused failures with
67739         at least HP-UX's hpcc.
67740
67741 2006-09-22  Simon Josefsson  <jas@extundo.com>
67742
67743         * modules/gc-sha1:
67744         * modules/gc-md4:
67745         * modules/gc-hmac-sha1:
67746         * modules/gc-hmac-md5:
67747         * modules/gc-des:
67748         * modules/gc-arcfour: Distribute more files.
67749
67750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67751
67752         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67753         (gl_linked_iterator_from_to): Initialize struct completely.
67754         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67755         (gl_tree_iterator_from_to): Likewise
67756         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67757         * lib/gl_array_list.c [lint] (gl_array_iterator)
67758         (gl_array_iterator_from_to): Likewise.
67759         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67760         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67761         (gl_carray_iterator_from_to): Likewise.
67762
67763         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67764         * lib/md4.c (md4_process_block): Remove unused variable.
67765         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67766         parentheses for clarity.
67767
67768 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67769
67770         * modules/bison-i18n (Depends-on): Add gettext.
67771
67772 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67773
67774         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67775         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67776         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67777         also add missing comma that caused broken test.
67778         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67779         stdlib.h, for `abort'.
67780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67781         variables.
67782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67783         include unistd.h if present, for `rmdir'.
67784         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67785         variables.
67786         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67787         in the process include standard headers for prototypes.
67788         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67789         gets declared on GNU/Linux.
67790         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67791         unistd.h, for `rmdir'.
67792         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67793
67794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67795         always true.
67796         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67797
67798         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67799
67800 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67801
67802         * gnulib-tool (func_version): Create output all at once.  This
67803         may help avoid triggering unnecessary SIGPIPEs, and at any
67804         rate it doesn't hurt.
67805
67806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67807             Bruno Haible  <bruno@clisp.org>
67808
67809         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67810         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67811         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67812
67813         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67814         (gl_FUNC_VASPRINTF): Invoke it.
67815
67816 2006-09-22  Bruno Haible  <bruno@clisp.org>
67817
67818         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67819         getloadavg.c as first argument.
67820
67821 2006-09-22  Bruno Haible  <bruno@clisp.org>
67822
67823         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67824         at the beginning of the gl_INIT macro.
67825         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67826         gl_GETLOADAVG.
67827
67828 2006-09-22  Bruno Haible  <bruno@clisp.org>
67829
67830         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67831         module.
67832         Suggested by Ralf Wildenhues.
67833
67834 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         Import this patch from libc:
67837
67838         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67839
67840         * lib/regex_internal.c (re_string_reconstruct): Handle
67841         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67842         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67843         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67844         re_string_context_at.
67845
67846         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67847         now requires it.
67848         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67849         gl_REGEX now does it for us.
67850         (gl_REGEX): Add test taken from
67851         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67852
67853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67854         Check that large offsets work.  Modernize Autoconf usages.
67855         Prefer "yes" to mean a good thing rather than a bad.
67856         Don't put "#define mkstemp" in config.h, as this might interfere
67857         with standard system headers that "#define mkstemp mkstemp64".
67858
67859         * modules/mkstemp (Depends-on): Add extensions, so that
67860         mkstemp is visible on some platforms.
67861         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67862         (Include): Change to "mkstemp.h" from <stdlib.h>.
67863         (Files): Add mkstemp.h.
67864
67865         * lib/mkstemp.h: New file, since some standard headers
67866         #define mkstemp.
67867         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67868         Include "mkstemp.h".
67869         Make the _LIBC code resemble glibc original more,
67870         e.g., use K&R style.
67871         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67872         (mkstemp): Remove, since mkstemp.h does this for us.
67873         * lib/stdlib--.h: Include mkstemp.h.
67874
67875         Import this patch from libc:
67876
67877         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67878
67879         * lib/tempname.c (__gen_tempname): Change attempts_min
67880         into a macro.  Use preprocessor to decide how to initialize
67881         attempts [Coverity CID 67].
67882
67883 2006-09-20  Bruno Haible  <bruno@clisp.org>
67884
67885         * lib/mkdtemp.c: Import from libc.
67886         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67887                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67888                 attempts_min into a macro.  Use preprocessor to decide how to
67889                 initialize attempts [Coverity CID 67].
67890         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67891                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67892                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67893
67894 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67895
67896         * gnulib-tool (func_exit): New function, to allow to pass the
67897         exit status portably through the trap.  Use everywhere.
67898         (--help, --version): Signal a write error.
67899         (trap): catch SIGPIPE, for write errors.
67900         Exit at the end of the trap, with the correct exit status.
67901
67902 2006-09-19  Karl Berry  <karl@gnu.org>
67903
67904         * doc/gnulib.texi: note about the license texinfo files.
67905
67906 2006-09-19  Eric Blake  <ebb9@byu.net>
67907
67908         * gnulib-tool: Avoid space-tab.
67909
67910 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67911
67912         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67913         that prevented coreutils 6.1 from building.  Problem reported
67914         by Petter Reinholdtsen.
67915
67916 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * gnulib-tool (avoidlist): Fix typo that broke options like
67919         --avoid=lock that are used by coreutils bootstrap.
67920
67921 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67922
67923         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67924         more systematically.
67925
67926 2006-09-18  Jim Meyering  <jim@meyering.net>
67927
67928         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67929
67930 2006-09-18  Bruno Haible  <bruno@clisp.org>
67931
67932         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67933
67934 2006-09-18  Bruno Haible  <bruno@clisp.org>
67935
67936         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67937         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67938         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67939         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67940         * m4/gettext.m4: Require autoconf >= 2.52.
67941         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67942         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67943         of gl_cv_header_inttypes_h.
67944
67945 2006-09-18  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/javaversion.c: Include configmake.h.
67948
67949 2006-09-18  Bruno Haible  <bruno@clisp.org>
67950
67951         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67952         avoid that the while loops be executed in a subshell.
67953
67954 2006-09-18  Bruno Haible  <bruno@clisp.org>
67955
67956         * MODULES.html.sh (func_module): Break long lines.
67957         Suggested by Bruce Korb <bkorb@gnu.org>.
67958
67959 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67960
67961         Speed up by a factor of 1.12.
67962         * gnulib-tool (nl): New variable.
67963         (func_import): Rewrite include directive extraction to only read each
67964         directive once.
67965
67966 2006-09-17  Bruno Haible  <bruno@clisp.org>
67967
67968         * modules/javaversion (Makefile.am): Remove DEFS setting.
67969         (Depends-on): Add configmake, for PKGDATADIR definition.
67970
67971 2006-09-17  Bruno Haible  <bruno@clisp.org>
67972
67973         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67974
67975 2006-09-17  Bruno Haible  <bruno@clisp.org>
67976
67977         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67978         (func_modules_transitive_closure, func_modules_add_dummy,
67979         func_modules_to_filelist, func_import, func_create_testdir,
67980         func_create_megatestdir, ...): Use it wherever possible.
67981         Suggested by Ralf Wildenhues.
67982
67983 2006-09-16  Karl Berry  <karl@gnu.org>
67984
67985         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67986         to avoid sectioning errors.
67987         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67988         [ifinfo]: blank line after @center-ed titles.
67989         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67990         Spell FSF address consistently with others.
67991         (These changes approved by rms.)
67992
67993 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67994
67995         Speed up by a factor of 1.61.
67996         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67997         already checked module names again.
67998
67999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68000
68001         Speed up by a factor of 1.13.
68002         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68003         for new_files, and the input to func_add_or_update.
68004
68005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68006
68007         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68008         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68009
68010 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * modules/mkancesdirs (Depends-on): Add fcntl.
68013         * modules/savewd: New file.
68014         * MODULES.html.sh (File system functions): Add savewd.
68015
68016         * modules/configmake (Makefile.am): Add support for the
68017         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68018
68019 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * m4/savewd.m4: New file.
68022
68023 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68026         (dirchownmod): New arg FD.  All callers changed.
68027         Use FD rather than opening the directory ourself, as opening is
68028         now the caller's responsibility.
68029         * lib/dirchownmod.h: Likewise.
68030         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68031         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68032         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68033         (test_dir): Remove.
68034         (mkancesdirs): Return length of prefix of FILE that has already
68035         been made, or -2 if there is a child doing the work.  Redo
68036         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68037         ".", and treat ".." specially since it might stray back into
68038         already-created areas.  Use a subprocess if necessary.  New arg
68039         WD; all users changed.  MAKE_DIR function should now return 1
68040         if it creates a directory that is not readable.  Return -2 if
68041         a child process is spun off.
68042         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68043         Adjust signature to match code.
68044         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68045         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68046         all users changed.
68047         * lib/savewd.c, lib/savewd.h: New files.
68048
68049 2006-09-15  Jim Meyering  <jim@meyering.net>
68050
68051         * modules/rename-dest-slash: New module.
68052         * MODULES.html.sh (posix_compat): Add it here.
68053
68054         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68055
68056 2006-09-15  Jim Meyering  <jim@meyering.net>
68057
68058         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68059         file.
68060
68061         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68062
68063 2006-09-15  Jim Meyering  <jim@meyering.net>
68064
68065         * lib/rename-dest-slash.c (has_trailing_slash): Use
68066         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68067         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68068         test before testing whether SRC is a directory.
68069         Suggestions from Bruno Haible.
68070
68071         Avoid a warning about an unused variable.
68072         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68073         into the #ifdef block where it's used.
68074
68075         * lib/rename-dest-slash.c: New file.
68076
68077 2006-09-14  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/allocsa.c: Include <config.h> unconditionally.
68080         * lib/asnprintf.c: Likewise.
68081         * lib/asprintf.c: Likewise.
68082         * lib/c-strcasecmp.c: Likewise.
68083         * lib/c-strcasestr.c: Likewise.
68084         * lib/c-strncasecmp.c: Likewise.
68085         * lib/c-strstr.c: Likewise.
68086         * lib/classpath.c: Likewise.
68087         * lib/clean-temp.c: Likewise.
68088         * lib/concatpath.c: Likewise.
68089         * lib/copy-file.c: Likewise.
68090         * lib/csharpcomp.c: Likewise.
68091         * lib/csharpexec.c: Likewise.
68092         * lib/execute.c: Likewise.
68093         * lib/fatal-signal.c: Likewise.
68094         * lib/findprog.c: Likewise.
68095         * lib/fwriteerror.c: Likewise.
68096         * lib/gl_array_list.c: Likewise.
68097         * lib/gl_array_oset.c: Likewise.
68098         * lib/gl_avltree_list.c: Likewise.
68099         * lib/gl_avltree_oset.c: Likewise.
68100         * lib/gl_avltreehash_list.c: Likewise.
68101         * lib/gl_carray_list.c: Likewise.
68102         * lib/gl_linked_list.c: Likewise.
68103         * lib/gl_linkedhash_list.c: Likewise.
68104         * lib/gl_list.c: Likewise.
68105         * lib/gl_oset.c: Likewise.
68106         * lib/gl_rbtree_list.c: Likewise.
68107         * lib/gl_rbtree_oset.c: Likewise.
68108         * lib/gl_rbtreehash_list.c: Likewise.
68109         * lib/imaxabs.c: Likewise.
68110         * lib/imaxdiv.c: Likewise.
68111         * lib/javacomp.c: Likewise.
68112         * lib/javaexec.c: Likewise.
68113         * lib/javaversion.c: Likewise.
68114         * lib/linebreak.c: Likewise.
68115         * lib/localcharset.c: Likewise.
68116         * lib/lock.c: Likewise.
68117         * lib/mbchar.c: Likewise.
68118         * lib/mbswidth.c: Likewise.
68119         * lib/mkdtemp.c: Likewise.
68120         * lib/pipe.c: Likewise.
68121         * lib/printf-args.c: Likewise.
68122         * lib/printf-parse.c: Likewise.
68123         * lib/progname.c: Likewise.
68124         * lib/progreloc.c: Likewise.
68125         * lib/readlink.c: Likewise.
68126         * lib/sh-quote.c: Likewise.
68127         * lib/stpcpy.c: Likewise.
68128         * lib/stpncpy.c: Likewise.
68129         * lib/strcasecmp.c: Likewise.
68130         * lib/strcasestr.c: Likewise.
68131         * lib/strcspn.c: Likewise.
68132         * lib/striconv.c: Likewise.
68133         * lib/strncasecmp.c: Likewise.
68134         * lib/strnlen1.c: Likewise.
68135         * lib/strstr.c: Likewise.
68136         * lib/strtok_r.c: Likewise.
68137         * lib/tls.c: Likewise.
68138         * lib/tmpdir.c: Likewise.
68139         * lib/unicodeio.c: Likewise.
68140         * lib/unsetenv.c: Likewise.
68141         * lib/vasnprintf.c: Likewise.
68142         * lib/vasprintf.c: Likewise.
68143         * lib/wait-process.c: Likewise.
68144         * lib/xallocsa.c: Likewise.
68145         * lib/xsetenv.c: Likewise.
68146         * lib/xstriconv.c: Likewise.
68147
68148 2006-09-13  Simon Josefsson  <jas@extundo.com>
68149
68150         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68151         that internally, suggested by Ralf Wildenhues
68152         <Ralf.Wildenhues@gmx.de>.
68153
68154 2006-09-13  Simon Josefsson  <jas@extundo.com>
68155
68156         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68157         @LIBOBJS@.
68158         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68159
68160 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68163         longer worry about uses that don't define HAVE_CONFIG_H.
68164         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68165         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68166         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68167         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68168         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68169         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68170         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68171         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68172         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68173         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68174         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68175         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68176         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68177         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68178         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68179         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68180         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68181         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68182         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68183         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68184         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68185         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68186         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68187         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68188         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68189         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68190         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68191         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68192         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68193         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68194         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68195         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68196         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68197         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68198         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68199         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68200         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68201         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68202         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68203         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68204         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68205         Likewise.
68206
68207 2006-09-13  Eric Blake  <ebb9@byu.net>
68208
68209         * lib/getopt.c: Fix typo in last commit.
68210
68211 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68212
68213         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68214         dgettext.
68215
68216 2006-09-12  Jim Meyering  <jim@meyering.net>
68217
68218         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68219         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68220         Reported by Nelson H. F. Beebe.
68221
68222 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68223
68224         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68225         program_invocation_name and program_invocation_short_name are
68226         initialized.
68227         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68228         and program_invocation_short_name to argp.h, so they are visible
68229         to user programs.
68230         * lib/argp.h: Likewise
68231
68232 2006-09-10  Bruno Haible  <bruno@clisp.org>
68233
68234         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68235         m4/inttypes_h.m4, m4/uintmax_t.m4.
68236
68237 2006-09-10  Bruno Haible  <bruno@clisp.org>
68238
68239         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68240         gl_AC_TYPE_UINTMAX_T.
68241
68242 2006-09-10  Bruno Haible  <bruno@clisp.org>
68243
68244         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68245
68246 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68247
68248         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68249         convention.  Text proposed by Bruno Haible.
68250         (struct argp_option): Document the use of N_() wrappers.
68251
68252         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68253         '\v', and translate the two parts separately, instead of feeding
68254         the whole string to gettext.  This allows to exclude
68255         '\v' from the strings visible to the translator by writing doc
68256         strings as N_("..") "\v" N_("..").
68257
68258 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68259
68260         * config/srclist.txt: Undo latest change; the bug was fixed.
68261
68262 2006-09-09  Bruno Haible  <bruno@clisp.org>
68263
68264         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68265         assignments if building a library without libtool.
68266         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68267         in func_emit_lib_Makefile_am.
68268         (func_import): When building a static library libfoo.a, arrange to
68269         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68270         (func_create_testdir): Likewise.
68271         * modules/gc (configure.ac, Makefile.am): If building statically,
68272         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68273         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68274         * modules/striconv (configure.ac, Makefile.am): Likewise.
68275         Based on a suggestion by Ralf Wildenhues.
68276
68277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68280         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68281         Also:
68282
68283         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68284         Add year_2050_test to catch glibc bug 2821
68285         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68286
68287         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68288         Prefer #ifdef to #if.
68289
68290         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68291         Return from 'main' instead of calling 'exit'.
68292
68293 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68294
68295         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68296         returned the maximum time_t value rather than (time_t) -1.
68297         Problem originally reported by William Bardwell
68298         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68299
68300         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68301         Moved to here ...
68302         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68303         ... from here.
68304
68305 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68306
68307         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68308         2821 is fixed.
68309
68310 2006-09-08  Jim Meyering  <jim@meyering.net>
68311
68312         Don't make generated files read-only.  That would bother too many
68313         people.  However, do retain the ability to work when targets are
68314         read-only: remove the destination and temporary files before writing
68315         them (when generated via sed or echo), or by using the -f option for
68316         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68317         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68318         * modules/byteswap, modules/configmake, modules/fcntl:
68319         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68320         * modules/localcharset, modules/netinet_in, modules/poll:
68321         * modules/stdbool, modules/stdint, modules/sys_select:
68322         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68323
68324 2006-09-08  Jim Meyering  <jim@meyering.net>
68325
68326         Avoid new build failure on FreeBSD 6.0.
68327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68328         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68329         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68330
68331 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68332
68333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68334
68335 2006-09-07  Jim Meyering  <jim@meyering.net>
68336
68337         Fix global typo in last change: use chmod u-w, not chmod u-x.
68338         Spotted by Paul Eggert and Bruce Korb.
68339         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68340         * modules/byteswap, modules/configmake, modules/fcntl:
68341         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68342         * modules/localcharset, modules/netinet_in, modules/poll:
68343         * modules/stdbool, modules/stdint, modules/sys_select:
68344         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68345
68346 2006-09-06  Jim Meyering  <jim@meyering.net>
68347
68348         Make generated files be read-only.
68349         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68350         Ensure that each generated file is now read-only.
68351         * modules/argz: Likewise.
68352         * modules/arpa_inet: Likewise.
68353         * modules/byteswap: Likewise.
68354         * modules/configmake: Likewise.
68355         * modules/fcntl: Likewise.
68356         * modules/fnmatch: Likewise.
68357         * modules/getopt: Likewise.
68358         * modules/glob: Likewise.
68359         * modules/inttypes: Likewise.
68360         * modules/netinet_in: Likewise.
68361         * modules/poll: Likewise.
68362         * modules/stdbool: Likewise.
68363         * modules/stdint: Likewise.
68364         * modules/sys_select: Likewise.
68365         * modules/sys_socket: Likewise.
68366         * modules/sys_stat: Likewise.
68367         * modules/sysexits: Likewise.
68368         * modules/localcharset: Same as above, but continue using temporary
68369         file named "t-$@" (why different?) rather than the "$@-t" used
68370         everywhere else.
68371
68372         * modules/sysexits (Makefile.am): Replace literal occurrences
68373         of "sysexit.h" more readable, and more consistent, "$@".
68374
68375 2006-09-06  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/striconv: New file.
68378         * modules/xstriconv: New file.
68379         * MODULES.html.sh (Internationalization functions): Add striconv,
68380         xstriconv.
68381
68382 2006-09-06  Bruno Haible  <bruno@clisp.org>
68383
68384         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68385         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68386         not using libtool correctly.
68387
68388 2006-09-06  Bruno Haible  <bruno@clisp.org>
68389
68390         * lib/striconv.h: New file.
68391         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68392         iconvstring.c.
68393         * lib/xstriconv.h: New file.
68394         * lib/xstriconv.c: New file.
68395
68396 2006-09-06  Bruno Haible  <bruno@clisp.org>
68397
68398         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68399         lib_..._LDFLAGS.
68400
68401 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68402
68403         * lib/argz_.h: Sync from Libtool.
68404
68405         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68406                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68407
68408         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68409
68410 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68411
68412         * modules/trim: New file.
68413
68414 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68415
68416         * lib/trim.h: New file.
68417         * lib/trim.c: New file.
68418
68419 2006-09-05  Bruno Haible  <bruno@clisp.org>
68420
68421         * MODULES.html.sh (String handling): Add trim.
68422
68423 2006-09-04  Karl Berry  <karl@gnu.org>
68424
68425         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68426         until next release.
68427
68428 2006-09-03  Bruno Haible  <bruno@clisp.org>
68429
68430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68431         correctly.
68432
68433 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68436         not gl_GETLOADAVG.  Omit unneeded semicolons.
68437         Problems reported by Ralf Wildenhues in
68438         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68439         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68440         at the end, which is the usual gnulib style.
68441
68442         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68443         of doing all the work ourselves.
68444         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68445         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68446
68447 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68450         Problem reported by Ralf Wildenhues in
68451         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68452
68453         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68454         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68455
68456 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68459         yesterday's patch by changing test -n to test -z.
68460
68461 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68464         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68465         the former is now obsolescent.
68466
68467         * modules/chdir-long (Depends-on): Add fcntl.
68468
68469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68472         obsolescent, and programs should use gnulib instead.
68473         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68474         but with prefixes changed.
68475
68476 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68479         or stdbool.h, because they might not exist while configuring.
68480
68481         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68482         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68483         does that for us.
68484         (O_DIRECTORY): Remove.
68485
68486 2006-08-31  Eric Blake  <ebb9@byu.net>
68487
68488         * gnulib-tool: Don't let emacs change spaces to TAB.
68489
68490 2006-08-31  Bruno Haible  <bruno@clisp.org>
68491
68492         * gnulib-tool: When calling func_import more than once, do it in a
68493         subshell.
68494         Reported by Eric Blake <ebb9@byu.net>.
68495
68496 2006-08-31  Bruno Haible  <bruno@clisp.org>
68497
68498         * gnulib-tool (nl): Remove variable.
68499         (sed_transform_lib_file): Use more robust test for config-h module.
68500         (func_import): Fix typo in 2006-08-25 patch.
68501
68502 2006-08-31  Bruno Haible  <bruno@clisp.org>
68503
68504         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68505         specified, augment Makefile.am variables instead of assigning them.
68506
68507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         Work around a bug in both the Linux and SunOS 64-bit kernels:
68510         nanosleep mishandles sleeps for longer than 2**31 seconds.
68511         Problem reported by Frank v Waveren in
68512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68514         Check for nanosleep bug.
68515         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68516
68517 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         Work around a bug in both the Linux and SunOS 64-bit kernels:
68520         nanosleep mishandles sleeps for longer than 2**31 seconds.
68521         Problem reported by Frank v Waveren in
68522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68523         * lib/nanosleep.c (BILLION): New constant.
68524         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68525         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68526         implementation.
68527
68528 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * modules/nanosleep (Depends-on): Add gettime.
68531
68532 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68533         and Simon Josefsson  <jas@extundo.com>
68534         and Oskar Liljeblad  <oskar@osk.mine.nu>
68535
68536         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68537         * gnulib-tool (func_import): New license type 'unmodifiable license
68538         text'.
68539         * modules/fdl: Use it.  Longer description.
68540         * module/gpl, module/lgpl: New files.
68541
68542 2006-08-30  Jim Meyering  <jim@meyering.net>
68543
68544         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68545         shadowing the parameter.
68546
68547 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68548
68549         Sync from Libtool:
68550
68551         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68552
68553         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68554         sharing with gnulib.  Report by Eric Blake.
68555
68556 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * modules/isapipe: New file.
68559         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68560
68561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         * modules/configmake (Makefile.am): Add a comment, and omit
68564         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68565         by Bruno Haible.
68566
68567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * m4/isapipe.m4: New file.
68570
68571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/isapipe.c, lib/isapipe.h: New files.
68574
68575 2006-08-29  Jim Meyering  <jim@meyering.net>
68576
68577         * modules/configmake (Makefile.am): Make configmake.h depend on
68578         Makefile.  Otherwise, a stale configmake.h could hang around.
68579
68580 2006-08-29  Eric Blake  <ebb9@byu.net>
68581
68582         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68583         resolution of upstream bug 3044.
68584
68585 2006-08-29  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/localcharset (Depends-on): Add configmake.
68588         (Makefile.am): Remove setting of LIBDIR through DEFS.
68589
68590 2006-08-29  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68593         defined.
68594
68595 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * modules/fcntl: New file.
68598         * modules/chdir-safer (Depends-on): Add fcntl.
68599         * modules/fts: Likewise.
68600         * modules/mkdir-p: Likewise.
68601
68602         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68603         This undoes the most recent change, since we're now addressing the
68604         problem in a different way.
68605
68606         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68607         into output, since the output might be called Makefile.am even
68608         if $makefile_name is something different.
68609         (func_import): Use $makefile_am rather than
68610         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68611         empty.
68612
68613         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68614
68615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68618         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68619         recent change to stdint.m4, since we're now addressing the problem in a
68620         different way.
68621
68622 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         * m4/fcntl_h.m4: New file.
68625
68626 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * lib/fcntl_.h: New file.
68629         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68630         the fcntl module.
68631         * lib/dirchownmod.c: Likewise.
68632         * lib/fts.c: Likewise.
68633
68634         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68635         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68636         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68637         just before including <inttypes.h>, to avoid circular inclusion.
68638
68639 2006-08-28  Jim Meyering  <jim@meyering.net>
68640
68641         * doc/visibility.texi: Actually read and correct the grammar of the
68642         sentence affected by yesterday's change.
68643
68644 2006-08-28  Eric Blake  <ebb9@byu.net>
68645
68646         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68647         needs wrapper.
68648
68649 2006-08-28  Eric Blake  <ebb9@byu.net>
68650
68651         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68652
68653 2006-08-28  Eric Blake  <ebb9@byu.net>
68654
68655         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68656
68657 2006-08-28  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/c-strstr: New file, from GNU gettext.
68660         * MODULES.html.sh (String handling): Add c-strstr.
68661
68662 2006-08-28  Bruno Haible  <bruno@clisp.org>
68663
68664         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68665         macros.
68666         Reported by Eric Blake.
68667
68668 2006-08-28  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68671         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68672         * lib/vasprintf.c: Include errno.h, limits.h.
68673         (EOVERFLOW): New fallback definition.
68674         (vasprintf): Test here whether the string length is > INT_MAX.
68675         * lib/vsnprintf.c: Include errno.h, limits.h.
68676         (EOVERFLOW): New fallback definition.
68677         (vsnprintf): Fix bug when generated string was too long for the buffer.
68678         Test here whether the string length is > INT_MAX.
68679
68680 2006-08-28  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/inttypes_.h (SCNX*): Remove definitions.
68683         Reported by Eric Blake.
68684
68685 2006-08-28  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/c-strstr.h: New file, from GNU gettext.
68688         * lib/c-strstr.c: New file, from GNU gettext.
68689
68690 2006-08-28  Bruno Haible  <bruno@clisp.org>
68691
68692         * gnulib-tool: Reorder some statements.
68693
68694 2006-08-28  Bruno Haible  <bruno@clisp.org>
68695
68696         * gnulib-tool: New option --makefile-name.
68697         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68698         $makefile_name.
68699         (func_import): Write $makefile_name to the cache file, and read it from
68700         there unless explicitly specified. Use $makefile_name as file name
68701         instead of Makefile.am. Adjust the recommendations accordingly.
68702
68703 2006-08-28  Bruno Haible  <bruno@clisp.org>
68704
68705         * gnulib-tool (func_verify_module): Check against misapplying patch.
68706
68707 2006-08-28  Bruno Haible  <bruno@clisp.org>
68708
68709         * gnulib-tool (func_relativize, func_relconcat): New functions.
68710         Give an error if --local-dir is given with --update.
68711         Remove trailing slashes from $local_gnulib_dir.
68712         (func_import): Store the relativized $local_gnulib_dir in
68713         gnulib-cache.m4, and read it from there if not specified explicitly.
68714
68715 2006-08-28  Bruno Haible  <bruno@clisp.org>
68716
68717         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68718         is the current directory. Respect also $local_gnulib_dir.
68719
68720 2006-08-28  Bruno Haible  <bruno@clisp.org>
68721             Simon Josefsson  <jas@extundo.com>
68722
68723         BeOS portability.
68724         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68725
68726 2006-08-27  Jim Meyering  <jim@meyering.net>
68727
68728         * doc/visibility.texi: Remove duplicate word: "pointer".
68729
68730 2006-08-26  Bruno Haible  <bruno@clisp.org>
68731
68732         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68733         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68734         (Makefile.am): Create inttypes.h from inttypes_.h.
68735         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68736
68737         * modules/imaxabs: New file.
68738
68739         * modules/imaxdiv: New file.
68740
68741 2006-08-26  Bruno Haible  <bruno@clisp.org>
68742
68743         * m4/inttypes.m4: New file.
68744         * m4/_inttypes_h.m4: Remove file.
68745         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68746         PRI_MACROS_BROKEN.
68747         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68748
68749         * m4/imaxabs.m4: New file.
68750
68751         * m4/imaxdiv.m4: New file.
68752
68753 2006-08-26  Bruno Haible  <bruno@clisp.org>
68754
68755         * lib/inttypes_.h: New file.
68756         * lib/inttypes.h: Remove file.
68757         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68758
68759         * lib/imaxabs.c: New file.
68760
68761         * lib/imaxdiv.c: New file.
68762
68763 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         New config-h module, so that "make" output needn't be cluttered
68766         by -DHAVE_CONFIG_H.
68767         * MODULES.html.sh (Support for building libraries and executables):
68768         Add config-h.
68769         * modules/config-h: New file.
68770         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68771         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68772         the config-h module is used.
68773
68774         New configmake module, so that "make" output needn't be cluttered
68775         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68776         * MODULES.html.sh (Support for building libraries and executables):
68777         Add configmake.
68778         * modules/configmake: New file.
68779
68780 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * m4/config-h.m4: New file.
68783
68784 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * config/srclist.txt: Add elisp-comp.
68787
68788 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * MODULES.html.sh (Support for building libraries and executables):
68791         Add elisp-comp.
68792         * build-aux/elisp-comp: New file.
68793         * modules/elisp-comp: New file.
68794
68795 2006-08-24  Bruno Haible  <bruno@clisp.org>
68796
68797         * gnulib-tool (func_create_testdir): Use non-default values of
68798         sourcebase and m4base.
68799
68800 2006-08-24  Bruno Haible  <bruno@clisp.org>
68801
68802         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68803         HTML structure.
68804
68805 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * modules/openat (Depends-on): Add lchown.
68808
68809 2006-08-23  Bruno Haible  <bruno@clisp.org>
68810
68811         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68812         of gl_LOCK_EARLY instead of gl_LOCK.
68813
68814 2006-08-23  Bruno Haible  <bruno@clisp.org>
68815
68816         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68817         on OSF/1 to no.
68818         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68819
68820 2006-08-23  Bruno Haible  <bruno@clisp.org>
68821
68822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68823         as unusable.
68824
68825         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68826         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68827         (gl_LOCK): New macro.
68828
68829 2006-08-22  Simon Josefsson  <jas@extundo.com>
68830
68831         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68832         to md5 module.
68833
68834 2006-08-22  Simon Josefsson  <jas@extundo.com>
68835
68836         * MODULES.html.sh: Add "Support for maintaining and release
68837         projects".
68838
68839         * build-aux/gnupload: New file, from coreutils.
68840
68841 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         Avoid the need for AC_LIBSOURCES in m4 macros.
68844         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68845         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68846         * modules/check-version (EXTRA_DIST): Add check-version.h.
68847         * modules/crc (EXTRA_DIST): Add crc.h.
68848         * modules/des (EXTRA_DIST): Add des.h.
68849         * modules/gc (EXTRA_DIST): Add gc.h.
68850         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68851         * modules/getline (EXTRA_DIST): Add getline.h.
68852         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68853         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68854         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68855         * modules/md2 (EXTRA_DIST): Add md2.h.
68856         * modules/md4 (EXTRA_DIST): Add md4.h.
68857         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68858         * modules/read-file (EXTRA_DIST): Add read-file.h.
68859         * modules/readline (EXTRA_DIST): Add readline.h.
68860         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68861         rijndael-api-fst.h.
68862
68863 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * m4/rijndael.m4 (gl_ARCFOUR):
68866         * m4/arctwo.m4 (gl_ARCTWO):
68867         * m4/check-version.m4 (gl_CHECK_VERSION):
68868         * m4/crc.m4 (gl_CRC):
68869         * m4/des.m4 (gl_DES):
68870         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68871         * m4/gc.m4 (gl_GC):
68872         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68873         * m4/getline.m4 (gl_FUNC_GETLINE):
68874         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68875         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68876         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68877         * m4/md2.m4 (gl_MD2):
68878         * m4/md4.m4 (gl_MD4):
68879         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68880         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68881         * m4/readline.m4 (gl_FUNC_READLINE):
68882         * m4/rijndael.m4 (gl_RIJNDAEL):
68883         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68884         to get the necessary .h files and whatnot.
68885
68886 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68889         gnulib rather than the other way around.
68890         * config/srclistvars.sh (COREUTILS): Remove.
68891
68892 2006-08-22  Jim Meyering  <jim@meyering.net>
68893
68894         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68895
68896         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68897
68898 2006-08-22  Eric Blake  <ebb9@byu.net>
68899
68900         * modules/regexprops-generic: New file.
68901         * MODULES.html.sh (Support for building documentation): List it.
68902
68903 2006-08-22  Eric Blake  <ebb9@byu.net>
68904
68905         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68906         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68907         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68908         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68909
68910 2006-08-22  Bruno Haible  <bruno@clisp.org>
68911
68912         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68913         and lib_LTLIBRARIES like the other lib_* variables.
68914
68915 2006-08-22  Bruno Haible  <bruno@clisp.org>
68916
68917         * build-aux/x-to-1.in: New file, from GNU gettext.
68918
68919 2006-08-22  Bruno Haible  <bruno@clisp.org>
68920
68921         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68922         <utmpx.h> exists.
68923
68924 2006-08-22  Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68927         <utmpx.h> exists.
68928
68929 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         BeOS portability.
68932         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68933         exist.
68934         Problem reported by Bruno Haible.
68935
68936 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         Avoid the need for AC_LIBSOURCES in m4 macros.
68939         * modules/acl (EXTRA_DIST): Add acl.h.
68940         * modules/argmatch (Files): Add m4/argmatch.m4.
68941         (configure.ac): Add gl_ARGMATCH.
68942         (EXTRA_DIST): Renamed from lib_SOURCES, for
68943         consistency with the other modules.  Remove argmatch.c.
68944         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68945         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68946         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68947         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68948         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68949         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68950         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68951         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68952         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68953         * modules/closeout (EXTRA_DIST): Add closeout.h.
68954         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68955         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68956         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68957         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68958         dirname.h; remove basename.c and stripslash.c.
68959         * modules/exclude (EXTRA_DIST): Add exclude.h.
68960         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68961         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68962         * modules/file-type (EXTRA_DIST): Add file-type.h.
68963         * modules/filemode (EXTRA_DIST): Add filemode.h.
68964         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68965         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68966         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68967         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68968         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68969         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68970         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68971         * modules/getdate (EXTRA_DIST): Add getdate.c.
68972         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68973         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68974         * modules/getpass (EXTRA_DIST): Add getpass.h.
68975         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68976         * modules/group-member (EXTRA_DIST): Add group-member.h.
68977         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68978         * modules/hash (EXTRA_DIST): Add hash.h.
68979         * modules/human (EXTRA_DIST): Add human.h.
68980         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68981         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68982         * modules/lchown (EXTRA_DIST): Add lchown.h.
68983         * modules/long-options (EXTRA_DIST): Add long-options.h.
68984         * modules/lstat (EXTRA_DIST): Add lstat.h.
68985         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68986         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68987         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68988         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68989         * modules/memxor (EXTRA_DIST): Add memxor.h.
68990         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68991         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68992         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68993         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68994         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68995         * modules/physmem (EXTRA_DIST): Add physmem.h.
68996         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68997         * modules/posixver (EXTRA_DIST): Add posixver.h.
68998         * modules/quote (EXTRA_DIST): Add quote.h.
68999         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69000         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69001         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69002         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69003         regex_internal.h regexec.c.
69004         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69005         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69006         * modules/same (EXTRA_DIST): Add same.h.
69007         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69008         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69009         * modules/savedir (EXTRA_DIST): Add savedir.h.
69010         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69011         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69012         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69013         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69014         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69015         * modules/strdup (EXTRA_DIST): Add strdup.h.
69016         * modules/strftime (EXTRA_DIST): Add strftime.h.
69017         * modules/strndup (EXTRA_DIST): Add strndup.h.
69018         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69019         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69020         * modules/time_r (EXTRA_DIST): Add time_r.h.
69021         * modules/timespec (EXTRA_DIST): Add timespec.h.
69022         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69023         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69024         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69025         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69026         * modules/userspec (EXTRA_DIST): Add userspec.h.
69027         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69028         * modules/utimens (EXTRA_DIST): Add utimens.h.
69029         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69030         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69031         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69032         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69033         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69034         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69035         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69036         * modules/yesno (EXTRA_DIST): Add yesno.h.
69037
69038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69041
69042         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69043         * m4/dev-ino.m4, same-inode.m4: Remove.
69044
69045         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69046         * m4/acl.m4 (AC_FUNC_ACL):
69047         * m4/backupfile.m4 (gl_BACKUPFILE):
69048         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69049         * m4/canon-host.m4 (gl_CANON_HOST):
69050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69052         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69053         * m4/cloexec.m4 (gl_CLOEXEC):
69054         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69055         * m4/closeout.m4 (gl_CLOSEOUT):
69056         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69057         * m4/dirname.m4 (gl_DIRNAME):
69058         * m4/exclude.m4 (gl_EXCLUDE):
69059         * m4/exitfail.m4 (gl_EXITFAIL):
69060         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69061         * m4/file-type.m4 (gl_FILE_TYPE):
69062         * m4/filemode.m4 (gl_FILEMODE):
69063         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69064         * m4/fpending.m4 (gl_FUNC_FPENDING):
69065         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69066         * m4/fts.m4 (gl_FUNC_FTS):
69067         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69068         * m4/getdate.m4 (gl_GETDATE):
69069         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69070         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69071         * m4/getpass.m4 (gl_FUNC_GETPASS):
69072         * m4/gettime.m4 (gl_GETTIME):
69073         * m4/getugroups.m4 (gl_GETUGROUPS):
69074         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69075         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69076         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69077         * m4/hash.m4 (gl_HASH):
69078         * m4/idcache.m4 (gl_IDCACHE):
69079         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69080         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69081         * m4/long-options.m4 (gl_LONG_OPTIONS):
69082         * m4/lstat.m4 (gl_FUNC_LSTAT):
69083         * m4/md5.m4 (gl_MD5):
69084         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69085         * m4/memcoll.m4 (gl_MEMCOLL):
69086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69088         * m4/memxor.m4 (gl_MEMXOR):
69089         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69090         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69091         * m4/modechange.m4 (gl_MODECHANGE):
69092         * m4/mountlist.m4 (gl_MOUNTLIST):
69093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69094         * m4/openat.m4 (gl_FUNC_OPENAT):
69095         * m4/pathmax.m4 (gl_PATHMAX):
69096         * m4/physmem.m4 (gl_PHYSMEM):
69097         * m4/posixtm.m4 (gl_POSIXTM):
69098         * m4/posixver.m4 (gl_POSIXVER):
69099         * m4/quote.m4 (gl_QUOTE):
69100         * m4/quotearg.m4 (gl_QUOTEARG):
69101         * m4/readtokens.m4 (gl_READTOKENS):
69102         * m4/readutmp.m4 (gl_READUTMP):
69103         * m4/regex.m4 (gl_REGEX):
69104         * m4/safe-read.m4 (gl_SAFE_READ):
69105         * m4/safe-write.m4 (gl_SAFE_WRITE):
69106         * m4/same.m4 (gl_SAME):
69107         * m4/save-cwd.m4 (gl_SAVE_CWD):
69108         * m4/savedir.m4 (gl_SAVEDIR):
69109         * m4/settime.m4 (gl_SETTIME):
69110         * m4/sha1.m4 (gl_SHA1):
69111         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69112         * m4/stat-macros.m4 (gl_STAT_MACROS):
69113         * m4/stat-time.m4 (gl_STAT_TIME):
69114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69115         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69116         * m4/strdup.m4 (gl_FUNC_STRDUP):
69117         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69118         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69119         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69120         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69121         * m4/time_r.m4 (gl_TIME_R):
69122         * m4/timespec.m4 (gl_TIMESPEC):
69123         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69124         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69125         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69126         * m4/userspec.m4 (gl_USERSPEC):
69127         * m4/utimecmp.m4 (gl_UTIMECMP):
69128         * m4/utimens.m4 (gl_UTIMENS):
69129         * m4/xalloc.m4 (gl_XALLOC):
69130         * m4/xgetcwd.m4 (gl_XGETCWD):
69131         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69132         * m4/xreadlink.m4 (gl_XREADLINK):
69133         * m4/xstrtod.m4 (gl_XSTRTOD):
69134         * m4/yesno.m4 (gl_YESNO):
69135         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69136         to get the necessary .h files and whatnot.
69137
69138 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69139             Bruno Haible  <bruno@clisp.org>
69140
69141         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69142         /bin/sh understanding of '!' conditional negation.
69143
69144 2006-08-21  Jim Meyering  <jim@meyering.net>
69145
69146         * modules/openat (Depends-on): Really alphabetize.
69147
69148         * modules/acl (Depends-on): Add error and quote.
69149
69150         * check-module (find_included_lib_files): Add at-func.c to the
69151         ok-to-include-more-than-once white list.
69152
69153         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69154
69155 2006-08-21  Bruno Haible  <bruno@clisp.org>
69156
69157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69158         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69159         Reported by Martin Lambers <marlam@marlam.de>.
69160
69161 2006-08-21  Bruno Haible  <bruno@clisp.org>
69162
69163         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69164         specify an installation location, don't emit a noinst_LIBRARIES or
69165         noinst_LTLIBRARIES assignment.
69166
69167 2006-08-21  Bruno Haible  <bruno@clisp.org>
69168
69169         BeOS portability.
69170         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69171         BeOS has mbrtowc() but no <wctype.h>.
69172
69173 2006-08-21  Bruno Haible  <bruno@clisp.org>
69174
69175         BeOS portability.
69176         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69177         exist.
69178
69179 2006-08-21  Bruno Haible  <bruno@clisp.org>
69180
69181         BeOS portability.
69182         * lib/mbchar.h: Include <wctype.h> only if it exists.
69183
69184 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         Remove files that are no longer needed by their respective modules.
69187         * m4/obstack.m4: Remove.
69188         * m4/strerror_r.m4: Remove.
69189         * m4/uint32_t.m4: Remove.
69190         * m4/uintptr_t.m4: Remove.
69191         * m4/ullong_max.m4: Remove.
69192         * m4/xstrtoimax.m4: Remove.
69193         * m4/xstrtoumax.m4: Remove.
69194
69195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69196         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69197         dependencies now capture this.
69198
69199         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69200         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69201         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69202         * m4/human.m4 (gl_HUMAN): Likewise.
69203         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69204         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69205
69206         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69207
69208         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69209         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69210         stdint.
69211         * m4/human.m4 (gl_HUMAN): Likewise.
69212         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69213         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69214         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69215         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69216         * m4/xstrtol (gl_XSTRTOL): Likewise.
69217
69218         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69219         AC_TYPE_LONG_LONG_INT.
69220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69221         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69222         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69223         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69224
69225         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69226         on stdbool.
69227
69228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69229         (gl_PREREQ_XSTRTOUL): Remove.
69230
69231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69232
69233         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69234         mode.
69235
69236 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         Add and change modules to make it easier for coreutils to use
69239         gnulib-tool.
69240         * modules/backupfile (Files): Remove m4/d-ino.m4.
69241         (Depends-on): Add d-ino.
69242         * modules/cycle-check (Depends-on): Add stdint.
69243         (lib_SOURCES): Add cycle-check.h.
69244         * modules/d-ino: New module.
69245         * modules/d-type: New module.
69246         * modules/error (Files): Remove m4/strerror_r.m4.
69247         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69248         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69249         m4/inttypes_h.m4, m4/uintmax_t.m4.
69250         (Depends-on): Add stdint.
69251         (lib_SOURCES): Add fsusage.h.
69252         * modules/getcwd (Files): Remove d-ino.m4.
69253         (Depends-on): Add d-ino.
69254         * modules/getndelim2 (Depends-on): Add stdint.
69255         * modules/glob (Files): Remove m4/d-type.m4.
69256         (Depends-on): Add d-type.
69257         * modules/host-os: New module.
69258         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69259         m4/inttypes_h.m4, m4/uintmax_t.m4.
69260         * Depends-on: Add stdint.
69261         (lib_SOURCES): Add human.h.
69262         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69263         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69264         m4/uintmax_t.m4, m4/ulonglong.m4.
69265         (Depends-on): Add stdint.
69266         (EXTRA_DIST): Add inttostr.h.
69267         * modules/lchmod: New module.
69268         * modules/link-follow: New module.
69269         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69270         (Depends-on): Add lchmod.
69271         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69272         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69273         (Depends-on): Add stdint.
69274         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69275         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69276         (Depends-on): Add stdint.
69277         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69278         * modules/perl: New module.
69279         * modules/regex (Depends-on): Add stdint.
69280         * modules/rmdir-errno: New module.
69281         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69282         m4/intmax_t.m4.
69283         (Depends-on): Add stdint.
69284         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69285         m4/uintmax_t.m4.
69286         (Depends-on): Add stdint.
69287         * modules/unlink-busy: New module.
69288         * modules/utimecmp (Depends-on): Add stdint.
69289         * modules/uptime: New module.
69290         * modules/winsz-ioctl: New module.
69291         * modules/winsz-termios: New module.
69292         * modules/xnanosleep (Depends-on): Add nanosleep.
69293         * modules/ullong_max: Remove.
69294         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69295         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69296         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69297         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69298         (Depends-on): Add inttypes.
69299         (lib_SOURCES): Add xstrtol.h.
69300         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69301         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69302         * MODULES.html.sh: Move 'assert' into the assert section.
69303         Move 'dummy' into the linking section.
69304         Remove ullong_max.
69305         Add section for compatibility checks for POSIX:2001 functions,
69306         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69307         winsz-ioctl, and winsz-termios into it.
69308         Add lchmod.
69309         Add top-level Misc section and put host-os, perl, and uptime
69310         into it.
69311
69312 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69313
69314         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69315         now assume the stdint module.  Do not include inttypes.h.
69316         * lib/fsusage.h: Likewise.
69317         * lib/getndelim2.c: Likewise.
69318         * lib/human.h: Likewise.
69319         * lib/inttostr.h: Likewise.
69320         * lib/obstack.c: Likewise.
69321         * lib/regex_internal.h: Likewise.
69322         * lib/tempname.c: Likewise.
69323         * lib/utimecmp.c: Likewise.
69324         * lib/xstrtol.h: Likewise.
69325
69326         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69327
69328         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69329         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69330         * lib/xtime.h: Likewise.
69331
69332 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * modules/openat (Files): Add lib/fchmodat.c.
69335         Fixes problem reported by Jay Youngman.
69336
69337 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69340         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69341
69342 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69343             Bruno Haible  <bruno@clisp.org>
69344
69345         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69346         and is a script that invokes bison. Tighten the code. Add comments.
69347
69348 2006-08-18  Jim Meyering  <jim@meyering.net>
69349
69350         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69351         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69352         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69353         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69354
69355 2006-08-18  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/bison-i18n: New file.
69358         * MODULES.html.sh (Internationalization functions): Add it.
69359
69360 2006-08-18  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69363         sys/statvfs.h. When getmntinfo was found, check its declaration and
69364         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69365
69366 2006-08-18  Bruno Haible  <bruno@clisp.org>
69367
69368         * m4/bison-i18n.m4: New file, from bison.
69369
69370 2006-08-18  Bruno Haible  <bruno@clisp.org>
69371
69372         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69373         (ME_DUMMY): Treat "kernfs" as a dummy.
69374         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69375
69376 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Update from coreutils.
69379
69380         2006-08-15  Jim Meyering  <jim@meyering.net>
69381
69382         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69383
69384         2006-01-17  Jim Meyering  <jim@meyering.net>
69385
69386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69387
69388         2006-01-11  Jim Meyering  <jim@meyering.net>
69389
69390         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69391         Check for the lchmod function.
69392
69393 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         Update from coreutils.
69396
69397         * lib/__fpending.h: Add copyright notice.
69398         * lib/fprintftime.h: Likewise.
69399         * lib/savedir.c: Use (C) in copyright notice.
69400         * lib/savedir.h: Likewise.
69401
69402         2006-08-15  Jim Meyering  <jim@meyering.net>
69403
69404         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69405         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69406         in support of the EXPECTED_ERRNO macro.
69407         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69408         definitions.  Instead, define the appropriate symbols and include
69409         "at-func.c".
69410         * lib/mkdirat.c (mkdirat): Likewise.
69411         * lib/fchmodat.c (fchmodat): Likewise.
69412         (ENOSYS): Remove definition.
69413         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69414         it.  Don't include "unistd--.h" -- it wasn't ever used.
69415
69416         2006-01-17  Jim Meyering  <jim@meyering.net>
69417
69418         Rewrite fts.c not to change the current working directory,
69419         by using openat, fstatat, fdopendir, etc..
69420
69421         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69422         (HAVE_OPENAT_SUPPORT): Define.
69423         [_LIBC] (fchdir): Don't undef or define; no longer used.
69424         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69425         Now, this `function' always succeeds, and consumes its file descriptor
69426         parameter -- so callers must not close such FDs.  Update callers.
69427         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69428         (diropen): Add parameter, SP.  Adjust all callers.
69429         Implement using diropen_fd, rather than open.
69430         (fts_open): Initialize new member, fts_cwd_fd.
69431         Remove fts_rft-setting code.
69432         (fts_close): Close fts_cwd_fd, if necessary.
69433         (__opendir2): Define in terms of opendir or opendirat,
69434         depending on whether the FST_NOCHDIR flag is set.
69435         (fts_build): Since fts_safe_changedir consumes its FD, and since
69436         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69437         and close the dup'd file descriptor upon failure.
69438         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69439         (fts_safe_changedir): Tweak semantics to reflect that this function
69440         now calls cwd_advance_fd and hence consumes its FD argument.
69441         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69442         [struct FTS] (fts_rft): Remove now-unused member.
69443         [struct FTS] (fts_cycle.state): Improve comment.
69444
69445         * lib/openat.c (openat_needs_fchdir): New function.
69446         * lib/openat.h (openat_needs_fchdir): Declare it.
69447
69448 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69451         Problem and fix reported by Pádraig Brady in
69452         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69453
69454 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69457
69458 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         * lib/memcoll.c (memcoll): Optimize for the common case where the
69461         arguments are bytewise equal.
69462
69463 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         * doc/regexprops-generic.texi: Add a copyright notice.
69466
69467 2006-08-15  Bruno Haible  <bruno@clisp.org>
69468
69469         * modules/tmpdir (License): Change to LGPL.
69470
69471 2006-08-15  Bruno Haible  <bruno@clisp.org>
69472
69473         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69474         module.
69475
69476 2006-08-14  Simon Josefsson  <jas@extundo.com>
69477
69478         * config/srclist.txt: Add gnupload.
69479
69480 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         Change copyright notice from LGPL 2 to GPL 2, since that's the
69483         standard form used in the gnulib repository.
69484         * tests/test-lock.c: Likewise.
69485         * tests/test-stdint.c: Likewise.
69486         * tests/test-tls.c: Likewise.
69487
69488         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69489         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69490         Add copyright notice.
69491
69492         * check-module: Add copyright notice.  Output a copyright
69493         notice if "--version" is specified.
69494         * modules/COPYING: New file.
69495         * tests/test-getaddrinfo.c: Add copyright notice.
69496         * tests/test-verify.c: Likewise.
69497
69498 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         Change copyright notice from LGPL 2 to GPL 2, since that's the
69501         standard form used in the gnulib repository.
69502         * lib/lock.c: LGPL -> GPL.
69503         * lib/lock.h: Likewise.
69504         * lib/strnlen1.c: Likewise.
69505         * lib/strnlen1.h: Likewise.
69506         * lib/tls.c: Likewise.
69507         * lib/tls.h: Likewise.
69508         * lib/tmpdir.c: Likewise.
69509
69510         * lib/TODO: Remove; this belongs only in coreutils.
69511
69512 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         Add copyright notices to long-enough files that lack them, since
69515         otherwise the files aren't clearly free.  Use the same notice that
69516         getdate.texi already uses.
69517         * doc/alloca-opt.texi: Add copyright notice.
69518         * doc/alloca.texi: Likewise.
69519         * doc/ctime.texi: Likewise.
69520         * doc/functions.texi: Likewise.
69521         * doc/gcd.texi: Likewise.
69522         * doc/gnulib-tool.texi: Likewise.
69523         * doc/inet_ntoa.texi: Likewise.
69524         * doc/visibility.texi: Likewise.
69525
69526         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69527         * doc/quote.texi: Add copyright notice.
69528
69529         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69530         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69531         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69532         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69533         is now obsolete, and give a pointer to the Sun list.
69534         Add copyright notice.
69535
69536 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         * config/srclistvars.sh: Add copyright notice.
69539
69540 2006-08-14  Eric Blake  <ebb9@byu.net>
69541
69542         Import the following change from libc:
69543
69544         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69545
69546         Upstream bug 2997.
69547         * lib/misc/error.c: Add space between program name and message if file
69548         name is missing.
69549
69550 2006-08-12  Karl Berry  <karl@gnu.org>
69551
69552         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69553         remove, these originate in gnulib now.
69554
69555 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69556
69557         * doc/Makefile (standards.info standards.html standards.dvi):
69558         Also depend on make-stds.texi.
69559
69560 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69563         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69564
69565         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69566         in wchar_t.  Problem reported by Eric Blake.
69567
69568         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69569         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69570         Also, help the compiler to keep LEN in a register.
69571
69572 2006-08-11  Eric Blake  <ebb9@byu.net>
69573
69574         * users.txt: Sort.  Add tar.
69575
69576 2006-08-11  Bruno Haible  <bruno@clisp.org>
69577
69578         * users.txt: New file.
69579
69580 2006-08-11  Bruno Haible  <bruno@clisp.org>
69581
69582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69583         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69584
69585 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * modules/snprintf (Depends-on): Remove minmax.
69588         (Maintainer): Add self and Bruno.
69589
69590 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69591
69592         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69593         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69594         (EOVERFLOW): Define if the system does not.
69595         Do not include "minmax.h"; it wasn't used.
69596         (snprintf): Don't assume size_t promotes to an unsigned type.
69597         Fix bug when generated string was too long for the buffer: the
69598         buffer's contents are supposed to be the initial prefix of the
69599         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69600         exceeds INT_MAX; do the check ourselves.
69601
69602         Import the following changes from libc:
69603
69604         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69605
69606         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69607         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69608         set wc to the byte which couldn't be converted.
69609         (re_string_reconstruct): Don't clear valid_raw_len before calling
69610         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69611         tip_context using re_string_context_at.
69612
69613         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69614
69615         * lib/posix/regex.h: g++ still cannot handled [restrict].
69616
69617         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69618
69619         * lib/posix/regex.h: Remove special handling for VMS.
69620
69621 2006-08-10  Jim Meyering  <jim@meyering.net>
69622
69623         * modules/same-inode: New module.
69624         * modules/dev-ino: New module.
69625         * modules/cycle-check: Depend on these modules, rather than simply
69626         including their .h files.
69627         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69628         required via m4/cycle-check.m4.
69629         * modules/same: Depend on new same-inode module, rather than
69630         including same-inode.h.
69631         * modules/chdir-safer: New file.
69632
69633         * modules/chown (Depends-on): Add stat-macros.
69634
69635 2006-08-10  Jim Meyering  <jim@meyering.net>
69636
69637         * m4/cycle-check.m4: New file.
69638         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69639         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69640
69641 2006-08-10  Eric Blake  <ebb9@byu.net>
69642
69643         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69644         in from original proposal.
69645
69646 2006-08-10  Eric Blake  <ebb9@byu.net>
69647         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69648
69649         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69650         namespace.
69651
69652 2006-08-10  Bruno Haible  <bruno@clisp.org>
69653
69654         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69655         as well.
69656
69657 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         Sync from coreutils.
69660
69661         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69662
69663         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69664         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69665
69666 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69667
69668         * modules/restrict: Remove; no longer needed now that we assume
69669         Autoconf 2.59 or later.
69670         * MODULES.html.sh: Remove 'restrict'.
69671         * modules/argp (Depends-on): Remove 'restrict'.
69672         * modules/base64 (Depends-on): Likewise.
69673         * modules/gc (Depends-on): Likewise.
69674         * modules/getaddrinfo (Depends-on): Likewise.
69675         * modules/glob (Depends-on): Likewise.
69676         * modules/inet_ntop (Depends-on): Likewise.
69677         * modules/inet_pton (Depends-on): Likewise.
69678         * modules/memxor (Depends-on): Likewise.
69679         * modules/regex (Depends-on): Likewise.
69680         * modules/strtok_r (Depends-on): Likewise.
69681         * modules/time_r (Depends-on): Likewise.
69682
69683 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69686         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69687         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69688         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69689         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69690         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69691         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69692         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69693
69694         Merge from coreutils.
69695         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69696         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69697         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69698         * m4/time_r.m4 (gl_TIME_R): Likewise.
69699
69700 2006-08-09  Karl Berry  <karl@gnu.org>
69701
69702         * config/srclist.txt: no more gettext-tools, per Bruno.
69703
69704 2006-08-08  Eric Blake  <ebb9@byu.net>
69705
69706         * modules/verror: New module.
69707         * MODULES.html.sh: Document it.
69708
69709 2006-08-08  Eric Blake  <ebb9@byu.net>
69710
69711         * lib/verror.h, lib/verror.c: New files.
69712
69713 2006-08-08  Eric Blake  <ebb9@byu.net>
69714
69715         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69716         verror_at_line output complies with GNU Coding Standards even when
69717         file is NULL.
69718
69719 2006-08-07  Bruno Haible  <bruno@clisp.org>
69720
69721         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69722         versions of AIX.
69723         Reported by Ralf Wildenhues.
69724
69725 2006-08-07  Bruno Haible  <bruno@clisp.org>
69726
69727         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69728         in an AC_DEFUN. Needed so that the autoconf snippets can use
69729         AC_REQUIRE.
69730
69731 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69732
69733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69734         Initialize pkgdata_DATA.
69735         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69736         overriding it.
69737
69738 2006-08-06  Eric Blake  <ebb9@byu.net>
69739
69740         * lib/error.h: Fold in some upstream changes from glibc.
69741         * lib/error.c: Likewise.
69742
69743 2006-08-04  Bruno Haible  <bruno@clisp.org>
69744
69745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69746         Make the mostlyclean-local rule depend on mostlyclean-generic.
69747         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69748
69749 2006-07-31  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69752         <stdlib.h>, <string.h>.
69753
69754 2006-07-30  Bruno Haible  <bruno@clisp.org>
69755
69756         * modules/readlink (License): Change to LGPL.
69757
69758 2006-07-30  Bruno Haible  <bruno@clisp.org>
69759
69760         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69761         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69762         set PKGDATADIR to point to it.
69763
69764 2006-07-30  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/csharpexec (configure.ac): Comment out macro invocation.
69767         * modules/javaexec (configure.ac): Likewise.
69768         * modules/javacomp-script (configure.ac): Likewise.
69769
69770         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69771
69772 2006-07-30  Bruno Haible  <bruno@clisp.org>
69773
69774         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69775         linked-list.
69776
69777 2006-07-30  Bruno Haible  <bruno@clisp.org>
69778
69779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69780
69781 2006-07-30  Bruno Haible  <bruno@clisp.org>
69782
69783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69784         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69785         get removed.
69786
69787 2006-07-29  Bruno Haible  <bruno@clisp.org>
69788
69789         Make it possible for gnulib-tool to work with locally modified or
69790         augmented gnulib repositories.
69791         * gnulib-tool (func_usage): Document --local-dir option.
69792         (local_gnulib_dir): New variable.
69793         Handle --local-dir option.
69794         (func_lookup_file): New function.
69795         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69796         (func_get_description, func_get_filelist, func_get_description,
69797         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69798         func_get_automake_snippet, func_get_include_directive,
69799         func_get_license, func_get_maintainer): Use func_lookup_file.
69800         (func_import, func_create_testdir): Use func_lookup_file.
69801
69802 2006-07-29  Bruno Haible  <bruno@clisp.org>
69803
69804         * modules/setenv (Depends-on): Add unistd.
69805
69806 2006-07-29  Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69809
69810 2006-07-29  Bruno Haible  <bruno@clisp.org>
69811
69812         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69813
69814 2006-07-29  Bruno Haible  <bruno@clisp.org>
69815
69816         * gnulib-tool (import, update): If there is no Makefile.am, look at
69817         aclocal.m4, instead of bailing out.
69818
69819 2006-07-29  Bruno Haible  <bruno@clisp.org>
69820
69821         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69822         Categorize the options by when they are useful.
69823
69824 2006-07-29  Bruno Haible  <bruno@clisp.org>
69825
69826         * gnulib-tool (func_usage): Document option --no-libtool.
69827         Handle option --no-libtool.
69828         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69829         for changed semantics of $libtool variable.
69830         (func_import): Likewise. If libtool is not used, show this through
69831         an option --no-libtool.
69832         (func_create_testdir): Update.
69833
69834 2006-07-29  Bruno Haible  <bruno@clisp.org>
69835
69836         * gnulib-tool (func_import): Extend error message about missing
69837         --doc-base.
69838
69839 2006-07-29  Bruno Haible  <bruno@clisp.org>
69840
69841         * gnulib-tool (func_import): Don't create the $docbase directory if
69842         there is no file to store there.
69843
69844 2006-07-29  Bruno Haible  <bruno@clisp.org>
69845
69846         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69847         relevant, look for configure.ac there, not in the current directory.
69848         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69849
69850 2006-07-29  Bruno Haible  <bruno@clisp.org>
69851
69852         * gnulib-tool (SORT): New variable.
69853         (func_usage): Undocument --assume-autoconf option.
69854         Remove --assume-autoconf option handling.
69855         (autoconf_minversion): Determine from the contents of configure.ac.
69856         (func_import): Remove autoconf_minversion handling.
69857         Suggested by Eric Blake.
69858
69859 2006-07-29  Bruno Haible  <bruno@clisp.org>
69860
69861         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69862
69863 2006-07-29  Bruno Haible  <bruno@clisp.org>
69864
69865         * config/srclist.txt (*setenv.[ch]): Remove rules.
69866
69867 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69868
69869         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69870
69871 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69872
69873         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69874         arpa/inet.h.
69875
69876 2006-07-28  Simon Josefsson  <jas@extundo.com>
69877
69878         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69879         * modules/inet_pton (Depends-on): Likewise.
69880
69881 2006-07-28  Simon Josefsson  <jas@extundo.com>
69882
69883         * m4/netinet_in_h.m4: New file.
69884
69885 2006-07-28  Simon Josefsson  <jas@extundo.com>
69886
69887         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69888         #include's.
69889
69890 2006-07-28  Simon Josefsson  <jas@extundo.com>
69891
69892         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69893         #include's.
69894
69895 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69898         setgid on directories only if they set these bits.
69899         * lib/modechange.h: Remove obsolete comment about masks.
69900
69901 2006-07-28  Eric Blake  <ebb9@byu.net>
69902
69903         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69904         macro expansion.
69905
69906 2006-07-28  Bruno Haible  <bruno@clisp.org>
69907
69908         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69909
69910 2006-07-28  Bruno Haible  <bruno@clisp.org>
69911
69912         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69913
69914 2006-07-28  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69917         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69918         Define fallbacks.
69919         Avoids link error on FreeBSD 4.x.
69920         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69921
69922         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69923         encoding.
69924         * lib/mbswidth.c (iswcntrl): Likewise.
69925
69926 2006-07-27  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69929         test.
69930
69931 2006-07-27  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69934         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69935         defined.
69936
69937 2006-07-26  Eric Blake  <ebb9@byu.net>
69938
69939         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69940
69941 2006-07-26  Eric Blake  <ebb9@byu.net>
69942
69943         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69944         like mingw that lack mkstemp.
69945         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69946         avoid compilation warning on mingw.
69947
69948 2006-07-26  Bruno Haible  <bruno@clisp.org>
69949
69950         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69951         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69952         INT_FAST*_MIN, INTPTR_MIN.
69953
69954 2006-07-25  Bruno Haible  <bruno@clisp.org>
69955
69956         * modules/version-etc (Depends-on): Add stdarg.
69957
69958 2006-07-25  Bruno Haible  <bruno@clisp.org>
69959
69960         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69961         complex commands.
69962
69963 2006-07-25  Bruno Haible  <bruno@clisp.org>
69964
69965         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69966         defined in <stdarg.h> or config.h.
69967
69968 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69971         (gl_STDIO_SAFER): Remove.
69972
69973 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * MODULES.html.sh (File stream based Input/Output):
69976         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69977         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69978         * modules/fopen-safer, modules/tmpfile-safer: New files.
69979         * modules/stdio-safer: Remove.
69980
69981 2006-07-24  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/tmpdir: New file.
69984         * MODULES.html.sh (File system functions): Add it.
69985
69986 2006-07-24  Bruno Haible  <bruno@clisp.org>
69987
69988         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69989         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69990
69991 2006-07-24  Bruno Haible  <bruno@clisp.org>
69992
69993         * modules/clean-temp: New file.
69994
69995 2006-07-24  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/tmpdir.m4: New file, from GNU gettext.
69998
69999 2006-07-24  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/tmpdir.h: New file, from GNU gettext.
70002         * lib/tmpdir.c: New file, from GNU gettext.
70003
70004 2006-07-24  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/clean-temp.h: New file, from GNU gettext.
70007         * lib/clean-temp.c: New file, from GNU gettext.
70008
70009 2006-07-23  Eric Blake  <ebb9@byu.net>
70010
70011         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70012         (Depends-on): Add binary-io.
70013
70014 2006-07-23  Eric Blake  <ebb9@byu.net>
70015
70016         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70017
70018 2006-07-23  Eric Blake  <ebb9@byu.net>
70019
70020         * lib/tmpfile-safer.c: New file.
70021         * lib/stdio-safer.h (fopen_safer): Add prototype.
70022         * lib/stdio--.h (tmpfile): Make safer.
70023
70024 2006-07-23  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70027         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70028         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70029         gl_linked_remove_at): Use it.
70030
70031 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70032         and Simon Josefsson <jas@extundo.com>
70033
70034         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70035
70036         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70037
70038 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * modules/close-stream: New file.
70041         * modules/closeout (Description): Make it clear that it exits
70042         with a diagnostic on error.
70043         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70044         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70045
70046 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * m4/close-stream.m4: New file.
70049
70050 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70051
70052         * lib/close-stream.c, lib/close-stream.h: New files.
70053
70054 2006-07-22  Bruno Haible  <bruno@clisp.org>
70055
70056         Merge from GNU gettext 0.15.
70057
70058         2006-05-01  Bruno Haible  <bruno@clisp.org>
70059
70060                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70061
70062         2006-07-22  Bruno Haible  <bruno@clisp.org>
70063
70064                 * modules/javaversion: New file.
70065                 * MODULES.html.sh (Java): Add javaversion.
70066
70067         2006-03-12  Bruno Haible  <bruno@clisp.org>
70068
70069                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70070
70071         2005-12-04  Bruno Haible  <bruno@clisp.org>
70072
70073                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70074                 (untested).
70075
70076         2006-06-21  Bruno Haible  <bruno@clisp.org>
70077
70078                 Avoid warnings from recent versions of mcs.
70079                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70080                 -o, -L, -r any more. Use options documented since mcs-1.0
70081                 instead. Similarly for -g.
70082
70083         2005-12-04  Bruno Haible  <bruno@clisp.org>
70084
70085                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70086                 .resources, not .resource.
70087
70088         2005-07-09  Bruno Haible  <bruno@clisp.org>
70089
70090                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70091                 add a .dll suffix.
70092                 Reported by Mark Junker <mjscod@gmx.de>.
70093
70094         2006-07-22  Bruno Haible  <bruno@clisp.org>
70095
70096                 * modules/gettext: Upgrade to gettext-0.15.
70097                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70098                 m4/visibility.m4.
70099                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70100
70101 2006-07-22  Bruno Haible  <bruno@clisp.org>
70102
70103         Merge from GNU gettext 0.15.
70104
70105         2006-03-25  Bruno Haible  <bruno@clisp.org>
70106
70107                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70108
70109         2006-07-21  Bruno Haible  <bruno@clisp.org>
70110
70111                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70112                 "1.1".
70113
70114         2006-05-09  Bruno Haible  <bruno@clisp.org>
70115
70116                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70117                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70118                 for the conftestver execution.
70119
70120         2006-05-01  Bruno Haible  <bruno@clisp.org>
70121
70122                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70123                 optional target-version argument. Verify that the compiler
70124                 groks source of the specified source-version, or add -source
70125                 option as necessary. Verify that the compiler produces
70126                 bytecode in the specified target-version, or add -target and
70127                 -source options as necessary. Make the result of the test
70128                 available as variable CONF_JAVAC. Also log error output in
70129                 config.log.
70130
70131         2006-03-11  Bruno Haible  <bruno@clisp.org>
70132
70133                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70134
70135         2006-05-09  Bruno Haible  <bruno@clisp.org>
70136
70137                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70138                 CLASSPATH_SEPARATOR to a semicolon.
70139
70140         2006-03-12  Bruno Haible  <bruno@clisp.org>
70141
70142                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70143                 available as variable CONF_JAVA, for subsequent autoconf
70144                 tests. Also log error output in config.log.
70145
70146         2006-07-19  Bruno Haible  <bruno@clisp.org>
70147
70148                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70149                 that getline works on glibc2 systems. Needed to avoid trouble
70150                 in relocatable.c.
70151                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70152
70153         2005-12-04  Bruno Haible  <bruno@clisp.org>
70154
70155                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70156                 launcher (untested).
70157
70158         2005-12-04  Bruno Haible  <bruno@clisp.org>
70159
70160                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70161
70162         2006-07-22  Bruno Haible  <bruno@clisp.org>
70163
70164                 * gettext.m4: Update from GNU gettext-0.15.
70165                 * nls.m4: Likewise.
70166                 * po.m4: Likewise.
70167                 * inttypes-pri.m4: Likewise.
70168                 * inttypes-h.m4: Renamed from inttypes.m4.
70169                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70170
70171 2006-07-22  Bruno Haible  <bruno@clisp.org>
70172
70173         Merge from GNU gettext 0.15.
70174
70175         2005-07-05  Bruno Haible  <bruno@clisp.org>
70176
70177                 * printf-args.c (printf_fetchargs): Work around broken
70178                 definition of wint_t on mingw.
70179
70180         2005-02-12  Bruno Haible  <bruno@clisp.org>
70181
70182                 * xallocsa.h: Add extern "C" for C++.
70183
70184         2006-05-17  Bruno Haible  <bruno@clisp.org>
70185
70186                 Cygwin portability.
70187                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70188
70189         2006-04-30  Bruno Haible  <bruno@clisp.org>
70190
70191                 * progreloc.c: Include <mach-o/dyld.h> if available.
70192                 (find_executable): Use _NSGetExecutablePath when possible.
70193
70194         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70195
70196                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70197                 function.
70198
70199         2005-12-29  Bruno Haible  <bruno@clisp.org>
70200
70201                 * progreloc.c (set_program_name_and_installdir): Fix
70202                 compilation error.
70203
70204         2005-12-04  Bruno Haible  <bruno@clisp.org>
70205
70206                 Cygwin portability.
70207                 * progreloc.c: Include <windows.h> also on Cygwin.
70208                 (find_executable): Add support for Cygwin.
70209                 (set_program_name_and_installdir): Handle also platforms with
70210                 nonempty EXEEXT.
70211
70212         2006-07-11  Bruno Haible  <bruno@clisp.org>
70213
70214                 * javacomp.c: Fix a comment.
70215                 Reported by Jim Meyering.
70216
70217         2006-04-30  Bruno Haible  <bruno@clisp.org>
70218
70219                 * javacomp.h (compile_java_class): Add source_version,
70220                 target_version arguments.
70221                 * javacomp.c: Rewritten to choose only a compiler that
70222                 respects the specified source_version and target_version.
70223
70224         2006-06-27  Bruno Haible  <bruno@clisp.org>
70225
70226                 Assume correct S_ISDIR macro.
70227                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70228
70229         2006-07-22  Bruno Haible  <bruno@clisp.org>
70230
70231                 * javaversion.h: New file, from GNU gettext.
70232                 * javaversion.c: New file, from GNU gettext.
70233                 * javaversion.java: New file, from GNU gettext.
70234                 * javaversion.class: New file, from GNU gettext.
70235
70236         2006-05-17  Bruno Haible  <bruno@clisp.org>
70237
70238                 Cygwin portability.
70239                 * javaexec.c (execute_java_class): Test for jview program
70240                 also on Cygwin.
70241
70242         2006-04-09  Bruno Haible  <bruno@clisp.org>
70243
70244                 * fatal-signal.c: Don't include string.h.
70245                 (at_fatal_signal): Use a copying loop instead of memcpy.
70246
70247         2005-12-04  Bruno Haible  <bruno@clisp.org>
70248
70249                 * csharpexec.c: Add support for 'clix' launcher (untested).
70250                 (execute_csharp_using_sscli): New function.
70251                 (execute_csharp_program): Call it.
70252
70253         2006-06-21  Bruno Haible  <bruno@clisp.org>
70254
70255                 Avoid warnings from recent versions of mcs.
70256                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70257                 -o, -L, -r any more. Use options documented since mcs-1.0
70258                 instead. Similarly for -g.
70259
70260         2005-07-09  Bruno Haible  <bruno@clisp.org>
70261
70262                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70263                 add a .dll suffix.
70264                 Reported by Mark Junker <mjscod@gmx.de>.
70265
70266         2006-06-17  Bruno Haible  <bruno@clisp.org>
70267
70268                 * config.charset: Update for NetBSD 3.0.
70269
70270         2006-05-17  Bruno Haible  <bruno@clisp.org>
70271
70272                 Cygwin portability.
70273                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70274
70275         2006-05-16  Bruno Haible  <bruno@clisp.org>
70276
70277                 * localcharset.c [CYGWIN]: Include <windows.h>.
70278                 (get_charset_aliases): For Cygwin, return the same CPxxx
70279                 aliases list as under WIN32.
70280                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70281                 the environment variables. Fall back to GetACP().
70282
70283         2006-04-05  Bruno Haible  <bruno@clisp.org>
70284
70285                 * config.charset: Update Juan Manuel Guerrero's address.
70286
70287         2005-02-12  Bruno Haible  <bruno@clisp.org>
70288
70289                 * allocsa.h: Add extern "C" for C++.
70290
70291         2005-02-10  Bruno Haible  <bruno@clisp.org>
70292
70293                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70294                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70295
70296         2006-07-22  Bruno Haible  <bruno@clisp.org>
70297
70298                 * gettext.h: Update to GNU gettext-0.15.
70299
70300 2006-07-22  Bruno Haible  <bruno@clisp.org>
70301
70302         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70303         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70304         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70305
70306 2006-07-21  Eric Blake  <ebb9@byu.net>
70307
70308         * modules/stdlib-safer: New file.
70309         * MODULES.html.sh (File stream based Input/Output): Add
70310         stdlib-safer.
70311
70312 2006-07-21  Eric Blake  <ebb9@byu.net>
70313
70314         * lib/stdlib-safer.h: New file from coreutils, required by
70315         stdlib--.h.
70316
70317 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70318
70319         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70320
70321 2006-07-20  Bruno Haible  <bruno@clisp.org>
70322
70323         * gnulib-tool: Recognize new option --assume-autoconf.
70324         (autoconf_minversion): New variable.
70325         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70326
70327 2006-07-20  Bruno Haible  <bruno@clisp.org>
70328
70329         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70330
70331 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70332
70333         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70334         Reindent and repaginate.
70335
70336 2006-07-19  Derek Price  <derek@ximbiot.com>
70337
70338         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70339         Correct grammar.
70340
70341 2006-07-17  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/list: New file.
70344         * modules/array-list: New file.
70345         * modules/carray-list, modules/carray-list-tests: New files.
70346         * modules/linked-list, modules/linked-list-tests: New files.
70347         * modules/avltree-list, modules/avltree-list-tests: New files.
70348         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70349         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70350         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70351         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70352         * modules/oset: New file.
70353         * modules/array-oset: New file.
70354         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70355         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70356         * tests/test-carray_list.c: New file.
70357         * tests/test-linked_list.c: New file.
70358         * tests/test-avltree_list.c: New file.
70359         * tests/test-rbtree_list.c: New file.
70360         * tests/test-linkedhash_list.c: New file.
70361         * tests/test-avltreehash_list.c: New file.
70362         * tests/test-rbtreehash_list.c: New file.
70363         * tests/test-avltree_oset.c: New file.
70364         * tests/test-rbtree_oset.c: New file.
70365         * MODULES.html.sh (Container data structures): New section.
70366
70367 2006-07-17  Bruno Haible  <bruno@clisp.org>
70368
70369         * m4/gl_list.m4: New file.
70370
70371 2006-07-17  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/gl_list.h: New file.
70374         * lib/gl_list.c: New file.
70375         * lib/gl_array_list.h: New file.
70376         * lib/gl_array_list.c: New file.
70377         * lib/gl_carray_list.h: New file.
70378         * lib/gl_carray_list.c: New file.
70379         * lib/gl_linked_list.h: New file.
70380         * lib/gl_linked_list.c: New file.
70381         * lib/gl_anylinked_list1.h: New file.
70382         * lib/gl_anylinked_list2.h: New file.
70383         * lib/gl_avltree_list.h: New file.
70384         * lib/gl_avltree_list.c: New file.
70385         * lib/gl_anyavltree_list1.h: New file.
70386         * lib/gl_anyavltree_list2.h: New file.
70387         * lib/gl_rbtree_list.h: New file.
70388         * lib/gl_rbtree_list.c: New file.
70389         * lib/gl_anyrbtree_list1.h: New file.
70390         * lib/gl_anyrbtree_list2.h: New file.
70391         * lib/gl_anytree_list1.h: New file.
70392         * lib/gl_anytree_list2.h: New file.
70393         * lib/gl_linkedhash_list.h: New file.
70394         * lib/gl_linkedhash_list.c: New file.
70395         * lib/gl_anyhash_list1.h: New file.
70396         * lib/gl_anyhash_list2.h: New file.
70397         * lib/gl_avltreehash_list.h: New file.
70398         * lib/gl_avltreehash_list.c: New file.
70399         * lib/gl_rbtreehash_list.h: New file.
70400         * lib/gl_rbtreehash_list.c: New file.
70401         * lib/gl_anytreehash_list1.h: New file.
70402         * lib/gl_anytreehash_list2.h: New file.
70403
70404         * lib/gl_oset.h: New file.
70405         * lib/gl_oset.c: New file.
70406         * lib/gl_array_oset.h: New file.
70407         * lib/gl_array_oset.c: New file.
70408         * lib/gl_avltree_oset.h: New file.
70409         * lib/gl_avltree_oset.c: New file.
70410         * lib/gl_rbtree_oset.h: New file.
70411         * lib/gl_rbtree_oset.c: New file.
70412         * lib/gl_anytree_oset.h: New file.
70413
70414 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70415
70416         * m4/mkancesdirs.m4: New file.
70417         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70418         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70419         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70420         it.
70421
70422 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70425         * lib/mkancesdirs.h: New files.
70426         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70427         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70428         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70429         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70430         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70431         callers changed.  Revamp internals significantly, by not
70432         attempting to create directories that are temporarily more
70433         permissive than the final results.  Do not attempt to use
70434         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70435         This removes some race conditions, fixes some bugs, and simplifies
70436         things.  Use new dirchownmod function to do owner and mode changes.
70437         * lib/mkdir-p.h: Likewise.
70438         * lib/modechange.c (octal_to_mode): New function.
70439         (struct mode_change): New member mentioned.
70440         (make_node_op_equals): New arg mentioned.  All callers changed.
70441         (mode_compile): Keep track of which mode bits the user has explicitly
70442         mentioned.
70443         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70444         New arg PMODE_BITS, to keep track of which mode bits the user
70445         mentioned; it treats S_ISUID and S_ISGID speciall.
70446         All callers changed.
70447         * lib/modechange.h: Likewise.
70448
70449 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * MODULES.html.sh: Add mkancestors.
70452         * modules/mkancesdirs: New module.
70453         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70454         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70455         The chdir-safer and afs files are now orphans; I'll remove them
70456         unless someone speaks up.
70457         Add lib/dirchownmod.c, lib/dirchownmod.h.
70458         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70459         Add lchown, mkancesdirs.
70460         (Maintainer): Add self.
70461
70462 2006-07-15  Karl Berry  <karl@gnu.org>
70463
70464         * gnulib-tool: help message wording/arrangement.
70465
70466 2006-07-14  Simon Josefsson  <jas@extundo.com>
70467
70468         * doc/gnulib.texi (Libtool and Windows): New section.
70469
70470 2006-07-12  Simon Josefsson  <jas@extundo.com>
70471
70472         * modules/gendocs (License): Fix license, approved by Karl.
70473
70474 2006-07-12  Eric Blake  <ebb9@byu.net>
70475
70476         * MODULES.html.sh: Add gendocs.
70477
70478 2006-07-11  Eric Blake  <ebb9@byu.net>
70479
70480         * modules/fdl: New module, to install doc/fdl.texi.
70481         * MODULES.html.sh: Add new section for documentation modules.
70482         * gnulib-tool: Avoid space-tab.
70483         (--doc-base): New option, to manage files from doc.
70484
70485 2006-07-11  Eric Blake  <ebb9@byu.net>
70486
70487         * m4/absolute-header.m4: Fix comments to match recent change.
70488
70489 2006-07-11  Eric Blake  <ebb9@byu.net>
70490
70491         * gnulib-tool: List --doc-base before --tests-base.
70492
70493 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70494
70495         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70496
70497 2006-07-11  Bruno Haible  <bruno@clisp.org>
70498
70499         * README: Mention where to put documentation.
70500
70501 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70502
70503         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70504
70505 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70508         to stdint.m4.
70509
70510 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70513         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70514         "no/such/file/stdint.h" when there is no such file, so that
70515         the resulting C code can be parsed by dodgy compilers.
70516         Problems reported by Bob Proulx.
70517
70518 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70519
70520         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70521         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70522         macros into the GNU _D_EXACT_NAMLEN.
70523         * lib/savedir.c:  Likewise.
70524         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70525
70526 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70527         and Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70530         * m4/savedir.m4:
70531         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70532         macros into the GNU _D_EXACT_NAMLEN.
70533
70534 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70537         around the absolute name, to work around a problem with the HP-UX
70538         11.23 native C compiler, reported by Bob Proulx.
70539
70540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * doc/maintain.texi, make-stds.texi: Sync from
70543         <http://savannah.gnu.org/projects/gnustandards>.
70544
70545 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70548
70549 2006-07-09  Jim Meyering  <jim@meyering.net>
70550
70551         * m4/glob.m4: Remove a doubled word in a comment.
70552
70553 2006-07-09  Jim Meyering  <jim@meyering.net>
70554
70555         * lib/argp-pv.c: Remove a doubled word in a comment.
70556         * lib/check-version.c (check_version): Likewise.
70557         * lib/javacomp.c (compile_java_class): Likewise.
70558
70559 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70562         for the benefit of people using Autoconf 2.60.  If you want to
70563         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70564         (or m4/onceonly.m4, if pre-2.57) manually.
70565
70566 2006-07-08  Jim Meyering  <jim@meyering.net>
70567
70568         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70569         comment.
70570         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70571         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70572         comment.
70573
70574 2006-07-08  Jim Meyering  <jim@meyering.net>
70575
70576         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70577
70578 2006-07-07  Simon Josefsson  <jas@extundo.com>
70579
70580         * tests/test-crc.c: Change expected crc value, the test vector
70581         were probably computed using the old broken crc.c?
70582
70583 2006-07-06  Simon Josefsson  <jas@extundo.com>
70584
70585         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70586         now the canonical place for the M4 file).
70587
70588         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70589         from the sys_socket dependency now.
70590
70591         * modules/inet_pton (Files): Ditto.
70592
70593         * modules/inet_ntop (Files): Ditto.
70594
70595 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70596
70597         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70598         not gl_PREREQ_GETUSERSHELL.
70599
70600 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70601
70602         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70603         with only one argument, for Autoconf 2.60.
70604         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70605         expand to nothing, so add a shell command to avoid syntax error.
70606         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70607
70608 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70609
70610         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70611
70612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70615         no longer needed.  Check for isblank decl.
70616         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70617         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70618         of existence.
70619
70620 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * lib/getloadavg.c: Use __VMS, not VMS.
70623         * lib/getopt.c: Likewise.
70624         * lib/getpagesize.h: Likewise.
70625         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70626         and probably does not work.
70627
70628 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * lib/.cppi-disable: Add wcwidth.
70631         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70632         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70633         (ISGRAPH): Remove.  All uses changed to isgraph.
70634         (FOLD) [!defined _LIBC]: Remove special case.
70635         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70636         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70637         HAVE_ISBLANK.
70638         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70639         case.
70640
70641 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70642
70643         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70644         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70645         brackets.  Other minor changes to suppress some compiler
70646         warnings.
70647
70648 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70649         and Paul Eggert  <eggert@cs.ucla.edu>
70650
70651         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70652         of invoking obsolescent AC_HEADER_DIRENT macro.
70653         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70654         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70655         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70657         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70658         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70659         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70660         * m4/readdir.m4: Remove; no longer needed.
70661
70662 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70663         and Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70666         Don't worry about this obsolete case any more.
70667         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70668         directories.
70669         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70670         worry about this obsolete case any more.
70671         * lib/fts.c: Likewise.
70672         * lib/getcwd.c: Likewise.
70673         * lib/glob.h: Likewise.
70674         * lib/savedir.c: Likewise.
70675
70676 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70679         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70680         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70681         needed.
70682         All uses removed.
70683         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70684         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70685         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70686         needed.
70687         * m4/getdate.m4 (gl_GETDATE): Likewise.
70688         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70689         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70690         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70691         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70692         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70694         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70695         needed.
70696
70697 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/memcasecmp.c: Include <limits.h>.
70700         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70701         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70702         Don't assume isdigit succeeds only on '0' through '9'.
70703
70704 2006-07-05  Eric Blake  <ebb9@byu.net>
70705
70706         * modules/getaddrinfo (Depends-on): Add snprintf.
70707
70708 2006-07-05  Eric Blake  <ebb9@byu.net>
70709
70710         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70711         to avoid 'header present but could not be compiled' on cygwin.
70712
70713 2006-07-05  Eric Blake  <ebb9@byu.net>
70714
70715         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70716         missing from netdb.h.
70717         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70718
70719 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70720
70721         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70722         no longer needed.
70723         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70724         * m4/getdate.m4 (gl_GETDATE): Likewise.
70725         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70726         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70727         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70728         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70730
70731 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70732
70733         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70734         All uses of is_space replaced by isspace.
70735         * lib/exit.h: Don't talk about STDC_HEADERS.
70736         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70737         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70738         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70739         replaced by isprint etc.
70740         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70741         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70742         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70743         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70744         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70745         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70746
70747 2006-07-05  Bruno Haible  <bruno@clisp.org>
70748
70749         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70750         the function exists, before testing against AIX.
70751         Reported by Martin Lambers <marlam@marlam.de>.
70752
70753 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70756         From Mark D. Baushke.
70757
70758 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70761         to the absolute name, not just one, to bypass Sun C 5.8's
70762         "warning: #include of /usr/include/... may be non-portable".
70763
70764 2006-07-04  Eric Blake  <ebb9@byu.net>
70765
70766         * modules/dirname-tests: New test module.
70767         * tests/test-dirname.c: New file, replacing dirname.c
70768         TEST_DIRNAME section that was recently deleted.
70769
70770 2006-07-04  Bruno Haible  <bruno@clisp.org>
70771
70772         Assume ANSI C header files and <ctype.h> functions.
70773         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70774         (mbsnwidth): Use isprint, iscntrl instead.
70775
70776 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         Merge from coreutils.
70779         * MODULES.html.sh: Add xstrtold.
70780         * modules/xstrtold: New file.
70781         * modules/cycle-check (Files): Add lib/same-inode.h.
70782         * modules/dirname (Files): Add m4/double-slash-root.m4.
70783         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70784         * modules/mkdir-p (Files): Add lib/same-inode.h.
70785         * modules/same (Files): Add lib/same-inode.h.
70786
70787 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70790         This is to keep the terminology clean; POSIX talks about
70791         "absolute pathnames", not "full pathnames", but the GNU
70792         Coding Standards say to use "path" for something else;
70793         so use "absolute" to keep both sides happy.
70794         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70795         Set gl_absolute_header, not gl_full_header_path.
70796         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70797         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70798         All uses changed.
70799
70800         Merge from coreutils.
70801
70802         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70805         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70806         want to require the building of c-strtod.o.
70807         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70808         needs -lm directly.
70809         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70810
70811         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70814         --as-needed option if available.  Problem reported by Albert Chin in
70815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70816         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70817         cc merely issues a bunch of annoying warnings for --as-needed
70818         (this problem was reported by Bob Proulx).  Also, try linking with
70819         -lm to detect a bug in binutils 2.16 (this problem was reported
70820         by Ralf Wildenhues).
70821
70822         2006-06-18  Jim Meyering  <jim@meyering.net>
70823
70824         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70825         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70826         macro.
70827         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70828         also check for glibc-2.4's abort-inducing bug.
70829
70830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70831         Low-probability clean-up should be to use rmdir to get rid of
70832         the just-created directory, not unlink.
70833
70834         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70835         configure fail, and request a bug report to inform us about it.
70836         Add a comment that, barring reports to the contrary, in 2007 we'll
70837         assume ftruncate is universally available.
70838
70839         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70842
70843         2006-03-12  Jim Meyering  <jim@meyering.net>
70844
70845         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70846         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70847         * m4/same.m4 (gl_SAME): Likewise.
70848         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70849
70850         2006-03-11  Eric Blake  <ebb9@byu.net>
70851
70852         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70853         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70854         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70855         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70856
70857 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70860         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70861         reported by Mark D. Baushke, one in
70862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70863
70864         Merge from coreutils.
70865
70866         * lib/.cppi-disable: Add stdint_.h.
70867         * lib/.cvsignore: Add stdint.h.
70868
70869         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70872         both double and long double versions.
70873         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70874         * lib/xstrtold.c: New file.
70875         * lib/xstrtod.h (xstrtold): New decl.
70876
70877         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/filemode.c (setst): Remove.
70880         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70881         (arguably) clearer, and the generated code is a bit smaller on my
70882         Debian GNU/Linux stable x86 host.
70883
70884         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70887         Assume that filemode.h includes sys/types.h and sys/stat.h.
70888         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70889         (ftypelet): Reorder to put common cases first, for efficiency.
70890         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70891         to do 'M'.
70892         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70893         of 10, for compatibility with FreeBSD.  All callers changed.
70894         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70895         types that can't be deduced solely from st_mode.  First arg is now a
70896         const pointer.
70897         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70898         (strmode): Renamed from mode_string.
70899         (filemodestring): New decl.
70900         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70901         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70902         needed.
70903         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70904
70905         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70908         fsusage.h now does that.  Include fsusage.h first, to test interface.
70909         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70910         at most one method (the old code could have generated decls that
70911         didn't conform to C89, not that this was ever exercised).
70912         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70913
70914         2006-03-19  Jim Meyering  <jim@meyering.net>
70915
70916         Work even in a chroot where d_ino values for entries in "/"
70917         don't match the stat.st_ino values for the same names.
70918         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70919         number, iterate through all entries again, using lstat instead.
70920         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70921         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70922
70923         * lib/getcwd.c (__getcwd): Clarify a comment.
70924         Use memcpy in place of a call to strcpy.
70925
70926         2006-03-12  Jim Meyering  <jim@meyering.net>
70927
70928         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70929         matches that of the current directory (which we're about to chdir ".."
70930         out of), then save the dev-ino of the parent, instead.
70931
70932         * lib/same-inode.h (SAME_INODE): New file/macro.
70933         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70934         Include "same-inode.h", instead.
70935         * lib/same.c: Likewise.
70936         * lib/cycle-check.h: Include "same-inode.h".
70937         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70938         * lib/cycle-check.c (SAME_INODE): Remove definition.
70939         * lib/root-dev-ino.h: Include "same-inode.h".
70940
70941         2006-03-11  Eric Blake  <ebb9@byu.net>
70942
70943         * lib/same.c (same_name): s/base_name/last_component/
70944         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70945         * lib/filenamecat.c (file_name_concat): Likewise.
70946
70947         2006-03-11  Eric Blake  <ebb9@byu.net>,
70948                     Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70951         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70952         drive prefix.
70953         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70954         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70955         (last_component): New method.
70956         * lib/dirname.c (dir_len): Determine when drive letters need a
70957         subsequent slash.  Preserve // when it is special.
70958         (dir_name): Don't append dot when drive letter is absolute.
70959         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70960         * lib/basename.c (base_name): New semantics - malloc the result.
70961         Preserve // when it is special.  Preserve relative files that look
70962         like drive letters.
70963         (base_len): Preserve // when it is special.
70964         (last_component): New method, similar to old base_name semantics.
70965         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70966         base_name.  Strip redundant slashes from ///.
70967
70968 2006-07-03  Jim Meyering  <jim@meyering.net>
70969
70970         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70971         macro is used before the first cycle_check call.
70972
70973 2006-07-03  Eric Blake  <ebb9@byu.net>
70974
70975         * modules/dirname (Depends-on): Add xstrndup.
70976
70977 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70980         test cases, so that config.log is a bit easier to follow.
70981
70982 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70985         both are 64 bits, since this seems to be the tradition, and this
70986         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70987         we ever run into a host that prefers long long to long in this
70988         case, we'll need another configure-time test.  Problem reported by
70989         Jim Meyering.
70990
70991 2006-07-02  Eric Blake  <ebb9@byu.net>
70992
70993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70994
70995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * modules/inttypes (Depends-on): No longer depends on stdint.
70998         * modules/stdint (Description): Say more about assumptions.
70999         Say that the fast types might differ.  Say macros are used.
71000         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71001         (Makefile.am): Revise list of substituted symbols to match
71002         new stdint.m4.
71003         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71004         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71005         * tests/test-stdint.c (verify_same_types)
71006         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71007         the code conforms to C99/C89.
71008         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71009         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71010
71011 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71014         but fix a bug, by requiring at least 64 bits.
71015         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71016         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71017         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71018         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71019
71020         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71021         changes.  Make 2.59 a prerequisite.  Check and substitute for
71022         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71023         inttypes.h.  Do not use special include files; just use the
71024         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71025         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71026         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71027         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71028         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71029         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71030         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71031         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71032         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71033         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71034         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71035         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71036         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71037         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71038         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71039         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71040         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71041         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71042         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71043         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71044         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71045         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71046         not check for things that C99 does not require, e.g., int8_t.  If
71047         a test isn't needed unless <stdint.h> isn't working, and is
71048         unlikely to be needed for any other reason, then don't do it
71049         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71050         size_t, since we assume C89 freestanding at least.  Do not check
71051         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71052         the right thing even if the types are not defined.  Instead use:
71053         (gl_STDINT_TYPE_PROPERTIES): New macro.
71054         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71055         testing whether <sys/types.h> clashes, as Autoconf does this for
71056         us now.  All uses removed.
71057         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71058         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71059         (gl_CHECK_TYPE_SAME):
71060         Remove; no longer needed.
71061         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71062         exists, since we'll return 0 anyway in that case.
71063         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71064
71065 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71068         possible collision with system files.
71069         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71070         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71071         WCHAR_MIN and WCHAR_MAX in this case.
71072         (<stddef.h>): Do not include; no longer needed.
71073         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71074         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71075         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71076         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71077         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71078         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71079         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71080         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71081         !defined(__c99))]: Include in this case too, since it's harmless
71082         now.
71083         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71084         dangerous to do so.
71085         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71086         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71087         (_STDINT_MIN, _STDINT_MAX): New macros.
71088         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71089         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71090         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71091         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71092         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71093         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71094         macros, not typedefs; this simplifies things quite a bit.
71095         Use long int for all types narrower than int64_t.
71096         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71097         Define in terms of long long int or int64_t or long int,
71098         not int64_t or int32_t.  This saves some compile-time testing.
71099         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71100         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71101         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71102         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71103         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71104         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71105         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71106         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71107         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71108         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71109         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71110         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71111         undef any previous version and define our own version, for
71112         simplicity and consistency with the new macros for types.
71113         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71114         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71115         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71116         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71117         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71118         @WINT_T_SUFFIX@ to keep things simple here.
71119         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71120         Simplify by assuming typical 8/16/32/64 host, since we're
71121         already doing that elsewhere anyway.
71122         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71123         and assume long long int is 64 bits if available.  This
71124         speeds up 'configure'.
71125
71126 2006-07-01  Eric Blake  <ebb9@byu.net>
71127
71128         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71129         Reported by Andreas Buening.
71130
71131 2006-07-01  Eric Blake  <ebb9@byu.net>
71132
71133         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71134
71135 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71136
71137         * lib/getaddrinfo.c: fixed typo
71138
71139 2006-06-29  Jim Meyering  <jim@meyering.net>
71140
71141         * modules/strftime (Maintainer): Add my name, since with the
71142         FPRINTFTIME changes strftime.c has forked from glibc.
71143
71144 2006-06-29  Eric Blake  <ebb9@byu.net>
71145
71146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71147
71148 2006-06-29  Eric Blake  <ebb9@byu.net>
71149
71150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71151
71152 2006-06-29  Eric Blake  <ebb9@byu.net>
71153
71154         * lib/stat_.h: New file.
71155
71156 2006-06-29  Eric Blake  <ebb9@byu.net>
71157
71158         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71159         unused static function.
71160
71161 2006-06-29  Eric Blake  <ebb9@byu.net>
71162
71163         * doc/functions.texi (Function Portability): Document missing lstat
71164         on mingw.
71165
71166 2006-06-29  Eric Blake  <ebb9@byu.net>
71167
71168         * MODULES.html.sh: Add sys_stat.
71169         * modules/sys_stat: New module.
71170         * modules/mkstemp (Depends-on): Add sys_stat.
71171
71172 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71173
71174         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71175
71176 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71177
71178         * m4/c-bs-a.m4: Removed.
71179
71180 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71181
71182         * lib/strftime.c: Assume strftime() exists.
71183
71184 2006-06-29  Derek Price  <derek@ximbiot.com>
71185
71186         * modules/c-bs-a: Removed - \a is C89.
71187         * MODULES.html.sh: Remove c-bs-a.
71188
71189 2006-06-29  Bruno Haible  <bruno@clisp.org>
71190
71191         * modules/wcwidth (License): Change to LGPL.
71192
71193 2006-06-28  Simon Josefsson  <jas@extundo.com>
71194
71195         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71196         on _WIN32.
71197
71198         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71199         getnameinfo.
71200
71201 2006-06-28  Simon Josefsson  <jas@extundo.com>
71202
71203         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71204
71205 2006-06-28  Simon Josefsson  <jas@extundo.com>
71206
71207         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71208         functions there.  It will succeed on Windows XP, but on Windows
71209         2000 and (presumably) earlier, it will fail, and use the internal
71210         re-implementation.
71211         (use_win32_p): New function.
71212         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71213         Support AI_NUMERICSERV to disable getservbyname.
71214         (getnameinfo): New function, only supports
71215         NI_NUMERICHOST|NI_NUMERICSERV for now.
71216
71217         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71218         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71219         getnameinfo.
71220
71221 2006-06-28  Eric Blake  <ebb9@byu.net>
71222
71223         * modules/wcwidth: New file.
71224         * modules/mbchar (Depends-on): Add wcwidth.
71225         * modules/mbswidth (Depends-on): Add wcwidth.
71226         * MODULES.html.sh: Add wcwidth.
71227
71228 2006-06-28  Eric Blake  <ebb9@byu.net>
71229
71230         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71232
71233 2006-06-28  Eric Blake  <ebb9@byu.net>
71234
71235         * lib/xvasprintf.h: Fix comments.
71236
71237 2006-06-28  Eric Blake  <ebb9@byu.net>
71238
71239         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71240         * lib/mbswidth.c (wcwidth): Move from here...
71241         * lib/wcwidth.h: ...to this new file.
71242
71243 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71244
71245         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71246
71247         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71248         it's obsolete.
71249         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71250
71251 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71252
71253         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71254         Autoconf 2.60 says this stuff was obsolete.
71255
71256 2006-06-28  Bruno Haible  <bruno@clisp.org>
71257
71258         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71259
71260 2006-06-28  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71263         gt_TYPE_WCHAR_T.
71264
71265 2006-06-28  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71268         declaration for wcwidth.
71269         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71270
71271 2006-06-28  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71274         (mkdir): Define using _mkdir.
71275
71276 2006-06-28  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/getaddrinfo.h: Fix POSIX URL.
71279         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71280         _WIN32.
71281         (use_win32_p): Make static.
71282         (getaddrinfo): Reject service name if it is empty or does not consist
71283         solely of decimal digits, or if its value is > 65535.
71284         (getnameinfo): Remove useless casts.
71285
71286 2006-06-27  Simon Josefsson  <jas@extundo.com>
71287
71288         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71289         Eggert and Martin Lambers.
71290
71291 2006-06-27  Simon Josefsson  <jas@extundo.com>
71292
71293         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71294         Eggert and Martin Lambers.
71295
71296 2006-06-27  Bruno Haible  <bruno@clisp.org>
71297
71298         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71299         result to 0, not to empty.
71300         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71301
71302 2006-06-27  Bruno Haible  <bruno@clisp.org>
71303
71304         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71305
71306 2006-06-26  Simon Josefsson  <jas@extundo.com>
71307
71308         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71309         present.
71310
71311 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71314         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71316
71317 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71318
71319         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71320
71321 2006-06-26  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71324
71325 2006-06-26  Bruno Haible  <bruno@clisp.org>
71326
71327         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71328
71329 2006-06-26  Bruno Haible  <bruno@clisp.org>
71330
71331         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71332         SGI C compiler in pre-C99 mode.
71333         Suggested by Mark D. Baushke and Larry Jones.
71334
71335 2006-06-26  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71338         WCHAR_MAX.
71339         Reported by Mark D. Baushke and Larry Jones.
71340
71341 2006-06-26  Bruno Haible  <bruno@clisp.org>
71342
71343         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71344         in pre-C99 mode.
71345         Suggested by Mark D. Baushke and Larry Jones.
71346
71347 2006-06-23  Simon Josefsson  <jas@extundo.com>
71348             Bruno Haible  <bruno@clisp.org>
71349
71350         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71351         Emit mostlyclean-local rule.
71352         (func_emit_tests_Makefile_am): Likewise.
71353         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71354
71355 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71356
71357         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71358
71359 2006-06-23  Bruno Haible  <bruno@clisp.org>
71360
71361         * tests/test-stdint.c: Update to match ISO C 99 Technical
71362         Corrigendum 1.
71363
71364 2006-06-23  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71367
71368 2006-06-23  Bruno Haible  <bruno@clisp.org>
71369
71370         * lib/stdint_.h: Treat IRIX like OpenBSD.
71371
71372 2006-06-23  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71375         ISO C 99 Technical Corrigendum 1.
71376
71377 2006-06-22  Simon Josefsson  <jas@extundo.com>
71378
71379         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71380         MinGW.
71381
71382 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71385         needed.  Some compiler complained about some of them.  Problem reported
71386         by Larry Jones in
71387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71388
71389 2006-06-21  Simon Josefsson  <jas@extundo.com>
71390
71391         * tests/test-getaddrinfo.c: New file.
71392
71393         * modules/getaddrinfo-tests: New file.
71394
71395         * MODULES.html.sh: Add inet_pton.
71396
71397         * modules/inet_pton: New file.
71398
71399 2006-06-21  Simon Josefsson  <jas@extundo.com>
71400
71401         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71402         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71403         of using the (limited) gnulib implementation on Windows XP.
71404
71405         * m4/inet_pton.m4: New file.
71406
71407 2006-06-21  Simon Josefsson  <jas@extundo.com>
71408
71409         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71410         variable.
71411
71412         * lib/socket_.h: Don't define WINVER.
71413
71414         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71415         slightly modified to work in gnulib.
71416
71417 2006-06-21  Simon Josefsson  <jas@extundo.com>
71418
71419         * doc/gnulib.texi (Windows sockets): Add.
71420
71421 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * lib/read-file.c (fread_file): Start with buffer allocation of
71424         0 bytes rather than 1 byte; this simplifies the code.
71425         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71426         code to free buffer and save/restore errno.
71427         (internal_read_file): Remove unused local.
71428
71429 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71430
71431         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71432         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71433         Problem reported by Denis Excoffier in
71434         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71435
71436 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71437
71438         * modules/sys_socket, modules/socklen: Include sys/types since
71439         FreeBSD 4.x's sys/socket.h needs it.
71440
71441 2006-06-19  Simon Josefsson  <jas@extundo.com>
71442
71443         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71444
71445 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71448
71449 2006-06-19  Bruno Haible  <bruno@clisp.org>
71450
71451         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71452         and FULL_PATH_INTTYPES_H in angle brackets.
71453         Reported by Mark D. Baushke <mdb@gnu.org>.
71454
71455 2006-06-17  Eric Blake  <ebb9@byu.net>
71456
71457         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71458         errno.
71459
71460 2006-06-17  Bruno Haible  <bruno@clisp.org>
71461
71462         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71463         <sys/inttypes.h>.
71464
71465 2006-06-17  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71468         whether errno is declared. Assume <errno.h> declares errno.
71469
71470 2006-06-17  Bruno Haible  <bruno@clisp.org>
71471
71472         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71473
71474 2006-06-17  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71477         problem on Solaris 2.5.1.
71478
71479 2006-06-16  Eric Blake  <ebb9@byu.net>
71480
71481         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71482         * lib/unicodeio.c [!defined errno]: Likewise.
71483         * lib/strtol.c [!defined errno]: Likewise.
71484         * lib/strtod.c [!defined errno]: Likewise.
71485
71486 2006-06-15  Eric Blake  <ebb9@byu.net>
71487
71488         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71489
71490 2006-06-15  Eric Blake  <ebb9@byu.net>
71491
71492         * config/srclist.txt (ssize_t.m4): Lose sync.
71493
71494 2006-06-15  Bruno Haible  <bruno@clisp.org>
71495
71496         * modules/stdint (Files): Include m4/full-header-path.m4,
71497         m4/size_max.m4, m4/wchar_t.m4.
71498         (Makefile.am): Many more substitutions.
71499         * modules/stdint-tests: New file.
71500         * tests/test-stdint.c: New file.
71501
71502 2006-06-15  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71505         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71506         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71507         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71508         gl_CHECK_TYPE_SAME): New macros.
71509
71510 2006-06-15  Bruno Haible  <bruno@clisp.org>
71511
71512         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71513
71514 2006-06-15  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/stdint_.h: Rewritten to be fully auto-configured.
71517         Fixes bug on HP-UX/IA64.
71518
71519 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * lib/getdate.y (__attribute__): Don't define if already defined.
71522         Problem reported by Larry Jones.
71523         * lib/utimens.c (__attribute__): Likewise.
71524
71525 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71528         reported by Andreas Schwab.
71529
71530 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71531             Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71534         check for the declaration of strnlen and a run test that exposes the
71535         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71536         rpl_strndup.
71537
71538 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71539             Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71542
71543 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71544
71545         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71546         compile test, for Tru64 4.0D.
71547
71548 2006-05-28  Karl Berry  <karl@gnu.org>
71549
71550         * config/srclist.txt (printf-args.c): lose sync.
71551
71552 2006-05-26  Martin Lambers  <marlam@marlam.de>
71553
71554         * lib/getpass.c: Updates the test for the native W32 API, and adds
71555         missing includes, thus fixing compilation warnings.
71556
71557 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71558
71559         * lib/exclude.c (exclude_fnmatch): New function.
71560         (excluded_file_name): Call exclude_fnmatch.
71561         * lib/exclude.h (excluded_file_name): New prototype
71562
71563 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * lib/tempname.c (small_open, large_open): New macros.
71566         (__open, __open64) [!_LIBC]: Remove.
71567         (__gen_tempname): Use small_open and large_open instead of __open
71568         and __open64.  This fixes a portability bug on HP-UX 11.11i
71569         reported by Simon Wing-Tang in
71570         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71571
71572 2006-05-24  Bruno Haible  <bruno@clisp.org>
71573
71574         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71575         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71576         Reported by Thorsten Maerz <torte@netztorte.de> via
71577         Aaron Stone <aaron@serendipity.cx>.
71578
71579 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71582         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71583         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71584         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71585         not really conditional on the cache.
71586         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71587
71588 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71591         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71592         (my_usleep): Don't mishandle maximum value.
71593
71594 2006-05-19  Jim Meyering  <jim@meyering.net>
71595
71596         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71597
71598 2006-05-17  Bruno Haible  <bruno@clisp.org>
71599
71600         Cygwin portability.
71601         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71602
71603 2006-05-17  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/stdint_.h: Fix recognition of Cygwin.
71606
71607 2006-05-15  Bruno Haible  <bruno@clisp.org>
71608
71609         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71610         on libtool patch by Ralf Wildenhues.
71611
71612 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71615         test for C99 conformance; (bool) 0.5 is an integer constant
71616         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71617         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71618
71619 2006-05-11  Simon Josefsson  <jas@extundo.com>
71620
71621         * m4/xvasprintf.m4: Fix obvious typo.
71622
71623 2006-05-11  Jim Meyering  <jim@meyering.net>
71624
71625         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71626         James Lemley.
71627
71628 2006-05-10  Simon Josefsson  <jas@extundo.com>
71629
71630         * lib/md4.c: Typo fix, update copyright years.
71631         (K1, K2): Don't use L because it turn computations into 64-bit on
71632         64-bit platforms.
71633
71634 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71637         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71638         unwanted sign propagation, e.g., on hosts with 64-bit int.
71639         There still are some problems with reeelly weird theoretical hosts
71640         (e.g., 33-bit int) but it's not worth worrying about now.
71641         * lib/sha1.c (rol): Likewise.
71642         (K1, K2, K3, K4): Remove unnecessary L suffix.
71643
71644 2006-05-10  Bruno Haible  <bruno@clisp.org>
71645
71646         * lib/des.c: Cast to avoid warnings.
71647
71648 2006-05-09  Bruno Haible  <bruno@clisp.org>
71649
71650         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71651         (Depends-on): Depend also on xsize, stdarg.
71652         (configure.ac): Add gl_XVASPRINTF.
71653
71654 2006-05-09  Bruno Haible  <bruno@clisp.org>
71655
71656         * m4/xvasprintf.m4: New file.
71657
71658 2006-05-09  Bruno Haible  <bruno@clisp.org>
71659
71660         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71661         (EOVERFLOW): Define fallback value.
71662         (xstrcat): New function.
71663         (xvasprintf): Recognize the special case of a string concatenation.
71664
71665 2006-05-08  Eric Blake  <ebb9@byu.net>
71666
71667         * gnulib-tool (func_version): Base copyright year on CVS date.
71668         (func_emit_copyright_notice): New function.
71669         (func_emit_lib_Makefile_am): Use it.
71670         (func_emit_tests_Makefile_am): Likewise.
71671         (func_import): Likewise.
71672
71673 2006-05-08  Bruno Haible  <bruno@clisp.org>
71674
71675         * modules/stdarg: New file.
71676         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71677
71678 2006-05-08  Bruno Haible  <bruno@clisp.org>
71679
71680         * m4/stdarg.m4: New file, from GNU gettext.
71681
71682 2006-05-08  Bruno Haible  <bruno@clisp.org>
71683
71684         * config/srclist.txt (build-aux/config.rpath): different from latest
71685         release.
71686
71687 2006-05-08  Bruno Haible  <bruno@clisp.org>
71688
71689         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71690
71691 2006-05-05  Jim Meyering  <jim@meyering.net>
71692
71693         * m4/warning.m4: New file, derived from bison's file by the same name.
71694
71695 2006-05-03  Bruno Haible  <bruno@clisp.org>
71696
71697         * lib/stdint_.h: Shorter URL.
71698         * lib/inttypes.h: Likewise.
71699
71700 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71703
71704 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/verify.h: Document the internals better.  Most of this change
71707         was written by Bruno Haible.
71708
71709 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * doc/verify.texi: New file, partly based on a proposal by
71712         Bruno Haible.
71713
71714 2006-05-02  Bruno Haible  <bruno@clisp.org>
71715
71716         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71717         test from here...
71718         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71719
71720 2006-04-29  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71723         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71724
71725 2006-04-29  Bruno Haible  <bruno@clisp.org>
71726
71727         * gnulib-tool: Make --update option actually work.
71728
71729 2006-04-29  Bruno Haible  <bruno@clisp.org>
71730
71731         * doc/gcd.texi: New file.
71732         * doc/gnulib.texi: Include it.
71733
71734 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         * lib/getdate.y (get_date): When adding relative date, start with the
71737         initial time, not with the result of the first mktime call.
71738
71739 2006-04-25  Bruno Haible  <bruno@clisp.org>
71740
71741         * gnulib-tool (func_import): Output the include directives in three
71742         blocks, sorted separately.
71743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71744
71745 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71748         to define main with arguments, for C++.  Reported by Eric Blake.
71749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71750         Prefer 'int main ()' to 'int main (void)', for C++.
71751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71753         for 'main', for C99 and C++.
71754
71755 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71758         Don't assume that exit status -1 is valid.
71759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71760         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71761         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71762         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71763         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71765         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71766         functions can be used without declaring them, or that you can
71767         exit with status -1.
71768         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71769
71770 2006-04-24  Karl Berry  <karl@gnu.org>
71771
71772         * config/srclist.txt (longdouble.m4): sync lost.
71773
71774 2006-04-24  Eric Blake  <ebb9@byu.net>
71775
71776         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71777
71778 2006-04-24  Bruno Haible  <bruno@clisp.org>
71779
71780         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71781         poll() implementation in AIX.
71782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71783
71784 2006-04-24  Bruno Haible  <bruno@clisp.org>
71785
71786         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71787         assigned exactly once.
71788
71789 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71790             Bruno Haible  <bruno@clisp.org>
71791
71792         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71793         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71794         for AM_CPPFLAGS.
71795
71796 2006-04-23  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/copy-file: Depend on unistd.
71799         * modules/execute: Likewise.
71800         * modules/fatal-signal: Likewise.
71801         * modules/findprog: Likewise.
71802         * modules/mkdtemp : Likewise.
71803         * modules/pipe: Likewise.
71804         * modules/wait-process: Likewise.
71805
71806 2006-04-23  Bruno Haible  <bruno@clisp.org>
71807
71808         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71809         condition was already detected.
71810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71811
71812 2006-04-23  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/copy-file.c: Include <unistd.h> unconditionally.
71815         * lib/execute.c: Likewise.
71816         * lib/fatal-signal.c: Likewise.
71817         * lib/findprog.c: Likewise.
71818         * lib/mkdtemp.c: Likewise.
71819         * lib/pipe.h: Likewise.
71820         * lib/pipe.c: Likewise.
71821         * lib/wait-process.h: Likewise.
71822
71823 2006-04-23  Bruno Haible  <bruno@clisp.org>
71824
71825         * gnulib-tool (func_usage): Fix --import description. Document
71826         --update.
71827         (func_import): Create temporary file in a temporary directory, if
71828         --dry-run is specified. Silence errors from 'grep' when there are no
71829         m4 files in $m4dir.
71830         (func_create_testdir): Silence errors from 'grep' when there are no
71831         m4 files in $m4dir.
71832         Reported by Karl Berry <karl@freefriends.org>.
71833
71834 2006-04-20  Bruno Haible  <bruno@clisp.org>
71835
71836         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71837         one argument, so that the code will be portable to Autoconf 2.60.
71838         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71839         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71840         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71841
71842 2006-04-19  Derek Price  <derek@ximbiot.com>
71843             Eric Blake  <ebb9@byu.net>
71844
71845         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71846         rather than "/full/path.h".  Update comment to match.  Shorten &
71847         generalize m4_translit call via AS_TR_CPP.
71848
71849 2006-04-19  Derek Price  <derek@ximbiot.com>
71850             Eric Blake  <ebb9@byu.net>
71851
71852         * lib/inttypes.h: Correct grammar in comment.
71853
71854 2006-04-18  Derek Price  <derek@ximbiot.com>
71855             Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * modules/inttypes: New file.
71858         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71859
71860 2006-04-18  Derek Price  <derek@ximbiot.com>
71861             Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71864         New files.
71865
71866 2006-04-18  Derek Price  <derek@ximbiot.com>
71867             Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * lib/inttypes.h: New file.
71870         * lib/strtoimax.c: Assume <inttypes.h>.
71871
71872 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71875         isn't mounted.  Problem reported by Kir Kolyshkin.
71876
71877 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71880         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71881         Derek R. Price.
71882         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71883         implementation.
71884
71885 2006-04-12  Eric Blake  <ebb9@byu.net>
71886
71887         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71888         is now done automatically by the corresponding Autoconf macro.
71889
71890 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71893         time_r.h.
71894
71895 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         Merge regex changes from libc, removing some of our
71898         POSIX-conformance changes that were rejected and redoing them in a
71899         less-intrusive way.
71900
71901         * lib/regcomp.c (re_compile_internal, init_dfa):
71902         Length arg is now size_t, not Idx.  All uses changed.
71903         (peek_token): Forward decl now says internal_function.
71904         (__re_error_msgid, __re_error_msgid_idx):
71905         Now static rather than extern with attribute_hidden.
71906         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71907         For some reason libc prefers K&R style defns for external functions.
71908         (regerror) [!defined _LIBC]: Likewise.
71909         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71910         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71911         (build_range_exp, build_collating_symbol):
71912         Use K&R-style defn.
71913         (re_compile_fastmap): Use '\0' to memset, not 0.
71914         (utf8_sb_map): Make the calculations more obvious.
71915         (init_dfa, parse_bracket_exp, build_charclass_op):
71916         Call calloc and cast result, as glibc does.
71917         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71918         (build_range_exp, build_collating_symbol):
71919         Now internal functions.
71920
71921         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71922
71923         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71924         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71925         Don't depend on VMS; depend on __VMS instead, for POSIX
71926         namespace cleanness.
71927         (regoff_t): Define to ssize_t, not long int.
71928
71929         Remove the REG_ macros named below.  Instead, make the old names
71930         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71931         __USE_GNU_REGEX.
71932         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71933         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71934         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71935         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71936         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71937         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71938         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71939         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71940         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71941         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71942         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71943         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71944         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71945         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71946         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71947         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71948         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71949         (REG_NREGS):
71950         Remove.  All uses replaced by the old RE_* names.
71951         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71952         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71953         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71954         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71955         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71956         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71957         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71958         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71959         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71960         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71961         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71962         Don't bother having these macros be independent of each others'
71963         values, since they no longer exist in the POSIX name space.
71964
71965         Rename the following member names back to their old names,
71966         unless !__USE_GNU_REGEX.  All uses changed back.
71967         (buffer): Renamed from re_buffer.
71968         (allocated): Renamed from re_allocated.
71969         (used): Renamed from re_used.
71970         (syntax): Renamed from re_syntax.
71971         (fastmap): Renamed from re_fastmap.
71972         (translate): Renamed from re_translate.
71973         (can_be_null): Renamed from re_can_be_null.
71974         (regs_allocated): Renamed from re_regs_allocated.
71975         (fastmap_accurate): Renamed from re_fastmap_accurate.
71976         (no_sub): Renamed from re_no_sub.
71977         (not_bol): Renamed from re_not_bol.
71978         (not_eol): Renamed from re_not_eol.
71979         (newline_anchor): Renamed from re_newline_anchor.
71980         (num_regs): Renamed from rm_num_regs.
71981         (start): Renamed from rm_start.
71982         (end): Renamed from rm_end.
71983
71984         (free_state): Move up a bit.
71985
71986         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71987         #define to be empty.
71988         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71989         when that is what is intended.
71990         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71991         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71992         (MAX): New macro.
71993         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71994         All uses changed back to re_malloc, etc.  It's now the caller's
71995         responsibility to check for overflow; all callers changed.
71996         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71997         (re_x2nrealloc): Remove.
71998         (free_state): Remove decl.
71999
72000         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72001         (re_set_registers, re_exec):
72002         Use K&R-style defn.
72003
72004         2006-01-31  Roland McGrath  <roland@redhat.com>
72005
72006         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72007         Reported by Mike Frysinger <vapier@gentoo.org>.
72008
72009         2006-01-15  Andreas Jaeger  <aj@suse.de>
72010
72011         [BZ #1950]
72012         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72013         build_wcs_upper_buffer change.
72014         (build_wcs_upper_buffer): Change return type.
72015
72016         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72017
72018         * lib/regex_internal.h: Include <stdint.h> if available.
72019
72020         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72021
72022         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72023
72024         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72025
72026         * lib/regcomp.c: Adjust for changed secondary hash function.
72027
72028         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72029
72030         * lib/regex.h: Pretty printing.
72031         Clean up namespace a bit.
72032
72033         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72034
72035         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72036         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72037
72038         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72039                     Ulrich Drepper  <drepper@redhat.com>
72040
72041         [BZ #1302]
72042         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72043         changed.
72044         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72045
72046         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72047
72048         [BZ #281]
72049         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72050         * lib/regcomp.c: Remove unnecessary uses of
72051         unsigned RE_TRANSLATE_TYPE.
72052         * lib/regex_internal.h: Likewise.
72053         * lib/regex_internal.c: Likewise.
72054         * lib/regexec.c: Likewise.
72055         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72056
72057         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72058
72059         * lib/regexec.c (find_recover_state): Remove unnecessary
72060         initialization.
72061         (transit_state_bkref): Make DFA a const pointer.
72062         (get_subexp): Likewise.
72063         (check_arrival): Likewise.
72064         (update_cur_sifted_state): Likewise.
72065         (re_search_internal): Likewise.
72066         (prune_impossible_nodes): Likewise.
72067         (acquire_init_state_context): Likewise.
72068         (proceed_next_node): Likewise.
72069         (set_regs): Likewise.
72070         (free_fail_stack_return): Likewise.
72071         (check_arrival_expand_ecl): Mark DFA parameter as const.
72072         (check_arrival_expand_ecl_sub): Likewise.
72073         (check_subexp_limits): Likewise.
72074         (sub_epsilon_src_nodes):  Likewise.
72075         (add_epsilon_src_nodes):  Likewise.
72076         (merge_state_array): Likewise.
72077         (update_regs): Likewise.
72078         (build_trtable): Likewise.
72079         (sift_states_backward): Mark MCTX parameter as const.
72080         (build_sifted_states): Likewise.
72081         (update_cur_sifted_state): Likewise.
72082         (sift_states_mkref): Likewise.
72083         (check_arrival_expand_ecl): Mark eclosure as const.
72084         (check_dst_limits_calc_pos_1): Likewise.
72085         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72086         pointer.
72087
72088         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72089
72090         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72091         (transit_state_sb): Likewise.
72092         (transit_state_mb): Likewise.
72093         (sift_states_iter_mb): Likewise.
72094         (check_arrival_add_next_nodes): Likewise.
72095         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72096         [_LIBC] (re_search_2_stub): Use mempcpy.
72097
72098         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72099         mbrtowc for very simple UTF-8 case.
72100
72101         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72102         a pointer-to-const.
72103         (re_acquire_state_context): Likewise.
72104         * lib/regex_internal.h: Adjust prototypes.
72105
72106         * lib/regex.c: Prevent using C++ compilers.
72107
72108         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72109         (re_acquire_state_context): Likewise.
72110
72111 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * modules/regex (Depends-on): Add ssize_t.
72114
72115 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72118         translation table.
72119
72120 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72123
72124 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72125             Bruno Haible  <bruno@clisp.org>
72126
72127         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72128         <sys/types.h> and <inttypes.h>.
72129
72130 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72131
72132         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72133         `__error_t_defined', so argp.h will not typedef the former.
72134
72135 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72138         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72139         glibc names.  Even if glibc is changed to conform to POSIX, the
72140         traditional names will be available anyway, since regex depends on
72141         the extensions module.  Also, fix a longstanding typo in the
72142         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72143         reported by Emanuele Giaquinta.  Also, change sense of cached
72144         variable, so that the message makes sense.
72145
72146 2006-03-24  Simon Josefsson  <jas@extundo.com>
72147
72148         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72149         including some doc fixes.
72150         (base64_encode_alloc): Fix +1 bug on allocation failures.
72151
72152 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72153
72154         * lib/base64.c (base64_encode): Do not read past end of array with
72155         unsanitized input on systems with CHAR_BIT > 8.
72156
72157 2006-03-24  Eric Blake  <ebb9@byu.net>
72158
72159         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72160
72161 2006-03-22  Karl Berry  <karl@gnu.org>
72162
72163         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72164         * config/srclistvars.sh (COREUTILS): new var.
72165
72166 2006-03-17  Jim Meyering  <jim@meyering.net>
72167
72168         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72169         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72170
72171 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72172
72173         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72174         no longer needs it.  Instead, check that regoff_t is as least
72175         as wide as ptrdiff_t.
72176
72177         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72178         so that our regex.h stays compatible with the installed regex.
72179         This is helpful for installers who configure --without-included-regex.
72180         Problem reported by Emanuele Giaquinta.
72181
72182 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72185         Typedef to long int, not to off_, as POSIX will likely change
72186         in that direction.
72187
72188 2006-03-15  Eric Blake  <ebb9@byu.net>
72189
72190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72191
72192 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72193
72194         * lib/argp-help.c (validate_uparams): Fix typo
72195         * lib/argp-parse.c (argp_default_options): Consistently begin help
72196         messages with a lowercase letter.
72197
72198 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72201         overrun buffers and shouldn't be used (much as gets shouldn't be
72202         used).
72203         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72204
72205 2006-03-08  Simon Josefsson  <jas@extundo.com>
72206
72207         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72208         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72209
72210 2006-03-08  Simon Josefsson  <jas@extundo.com>
72211
72212         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72213         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72214
72215 2006-03-08  Simon Josefsson  <jas@extundo.com>
72216
72217         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72218         signal that configure disabled the device.
72219
72220 2006-03-08  Simon Josefsson  <jas@extundo.com>
72221
72222         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72223         languages.
72224
72225 2006-03-07  Simon Josefsson  <jas@extundo.com>
72226
72227         * modules/getopt (Depends-on): Add unistd.
72228
72229         * modules/unistd: New file.
72230
72231 2006-03-07  Simon Josefsson  <jas@extundo.com>
72232
72233         * modules/gc-random: New file.
72234
72235 2006-03-07  Simon Josefsson  <jas@extundo.com>
72236
72237         * m4/unistd_h.m4: New file.
72238
72239 2006-03-07  Simon Josefsson  <jas@extundo.com>
72240
72241         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72242         test to be side-effect free by storing the result in the cache
72243         variable gl_cv_lib_readline, and moving the assignment of
72244         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72245         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72246
72247 2006-03-07  Simon Josefsson  <jas@extundo.com>
72248
72249         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72250         error on missing devices (the functions will return an error).
72251
72252         * m4/gc.m4: Move random stuff to gc-random.m4
72253
72254 2006-03-07  Simon Josefsson  <jas@extundo.com>
72255
72256         * lib/unistd_.h: New file.
72257
72258 2006-03-07  Simon Josefsson  <jas@extundo.com>
72259
72260         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72261
72262 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72265         Problem reported by Juan Manuel Guerrero.
72266
72267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72270         the unistd module.
72271         * lib/getlogin_r.c: Likewise.
72272         * lib/getlogin_r.h: Likewise.
72273         * lib/glob.c: Likewise.
72274         * lib/pagealign_alloc.c: Likewise.
72275         * lib/unistd_.h: Remove; no longer needed.
72276
72277 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72280         Add unistd.
72281         * modules/c-stack (Depends-on): Add unistd.
72282         * modules/getlogin_r: Likewise.
72283         * modules/glob: Likewise.
72284         * modules/pagealign_alloc: Likewise.
72285         * modules/unistd (Files): Remove lib/unistd_.h.
72286         (EXTRA_DIST): Remove.
72287         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72288         need unistd_.h.
72289         (MOSTLYCLEANFILES): Remove unistd.h-t.
72290
72291 2006-03-03  Simon Josefsson  <jas@extundo.com>
72292
72293         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72294
72295 2006-03-03  Simon Josefsson  <jas@extundo.com>
72296
72297         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72298         libidn and bison.
72299
72300 2006-03-03  Simon Josefsson  <jas@extundo.com>
72301
72302         * build-aux/maint.mk: Add indent target.
72303
72304 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72305
72306         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72307         our replacement poll.h in any case, to avoid a differing
72308         declaration from a system header.  Seen on AIX.
72309
72310 2006-03-01  Simon Josefsson  <jas@extundo.com>
72311
72312         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72313         <kasal@ucw.cz>.
72314
72315 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * modules/gettime (Depends-on): Add extensions module.
72318         * modules/nanosleep (Depends-on): Likewise.
72319         * modules/settime (Depends-on): Likewise.
72320
72321 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72324         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72325         pedantically.
72326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72327         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72328
72329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72330         not "==".  Reported by Ralf Wildenhues.
72331
72332 2006-03-01  Karl Berry  <karl@gnu.org>
72333
72334         * doc/Copyright/request-*: new files, synced from gnuorg.
72335
72336 2006-03-01  Karl Berry  <karl@gnu.org>
72337
72338         * config/srclist.txt (Copyright/*): new entries.
72339
72340 2006-02-28  Simon Josefsson  <jas@extundo.com>
72341
72342         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72343
72344 2006-02-27  Simon Josefsson  <jas@extundo.com>
72345
72346         * lib/base64.h: Indent #define's.  From Jim Meyering
72347         <jim@meyering.net>.
72348
72349 2006-02-27  Jim Meyering  <jim@meyering.net>
72350
72351         Revert the change of 2006-02-24, so these files can continue
72352         to be sync'd from gettext.
72353         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72354         of `config.h'.
72355
72356 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * modules/intprops: New file.
72359         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72360         Add intprops.
72361         * modules/getloadavg (Files): Remove lib/intprops.h.
72362         (Depends-on): Add intprops.
72363         * modules/human: Likewise.
72364         * modules/inttostr: Likewise.
72365         * modules/openat: Likewise.
72366         * modules/sig2str: Likewise.
72367         * modules/userspec: Likewise.
72368         * modules/utimecmp: Likewise.
72369         * modules/xnanosleep: Likewise.
72370         * modules/xstrtol: Likewise.
72371
72372 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72373
72374         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72375         * modules/lock-tests (TESTS): Use $(EXEEXT).
72376         * modules/tls-tests: Likewise.
72377         * modules/argp-tests: Likewise.
72378         (check_PROGRAMS): New var, replacing...
72379         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72380
72381 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72382
72383         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72384         `config.h'.
72385
72386 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72389
72390 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72391
72392         Sync from coreutils.
72393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72394         gl_CHDIR_SAFER.
72395
72396 2006-02-22  Jim Meyering  <jim@meyering.net>
72397
72398         Sync from coreutils.
72399         * m4/chdir-safer.m4: New file.
72400
72401 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72404         AT_FDCWD exceeds INT_MAX.
72405         * lib/openat.h (AT_FDCWD): Likewise.
72406
72407 2006-02-17  Eric Blake  <address@hidden>
72408
72409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72410
72411 2006-02-16  Simon Josefsson  <jas@extundo.com>
72412
72413         * modules/getaddrinfo (Depends-on): Add sys_socket.
72414
72415 2006-02-15  Simon Josefsson  <jas@extundo.com>
72416
72417         * build-aux/maint.mk: Add dsyntax-check rule.
72418
72419 2006-02-15  Eric Blake  <ebb9@byu.net>
72420
72421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72422         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72423         'present but cannot compile' warnings on cygwin.
72424         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72425         use ws2tcpip.h if sys/socket.h works.
72426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72427         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72428
72429 2006-02-14  Simon Josefsson  <jas@extundo.com>
72430
72431         * modules/maintainer-makefile (Files): Rename.
72432
72433         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72434         and (the local) Makefile.cfg to maint-cfg.mk.
72435
72436         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72437         to the latter.
72438
72439         * modules/maintainer-makefile: New module.
72440
72441         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72442         severaly stripped to make it possible to build it up from scratch
72443         with reliable tests.
72444
72445         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72446         fixes to permit overriding the default actions when configure and
72447         makefile are not available.
72448
72449 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         Sync from coreutils.
72452         * modules/lstat (Depends-on): Don't depend on xalloc.
72453         (License): Change from GPL to LGPL, since this is now simply a
72454         replacement for a libc function.
72455
72456 2006-02-14  Jim Meyering  <jim@meyering.net>
72457
72458         Sync from coreutils.
72459
72460         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72461         failure on deficient systems, and simplify gnulib lgpl dependencies.
72462         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72463         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72464
72465         * lib/xalloc-die.c: Remove unused definition of N_.
72466
72467 2006-02-14  Jim Meyering  <jim@meyering.net>
72468
72469         Sync from coreutils.
72470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72471         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72472         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72473         double-quote uses of that variable, to accommodate the rare case in
72474         which getmntent is available in none of the libraries checked.  This
72475         happens at least on FreeBSD 5.0.
72476
72477 2006-02-13  Simon Josefsson  <jas@extundo.com>
72478
72479         * gnulib-tool (Usage): Fix --import, from
72480         karl@freefriends.org (Karl Berry).
72481
72482 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72483
72484         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72485
72486 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72487
72488         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72489         "autoupdate" on 2005-12-12.
72490
72491 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * modules/closeout (Depends-on): Remove atexit.
72494
72495 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72498         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72499
72500 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72503         __EXTENSIONS__ if this causes compilation to fail.  Problem
72504         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72505         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72506
72507 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72510         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72512         All uses changed.
72513
72514 2006-01-26  Simon Josefsson  <jas@extundo.com>
72515
72516         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72517         prototype is visible on mingw32.
72518
72519         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72520         for mingw32.
72521
72522         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72523         mingw32).
72524
72525 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72528         attempt to open for write; this always fails, at least on POSIX
72529         hosts.  This reinstates the 2006-01-09 change, which was
72530         inadvertently removed.
72531
72532 2006-01-26  Bruno Haible  <bruno@clisp.org>
72533
72534         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72535         Reported by Paul Eggert.
72536
72537 2006-01-26  Bruno Haible  <bruno@clisp.org>
72538             Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * lib/stdbool_.h (_Bool)
72541         [(! (defined __cplusplus || defined __BEOS__)
72542           && !defined __GNUC__
72543           && !(defined __HP_cc || defined __xlc__
72544                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72545                || defined __sgi))]:
72546         #define to signed char in these cases too; this simplifies
72547         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72548         etc., separately) and makes it more conservative.
72549
72550 2006-01-25  Simon Josefsson  <jas@extundo.com>
72551
72552         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72553         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72554         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72555
72556 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72557
72558         * lib/argp-namefrob.h: Bugfix. Remove stray #
72559
72560 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72563         so that we test the test.
72564         Check for yet another HP-UX cc bug involving *bool |= bool.
72565
72566 2006-01-25  Karl Berry  <karl@gnu.org>
72567
72568         * config/srclist.txt (vasnprintf.c): sync lost.
72569
72570 2006-01-25  Jim Meyering  <jim@meyering.net>
72571
72572         Sync from the stable (b5) branch of coreutils:
72573
72574         * lib/fts.c (fts_children): Don't let close() clobber errno from
72575         failed fchdir().
72576
72577         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72578         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72579         a dangling symlink.  That can also happen at least for ELOOP.
72580         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72581         FYI, this bug predates the inclusion of fts.c in coreutils.
72582
72583         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72584         in their own block, so pre-c99 compilers don't object.
72585
72586         Avoid the double-free (first in fts_read, second in fts_close) that
72587         would occur when an `active' directory is made inaccessible (e.g.,
72588         via chmod a-x) during a traversal.
72589         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72590         before returning.  Reproduce this failure by
72591         mkdir -p a/b; cd a; chmod a-x . b
72592         Reported by Stavros Passas.
72593
72594 2006-01-25  Jim Meyering  <jim@meyering.net>
72595
72596         * lib/fileblocks.c: Remove more useless parentheses.
72597         * lib/readutmp.h: Likewise.
72598
72599 2006-01-25  Bruno Haible  <bruno@clisp.org>
72600
72601         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72602         warnings.
72603         Reported by Paul Eggert.
72604
72605 2006-01-25  Bruno Haible  <bruno@clisp.org>
72606
72607         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72608         rid of a trap command. For Solaris sh.
72609         Reported by Mark D. Baushke <mdb@gnu.org>.
72610
72611 2006-01-24  Simon Josefsson  <jas@extundo.com>
72612
72613         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72614         Bruno.
72615
72616 2006-01-24  Karl Berry  <karl@gnu.org>
72617
72618         * config/srclist.txt (argp-namefrob.h): sync lost.
72619
72620 2006-01-24  Jim Meyering  <jim@meyering.net>
72621
72622         * modules/openat (Files): Add lib/intprops.h.
72623         From Mark D. Baushke.
72624
72625 2006-01-24  Jim Meyering  <jim@meyering.net>
72626
72627         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72628         Reported by Mark D. Baushke.
72629
72630 2006-01-24  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72633
72634 2006-01-24  Bruno Haible  <bruno@clisp.org>
72635
72636         * modules/strnlen (Maintainer): Change from glibc to all.
72637
72638 2006-01-24  Bruno Haible  <bruno@clisp.org>
72639
72640         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72641         Patch by Paul Eggert.
72642
72643 2006-01-24  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72646         already has it.
72647         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72648         2005-11-26.
72649
72650         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72651         'signed char' to avoid problems with the built-in _Bool type.
72652         Reported by Paul Eggert on 2005-11-26.
72653
72654 2006-01-24  Bruno Haible  <bruno@clisp.org>
72655
72656         * gnulib-tool (func_import): Avoid constructing complicated sed
72657         expressions inside backquote.
72658         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72659
72660 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72661
72662         These changes imported from libc.
72663         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72664         test and two separate function calls.
72665         * lib/strndup.c (__strndup): Add libc_hidden_def.
72666
72667 2006-01-23  Simon Josefsson  <jas@extundo.com>
72668
72669         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72670         Remove the test_*_SOURCES variable: automake infers it by default.
72671         * modules/tls-tests: Likewise.
72672
72673 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         Work around porting bugs reported by Dieter in
72676         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72677         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72678         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72679         Include "getopt.h" first, to check interface.
72680         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72681         !HAVE_DECL_GETENV.
72682         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72683         (__strndup): Revert to K&R-style function dfns, the glibc style.
72684         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72685         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72686         Include strnlen.h first, to get prototype properly.
72687         (strnlen): Renamed from __strnlen.
72688         Remove weak alias.
72689
72690 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72693
72694 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * config/srclist.txt: Adjust to reflect glibc reorganization.
72697         This affects only comments.
72698
72699 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72700
72701          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72702          Reported by Bruce Korb <bkorb@gnu.org>.
72703
72704 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72705
72706         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72707         to pacify gcc -Wswitch-default.
72708
72709 2006-01-22  Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72712         temporary buffer for sprintf, take into account the precision also
72713         for 'd', 'i', 'u', 'o', 'x', 'X'.
72714
72715 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72716
72717         * modules/argp-tests: New module
72718         * tests/test-argp.c: New file
72719         * tests/test-argp-2.sh: New file
72720
72721 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72722
72723         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72724         (__argp_base_name): Removed
72725         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72726         typo.
72727         (__argp_base_name): Provide macro definition or extern declaration
72728         depending on the configuration
72729
72730 2006-01-20  Simon Josefsson  <jas@extundo.com>
72731
72732         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72733
72734 2006-01-20  Simon Josefsson  <jas@extundo.com>
72735
72736         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72737
72738 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72741         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72742         Suggested by Bruno Haible.
72743
72744 2006-01-20  Karl Berry  <karl@gnu.org>
72745
72746         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72747         until changes propagate, I guess.
72748
72749 2006-01-19  Simon Josefsson  <jas@extundo.com>
72750
72751         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72752
72753 2006-01-19  Simon Josefsson  <jas@extundo.com>
72754
72755         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72756
72757 2006-01-19  Simon Josefsson  <jas@extundo.com>
72758
72759         * gnulib-tool: Set check_PROGRAMS.
72760
72761         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72762         modules/des-tests, modules/gc-arcfour-tests,
72763         modules/gc-arctwo-tests, modules/gc-des-tests,
72764         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72765         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72766         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72767         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72768         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72769         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72770         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72771         test_*_SOURCES.
72772
72773 2006-01-18  Simon Josefsson  <jas@extundo.com>
72774
72775         * modules/socklen (Depends-on): Depend on sys_socket.
72776
72777 2006-01-18  Simon Josefsson  <jas@extundo.com>
72778
72779         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72780         modules/des-tests, modules/gc-arcfour-tests,
72781         modules/gc-arctwo-tests, modules/gc-des-tests,
72782         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72783         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72784         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72785         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72786         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72787         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72788         $(EXEEXT) to automake TESTS variable, for mingw32.
72789
72790 2006-01-17  Simon Josefsson  <jas@extundo.com>
72791
72792         * modules/socklen (Include): Need sys/socket.h.
72793
72794 2006-01-17  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/ssize_t (Include): Add <sys/types.h>.
72797
72798 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72801         it's not portable and it doesn't work with cross-compiles.
72802         Problem reported by Bruno Haible.  Fix missing-$ typo in
72803         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72804         -zignore from being used with Sun's C compiler.
72805
72806 2006-01-12  Simon Josefsson  <jas@extundo.com>
72807
72808         * lib/base64.c: Fix warning, reported by Bruno Haible
72809         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72810
72811 2006-01-12  Bruno Haible  <bruno@clisp.org>
72812
72813         * modules/ldd: New file.
72814         * build-aux/ldd.sh.in: New file.
72815         * MODULES.html.sh (Support for building libraries and executables): Add
72816         ldd.
72817
72818 2006-01-12  Bruno Haible  <bruno@clisp.org>
72819
72820         * m4/ldd.m4: New file.
72821
72822 2006-01-12  Bruno Haible  <bruno@clisp.org>
72823
72824         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72825         endless loop while replacing $auxdir with build-aux.
72826
72827 2006-01-11  Simon Josefsson  <jas@extundo.com>
72828
72829         * lib/stdint_.h (SIZE_MAX): Add missing (.
72830
72831 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         Sync from coreutils.
72834         * lib/md5.c: Fix commentary typos.
72835         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72836         * lib/md5.h (__attribute__): Remove; unused.
72837         * lib/sha1.c: Fix commentary to match md5 better.
72838         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72839         so that we don't need to worry about alignment.  All uses changed.
72840         This merges the 2005-10-28 md5 change into sha1.
72841
72842 2006-01-11  Jim Meyering  <jim@meyering.net>
72843
72844         Sync from coreutils.
72845         * lib/md5.c (OP): Fix spacing.
72846
72847 2006-01-11  Bruno Haible  <bruno@clisp.org>
72848
72849         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72850         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72851         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72852
72853 2006-01-11  Bruno Haible  <bruno@clisp.org>
72854
72855         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72856         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72857         the "early" section as well.
72858
72859 2006-01-11  Bruno Haible  <bruno@clisp.org>
72860
72861         Avoid "ar: no archive members specified" error on MacOS X.
72862         * gnulib-tool (func_modules_add_dummy): New function.
72863         (func_import, func_create_testdir): Invoke it.
72864
72865 2006-01-11  Bruno Haible  <bruno@clisp.org>
72866
72867         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72868         with $auxdir in AC_CONFIG_FILES statements.
72869
72870 2006-01-11  Bruno Haible  <bruno@clisp.org>
72871
72872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72873         Initialize also noinst_HEADERS to empty.
72874
72875 2006-01-11  Bruno Haible  <bruno@clisp.org>
72876
72877         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72878         variables.
72879         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72880         autoreconf.
72881
72882 2006-01-11  Bruno Haible  <bruno@clisp.org>
72883
72884         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72885         overridable by the user.
72886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72887
72888 2006-01-10  Simon Josefsson  <jas@extundo.com>
72889
72890         * modules/sys_socket: New file.
72891
72892 2006-01-10  Simon Josefsson  <jas@extundo.com>
72893
72894         * m4/sys_socket_h.m4: New file.
72895
72896 2006-01-10  Simon Josefsson  <jas@extundo.com>
72897
72898         * lib/socket_.h: New file.
72899
72900 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * modules/readutmp (Maintainer): Add myself.
72903
72904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72907         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72908         People who are still concerned with buggy memcmp implementations
72909         can invoke gl_FUNC_MEMCMP themselves.
72910
72911 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * lib/regex_internal.h (BITSET_WORD_BITS):
72914         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72915         preprocessor mishandles large unsigned values as if they were signed.
72916         Problem reported by Claudio Fontana in
72917         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72918
72919 2006-01-10  Jim Meyering  <jim@meyering.net>
72920
72921         Avoid the double-free (first in fts_read, second in fts_close) that
72922         would occur when an `active' directory is made inaccessible (e.g.,
72923         via chmod a-x) during a traversal.
72924         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72925         before returning.  Reproduce this failure by
72926         mkdir -p a/b; cd a; chmod a-x . b
72927         Reported by Stavros Passas.
72928
72929         Sync from coreutils.
72930         * lib/sha1.c: Tweak grammar in a comment.
72931
72932 2006-01-10  Jim Meyering  <jim@meyering.net>
72933
72934         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72935         Patch by Joerg Sonnenberger.
72936
72937 2006-01-10  Bruno Haible  <bruno@clisp.org>
72938
72939         * modules/readutmp: Depend on module free.
72940         * modules/strtok_r: Depend on module restrict.
72941
72942 2006-01-10  Bruno Haible  <bruno@clisp.org>
72943
72944         * modules/gettext (configure.ac): Add an invocation of
72945         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72946
72947 2006-01-10  Bruno Haible  <bruno@clisp.org>
72948
72949         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72950         Reported by Werner Lemberg <wl@gnu.org>.
72951
72952 2006-01-10  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/localcharset.c: Update from GNU gettext.
72955
72956 2006-01-10  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/argp.h (__const): Remove macro. Use const instead.
72959         * lib/argp-fmtstream.h (__const): Likewise.
72960         * lib/glob_.h (__const): Remove macro.
72961         * lib/glob-libc.h: Use const instead of __const.
72962
72963 2006-01-10  Bruno Haible  <bruno@clisp.org>
72964
72965         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72966         variable.
72967         Needed to avoid an automake error regarding the 'gettext' module.
72968
72969 2006-01-09  Simon Josefsson  <jas@extundo.com>
72970
72971         * modules/inet_ntop (Depends-on): Add restrict.
72972
72973 2006-01-09  Simon Josefsson  <jas@extundo.com>
72974
72975         * modules/gc-rijndael-tests (License): Put under LGPL.
72976
72977         * modules/gc-des-tests (License): Likewise.
72978
72979         * modules/gc-arcfour-tests (License): Likewise.
72980
72981         * modules/gc-arctwo-tests (License): Likewise.
72982
72983         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72984
72985         * modules/gc-hmac-sha1-tests (Files): Likewise.
72986
72987         * modules/gc-hmac-md5-tests (License): Likewise.
72988
72989         * modules/gc-sha1-tests (License): Likewise.
72990
72991         * modules/gc-md5-tests (License): Likewise.
72992
72993         * modules/gc-md4-tests (License): Likewise.
72994
72995         * modules/gc-md2-tests (License): Likewise.
72996
72997         * modules/gc-tests (License): Likewise.
72998
72999         * modules/des-tests (License): Likewise.
73000
73001         * modules/md4-tests (License): Likewise.
73002
73003         * modules/md2-tests (License): Likewise.
73004
73005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         Sync from coreutils:
73008
73009         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73010         * modules/lib-ignore: New file.
73011         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73012         chdir-safer.m4, lchmod.m4.
73013         * modules/openat: Add mkdirat.c, openat-priv.h.
73014
73015 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         Sync from coreutils.
73018         * m4/lib-ignore.m4: New file.
73019         * m4/lchmod.m4: New file.
73020
73021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         Sync from coreutils.
73024         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73025         for write access: POSIX says that must fail.
73026         * lib/fts.c (diropen): Likewise.
73027         * lib/save-cwd.c (save_cwd): Likewise.
73028         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73029         well, for minor improvements on hosts that lack O_DIRECTORY.
73030         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73031         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73032         Fall back on chown if open failed with EACCES.
73033
73034         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73035         Report an error at compile-time if only a 1-second nominal clock
73036         resolution is found.
73037
73038         * lib/lchmod.h: New file.
73039         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73040         (make_dir_parents): Use lchown rather than chown, and
73041         lchmod rather than chmod.
73042
73043         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73044         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73045         "proc" reported by n0dalus.
73046
73047         * lib/mountlist.c: Include <limits.h>.
73048         (dev_from_mount_options)
73049         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73050         New function.  It no longer assumes "dev=" has the System V meaning
73051         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73052         (read_file_system_list)
73053         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73054         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73055         dev= in that case.
73056
73057         * lib/posixtm.h (PDS_PRE_2000): New macro.
73058         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73059         allow_century.  All usages changed.  Reject dates outside the range
73060         1969-1999 if PDS_PRE_2000 is used.
73061
73062 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         Sync from coreutils.
73065         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73066         (Time of day items): Mention the possibility of leap seconds.
73067         Problem reported by Dr. David Alan Gilbert.
73068
73069 2006-01-09  Jim Meyering  <jim@meyering.net>
73070
73071         Sync from coreutils.
73072
73073         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73074
73075         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73076
73077         * lib/modechange.c (mode_compile): Reject an invalid mode string
73078         that starts with an octal digit.  From Andreas Gruenbacher.
73079
73080         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73081         and dup to open_safer and dup_safer, respectively.
73082         (openat_permissive): Fix typo in comment.
73083
73084         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73085         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73086         (_): Remove; no longer needed.
73087         (openat): Renamed from rpl_openat; no need for rpl_openat
73088         since openat.h renames openat for us.
73089         Replace most of the body with a call to openat_permissive,
73090         to avoid duplicate code.
73091         Port to (probably hypothetical) environments were mode_t is
73092         wider than int.
73093         (openat_permissive): Require mode arg, so that we can check
73094         types better.  Put it just after flags.  Change cwd failure
73095         indicator from pointer-to-bool to pointer-to-errno-value.
73096         All callers changed.
73097         Invoke openat_save_fail and/or openat_restore_fail if
73098         cwd_errno is null, so that openat can call us.
73099         (openat_permissive, fdopendir, fstatat, unlinkat):
73100         Simplify errno handling to avoid some duplicate code,
73101         as it's OK to set errno on success.
73102         * lib/openat.h: Revamp code so that function macros depend on
73103         __OPENAT_PREFIX only, not also on AT_FDCWD.
73104         (openat_ro): Remove.  Caller changed to use openat_permissive.
73105         (openat_permissive): Now a macro, if not a function.
73106         (openat_restore_fail, openat_save_fail): Now always functions,
73107         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73108
73109         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73110         and openat.c.
73111         * lib/mkdirat.c: Include openat-priv.h.
73112         Remove definitions of macros defined therein.
73113         * lib/openat.c: Likewise.
73114
73115         * lib/mkdirat.c (mkdirat): New file and function.
73116         * lib/openat.h (mkdirat): Declare.
73117
73118         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73119
73120         * lib/openat.h (openat_permissive): Declare.
73121         (openat_ro): Define.
73122
73123         * lib/openat.c (EXPECTED_ERRNO): New macro.
73124         (openat_permissive): New function -- used in remove.c rewrite.
73125         (all functions): Set errno just before returning, only if there
73126         was an actual failure.
73127         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73128
73129         Emulate openat-family functions using Linux's procfs, if possible.
73130         Idea and some code based on Ulrich Drepper's glibc changes.
73131
73132         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73133         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73134         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73135         before falling back on save_cwd and restore_cwd.
73136         (fdopendir, fstatat, unlinkat): Likewise.
73137
73138         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73139         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73140
73141         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73142         as second argument to va_arg.  Otherwise, some versions of gcc
73143         warn that `if this code is reached, the program will abort'.
73144
73145 2006-01-09  Jim Meyering  <jim@meyering.net>
73146
73147         Sync from coreutils.
73148         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73149         Require openat-priv.h.
73150
73151 2006-01-09  Bruno Haible  <bruno@clisp.org>
73152
73153         * modules/strnlen (Include): Use strnlen.h.
73154
73155 2006-01-09  Bruno Haible  <bruno@clisp.org>
73156
73157         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73158
73159 2006-01-09  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/sysexit_.h (EX_OK): New macro.
73162         Suggested by Martin Lambers <marlam@marlam.de>.
73163
73164 2006-01-09  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73167         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73168
73169 2006-01-09  Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73172         numbers.
73173
73174 2006-01-09  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73177         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73178         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73179         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73180
73181 2006-01-09  Bruno Haible  <bruno@clisp.org>
73182
73183         * build-aux/javacomp.sh.in: New file, moved from lib/.
73184         * modules/javacomp-script (Files): Update.
73185         (configure.ac): Add AC_CONFIG_FILES invocation.
73186         (EXTRA_DIST): Remove variable.
73187
73188         * build-aux/javaexec.sh.in: New file, moved from lib/.
73189         * modules/javaexec (Files): Update.
73190         (configure.ac): Add AC_CONFIG_FILES invocation.
73191         (EXTRA_DIST): Remove javaexec.sh.in.
73192
73193         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73194         * modules/csharpcomp-script (Files): Update.
73195         (configure.ac): Add AC_CONFIG_FILES invocation.
73196         (EXTRA_DIST): Remove variable.
73197
73198         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73199         * modules/csharpexec (Files): Update.
73200         (configure.ac): Add AC_CONFIG_FILES invocation.
73201         (EXTRA_DIST): Remove csharpexec.sh.in.
73202
73203 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73204
73205         Sync from coreutils.
73206
73207         Add POSIX ACL support
73208         * lib/acl.h (copy_acl, set_acl): Add declarations.
73209         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73210         systems other than Linux.
73211         (chmod_or_fchmod): New function: use fchmod when possible,
73212         and chmod otherwise.
73213         (file_has_acl): Add a POSIX ACL implementation, with a
73214         Linux-specific subcase.
73215         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73216         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73217         acls are unsupported.
73218         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73219         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73220         are unsupported.
73221
73222 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73223
73224         Sync from coreutils.
73225         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73226
73227 2006-01-07  Bruno Haible  <bruno@clisp.org>
73228
73229         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73230         gl_EARLY.
73231
73232 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73235         Problem reported for Mingw by Mark Junker.
73236
73237 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * README: Gnulib normally doesn't generate a tarball.
73240
73241 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73244         long int, not int, for nanosecond counts, so that people who are
73245         used to POSIX struct timespec won't be surprised.  Reported by Jim
73246         Meyering.
73247
73248 2005-12-28  Bruno Haible  <bruno@clisp.org>
73249
73250         * build-aux/config.rpath: Update from GNU gettext.
73251
73252 2005-12-16  Jim Meyering  <jim@meyering.net>
73253
73254         * modules/fprintftime: New module.
73255         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73256
73257 2005-12-16  Jim Meyering  <jim@meyering.net>
73258
73259         * m4/fprintftime.m4: New file.
73260
73261 2005-12-16  Jim Meyering  <jim@meyering.net>
73262
73263         * lib/fprintftime.c, lib/fprintftime.h: New files.
73264
73265 2005-12-15  Simon Josefsson  <jas@extundo.com>
73266
73267         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73268         new m4/socklen.m4.
73269
73270 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73271
73272         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73273         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73274
73275 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73276
73277         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73278         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73279         struct uparams is valid. Fall back to the default values if it is
73280         not.
73281
73282 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73283
73284         * modules/argp (Files): Add argp-pin.c
73285         (Depends-on): dirname
73286         (lib_SOURCES): Add argp-pin.c
73287
73288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73289
73290         * m4/argp.m4:  Check if program_invocation_name and
73291         program_invocation_short_name are declared and define appropriate
73292         macros if they are not.
73293
73294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73295
73296         * lib/argp-help.c (__argp_base_name): New function
73297         (__argp_short_program_name): Rewrite using __argp_base_name
73298         * lib/argp-namefrob.h: Define program_invocation_name and
73299         program_invocation_short_name if requested
73300         (__argp_base_name): Add prototype
73301         * lib/argp-parse.c (argp_def): Use gettext wrappers
73302         (argp_default_parser): Use __argp_base_name
73303         * lib/argp-pin.c: New file. Defines program_invocation_name and
73304         program_invocation_short_name on systems that lack them.
73305
73306 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73309         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73310         porting problem reported by Georg Schwarz in
73311         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73312
73313 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73316         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73317         porting problem reported by Georg Schwarz in
73318         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73319
73320 2005-12-05  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73323         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73324         Reported by Mark Junker <mjscod@gmx.de>.
73325
73326 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73329         Use implementation from Albert Chin, with some
73330         comments/corrections by Stepan Kasal and myself.
73331
73332 2005-12-02  Bruno Haible  <bruno@clisp.org>
73333
73334         * gnulib-tool (func_import): Accept GPLed build tool modules when
73335         --lgpl is given.
73336         * modules/csharpcomp-script: New file.
73337         * modules/csharpcomp: Depend on it.
73338         * modules/javacomp-script: New file.
73339         * modules/javacomp: Depend on it.
73340         Suggested by Simon Josefsson.
73341
73342 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73345         statement, to work around an HP-UX 10.20 compiler bug reported by
73346         Peter O'Gorman.
73347
73348 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * modules/savedir (Depends-on): Add openat.
73351
73352 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73355         (uintmax_t) [defined uintmax_t]: Do not declare.
73356         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73357         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73358         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73359         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73360         sake of portability to weird hosts that C allows (though we don't
73361         know of any practical examples).
73362
73363         * lib/savedir.h (fdsavedir): New decl.
73364         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73365         contains most of the former guts of savedir.
73366         (savedir): Use savedirstream.
73367         Include "openat.h".
73368
73369 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73370
73371         * modules/obstack (Files): Add m4/ulonglong.m4.
73372         Problem reported by Davide Angelocola.
73373
73374 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73375
73376         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73377         coreutils no longer futzes with rounding modes.
73378
73379 2005-11-14  Jim Meyering  <jim@meyering.net>
73380
73381         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73382         replacement of mkstemp.
73383
73384 2005-11-10  Simon Josefsson  <jas@extundo.com>
73385
73386         * lib/readline.c: Remove EOL.
73387
73388 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * modules/gethrxtime (Depends-on): Add gettime.
73391
73392 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73395         or gettimeofday; no longer needed.
73396
73397 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73400         time business.
73401         (gethrxtime) [! (HAVE_NANOUPTIME
73402         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73403         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73404         our own approximation.
73405
73406 2005-11-08  Eric Blake  <ebb9@byu.net>
73407
73408         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73409
73410 2005-11-08  Eric Blake  <ebb9@byu.net>
73411
73412         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73413
73414 2005-11-04  Bruno Haible  <bruno@clisp.org>
73415
73416         * gnulib-tool: Implement --update mode.
73417
73418 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         Fix porting problem reported by Theodoros V. Kalamatianos.
73421         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73422         Don't assume that futimes failing means we must fail.
73423
73424 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73427         variables to suggest the intended function of the PATH_MAX check.
73428
73429 2005-10-30  Kean Johnston  <jkj@sco.com>
73430
73431         Trivial changes to support SCO systems.
73432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73433         as PATH_MAX.
73434         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73435         where __ptr is null when no I/O is pending.
73436
73437 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73440         leave errno alone.  Problem reported by Dmitry V. Levin.
73441
73442 2005-10-28  Simon Josefsson  <jas@extundo.com>
73443
73444         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73445         Test more.
73446
73447         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73448
73449         * modules/md2, modules/md2-tests: New files.
73450
73451 2005-10-28  Simon Josefsson  <jas@extundo.com>
73452
73453         * m4/inet_ntop.m4: More tests.
73454
73455         * m4/gc-md2.m4, md2.m4: New file.
73456
73457 2005-10-28  Simon Josefsson  <jas@extundo.com>
73458
73459         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73460         "restrict" keywords, as per POSIX.  Protect the function
73461         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73462         Don't use K&R prototypes.  Check the sprintf return values.
73463         Re-define EAFNOSUPPORT if not present.  Indent.
73464
73465         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73466         suggested by Bruno Haible <bruno@clisp.org>.
73467
73468         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73469
73470         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73471
73472         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73473         libgcrypt).
73474
73475         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73476
73477         * lib/md2.h, lib/md2.c: New files.
73478
73479 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73482         errno alone.  Problem reported by Frederic Jolliton.
73483
73484 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * modules/verify (License): Change from GPL to LGPL.  This is a
73487         tiny module and there are apparently near-equivalents that are
73488         under the BSD license.
73489
73490 2005-10-24  Simon Josefsson  <jas@extundo.com>
73491
73492         * modules/sha1: Relicense to LGPL.
73493
73494 2005-10-24  Simon Josefsson  <jas@extundo.com>
73495
73496         * lib/md4.h: Shrink buffer size, now that we changed the type.
73497
73498 2005-10-23  Simon Josefsson  <jas@extundo.com>
73499
73500         * gnulib-tool (func_import): Fix --tests-base.
73501
73502 2005-10-22  Simon Josefsson  <jas@extundo.com>
73503
73504         * modules/arcfour (Depends-on): Need stdint.
73505
73506 2005-10-22  Simon Josefsson  <jas@extundo.com>
73507
73508         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73509         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73510
73511 2005-10-22  Simon Josefsson  <jas@extundo.com>
73512
73513         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73514         suggested by Bruno Haible <bruno@clisp.org>.
73515
73516 2005-10-22  Simon Josefsson  <jas@extundo.com>
73517
73518         * lib/crc.h: Include stddef.h, for size_t.
73519
73520 2005-10-22  Simon Josefsson  <jas@extundo.com>
73521
73522         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73523         arcfour_context struct (simplify test vector testing in GNU
73524         Shishi).
73525
73526 2005-10-21  Simon Josefsson  <jas@extundo.com>
73527
73528         * modules/des, modules/des-tests: New files.
73529
73530         * modules/gc-des, modules/gc-des-tests: New files.
73531
73532         * tests/test-des.c, tests/test-gc-des.c: New file.
73533
73534 2005-10-21  Simon Josefsson  <jas@extundo.com>
73535
73536         * modules/arctwo, modules/arctwo-tests: New files.
73537
73538         * tests/test-arctwo.c: New file.
73539
73540         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73541
73542         * tests/test-gc-arctwo.c: New file.
73543
73544 2005-10-21  Simon Josefsson  <jas@extundo.com>
73545
73546         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73547         Bruno Haible <bruno@clisp.org>.
73548
73549         * m4/gc-des.m4: New file.
73550
73551 2005-10-21  Simon Josefsson  <jas@extundo.com>
73552
73553         * m4/arctwo.m4: New file.
73554
73555         * m4/gc-arctwo.m4: New file.
73556
73557 2005-10-21  Simon Josefsson  <jas@extundo.com>
73558
73559         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73560         block.
73561
73562 2005-10-21  Simon Josefsson  <jas@extundo.com>
73563
73564         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73565         <bruno@clisp.org>.
73566
73567         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73568
73569         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73570         Bruno Haible <bruno@clisp.org>.
73571
73572         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73573         <bruno@clisp.org>.
73574
73575 2005-10-21  Simon Josefsson  <jas@extundo.com>
73576
73577         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73578
73579 2005-10-21  Simon Josefsson  <jas@extundo.com>
73580
73581         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73582
73583 2005-10-21  Simon Josefsson  <jas@extundo.com>
73584
73585         * lib/des.h, lib/des.c: New files.
73586
73587         * lib/gc-gnulib.c: Support DES.c
73588
73589 2005-10-21  Simon Josefsson  <jas@extundo.com>
73590
73591         * lib/arctwo.h, lib/arctwo.c: New files.
73592
73593         * lib/gc-gnulib.c: Support ARCTWO.
73594
73595 2005-10-21  Simon Josefsson  <jas@extundo.com>
73596
73597         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73598         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73599
73600 2005-10-21  Simon Josefsson  <jas@extundo.com>
73601
73602         * gnulib-tool (func_import, func_create_testdir): Define automake
73603         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73604         Makefile.am snippet),
73605         suggested by Bruno Haible <bruno@clisp.org>.
73606
73607         * modules/gc (Makefile.am): Use it.
73608
73609 2005-10-21  Bruno Haible  <bruno@clisp.org>
73610
73611         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73612         patch.
73613
73614 2005-10-19  Simon Josefsson  <jas@extundo.com>
73615
73616         * tests/test-gc-rijndael.c: New file.
73617
73618         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73619
73620 2005-10-19  Simon Josefsson  <jas@extundo.com>
73621
73622         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73623         interface too.
73624
73625 2005-10-19  Simon Josefsson  <jas@extundo.com>
73626
73627         * tests/test-gc-arcfour.c: New file.
73628
73629         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73630
73631 2005-10-19  Simon Josefsson  <jas@extundo.com>
73632
73633         * modules/gc-md4, modules/gc-md4-tests: New file.
73634
73635         * tests/test-gc-md4.c: New file.
73636
73637 2005-10-19  Simon Josefsson  <jas@extundo.com>
73638
73639         * m4/gc-md4.m4: New file.
73640
73641 2005-10-19  Simon Josefsson  <jas@extundo.com>
73642
73643         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73644         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73645         <kasal@ucw.cz>.
73646
73647 2005-10-19  Simon Josefsson  <jas@extundo.com>
73648
73649         * m4/gc-arcfour.m4: New file.
73650
73651         * m4/gc-rijndael.m4: New file.
73652
73653 2005-10-19  Simon Josefsson  <jas@extundo.com>
73654
73655         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73656
73657 2005-10-19  Simon Josefsson  <jas@extundo.com>
73658
73659         * lib/gc-gnulib.c: Support ARCFOUR.
73660
73661 2005-10-19  Simon Josefsson  <jas@extundo.com>
73662
73663         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73664         support.
73665
73666         * lib/gc.h: Add ECB enum type.
73667
73668         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73669
73670 2005-10-18  Simon Josefsson  <jas@extundo.com>
73671
73672         * tests/test-md5.c: New file.
73673
73674         * modules/md5-tests: New file.
73675
73676 2005-10-18  Simon Josefsson  <jas@extundo.com>
73677
73678         * tests/test-md4.c: New file.
73679
73680         * modules/md4, modules/md4-tests: New files.
73681
73682 2005-10-18  Simon Josefsson  <jas@extundo.com>
73683
73684         * m4/md4.m4: New file.
73685
73686 2005-10-18  Simon Josefsson  <jas@extundo.com>
73687
73688         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73689
73690 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73691
73692         * gnulib-tool (func_create_testdir): Omit the second check whether
73693         BUILT_SOURCES in nonempty.
73694
73695 2005-10-17  Simon Josefsson  <jas@extundo.com>
73696
73697         * tests/test-rijndael.c: New file.
73698
73699 2005-10-17  Simon Josefsson  <jas@extundo.com>
73700
73701         * modules/sha1: Depend on stdint instead of md5.
73702
73703         * modules/md5: Depend on stdint, remove uint32_t.
73704
73705 2005-10-17  Simon Josefsson  <jas@extundo.com>
73706
73707         * modules/gc-sha1-tests: New file.
73708
73709         * tests/test-gc-sha1.c: New file.
73710
73711 2005-10-17  Simon Josefsson  <jas@extundo.com>
73712
73713         * m4/md5.m4: Remove call to uint32_t.m4.
73714
73715 2005-10-17  Simon Josefsson  <jas@extundo.com>
73716
73717         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73718
73719         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73720         md5.h.
73721
73722         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73723
73724         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73725
73726 2005-10-17  Simon Josefsson  <jas@extundo.com>
73727
73728         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73729
73730 2005-10-17  Simon Josefsson  <jas@extundo.com>
73731
73732         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73733
73734 2005-10-17  Simon Josefsson  <jas@extundo.com>
73735
73736         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73737
73738         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73739
73740 2005-10-17  Bruno Haible  <bruno@clisp.org>
73741
73742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73743         that it can also be used in a test.
73744
73745 2005-10-16  Bruno Haible  <bruno@clisp.org>
73746
73747         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73748         TESTS_ENVIRONMENT, so that individual tests can augment it.
73749
73750         * gnulib-tool (func_create_testdir): Use an intermediate target for
73751         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73752         macros, like $(ALLOCA_H), which cannot be passed through the command
73753         line.
73754
73755 2005-10-15  Simon Josefsson  <jas@extundo.com>
73756
73757         * modules/rijndael-tests: New file.
73758
73759         * modules/rijndael: New file.
73760
73761 2005-10-15  Simon Josefsson  <jas@extundo.com>
73762
73763         * m4/rijndael.m4: New file.
73764
73765 2005-10-15  Simon Josefsson  <jas@extundo.com>
73766
73767         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73768
73769         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73770
73771 2005-10-14  Simon Josefsson  <jas@extundo.com>
73772
73773         * tests/test-arcfour.c: New file.
73774
73775         * modules/arcfour, modules/arcfour-tests: New files.
73776
73777 2005-10-14  Simon Josefsson  <jas@extundo.com>
73778
73779         * m4/arcfour.m4: New file.
73780
73781 2005-10-14  Simon Josefsson  <jas@extundo.com>
73782
73783         * lib/arcfour.h, lib/arcfour.c: New files.
73784
73785 2005-10-14  Roland McGrath  <roland@redhat.com>
73786
73787         Import from libc.  [BZ #1331]
73788         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73789         macro argument.
73790         Reported by Matej Vela <vela@debian.org>.
73791
73792 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73795         include <wchar.h>; no longer needed.
73796
73797 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73800
73801 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73802         and  Ulrich Drepper  <drepper@redhat.com>
73803
73804         Import from libc.
73805         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73806         instead of inline stream orientation test and two separate
73807         function calls.  Pay no attention to USE_IN_LIBIO.
73808
73809 2005-10-13  Simon Josefsson  <jas@extundo.com>
73810
73811         * modules/gc-hmac-md5-tests: New file.
73812
73813         * tests/test-gc-hmac-sha1.c: New file.
73814
73815         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73816
73817         * modules/gc-hmac-md5-tests: New file.
73818
73819         * tests/test-gc-md5.c: New file.
73820
73821         * modules/gc-md5-tests: New file.
73822
73823 2005-10-13  Simon Josefsson  <jas@extundo.com>
73824
73825         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73826         Move memory allocation outside of loop.
73827
73828 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73831         intermediate directory is in a read-only file system.  Problem
73832         reported by Eric Blake.
73833
73834 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73835
73836         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73837
73838 2005-10-12  Simon Josefsson  <jas@extundo.com>
73839
73840         * tests/test-hmac-sha1.c: New file.
73841
73842         * modules/hmac-sha1-tests: New file.
73843
73844         * modules/hmac-sha1: New file.
73845
73846 2005-10-12  Simon Josefsson  <jas@extundo.com>
73847
73848         * modules/gc-sha1: New file.
73849
73850 2005-10-12  Simon Josefsson  <jas@extundo.com>
73851
73852         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73853
73854         * tests/test-gc-pbkdf2-sha1.c: New file.
73855
73856 2005-10-12  Simon Josefsson  <jas@extundo.com>
73857
73858         * modules/gc-md5, modules/gc-hmac-md5: New files.
73859
73860         * modules/gc (Files): Remove md5, memxor and hmac files.
73861
73862 2005-10-12  Simon Josefsson  <jas@extundo.com>
73863
73864         * m4/gc-pbkdf2-sha1.m4: New file.
73865
73866         * m4/gc-hmac-sha1.m4: New file.
73867
73868         * m4/gc-sha1: New file.
73869
73870         * m4/hmac-sha1.m4: New file.
73871
73872 2005-10-12  Simon Josefsson  <jas@extundo.com>
73873
73874         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73875
73876         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73877
73878 2005-10-12  Simon Josefsson  <jas@extundo.com>
73879
73880         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73881         suggested by Bruno Haible <bruno@clisp.org>.
73882
73883 2005-10-12  Simon Josefsson  <jas@extundo.com>
73884
73885         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73886
73887 2005-10-12  Simon Josefsson  <jas@extundo.com>
73888
73889         * lib/gc-pbkdf2-sha1.c: New file.
73890
73891         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73892
73893 2005-10-12  Simon Josefsson  <jas@extundo.com>
73894
73895         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73896
73897         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73898
73899 2005-10-12  Simon Josefsson  <jas@extundo.com>
73900
73901         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73902         GC_USE_HMAC_MD5, respectively.
73903
73904         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73905         (gc_md5): Fix typo.
73906
73907         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73908
73909         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73910
73911         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73912
73913 2005-10-12  Bruno Haible  <bruno@clisp.org>
73914
73915         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73916         Reported by Stepan Kasal <kasal@ucw.cz>.
73917
73918 2005-10-11  Simon Josefsson  <jas@extundo.com>
73919
73920         * tests/test-crc.c: New file.
73921
73922         * modules/crc, modules/crc-tests: New files.
73923
73924 2005-10-11  Simon Josefsson  <jas@extundo.com>
73925
73926         * m4/crc.m4: New file.
73927
73928 2005-10-11  Simon Josefsson  <jas@extundo.com>
73929
73930         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73931
73932         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73933
73934         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73935
73936 2005-10-11  Simon Josefsson  <jas@extundo.com>
73937
73938         * lib/crc.h, lib/crc.c: New files.
73939
73940         * lib/gc.h (gc_hash_buffer): Add doc.
73941
73942 2005-10-11  Bruno Haible  <bruno@clisp.org>
73943
73944         * modules/c-strcasestr: New file.
73945         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73946
73947 2005-10-11  Bruno Haible  <bruno@clisp.org>
73948
73949         * modules/c-strcase: New file.
73950         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73951
73952 2005-10-11  Bruno Haible  <bruno@clisp.org>
73953
73954         * lib/strcasecmp.c: Include limits.h.
73955         (strcasecmp): Avoid integer overflow on exotic platforms.
73956         * lib/strncasecmp.c: Include limits.h.
73957         (strncasecmp): Avoid integer overflow on exotic platforms.
73958         Reported by Paul Eggert.
73959
73960 2005-10-11  Bruno Haible  <bruno@clisp.org>
73961
73962         * lib/c-strcasestr.h: New file, from GNU gettext.
73963         * lib/c-strcasestr.c: New file, from GNU gettext.
73964
73965 2005-10-11  Bruno Haible  <bruno@clisp.org>
73966
73967         * lib/c-strcase.h: New file, from GNU gettext.
73968         * lib/c-strcasecmp.c: New file, from GNU gettext.
73969         * lib/c-strncasecmp.c: New file, from GNU gettext.
73970
73971 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * modules/mempcpy (License): GPL -> LGPL.
73974         * modules/strchrnul (License): Likewise.
73975         * modules/sysexits (License): Likewise.
73976
73977 2005-10-08  Simon Josefsson  <jas@extundo.com>
73978
73979         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73980
73981 2005-10-07  Simon Josefsson  <jas@extundo.com>
73982
73983         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73984
73985 2005-10-06  Simon Josefsson  <jas@extundo.com>
73986
73987         * tests/test-hmac-md5.c: New file.
73988
73989         * modules/hmac-md5-tests: New file.
73990
73991         * modules/hmac-md5: New file.
73992
73993 2005-10-06  Simon Josefsson  <jas@extundo.com>
73994
73995         * m4/hmac-md5.m4: New file.
73996
73997         * m4/memxor.m4: Require gl_C_RESTRICT.
73998
73999 2005-10-06  Simon Josefsson  <jas@extundo.com>
74000
74001         * lib/memxor.c (memxor): Avoid casts and warnings.
74002
74003 2005-10-06  Simon Josefsson  <jas@extundo.com>
74004
74005         * lib/hmac-md5.c: New file.
74006
74007         * lib/hmac.h: New file.
74008
74009 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74010
74011         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74012         promotes to int, not unsigned int, to catch the AIX 5.3
74013         compiler bug.
74014
74015 2005-10-05  Simon Josefsson  <jas@extundo.com>
74016
74017         * modules/memxor: New file.
74018
74019         * modules/iconv (Files): Move config.rpath to havelib, it is used
74020         there.
74021
74022         * modules/havelib (Files): Add config.rpath.
74023
74024 2005-10-05  Simon Josefsson  <jas@extundo.com>
74025
74026         * m4/memxor.m4: New file.
74027
74028 2005-10-05  Simon Josefsson  <jas@extundo.com>
74029
74030         * lib/memxor.c (memxor): Fix compiler error.
74031
74032         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74033         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74034
74035         * lib/memxor.h, lib/memxor.c: New files.
74036
74037         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74038         we assume all systems have it, suggested by Jim Meyering
74039         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74040         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74041         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74042         same reasons.
74043
74044 2005-10-05  Simon Josefsson  <jas@extundo.com>
74045
74046         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74047
74048 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74051         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74052         needed, since the source code now assumes these .h files.
74053
74054 2005-10-05  Derek Price  <derek@ximbiot.com>
74055
74056         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74057
74058 2005-10-05  Bruno Haible  <bruno@clisp.org>
74059
74060         * modules/stdint (License): Change to LGPL.
74061
74062 2005-10-04  Simon Josefsson  <jas@extundo.com>
74063
74064         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74065         D. Baushke" <mdb@gnu.org>.
74066
74067 2005-10-04  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/verify.h (verify_true): Provide alternative definition for C++.
74070
74071 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74074         (SSIZE_MAX): New macro, if not already defined.
74075         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74076         than 2 GiB.
74077
74078 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74079
74080         Sync from coreutils.
74081         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74082         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74083         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74084         ULLONG_MAX doesn't work with 2.7.2.1.
74085
74086 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74089         From Ben Pfaff.
74090
74091         * modules/exclude (Depends-on): Depend on verify.
74092         * modules/strtoimax (Depends-on): Likewise.
74093         * modules/utimecmp (Depends-on): Likewise.
74094
74095 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * lib/exclude.c: Include verify.h.
74098         (verify): Remove.  All callers changed to use verify.h's version.
74099         * lib/strtoimax.c: Likewise.
74100         * lib/utimecmp.c: Likewis.e
74101
74102         Sync from coreutils.
74103         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74104         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74105         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74106         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74107         bother returning ENOSYS if settimeofday or stime fails; just let
74108         them return whatever errno they want to return.
74109         * lib/utimens.c: Include unistd.h, for dup2.
74110         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74111         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74112
74113 2005-10-02  Jim Meyering  <jim@meyering.net>
74114
74115         Sync from coreutils.
74116         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74117         from glibc-2.2.5 that fails for read-only files.
74118
74119 2005-10-02  Jim Meyering  <jim@meyering.net>
74120
74121         Sync from coreutils.
74122         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74123         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74124         `#if HAVE_CONFIG_H'.
74125         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74126         Remove AT_FDCWD test.
74127         Do not consume the fd unless successful.
74128         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74129         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74130         block, so that we don't even try to compile it if settimeofday is
74131         available.  This works around a compilation failure on OSF1 V5.1,
74132         due to stime requiring a `long int*' while tv_sec is `int'.
74133
74134 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74135
74136         Sync from coreutils.
74137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74138         against `yes', rather than just testing for nonempty.
74139
74140 2005-10-01  Simon Josefsson  <jas@extundo.com>
74141
74142         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74143         and Darwin.
74144
74145         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74146         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74147         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74148         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74149         Check if struct addrinfo is declared.
74150
74151 2005-10-01  Simon Josefsson  <jas@extundo.com>
74152
74153         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74154         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74155         AI_* and EAI_* definitions.  Protect function declarations.
74156
74157 2005-10-01  Jim Meyering  <jim@meyering.net>
74158
74159         Sync from coreutils.
74160
74161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74162         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74163         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74165         in the inet and nsl libraries.  Required on Solaris 5.7.
74166
74167 2005-10-01  Jim Meyering  <jim@meyering.net>
74168
74169         Sync from coreutils.
74170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74171         in the inet and nsl libraries.  Required on Solaris 5.7.
74172
74173 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74174
74175         * lib/getdelim.c (getdelim): Remove unused variables.
74176
74177 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74180         so that the code works even with ancient cpp.  Portability problem
74181         with GCC 2.7.2.1 reported by Thomas M.Ott.
74182
74183 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74184
74185         * modules/regex (Depends-on): Add strcase.
74186
74187         * modules/gethostname (Licence): Change from GPL to LGPL, since
74188         gethostname.c is a trivial implementation of a standard library
74189         function.
74190         * modules/poll (License): Change from GPL to LGPL, since it's
74191         derived from LGPL code.
74192
74193 2005-09-27  Jim Meyering  <jim@meyering.net>
74194
74195         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74196         HAVE_CONFIG_H.
74197
74198         * lib/intprops.h (signed_type_or_expr__): Define.
74199         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74200         for unsigned types.
74201
74202 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * lib/verify.h (verify_expr): Remove, replacing with:
74205         (verify_true): New macro that returns true instead of void.
74206         (verify_type__): Remove.
74207         (verify): Use verify_true rather than verify_type__.
74208
74209 2005-09-26  Bruno Haible  <bruno@clisp.org>
74210
74211         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74212         is necessary.
74213         (lib_SOURCES): Remove mbchar.c.
74214         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74215         (Files): Add m4/mbrtowc.m4.
74216         * modules/mbiter: Likewise.
74217         * modules/mbuiter: Likewise.
74218
74219 2005-09-26  Bruno Haible  <bruno@clisp.org>
74220
74221         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74222         compile mbchar.c if they are not both present.
74223         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74224         * m4/mbiter.m4 (gl_MBITER): Likewise.
74225         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74226         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74227         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74228
74229 2005-09-25  Jim Meyering  <jim@meyering.net>
74230
74231         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74232         also uses socklen_t.
74233
74234 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * lib/utimens.c (ENOSYS): Define if not already defined.
74237         (futimens): Support having a null PATH if the file descriptor
74238         is nonnegative.
74239
74240         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74241         Remove.
74242         (__attribute): Define to empty unless GCC 3.1 or later.
74243         This works around a core dump on OpenBSD 3.4, which has GCC
74244         2.95.3, which dumps core when given __attribute__(()).  It also
74245         simplifies other tests, since we really don't want to bother with
74246         worrying about which ancient version of GCC supported what.
74247         Original problem reported by Yoann Vandoorselaere, with part of
74248         the fix suggested by Derek Price.
74249
74250 2005-09-24  Jim Meyering  <jim@meyering.net>
74251
74252         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74253         so we can once again use a positive bitfield width of 1 -- now we
74254         don't have to explain why we were using a bitfield width of 2.
74255
74256 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74259         and similarly for the other external symbols.  Problem reported
74260         by James Gallager.
74261
74262         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74263         bug reported by Jim Meyering.
74264
74265         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74266         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74267         not needed, since socklen is a prerequisite module.
74268
74269 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74272         Problem reported by Eric Blake.
74273         (getaddrinfo): Initialize se so that it's not garbage.
74274         Redo internal storage allocation so that it doesn't make unportable
74275         assumptions about alignment.
74276         Fix a memory leak.
74277
74278         * lib/utimens.c (futimens): Use futimesat if available.
74279         Prefer it to futimes since it doesn't have the futimes bug.
74280
74281         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74282         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74283         Instead, declare a function that returns a pointer to an array,
74284         and use verify_type__ to declare the size of the array.
74285         Problem and germ of a solution reported by Bruno Haible.
74286         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74287         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74288
74289 2005-09-23  Jim Meyering  <jim@meyering.net>
74290
74291         Sync from coreutils.
74292         Correct build failure (socklen_t not defined) on at least
74293         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74295
74296 2005-09-23  Jim Meyering  <jim@meyering.net>
74297
74298         * modules/getaddrinfo (Depends-on): Add socklen.
74299
74300 2005-09-23  Bruno Haible  <bruno@clisp.org>
74301
74302         * tests/test-verify.c: New file.
74303
74304 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         Sync from coreutils.
74307
74308         * modules/argmatch (Depends-on): Add verify.
74309         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74310         unistd-safer.
74311         * modules/save-cwd (Depends-on): Likewise.
74312
74313         * modules/openat (Files): Add lib/openat-die.c.
74314         (Depends-on): Remove error, exitfail.
74315         Add dirname.
74316
74317         * modules/verify: New file.
74318         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74319         with "verify" module.
74320
74321 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         Sync from coreutils.
74324
74325         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74326         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74327         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74328         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74329         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74330         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74331         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74332         Don't bother checking for string.h, stdlib.h, unistd.h.
74333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74335         module's job.
74336         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74337         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74338
74339         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74340         (gl_GETDATE): Use it.
74341
74342         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74343
74344 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         Sync from coreutils.
74347
74348         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74349         stat-time.h.
74350         * lib/argmatch.h: Include verify.h
74351         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74352         (ARGMATCH_ASSERT): Remove; unused.
74353         * lib/canonicalize.c: Assume STDC_HEADERS.
74354         * lib/exclude.c: Include "strcase.h".
74355         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74356         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74357         and stdio-safer.h.
74358         (getusershell): Call fopen, not fopen_safer.
74359         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74360         Do not include unistd-safer.h.
74361         (save_cwd): Don't call fd_safer; no longer needed
74362         now that we include fcntl--.h.
74363
74364         * lib/getdate.y (relative_time): New type.
74365         (RELATIVE_TIME_0): New constant.
74366         (parser_control): Use relative_time instead of doing it ourselves.
74367         (%union): Add new relative_time rel member.
74368         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74369         Now typeless.
74370         (relunit, relunit_snumber): Now of type rel.
74371         (zone, rel, relunit, get_date): Adjust to above changes.
74372
74373         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74374         Do not include unistd-safer.h.
74375         (getloadavg): Don't call fd_safer; no longer needed
74376         now that we include fcntl--.h.
74377
74378         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74379         (make_dir_parents): Treat ENOSYS like EEXIST.
74380
74381         Improve quality of diagnostics on restore_cwd failure.
74382         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74383         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74384         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74385         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74386         each time through the loop.  Do not diagnose restore_cwd failure;
74387         that is the caller's job (and perhaps the caller does not care).
74388
74389         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74390         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74391         If the file already exists but is not a directory, don't bother
74392         to try to make its parents.
74393         Close potential file descriptor leak if we can't chdir("/") (!).
74394         Don't always return true if chdir($PWD) fails; return true only
74395         if the requested action was done successfully (except for the
74396         chdir($PWD)).
74397         Don't log final directory unless we actually made it.
74398         Refactor to avoid duplicate code to fix up permissions.
74399         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74400
74401         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74402         to make it a bit faster and (I hope) clearer.
74403         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74404         Fix bug in formats like %2N.
74405
74406         * lib/verify.h: New file.
74407
74408 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         Sync from coreutils.
74411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74412
74413 2005-09-22  Jim Meyering  <jim@meyering.net>
74414
74415         Sync from coreutils.
74416
74417         * m4/lstat.m4 (gl_FUNC_LSTAT):
74418         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74419         Remove obsolete comment.
74420         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74421         * m4/xstrtod.m4: Likewise.
74422
74423         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74424
74425 2005-09-22  Jim Meyering  <jim@meyering.net>
74426
74427         Sync from coreutils.
74428
74429         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74430
74431         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74432         the .tm_year member, since otherwise gcc-4.0 would now warn about
74433         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74434
74435         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74436         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74437
74438         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74439         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74440         when run in a time zone for which daylight savings time is in effect
74441         for the starting date.
74442
74443         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74444         stop us from restricting permissions of just-created absolute-named
74445         directories.
74446         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74447         to restore initial working directory.
74448         * lib/mkdir-p.c (make_dir_parents): New parameter:
74449         different_working_dir, to tell caller if/when we change the working
74450         directory and are unable to return to the initial one.
74451         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74452         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74453         `return false'.  This fixes a bug introduced on 2004-07-30.
74454
74455         * lib/openat.c (fdopendir): Be sure to close the supplied
74456         file descriptor before returning.  This makes our replacement
74457         implementation a little closer to Solaris's, where fdopendir
74458         ties the file descriptor to the returned DIR* pointer.
74459         * lib/openat.c (unlinkat): New function.
74460         * lib/openat.h (unlinkat): Add prototype.
74461         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74462         (openat_restore_fail): Rename from openat_restore_die.
74463         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74464
74465         Provide an alternative to exiting immediately upon save_cwd or
74466         restore_cwd failure.  Now, an application can arrange e.g.,
74467         to perform a longjump in that case.
74468         * lib/openat.c: Include dirname.h.
74469         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74470         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74471         and openat_restore_die rather than calling error directly.
74472         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74473
74474         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74475         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74476         define.
74477
74478         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74479         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74480                             int utc, int nanoseconds);
74481         Background:
74482         date should not have to allocate a megabyte of virtual memory to
74483         handle a format argument like +%1048575T.  When implemented with
74484         strftime, it must allocate such a buffer, use strftime to fill it
74485         in, print it, then free it.
74486         With fprintftime, it simply prints everything and exits.
74487         With no need for memory allocation, that's one fewer way to fail.
74488         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74489         optional field width, not before, so we accept %9:z, not %:9z.
74490         (my_strftime): Be sure to use L_('x') for literals.
74491
74492         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74493         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74494         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74495         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74496         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74497         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74498         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74499         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74500         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74501         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74502         * lib/xgethostname.c, lib/xreadlink.c:
74503         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74504
74505         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74506         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74507         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74508         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74509         and don't include <sys/file.h>).
74510
74511 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74512
74513         Sync from coreutils.
74514
74515         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74516         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74517         [!LDAV_DONE]: Avoid unused variable warning.
74518
74519 2005-09-21  Bruno Haible  <bruno@clisp.org>
74520
74521         * lib/unicodeio.h (unicode_to_mb): New declaration.
74522
74523 2005-09-20  Derek Price  <derek@ximbiot.com>
74524
74525         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74526         getaddrinfo.h.
74527
74528 2005-09-20  Bruno Haible  <bruno@clisp.org>
74529
74530         * gnulib-tool: Remove trailing slashes from the values specified for
74531         --source-base, --m4-base, --tests-base, --aux-dir.
74532         Suggested by Simon Josefsson <jas@extundo.com>.
74533
74534 2005-09-20  Bruno Haible  <bruno@clisp.org>
74535
74536         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74537         func_modules_to_filelist, func_import, func_create_testdir): Make all
74538         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74539         change when gnulib-tool is invoked in a different locale.
74540
74541 2005-09-19  Simon Josefsson  <jas@extundo.com>
74542
74543         * m4/socklen.m4: Fix typo.
74544
74545 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74546
74547         Use a consistent style for including <config.h>.
74548         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74549         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74550         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74551         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74552         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74553         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74554         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74555         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74556         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74557         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74558         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74559         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74560         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74561         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74562         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74563         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74564         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74565         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74566         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74567         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74568         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74569         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74570         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74571         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74572         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74573         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74574         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74575         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74576         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74577         lib/xstrtoumax.c, lib/yesno.c:
74578         Standardize inclusion of config.h.
74579         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74580         lib/inttostr.h:  Removed inclusion of config.h from header files.
74581         * lib/inttostr.c:  Adjusted in-tree users.
74582         * lib/timespec.h: Remove superfluous warning to include config.h.
74583         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74584         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74585         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74586         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74587         config.h with HAVE_CONFIG_H.
74588
74589 2005-09-19  Jim Meyering  <jim@meyering.net>
74590
74591         * modules/pathmax (License): Change to LGPL.
74592
74593 2005-09-19  Derek Price  <derek@ximbiot.com>
74594
74595         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74596
74597 2005-09-19  Bruno Haible  <bruno@clisp.org>
74598
74599         * gnulib-tool (import): Provide default for --tests-base.
74600
74601 2005-09-19  Bruno Haible  <bruno@clisp.org>
74602
74603         * doc/quote.texi: New file, extracted from gnulib.texi.
74604         * doc/ctime.texi: New file, extracted from gnulib.texi.
74605         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74606         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74607         * doc/gnulib.texi: Include them.
74608
74609 2005-09-18  Bruno Haible  <bruno@clisp.org>
74610
74611         Portability fix.
74612         * gnulib-tool (func_readlink): New function.
74613         (func_ln_if_changed): Use it.
74614
74615 2005-09-18  Bruno Haible  <bruno@clisp.org>
74616
74617         * gnulib-tool: Support --with-tests also with --import.
74618         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74619         (func_import): Use variables $testsbase and $inctests. Emit a
74620         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74621         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74622         SUBDIRS += $testsdir.
74623         (func_create_testdir): Update.
74624
74625 2005-09-18  Bruno Haible  <bruno@clisp.org>
74626
74627         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74628         instead of $dry_run.
74629         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74630         (func_ln_if_changed): Don't handle dry-run here.
74631         (func_import): In dry-run mode, detect more precisely which actions
74632         would be performed, and don't use "...ing" verbs.
74633
74634 2005-09-18  Bruno Haible  <bruno@clisp.org>
74635
74636         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74637         (func_import): Use join on two temporary files instead of three nested
74638         loops, in order to determine which files are new or old.
74639
74640 2005-09-18  Bruno Haible  <bruno@clisp.org>
74641
74642         * gnulib-tool (func_import): Comment out code that spits out the
74643         new files with --dry-run.
74644
74645 2005-09-18  Bruno Haible  <bruno@clisp.org>
74646
74647         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74648
74649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * lib/stat-time.h: New file.
74652         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74653         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74654         in a different way.
74655         (timespec_cmp): New function.
74656         * lib/utimecmp.c: Include stat-time.h.
74657         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74658         members exist, not on the obsolescent ST_MTIM_NSEC.
74659         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74660
74661 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74664
74665 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * MODULES.html.sh (File system functions): Add stat-time.
74668         * modules/stat-time: New file.
74669         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74670         is now done in a different way, by the stat-time module.
74671         * modules/utimecmp (Depends-on): Add stat-time.
74672
74673 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * m4/st_mtim.m4: Remove.  Superseded by...
74676         * m4/stat-time.m4: New file.
74677         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74678         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74679
74680 2005-09-15  Derek Price  <derek@ximbiot.com>
74681
74682         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74683
74684 2005-09-15  Derek Price  <derek@ximbiot.com>
74685
74686         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74687         * lib/regex_internal.c: Ditto, using this...
74688         (__GNUC_PREREQ): ...new macro.
74689         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74690         using...
74691         (__GNUC_PREREQ): ...this new macro.
74692
74693         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74694
74695 2005-09-15  Derek Price  <derek@ximbiot.com>
74696             Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74699         changes, consolidating in...
74700         * lib/regex_internal.h: ...this file.
74701
74702 2005-09-13  Jim Meyering  <jim@meyering.net>
74703
74704         * lib/canon-host.c: Filter through gnu indent and reword comments
74705         slightly.
74706         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74707
74708 2005-09-13  Derek Price  <derek@ximbiot.com>
74709
74710         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74711         failure.
74712         Reported by Jim Meyering  <jim@meyering.net>.
74713
74714 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74715
74716         * lib/base64.c: Typo.
74717         (base64_encode): Put b64str in initialized data section.
74718
74719 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         Merge glibc and coreutils changes into gnulib, plus a few
74722         extra fixes.
74723         * lib/md5.c: Use #error rather than a string.
74724         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74725         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74726         (__attribute__): Define to empty for non recent-GCC.
74727         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74728         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74729         Renamed from their non-__ counterparts, with new macros replacing
74730         them if not _LIBC.  Add __THROW attribute.
74731         (rol): Remove.
74732         (struct md5_ctx): Align buffer if using GCC.
74733         * lib/sha1.h (struct sha1_ctx): Likewise.
74734         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74735         The old name was backwards.
74736         (NOTSWAP): Remove; not used.
74737         (rol): New macro, moved here from md5.h.
74738         (sha1_process_block): Remove a FIXME that doesn't make sense.
74739
74740 2005-09-12  Derek Price  <derek@ximbiot.com>
74741
74742         Return usable errors from canon-host.
74743         * lib/canon-host.h: New file.
74744         * lib/canon-host.c (canon_host): Wrap...
74745         (canon_host_r): ...this new function, which now relies exclusively on
74746         getaddrinfo.
74747         (ch_strerror): New function.
74748         (last_cherror): New global.
74749         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74750         interface.
74751         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74752         void *.
74753         (freeaddrinfo): Free ai->ai_canonname when set.
74754
74755 2005-09-12  Derek Price  <derek@ximbiot.com>
74756
74757         Make canon-host require getaddrinfo.
74758         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74759         AC_LIBSOURCE canon-host.h.  Call...
74760         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74761         gl_GETADDRINFO.
74762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74763
74764 2005-09-12  Derek Price  <derek@ximbiot.com>
74765
74766         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74767         LGPL.
74768         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74769
74770 2005-09-12  Derek Price  <derek@ximbiot.com>
74771
74772         * lib/gai_strerror.c: Include config.h when available.  Include
74773         getaddrinfo.h before other headers to test interface.
74774         Reported by Larry Jones <lawrence.jones@ugs.com>.
74775
74776 2005-09-12  Derek Price  <derek@ximbiot.com>
74777             Paul Eggert  <eggert@cs.ucla.edu>
74778
74779         * modules/glob (Files): Add glob-libc.h.
74780
74781 2005-09-12  Derek Price  <derek@ximbiot.com>
74782             Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74785         glob_.h, glob-libc.h.
74786         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74787
74788 2005-09-12  Derek Price  <derek@ximbiot.com>
74789             Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74792         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74793         protecting things that should be done only in gnulib contexts.
74794         * lib/glob_.h: New file, containing only the glob things needed for
74795         gnulib.
74796         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74797         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74798         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74799         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74800         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74801         and to respect the namespace rules better.
74802
74803 2005-09-08  Simon Josefsson  <jas@extundo.com>
74804
74805         * modules/socklen: New file.
74806
74807 2005-09-08  Simon Josefsson  <jas@extundo.com>
74808
74809         * m4/socklen.m4: New file.
74810
74811 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * modules/utimens (Files): Add m4/utimbuf.m4, since
74814         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74815         Reported by Sergey Poznyakoff.
74816
74817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74820         definitions, since that's the preferred style in glibc.
74821         Fix a minor spacing issue, and update copyright notice to match
74822         glibc's.
74823
74824 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74825
74826         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74827
74828 2005-09-06  Simon Josefsson  <jas@extundo.com>
74829
74830         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74831         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74832
74833 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74836         warning.
74837
74838 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         * config/srclist.txt: Add glibc bug 1302.
74841
74842 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         Change bitset word type from unsigned int to unsigned long int,
74845         as this has better performance on typical 64-bit hosts.
74846         Port bitset code to hosts with unusual word sizes.
74847         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74848         (build_collating_symbol):
74849         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74850         argument is a bitset.  This is merely a style issue, but it makes
74851         it clearer that an entire array is expected.
74852         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74853         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74854         Port to the case where bitset_word is not the same as unsigned int.
74855         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74856         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74857         Likewise.
74858         * lib/regexec.c (check_dst_limits_calc_pos_1,
74859         check_subexp_matching_top):
74860         (build_trtable, group_nodes_into_DFAstates):
74861         Likewise.
74862         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74863         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74864         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74865         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74866         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74867         * lib/regcomp.c (optimize_subexps, lower_subexp):
74868         Work even if bitset_word has holes in its bitwise representation.
74869         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74870         * lib/regexec.c (check_dst_limits_calc_pos_1,
74871         check_subexp_matching_top):
74872         Likewise.
74873         * lib/regex_internal.c (re_string_reconstruct):
74874         Don't assume UCHAR_MAX == 255.
74875         * lib/regex_internal.h (bitset_set_all): Likewise.
74876         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74877         All uses changed.
74878         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74879         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74880         All uses changed.
74881         (BITSET_WORD_MAX): New macro.
74882         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74883         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74884         (bitset_empty, bitset_copy):
74885         Prefer sizeof (bitset) to multiplying it out ourselves.
74886         (bitset_not_merge): Remove; unused.
74887         (bitset_contain): Return bool, not unsigned int with one bit on.
74888         All callers changed.
74889         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74890         alignment than re_node_set; do this by defining a new internal
74891         type struct dests_alloc and using it to allocate memory.
74892
74893 2005-09-05  Bruno Haible  <bruno@clisp.org>
74894
74895         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74896         links.
74897
74898 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74899
74900         * modules/size_max (Makefile.am): Add size_max.h
74901
74902 2005-09-04  Derek Price  <derek@ximbiot.com>
74903
74904         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74905
74906 2005-09-03  Simon Josefsson  <jas@extundo.com>
74907
74908         * gnulib-tool: Fix typo.
74909
74910 2005-09-03  Simon Josefsson  <jas@extundo.com>
74911
74912         * config/srclist.txt: Add glibc bug 1293.
74913
74914 2005-09-03  Derek Price  <derek@ximbiot.com>
74915
74916         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74917         From Larry Jones <lawrence.jones@ugs.com>.
74918
74919 2005-09-02  Simon Josefsson  <jas@extundo.com>
74920
74921         * modules/socklen: New file.
74922
74923 2005-09-02  Simon Josefsson  <jas@extundo.com>
74924
74925         * modules/havelib: New module.
74926
74927         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74928         Use havelib.
74929
74930 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         Check for arithmetic overflow when calculating sizes, to prevent
74933         some buffer-overflow issues.  These patches are conservative, in the
74934         sense that when I couldn't determine whether an overflow was possible,
74935         I inserted a run-time check.
74936         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74937         macros.
74938         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74939         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74940         (re_xnrealloc, re_x2nrealloc): New inline functions.
74941         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74942         parse_bracket_exp):
74943         (build_equiv_class, build_charclass): Check for arithmetic overflow
74944         in size expression calculations.
74945         * lib/regex_internal.c (re_string_realloc_buffers):
74946         (build_wcs_upper_buffer, re_node_set_add_intersect):
74947         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74948         (re_dfa_add_node, register_state): Likewise.
74949         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74950         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74951         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74952         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74953
74954 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74957         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74958
74959 2005-09-02  Bruno Haible  <bruno@clisp.org>
74960
74961         Support for lib vs. lib64 distinction on biarch platforms.
74962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74963         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74965
74966 2005-09-02  Bruno Haible  <bruno@clisp.org>
74967
74968         * gnulib-tool (import): In the other first-use case, provide defaults
74969         as well.
74970
74971 2005-09-02  Bruno Haible  <bruno@clisp.org>
74972
74973         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74974         patches not yet found in the latest gettext release.
74975
74976 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74979         to avoid a collision with bits/local_lim.h in glibc.
74980         All uses changed.  Problem reported by Dmitry V. Levin in
74981         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74982
74983         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74984         bugs in int versus size_t comparisons.
74985         (re_string_context_at): Fix bug where the code assumed that
74986         Idx is signed.
74987
74988         Use bool where appropriate.
74989         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74990         All callers changed.
74991         (calc_eclosure_iter): Likewise, for ROOT arg.
74992         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74993         (build_charclass_op): Likewise, for NON_MATCH arg.
74994         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74995         (re_string_construct_common): Likewise, for ICASE arg.
74996         * lib/regexec.c (re_search_2_stub, re_search_stub):
74997         Likewise, for RET_LEN arg.
74998         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74999         (set_regs): Likewise, for FL_BACKTRACK arg.
75000         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75001         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75002         (calc_eclosure_iter, parse_bracket_exp):
75003         Use bool for internal variables that are booleans.
75004         * lib/regexec.c (re_search_internal, check_matching,
75005         proceed_next_node):
75006         (set_regs, build_sifted_states, sift_states_bkref):
75007         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75008         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75009         (find_collation_sequence_value):
75010         Likewise.
75011         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75012         (re_node_set_compare):
75013         Return bool, not int. All callers changed.
75014         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75015         (build_trtable, check_node_accept): Likewise.
75016         * lib/regex_internal.h: Include stdbool.h.
75017
75018         Fix bugs uncovered when converting to bool.
75019         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75020         failure instead of charging ahead blindly.
75021         * lib/regex_internal.c (register_state): Likewise.
75022         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75023         for freeing internal storage.
75024         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75025         bitset pieces used as boolean, to avoid undefined behavior
75026         on hosts that do int overflow checking.
75027
75028 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * config/srclist.txt: Add glibc bugs 1285-1287.
75031
75032 2005-09-01  Jim Meyering  <jim@meyering.net>
75033
75034         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75035         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75036         Require gl_STAT_MACROS, too.
75037
75038 2005-09-01  Bruno Haible  <bruno@clisp.org>
75039
75040         * gnulib-tool (import): In the first-use case, provide defaults.
75041
75042 2005-09-01  Bruno Haible  <bruno@clisp.org>
75043
75044         * gnulib-tool (func_import): Remove the .tmp files.
75045
75046 2005-09-01  Bruno Haible  <bruno@clisp.org>
75047
75048         * gnulib-tool (func_import): Fix handling of symbolic links.
75049
75050 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75053         old glibc regex code mishandles strings longer than 2**31 bytes.
75054         This patch fixes this when the regex code is used in gnulib
75055         (i.e., outside glibc).
75056
75057         This patch should not affect the use of the regex code inside
75058         glibc.  No doubt this problem also needs to be handled for glibc
75059         as well, but the result will be an incompatible change to the
75060         glibc ABI, and the old ABI will have to be supported too.  That
75061         can be the the subject for another patch.
75062
75063         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75064         governing whether the rest of this patch is active.  By default,
75065         the macro is disabled and the patch has no effect.
75066         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75067         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75068         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75069         (re_match_2, re_set_registers): Use the new types.
75070         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75071         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75072         New macros.
75073         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75074         (re_string_context_at, bin_tree_t, re_dfastate_t):
75075         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75076         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75077         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75078         (re_string_char_size_at, re_string_wchar_at):
75079         (re_string_elem_size_at):
75080         Use the new types and macros to port to 64-bit hosts.
75081         Use unsigned types for internal values, so that the code
75082         mostly works even for arrays larger than SSIZE_MAX.
75083         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75084         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75085         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75086         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75087         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75088         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75089         (calc_inveclosure, parse_dup_op, build_range_exp):
75090         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75091         (fetch_number, create_token_tree, mark_opt_subexp):
75092         Likewise.
75093         * lib/regex_internal.c (re_string_construct_common,
75094         create_ci_newstate):
75095         (create_cd_newstate, re_string_allocate, re_string_construct):
75096         (re_string_realloc_buffers, build_wcs_upper_buffer):
75097         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75098         (re_string_reconstruct, re_string_peek_byte_case):
75099         (re_string_fetch_byte_case, re_string_context_at):
75100         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75101         (re_node_set_init_copy, re_node_set_add_intersect):
75102         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75103         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75104         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75105         (re_acquire_state, re_acquire_state_context, register_state):
75106         Likewise.
75107         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75108         search_cur_bkref_entry):
75109         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75110         (re_search_internal, re_search_2_stub, re_search_stub)
75111         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75112         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75113         (update_cur_sifted_state, check_dst_limits):
75114         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75115         (check_subexp_limits, sift_states_bkref, merge_state_array):
75116         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75117         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75118         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75119         (expand_bkref_cache, check_node_accept_bytes):
75120         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75121         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75122         (acquire_init_state_context, check_halt_node_context):
75123         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75124         (sift_states_backward, clean_state_log_if_needed):
75125         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75126         (find_recover_state, transit_state_sb, transit_state_mb):
75127         (transit_state_bkref, build_trtable, match_ctx_clean):
75128         Likewise.
75129         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75130         to work around an assumption that REG_MISSING is negative.
75131
75132         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75133         (seek_collating_symbol_entry) [defined _LIBC]:
75134         (lookup_collation_sequence_value) [defined _LIBC]:
75135         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75136         Use prototypes rather than old-style function definitions.
75137         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75138         (transit_state_sb) [0]:
75139         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75140
75141         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75142         rm_eo.
75143
75144         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75145         (optimize_subexps, lower_subexp):
75146         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75147         since the signed shift might overflow.  Use 1u<<31 instead.
75148         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75149         Likewise.
75150         * lib/regexec.c (check_dst_limits_calc_pos_1,
75151         check_subexp_matching_top): Likewise.
75152
75153         * lib/regcomp.c (optimize_subexps, lower_subexp):
75154         Use CHAR_BIT rather than 8, for clarity.
75155         * lib/regexec.c (check_dst_limits_calc_pos_1):
75156         (check_subexp_matching_top): Likewise.
75157         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75158         have to worry about portability issues when shifting it left.
75159         Remove no-longer-needed test for table_size > 0.
75160         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75161         in a word, as the resulting behavior is undefined.
75162         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75163         in one case, a <= should have been an <, and in another case the
75164         whole test was missing.
75165         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75166         the standard name CHAR_BIT.
75167         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75168         this is not true on one's complement and signed-magnitude hosts.
75169
75170         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75171         next_last_offset.
75172         (struct re_dfa_t): Remove unused member states_alloc.
75173         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75174
75175 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75178         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75179         and large-file glibc and in 32-bit large-file Solaris.
75180
75181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75184         lengths fit in regoff_t; this isn't true if regoff_t is the same
75185         width as size_t.
75186         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75187         (= START + RANGE) instead of RANGE.  This avoids overflow
75188         problems when regoff_t is the same width as size_t.
75189         All callers changed.
75190         (re_search_2_stub): Check for overflow when adding the
75191         sizes of the two strings.
75192         (re_search_stub): Check for overflow when adding START
75193         to RANGE; if it occurs, substitute the extreme value.
75194
75195 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75198
75199 2005-08-31  Jim Meyering  <jim@meyering.net>
75200
75201         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75202         a pointer-to-const.
75203         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75204         (register_state): Likewise.
75205         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75206         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75207         (group_nodes_into_DFAstates): Likewise.
75208
75209 2005-08-31  Jim Meyering  <jim@meyering.net>
75210
75211         * check-module: Add a FIXME comment.
75212
75213 2005-08-31  Eric Blake  <ebb9@byu.net>
75214
75215         * modules/unistd-safer (Files): Add unistd--.h.
75216         * modules/stdio-safer (Files): Add stdio--.h.
75217
75218 2005-08-31  Derek Price  <derek@ximbiot.com>
75219
75220         * lib/getdelim.c (getdelim): Return EOF on EOF.
75221         Reported by Larry Jones <lawrence.jones@ugs.com>.
75222
75223 2005-08-31  Bruno Haible  <bruno@clisp.org>
75224
75225         Avoid unnecessary diffs in the generated lib/Makefile.am.
75226         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75227         the generated files.
75228         (func_import): Don't set cmd.
75229
75230 2005-08-31  Bruno Haible  <bruno@clisp.org>
75231
75232         * lib/strstr.c: Include <stddef.h>, for NULL.
75233         * lib/strcasestr.c: Likewise.
75234         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75235
75236 2005-08-31  Bruno Haible  <bruno@clisp.org>
75237
75238         * gnulib-tool: New option --macro-prefix.
75239         (func_import): Use macro_prefix.
75240         (import): Handle option --macro-prefix.
75241
75242 2005-08-31  Bruno Haible  <bruno@clisp.org>
75243
75244         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75245         Also use new variables cached_lgpl, cached_libtool.
75246
75247 2005-08-31  Bruno Haible  <bruno@clisp.org>
75248
75249         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75250         always instantiating them.
75251
75252 2005-08-31  Bruno Haible  <bruno@clisp.org>
75253
75254         * gnulib-tool (func_import): Read the previous cached settings
75255         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75256         earlier added by gnulib but are now dropped. Warn when a gnulib file
75257         overwrites a non-gnulib file.
75258
75259 2005-08-31  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75262         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75263         projects that don't keep autogenerated files in CVS. Put into
75264         actioncmd only the specified modules, not the transitive closure.
75265
75266 2005-08-31  Bruno Haible  <bruno@clisp.org>
75267
75268         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75269         Create directories that shall be filled.
75270         (import): Don't look for gl_* macros in configure.ac. Recurse across
75271         all directories containing a gnulib-cache.m4 files, if meaningful.
75272
75273 2005-08-31  Bruno Haible  <bruno@clisp.org>
75274
75275         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75276         (import): Set seen_libtool when we see gl_LIBTOOL.
75277
75278 2005-08-31  Bruno Haible  <bruno@clisp.org>
75279
75280         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75281         declaration macro definitions from generated gnulib.m4.
75282
75283 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75284
75285         * lib/iconvme.h: Add prototype for iconv_alloc.
75286
75287 2005-08-29  Simon Josefsson  <jas@extundo.com>
75288
75289         * lib/iconvme.c: Fix errno.
75290
75291 2005-08-29  Bruno Haible  <bruno@clisp.org>
75292
75293         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75294         that it works when the directory contains spaces.
75295
75296 2005-08-29  Bruno Haible  <bruno@clisp.org>
75297
75298         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75299
75300 2005-08-29  Bruno Haible  <bruno@clisp.org>
75301
75302         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75303         Emit more advice.
75304
75305 2005-08-29  Bruno Haible  <bruno@clisp.org>
75306         and Stepan Kasal  <kasal@ucw.cz>
75307
75308         * check-module: If more parameters are given, check each of them
75309         separately; add more exceptions, as noted by Jim Meyering.
75310         (check_module): New procedure.
75311         (%exempt_header): Now contains all exceptions.
75312
75313 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75314
75315         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75316
75317 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75318
75319         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75320
75321 2005-08-28  Bruno Haible  <bruno@clisp.org>
75322
75323         * m4/gnulib-tool.m4: New file.
75324
75325 2005-08-27  Jim Meyering  <jim@meyering.net>
75326
75327         * modules/unistd-safer (Files): Add pipe-safer.c.
75328         * modules/fcntl-safer (Files): Add creat-safer.c.
75329
75330 2005-08-27  Jim Meyering  <jim@meyering.net>
75331
75332         * m4/stdlib-safer.m4: New file.  From coreutils.
75333         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75334         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75335         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75336         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75337         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75338
75339 2005-08-27  Jim Meyering  <jim@meyering.net>
75340
75341         * lib/fopen-safer.c: Merge minor changes from coreutils.
75342         * lib/dup-safer.c: Likewise.
75343         * lib/fd-safer.c: Likewise.
75344
75345         Merge from coreutils.
75346         * lib/stdio--.h: New file.
75347         * lib/stdlib--.h: New file.
75348         * lib/mkstemp-safer.c: New file.
75349
75350         GNU tar needs these.
75351         * lib/pipe-safer.c: New file.
75352         * lib/creat-safer.c: New file.
75353         * lib/fcntl--.h (creat): Define to creat_safer.
75354         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75355         * lib/unistd--.h (pipe): Define to pipe_safer.
75356         * lib/unistd-safer.h: Declare pipe_safer.
75357
75358 2005-08-26  Simon Josefsson  <jas@extundo.com>
75359
75360         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75361         Haible <bruno@clisp.org>.
75362
75363 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/regex_internal.h: Remove all references to
75366         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75367         or better.
75368         (bitset_not, bitset_merge, bitset_not_merge):
75369         (bitset_mask, re_string_allocate, re_string_construct):
75370         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75371         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75372         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75373         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75374         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75375         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75376         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75377         (re_acquire_state_context):
75378         Remove unnecessary forward decls.
75379         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75380         Put __attribute at function definition,
75381         now that the function decl has been removed.
75382         * lib/regex_internal.c (re_string_peek_byte_case):
75383         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75384         Likewise.
75385
75386 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75387
75388         * m4/regex.m4: Add AC_PREREQ(2.50).
75389         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75390
75391 2005-08-25  Simon Josefsson  <jas@extundo.com>
75392
75393         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75394         __fsetlocking.
75395
75396 2005-08-25  Simon Josefsson  <jas@extundo.com>
75397
75398         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75399         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75400         GLIBC specific code.
75401
75402 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         Make regex safe for g++.  This fixes one real bug (an "err"
75405         that should have been "*err").  g++ problem reported by
75406         Sam Steingold.
75407         * lib/regex_internal.h (re_calloc): New macro, consistent with
75408         re_malloc etc.  All callers of calloc changed to use re_calloc.
75409         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75410         not int.  All callers changed.
75411         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75412         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75413         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75414         (find_recover_state): Change "err" to "*err"; this fixes what
75415         appears to be a real bug.
75416         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75417         versus int.
75418
75419 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * modules/regex (Depends-on): Add malloc, since the code
75422         assumes that !malloc(0) means failure.
75423
75424 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75427
75428         alloca modernization/simplification for regex.
75429         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75430         needs to be at the start of the file, and can be moved into
75431         regex_internal.h and simplified.
75432         * lib/regex_internal.h: Include <alloca.h>.
75433         (__libc_use_alloca) [!defined _LIBC]: New macro.
75434         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75435         now works outside glibc.
75436
75437 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * config/srclist.txt: Add glibc bugs 1241, 1245.
75440
75441 2005-08-25  Jim Meyering  <jim@meyering.net>
75442
75443         * lib/open-safer.c: Include <config.h>.
75444         Otherwise, we'd lose LARGEFILE support in any file using
75445         e.g. "fcntl--.h"
75446
75447 2005-08-25  Bruno Haible  <bruno@clisp.org>
75448
75449         * m4/minmax.m4: Require autoconf 2.52.
75450         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75451         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75452         alternatives of translit over the alphabet.
75453         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75454
75455 2005-08-24  Simon Josefsson  <jas@extundo.com>
75456
75457         * tests/test-getpass.c: New file.
75458
75459 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75462         for GNU regex features.
75463
75464 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75467         * lib/regex.h (regerror): Likewise.
75468
75469         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75470         requires this.  (The code never needed it.)
75471
75472         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75473         All uses of recently-renamed identifiers changed to use the new,
75474         POSIX-compliant names.  The code will build and run just fine
75475         without these changes, but it's better to eat our own dog food
75476         and use the standard-conforming names.
75477
75478         * lib/regex.h: Fix a multitude of POSIX name space violations.
75479         These changes have an effect only for programs that define
75480         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75481         do not change anything for programs compiled in the normal way.
75482         Also, there is no effect on the ABI.
75483
75484         (_REGEX_SOURCE): New macro.
75485         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75486         defined and _GNU_SOURCE is not; this fixes a name space violation.
75487
75488         Rename the following macros to obey POSIX requirements.
75489         The old names are still visible as macros if _REGEX_SOURCE is defined.
75490         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75491         RE_BACKSLASH_ESCAPE_IN_LISTS.
75492         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75493         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75494         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75495         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75496         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75497         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75498         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75499         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75500         (REG_INTERVALS): renamed from RE_INTERVALS.
75501         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75502         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75503         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75504         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75505         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75506         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75507         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75508         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75509         RE_UNMATCHED_RIGHT_PAREN_ORD.
75510         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75511         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75512         (REG_DEBUG): renamed from RE_DEBUG.
75513         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75514         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75515         unusual, since we can't clash with the POSIX REG_ICASE.
75516         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75517         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75518         (REG_NO_SUB): renamed from RE_NO_SUB.
75519         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75520         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75521         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75522         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75523         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75524         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75525         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75526         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75527         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75528         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75529         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75530         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75531         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75532         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75533         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75534         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75535         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75536         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75537         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75538         (REG_FIXED): Renamed from REGS_FIXED.
75539         (REG_NREGS): Renamed from RE_NREGS.
75540
75541         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75542         of other REG_* macros, since POSIX says the user is allowed to
75543         #undef these macros selectively.
75544
75545         (reg_errcode_t): Update comment stating what other tables need
75546         to be consistent.
75547
75548         Rename the following enum values to obey POSIX requirements.
75549         The old names are still visible as macros.
75550         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75551         is not defined, since GNU is supposed to be a superset of POSIX as
75552         much as possible, and since we want reg_errcode_t to be a signed
75553         type for implementation consistency.
75554         (_REG_NOERROR): Renamed from REG_NOERROR.
75555         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75556         (_REG_BADPAT): Renamed from REG_BADPAT.
75557         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75558         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75559         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75560         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75561         (_REG_EBRACK): Renamed from REG_EBRACK.
75562         (_REG_EPAREN): Renamed from REG_EPAREN.
75563         (_REG_EBRACE): Renamed from REG_EBRACE.
75564         (_REG_BADBR): Renamed from REG_BADBR.
75565         (_REG_ERANGE): Renamed from REG_ERANGE.
75566         (_REG_ESPACE): Renamed from REG_ESPACE.
75567         (_REG_BADRPT): Renamed from REG_BADRPT.
75568         (_REG_EEND): Renamed from REG_EEND.
75569         (_REG_ESIZE): Renamed from REG_ESIZE.
75570         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75571         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75572         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75573         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75574         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75575
75576         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75577         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75578         changed.  But support the old name if the new one is not defined
75579         and if _REGEX_SOURCE.
75580
75581         Change the following member names in struct re_pattern_buffer.
75582         The old names are still supported if !_REGEX_SOURCE.
75583         The new names are always supported, regardless of _REGEX_SOURCE.
75584         (re_buffer): Renamed from buffer.
75585         (re_allocated): Renamed from allocated.
75586         (re_used): Renamed from used.
75587         (re_syntax): Renamed from syntax.
75588         (re_fastmap): Renamed from fastmap.
75589         (re_translate): Renamed from translate.
75590         (re_can_be_null): Renamed from can_be_null.
75591         (re_regs_allocated): Renamed from regs_allocated.
75592         (re_fastmap_accurate): Renamed from fastmap_accurate.
75593         (re_no_sub): Renamed from no_sub.
75594         (re_not_bol): Renamed from not_bol.
75595         (re_not_eol): Renamed from not_eol.
75596         (re_newline_anchor): Renamed from newline_anchor.
75597
75598         Change the following member names in struct re_registers.
75599         The old names are still supported if !_REGEX_SOURCE.
75600         The new names are always supported, regardless of _REGEX_SOURCE.
75601         (rm_num_regs): Renamed from num_regs.
75602         (rm_start): Renamed from start.
75603         (rm_end): Renamed from end.
75604
75605         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75606         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75607         Prepend __ to parameter names.
75608
75609         Undo yesterday's changes.
75610
75611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75614         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75615         lib/regex.c.
75616
75617 2005-08-24  Jim Meyering  <jim@meyering.net>
75618
75619         Sync from coreutils.
75620         * m4/fcntl-safer.m4: New file.
75621
75622         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75623         and object files for this module.
75624
75625 2005-08-24  Jim Meyering  <jim@meyering.net>
75626
75627         Sync from coreutils.
75628         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75629
75630 2005-08-24  Jim Meyering  <jim@meyering.net>
75631
75632         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75633         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75634
75635 2005-08-24  Jim Meyering  <jim@meyering.net>
75636
75637         * modules/fcntl-safer: New module.
75638         * modules/fts (Depends-on): Add fcntl-safer.
75639         * MODULES.html.sh (File descriptor based Input/Output):
75640         Add fcntl-safer.
75641
75642 2005-08-24  Bruno Haible  <bruno@clisp.org>
75643
75644         Support for unit test modules.
75645         * modules/README: Mention tests modules.
75646         * modules/TEMPLATE-TESTS: New file.
75647         * gnulib-tool: New options --extract-tests-module, --with-tests and
75648         --tests-base (unused for the moment).
75649         (testsbase, inctests): New variables.
75650         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75651         (func_verify_module): Exclude TEMPLATE-TESTS.
75652         (func_verify_nontests_module, func_verify_tests_module): New functions.
75653         (func_get_dependencies): Add implicit dependency for tests modules.
75654         (func_get_tests_module): New function.
75655         (func_modules_transitive_closure): When --with-tests was specified,
75656         include the unit tests as well, unless explicitly avoided.
75657         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75658         (func_emit_tests_Makefile_am): New function.
75659         (func_create_testdir): When --with-tests was specified, emit a
75660         tests/ directory.
75661         * MODULES.html.sh (Future developments): Update.
75662
75663 2005-08-24  Bruno Haible  <bruno@clisp.org>
75664
75665         * modules/tls-tests: New file.
75666         * tests/test-tls.c: New file, from GNU gettext.
75667
75668 2005-08-24  Bruno Haible  <bruno@clisp.org>
75669
75670         * modules/lock-tests: New file.
75671         * tests/test-lock.c: New file, from GNU gettext.
75672
75673 2005-08-24  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/lock.h: Add multiple inclusion guard.
75676         * lib/tls.h: Add multiple inclusion guard.
75677
75678 2005-08-24  Bruno Haible  <bruno@clisp.org>
75679
75680         * gnulib-tool: Add support for the --aux-dir option to
75681         --create-testdir, --create-megatestdir, --test, --megatest.
75682         (func_create_testdir, func_create_megatestdir): Optionally emit a
75683         AC_CONFIG_AUX_DIR directive.
75684         (create-testdir, create-megatestdir, test, megatest): Provide a
75685         default value for $auxdir.
75686
75687 2005-08-24  Bruno Haible  <bruno@clisp.org>
75688
75689         * gnulib-tool (import): Use compound statement instead of subshell
75690         where possible.
75691
75692 2005-08-24  Bruno Haible  <bruno@clisp.org>
75693
75694         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75695
75696 2005-08-24  Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (func_version): Update.
75699
75700 2005-08-24  Bruno Haible  <bruno@clisp.org>
75701
75702         * gnulib-tool (func_import, func_create_testdir,
75703         func_create_megatestdir): Quote all autoconf macro arguments.
75704
75705 2005-08-24  Bruno Haible  <bruno@clisp.org>
75706
75707         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75708         option --force, because --force causes the aclocal.m4 of each
75709         subdirectory to be newer than the corresponding config.h.in.
75710
75711 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75714         All contents moved to gl_REGEX.
75715         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75716         assume that it does.
75717
75718 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * lib/regex.h (REG_NOSYS)
75721         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75722         Define, since POSIX requires it as of 2001.
75723         (_REG_ENOSYS)
75724         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75725         New private symbol, used to keep the enum signed in all cases.
75726         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75727         Youngman in
75728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75729
75730         * lib/regex_internal.c (re_string_skip_chars, register_state):
75731         (calc_state_hash):
75732         Remove forward decls; no longer needed now that we use prototypes.
75733         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75734         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75735         (clean_state_log_if_needed): Likewise.
75736
75737 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         * config/srclist.txt: Add glibc bugs 1231-1233.
75740
75741 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75742
75743         Fix problems reported by Sam Steingold in
75744         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75745         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75746         assumed that reg_errcode_t is a signed type, which is not
75747         necessarily true if _XOPEN_SOURCE is not defined.
75748         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75749         since some compilers warn about it otherwise.
75750
75751 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75754         (init_word_char, create_initial_state, duplicate_node_closure):
75755         (fetch_token, peek_token_bracket, build_range_exp):
75756         (build_collating_symbol): Remove forward decls; no longer needed
75757         now that we use prototypes.
75758
75759         * lib/regcomp.c:
75760         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75761         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75762         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75763         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75764         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75765         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75766         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75767         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75768         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75769         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75770         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75771         (build_charclass, build_charclass_op, fetch_number, create_tree):
75772         (create_token_tree, mark_opt_subexp, duplicate_tree):
75773         Use prototypes rather than old-style definitions.
75774
75775         * lib/regex_internal.c:
75776         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75777         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75778         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75779         (re_string_reconstruct, re_string_peek_byte_case):
75780         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75781         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75782         (re_node_set_init_copy, re_node_set_add_intersect):
75783         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75784         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75785         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75786         (re_acquire_state, re_acquire_state_context, register_state):
75787         (create_ci_newstate, create_cd_newstate, free_state):
75788         Likewise.
75789         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75790         re_search_2):
75791         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75792         (re_search_internal, prune_impossible_nodes):
75793         (acquire_init_state_context, check_matching, static):
75794         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75795         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75796         (update_regs, sift_states_backward, build_sifted_states):
75797         (clean_state_log_if_needed, merge_state_array):
75798         (update_cur_sifted_state, add_epsilon_src_nodes):
75799         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75800         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75801         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75802         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75803         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75804         (check_arrival, check_arrival_add_next_nodes):
75805         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75806         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75807         (check_node_accept_bytes, check_node_accept, extend_buffers):
75808         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75809         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75810         (sift_ctx_init):
75811         Likewise.
75812
75813         * lib/regex_internal.h:
75814         (re_string_allocate, re_string_construct, re_string_reconstruct):
75815         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75816         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75817         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75818         (re_string_context_at, re_string_peek_byte_case):
75819         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75820         is defined, since we now use prototypes always.
75821
75822         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75823         C89 or better.  All uses removed.
75824
75825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * config/srclist.txt: Add glibc bugs 1220-1227.
75828
75829 2005-08-20  Jim Meyering  <jim@meyering.net>
75830
75831         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75832         of unused local, dfa.
75833
75834 2005-08-20  Bruno Haible  <bruno@clisp.org>
75835
75836         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75837
75838 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75839
75840         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75841         (re_node_set_insert_last, re_dfa_add_node):
75842         Rename local variables to avoid GCC shadowing warnings.
75843
75844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75847         [defined lint]: Suppress bogus uninitialized-variable warnings.
75848
75849         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75850         and let the caller return REG_ESPACE if out of space.  This
75851         removes an uninitialied-variable warning with GCC 4.0.1, and also
75852         avoids taking the address of a local variable.  All callers
75853         changed.
75854
75855 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75858         $LIBCSRC/posix/regexec.c.
75859         Add glibc bug 1217 for regcomp.c.
75860
75861 2005-08-19  Jim Meyering  <jim@meyering.net>
75862
75863         * lib/regexec.c (proceed_next_node): Redo local variables to
75864         avoid GCC shadowing warnings.
75865
75866 2005-08-18  Bruno Haible  <bruno@clisp.org>
75867
75868         * lib/strstr.c (strstr): Fix return value in multibyte case.
75869         * lib/strcasestr.c (strcasestr): Likewise.
75870
75871 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75874
75875 2005-08-17  Jim Meyering  <jim@meyering.net>
75876
75877         Make the %s format (seconds since the epoch) work for a negative
75878         number and when used with a zero-padded field width, e.g. %015s.
75879
75880         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75881         label so that it precedes the code to set `digits'.  Otherwise,
75882         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75883         print `00-22'.  Now, it prints `-0022', as it should.
75884
75885 2005-08-17  Bruno Haible  <bruno@clisp.org>
75886
75887         * modules/strstr (Files): Add m4/mbrtowc.m4.
75888         (Depends-on): Add mbuiter.
75889
75890 2005-08-17  Bruno Haible  <bruno@clisp.org>
75891
75892         * modules/strcasestr: New file.
75893         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75894         strcasestr.
75895
75896 2005-08-17  Bruno Haible  <bruno@clisp.org>
75897
75898         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75899
75900 2005-08-17  Bruno Haible  <bruno@clisp.org>
75901
75902         * modules/mbuiter: New file.
75903         * MODULES.html.sh (Extended multibyte and wide character utilities):
75904         Add mbuiter.
75905
75906 2005-08-17  Bruno Haible  <bruno@clisp.org>
75907
75908         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75909         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75910
75911 2005-08-17  Bruno Haible  <bruno@clisp.org>
75912
75913         * m4/strcasestr.m4: New file.
75914
75915 2005-08-17  Bruno Haible  <bruno@clisp.org>
75916
75917         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75918         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75919
75920 2005-08-17  Bruno Haible  <bruno@clisp.org>
75921
75922         * lib/strcasestr.h: New file.
75923         * lib/strcasestr.c: New file.
75924
75925 2005-08-17  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/strcasecmp.c: Use mbuiter.h.
75928
75929 2005-08-17  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/mbuiter.h: New file.
75932
75933 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75936         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75937         and gl_GETOPT are both invoked via different paths (as happens
75938         with GNU tar CVS because it uses both argp and getopt), the former
75939         wins.
75940
75941 2005-08-16  Bruno Haible  <bruno@clisp.org>
75942
75943         * modules/tls: New file.
75944         * MODULES.html.sh (Multithreading): Add tls.
75945
75946 2005-08-16  Bruno Haible  <bruno@clisp.org>
75947
75948         * modules/strnlen1: New file.
75949         * MODULES.html.sh (String handling): Add strnlen1.
75950
75951 2005-08-16  Bruno Haible  <bruno@clisp.org>
75952
75953         * modules/strcase (Files): Add m4/mbrtowc.m4.
75954         (Depends-on): Add strnlen1, mbchar.
75955
75956 2005-08-16  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/mbiter: New file.
75959         * MODULES.html.sh (Extended multibyte and wide character utilities):
75960         Add mbiter.
75961
75962 2005-08-16  Bruno Haible  <bruno@clisp.org>
75963
75964         * modules/mbfile: New file.
75965         * MODULES.html.sh (Extended multibyte and wide character utilities):
75966         Add mbfile.
75967
75968 2005-08-16  Bruno Haible  <bruno@clisp.org>
75969
75970         * modules/mbchar: New file.
75971         * MODULES.html.sh (Extended multibyte and wide character utilities):
75972         New section.
75973
75974 2005-08-16  Bruno Haible  <bruno@clisp.org>
75975
75976         * m4/tls.m4: New file, from GNU gettext.
75977
75978 2005-08-16  Bruno Haible  <bruno@clisp.org>
75979
75980         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75981         always.
75982         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75983
75984 2005-08-16  Bruno Haible  <bruno@clisp.org>
75985
75986         * m4/mbiter.m4: New file.
75987
75988 2005-08-16  Bruno Haible  <bruno@clisp.org>
75989
75990         * m4/mbfile.m4: New file.
75991
75992 2005-08-16  Bruno Haible  <bruno@clisp.org>
75993
75994         * m4/mbchar.m4: New file.
75995
75996 2005-08-16  Bruno Haible  <bruno@clisp.org>
75997
75998         * lib/tls.h: New file, from GNU gettext.
75999         * lib/tls.c: New file, from GNU gettext.
76000
76001 2005-08-16  Bruno Haible  <bruno@clisp.org>
76002
76003         * lib/strnlen1.h: New file.
76004         * lib/strnlen1.c: New file.
76005
76006 2005-08-16  Bruno Haible  <bruno@clisp.org>
76007
76008         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76009         (mbi_init): Update.
76010         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76011         NUL byte, not after it.
76012
76013 2005-08-16  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/strcase.h (strcasecmp): Add note in comments.
76016         * lib/strncasecmp.c: Use code from strcasecmp.c.
76017         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76018         (strcasecmp): Work correctly in multibyte locales.
76019
76020 2005-08-16  Bruno Haible  <bruno@clisp.org>
76021
76022         * lib/mbiter.h: New file.
76023
76024 2005-08-16  Bruno Haible  <bruno@clisp.org>
76025
76026         * lib/mbfile.h: New file.
76027
76028 2005-08-16  Bruno Haible  <bruno@clisp.org>
76029
76030         * lib/mbchar.h: New file.
76031         * lib/mbchar.c: New file.
76032
76033 2005-08-16  Bruno Haible  <bruno@clisp.org>
76034
76035         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76036         the valid ones. Makes the comparison operations transitive:
76037         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76038         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76039
76040 2005-08-15  Simon Josefsson  <jas@extundo.com>
76041
76042         * modules/ssize_t (License): Change to 'unlimited'.
76043
76044         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76045
76046 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76049         Add comments for each pending glibc patch.
76050
76051 2005-08-15  Bruno Haible  <bruno@clisp.org>
76052
76053         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76054         __cplusplus is defined.
76055
76056 2005-08-14  Jim Meyering  <jim@meyering.net>
76057
76058         Sync from coreutils.
76059
76060         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76061         Use the hash-table-based cycle-detection code not just when
76062         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76063         Reported by James Youngman in
76064         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76065         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76066         FTS_TIGHT_CYCLE_CHECK.
76067         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76068         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76069         once again.
76070         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76071         * lib/fts.c (fd_safer): Remove decl.
76072         Include fcntl--.h rather than unistd-safer.h
76073         (fts_safe_changedir): Don't call fd_safer; no longer needed
76074         now that we include fcntl--.h.
76075
76076 2005-08-12  Simon Josefsson  <jas@extundo.com>
76077
76078         * modules/getndelim2: Use ssize_t module.
76079         * modules/getnline: Likewise.
76080         * modules/safe-read: Likewise.
76081         * modules/xreadlink: Likewise.
76082
76083         * modules/ssize_t: New file.
76084
76085 2005-08-12  Simon Josefsson  <jas@extundo.com>
76086
76087         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76088
76089 2005-08-12  Simon Josefsson  <jas@extundo.com>
76090
76091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76092         ssize_t.
76093
76094 2005-08-12  Simon Josefsson  <jas@extundo.com>
76095
76096         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76097         readline, getdelim and check_version.
76098         (Support for systems lacking ISO C 99: Sizes of integer types):
76099         Add size_max.
76100
76101 2005-08-12  Bruno Haible  <bruno@clisp.org>
76102
76103         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76104
76105 2005-08-11  Simon Josefsson  <jas@extundo.com>
76106
76107         * modules/readline: New file.
76108
76109         * modules/strnlen (Files): Add strnlen.h.
76110
76111 2005-08-11  Simon Josefsson  <jas@extundo.com>
76112
76113         * m4/readline.m4: New file.
76114
76115 2005-08-11  Simon Josefsson  <jas@extundo.com>
76116
76117         * lib/readline.h, readline.c: New file.
76118
76119 2005-08-11  Simon Josefsson  <jas@extundo.com>
76120
76121         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76122         gl_AVOID.
76123
76124 2005-08-11  Bruno Haible  <bruno@clisp.org>
76125
76126         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76127
76128 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76129
76130         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76131
76132 2005-08-10  Simon Josefsson  <jas@extundo.com>
76133
76134         * tests/test-iconvme.c: New file.
76135
76136 2005-08-10  Simon Josefsson  <jas@extundo.com>
76137
76138         * m4/strnlen.m4: New file.
76139
76140         * m4/strndup.m4: Don't check for strnlen declaration, done in
76141         strnlen.m4.
76142
76143 2005-08-10  Simon Josefsson  <jas@extundo.com>
76144
76145         * lib/strndup.c: Use strnlen.h.
76146
76147         * lib/strnlen.h: New file.
76148
76149 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76150
76151         * README: Typos.
76152
76153 2005-08-02  Simon Josefsson  <jas@extundo.com>
76154
76155         * modules/readline: New file.
76156
76157 2005-08-02  Simon Josefsson  <jas@extundo.com>
76158
76159         * modules/getdelim: New file.
76160
76161         * modules/getline: Rewrite, don't use getndelim2.
76162
76163 2005-08-02  Simon Josefsson  <jas@extundo.com>
76164
76165         * m4/getline.m4: Separate out getdelim stuff into separate module.
76166
76167         * m4/getdelim.m4: New file.
76168
76169 2005-08-02  Simon Josefsson  <jas@extundo.com>
76170
76171         * lib/getline.h, getline.c: Rewrite.
76172
76173         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76174
76175 2005-07-31  Bruno Haible  <bruno@clisp.org>
76176
76177         * lib/lock.h (gl_lock_initializer): New macro.
76178         (gl_lock_define_initialized): Use it.
76179         (gl_rwlock_initializer): New macro.
76180         (gl_rwlock_define_initialized): Use it.
76181         (gl_recursive_lock_initializer): New macro.
76182         (gl_recursive_lock_define_initialized): Use it.
76183
76184 2005-07-30  Karl Berry  <karl@gnu.org>
76185
76186         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76187         Report from Ben Pfaff, regarding getopt.
76188
76189 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76192         normal way.
76193         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76194         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76195         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76196         (gl_GETOPT): Use the new macros.  Most of the implementation
76197         is moved to the new macros.  This is for programs like Emacs
76198         that don't want all the functionality of gl_GETOPT.
76199
76200 2005-07-26  Bruno Haible  <bruno@clisp.org>
76201
76202         * m4/lock.m4: Update from GNU gettext.
76203
76204 2005-07-26  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/lock.h: Update from GNU gettext.
76207         * lib/lock.c: Update from GNU gettext.
76208
76209 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76212         obsolescent AC_TRY_RUN.  Include the default includes files, for
76213         'exit'.
76214
76215 2005-07-24  Bruno Haible  <bruno@clisp.org>
76216
76217         * modules/visibility: New file.
76218         * MODULES.html.sh (Misc): Add visibility.
76219
76220 2005-07-24  Bruno Haible  <bruno@clisp.org>
76221
76222         * m4/visibility.m4: New file.
76223
76224 2005-07-24  Bruno Haible  <bruno@clisp.org>
76225
76226         * doc/visibility.texi: New file.
76227
76228 2005-07-22  Bruno Haible  <bruno@clisp.org>
76229
76230         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76231         $(ALLOCA_H), redundant through BUILT_SOURCES.
76232         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76233         redundant through BUILT_SOURCES.
76234         * modules/byteswap (Makefile.am): Remove explicit dependency on
76235         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76236         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76237         $(FNMATCH_H), redundant through BUILT_SOURCES.
76238         * modules/getopt (Makefile.am): Remove explicit dependency on
76239         $(GETOPT_H), redundant through BUILT_SOURCES.
76240         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76241         redundant through BUILT_SOURCES.
76242         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76243         redundant through BUILT_SOURCES.
76244         * modules/stdbool (Makefile.am): Remove explicit dependency on
76245         $(STDBOOL_H), redundant through BUILT_SOURCES.
76246         * modules/stdint (Makefile.am): Remove explicit dependency on
76247         $(STDINT_H), redundant through BUILT_SOURCES.
76248         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76249         Remove explicit dependency on $(SYSEXITS_H).
76250         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76251
76252 2005-07-18  Simon Josefsson  <jas@extundo.com>
76253
76254         * lib/check-version.c (check_version): Accept identical versions too.
76255
76256 2005-07-18  Bruno Haible  <bruno@clisp.org>
76257
76258         * modules/lock: New file.
76259         * MODULES.html.sh (Multithreading): New section.
76260
76261 2005-07-18  Bruno Haible  <bruno@clisp.org>
76262
76263         * m4/lock.m4: New file, from GNU gettext.
76264
76265 2005-07-18  Bruno Haible  <bruno@clisp.org>
76266
76267         * lib/lock.h: New file, from GNU gettext.
76268         * lib/lock.c: New file, from GNU gettext.
76269
76270 2005-07-18  Bruno Haible  <bruno@clisp.org>
76271
76272         * lib/lock.h (gl_once_t): New type.
76273         (gl_once_define, gl_once): New macros.
76274         * lib/lock.c (fresh_once): New variable.
76275         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76276         functions.
76277
76278 2005-07-16  Simon Josefsson  <jas@extundo.com>
76279
76280         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76281         workaround, suggested by Bruno.
76282
76283 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * modules/xalloc (Depends-on): Add xalloc-die.
76286         * modules/xvasprintf (Depends-on): Add xalloc-die.
76287
76288 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76291         with a minor change.
76292
76293 2005-07-15  Bruno Haible  <bruno@clisp.org>
76294
76295         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76296         When using lib/poll.c, define poll as rpl_poll.
76297
76298 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * modules/argp (Depends-on): Remove unlocked-io.
76301
76302 2005-07-14  Derek Price  <derek@ximbiot.com>
76303
76304         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76305         for glob symlink bug.
76306
76307 2005-07-14  Bruno Haible  <bruno@clisp.org>
76308
76309         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76310         Instead, test for *_unlocked function declarations directly.
76311
76312 2005-07-11  Simon Josefsson  <jas@extundo.com>
76313
76314         * modules/size_max: New file.
76315
76316         * modules/xsize: Depend on size_max module for size_max.m4.
76317
76318 2005-07-11  Simon Josefsson  <jas@extundo.com>
76319
76320         * lib/size_max.h: New file.
76321
76322 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76323
76324         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76325         copyright symbol and the year.
76326         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76327         (version_etc_va): Use parameterized copyright notice.
76328         Reword to conform to the current GNU coding standards.
76329
76330 2005-07-11  Karl Berry  <karl@gnu.org>
76331
76332         * doc/gnulib.texi (Quoting): new node.
76333         (Initial import): more info, from Patrice.
76334
76335 2005-07-11  Bruno Haible  <bruno@clisp.org>
76336
76337         * gnulib-tool (func_usage): Document option --avoid.
76338         (Command line options): Handle --avoid.
76339         (func_acceptable): New function.
76340         (func_modules_transitive_closure): Use it.
76341
76342 2005-07-11  Bruno Haible  <bruno@clisp.org>
76343
76344         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76345         Reported by Jim Meyering.
76346
76347 2005-07-10  Bruno Haible  <bruno@clisp.org>
76348
76349         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76350         Needed when size_t is smaller than 'unsigned int'.
76351         Reported by Paul Eggert.
76352
76353 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76354
76355         * modules/argp (Depends-on): Add unlocked-io
76356
76357 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76358
76359         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76360         block of defines.
76361
76362 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76365         fix now.
76366
76367 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76368         and Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76371         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76372
76373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76374
76375         * modules/regex (Files): Add lib/regex_internal.c,
76376         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76377         (Depends-on): Add extensions.
76378         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76379
76380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76383         pathconf.
76384         * m4/same.m4 (gl_SAME): Likewise.
76385         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76386
76387         * m4/regex.m4: Adjust to new libc regex implementation.
76388         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76389         all the .c and .h parts of (the new) regex.
76390         Quote the m4 stuff better.
76391         Check for RE_ICASE bug of old gnulib.
76392         Check for REG_STARTEND of recent libc.
76393         Rename local variables from jm_* to gl_*.
76394         Quote operand of "test -f".
76395         Say "recent enough" version of libc, not "version 2".
76396         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76397         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76398         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76399         Remove check for btowc, isascii.
76400         Require AM_LANGINFO_CODESET.
76401
76402 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * lib/regex.c, regex.h: Sync from libc.
76405         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76406         * lib/regexec.c:
76407         New files, synced from libc, except that regex_internal.h
76408         currently has a small porting fix.
76409
76410 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76413         regex_internal.c, regexec.c.
76414         Add regex_internal.h too, but as a comment, since the libc version
76415         is currently broken in gnulib mode.
76416
76417 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         Support programs like Emacs that use gnulib but not gettext.
76420         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76421         * modules/gettext-h: New file.
76422         * modules/gettext (Files): Remove lib/gettext.h.
76423         (Depends-on): Add gettext-h.
76424         (Makefile.am): Remove lib_SOURCES.
76425         * modules/argmatch, modules/c-stack, modules/closeout:
76426         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76427         * modules/execute, modules/file-type, modules/getaddrinfo:
76428         * modules/getopt, modules/human, modules/javacomp:
76429         * modules/javaexec, modules/mkdir-p, modules/obstack:
76430         * modules/openat, modules/pagealign_alloc, modules/pipe:
76431         * modules/quotearg, modules/regex, modules/rpmatch:
76432         * modules/unicodeio, modules/userspec, modules/version-etc:
76433         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76434         * modules/xsetenv:
76435         Depend on gettext-h, not gettext.
76436
76437 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * gnulib-tool (func_import): Add support for 'public domain' license.
76440         * modules/alloca, modules/atexit, modules/memmove:
76441         Now public domain, not GPL.
76442         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76443         * modules/realloc, modules/strerror, modules/strtod:
76444         Now LGPL, not GPL.
76445
76446 2005-07-05  Bruno Haible  <bruno@clisp.org>
76447
76448         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76449         autoconf CVS. Needed for mingw.
76450
76451 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         Remove the dependency of the strftime module on the tzset module.
76454         * modules/strftime (Depends-on): Remove dependency on tzset.
76455
76456 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         Remove the dependency of the strftime module on the tzset module.
76459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76460         gl_FUNC_TZSET_CLOBBER.
76461
76462 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         Remove the dependency of the strftime module on the tzset module.
76465         * lib/strftime.c (my_strftime)
76466         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76467         Copy the input structure, to work around some of the bug with
76468         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76469         Solaris releases, you should also use the tzset module, but we won't
76470         require it as a dependency any more since we don't want LGPLed code
76471         to depend on GPLed code.
76472
76473 2005-07-02  Jim Meyering  <jim@meyering.net>
76474
76475         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76476         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76477         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76478         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76479
76480 2005-07-02  Jim Meyering  <jim@meyering.net>
76481
76482         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76483
76484 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76487         declares only 'struct timespec;' (!).
76488
76489 2005-07-01  Jim Meyering  <jim@meyering.net>
76490
76491         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76492         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76493         * lib/save-cwd.c, tempname.c:
76494         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76495         and don't include <sys/file.h>).
76496
76497 2005-06-29  Jim Meyering  <jim@meyering.net>
76498
76499         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76500         type name.  Use the variable name instead.
76501         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76502         Likewise.
76503
76504 2005-06-28  Simon Josefsson  <jas@extundo.com>
76505
76506         * modules/check-version (Files): Add check-version.m4.
76507
76508 2005-06-28  Simon Josefsson  <jas@extundo.com>
76509
76510         * m4/check-version.m4: New file, suggested by Jim Meyering
76511         <jim@meyering.net>.
76512
76513 2005-06-28  Simon Josefsson  <jas@extundo.com>
76514
76515         * lib/check-version.h, lib/check-version.c: New files.
76516
76517 2005-06-28  Simon Josefsson  <jas@extundo.com>
76518
76519         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76520         collision with global variable.  Better indentation.  Don't
76521         increment buffer pointer beyond buffer end.  Based on comments
76522         from Paul Eggert <eggert@cs.ucla.edu>.
76523
76524         * lib/base64.h: Indent.
76525
76526 2005-06-28  Simon Josefsson  <jas@extundo.com>
76527
76528         * doc/gnulib.texi (Library version handling): New section.
76529
76530 2005-06-28  Jim Meyering  <jim@meyering.net>
76531
76532         * check-module (find_included_lib_files): Hard-code another
76533         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76534         but modules/fts-lgpl (correctly) does not list those files.
76535
76536         * modules/canonicalize (Files): Add lib/pathmax.h.
76537
76538 2005-06-25  Simon Josefsson  <jas@extundo.com>
76539
76540         * modules/check-version: New file.
76541
76542 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76545         initializer of struct addrinfo, as an indication that we don't
76546         care how many members the structure has.
76547
76548 2005-06-24  Derek Price  <derek@ximbiot.com>
76549         and Bruno Haible  <bruno@clisp.org>
76550
76551         Remove stat module & update lstat.
76552         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76553         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76554         * m4/stat.m4: Remove this file.
76555
76556 2005-06-24  Derek Price  <derek@ximbiot.com>
76557         and Bruno Haible  <bruno@clisp.org>
76558
76559         Remove stat module & update lstat.
76560         * lib/stat.c: Remove this file...
76561         (slash_aware_lstat): ...moving this content and its support...
76562         * lib/lstat.c (rpl_lstat): ...into here.
76563         * lib/lstat.h: New file.
76564
76565 2005-06-24  Derek Price  <derek@ximbiot.com>
76566         and Bruno Haible  <bruno@clisp.org>
76567
76568         Remove stat module & update lstat.
76569         * config/srclist.txt (libc sources): Remove stat.
76570
76571 2005-06-24  Derek Price  <derek@ximbiot.com>
76572         and Bruno Haible  <bruno@clisp.org>
76573
76574         Remove stat module & update lstat.
76575         * MODULES.html.sh (stat): Remove.
76576         * MODULES.html: Regenerated.
76577         * modules/lstat (Description): Correct function name.
76578         (Files): Add "lstat.h".
76579         (Depends-on): Remove stat, add xalloc, stat-macros.
76580         * modules/stat: Remove this file.
76581         (Include): Add "lstat.h", remove <sys/stat.h>.
76582
76583 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76586         (ranged_convert): Don't save conversion in a temporary struct.
76587         This causes a warning with GCC 4.0.0, and anyway in the typical
76588         case it's not worth the extra 100 bytes or so of code.
76589         (ranged_convert, __mktime_internal): When calling a function via a
76590         pointer P, use P () rather than (*P) (), as we now assume C89 or
76591         better.
76592
76593 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76596         "who -r" failed to give output.  Problem reported by Tim Waugh.
76597
76598         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76599         (xcalloc): Use it to avoid needless tests.
76600         Problem reported by Jim Meyering.
76601
76602 2005-06-20  Derek Price  <derek@ximbiot.com>
76603
76604         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76605         unnecessary for Autoconfs > 2.59c.
76606
76607 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76608
76609         * lib/argp.h (__option_is_short): Check upper limit of
76610         __key. Isprint() requires its argument to have the value
76611         of an unsigned char or EOF.
76612
76613 2005-06-16  Jim Meyering  <jim@meyering.net>
76614
76615         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76616         when either N or S is zero.
76617
76618 2005-06-16  Derek Price  <derek@ximbiot.com>
76619
76620         * m4/bison.m4: Declare YACC & YFLAGS precious.
76621
76622 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76625         multibyte string or pattern, fall back on unibyte matching.
76626         Problem reported by James Youngman.
76627
76628 2005-06-08  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/csharpcomp: New file.
76631         * MODULES.html.sh (C#): Add csharpcomp.
76632
76633 2005-06-08  Bruno Haible  <bruno@clisp.org>
76634
76635         * m4/csharpcomp.m4: New file, from GNU gettext.
76636
76637 2005-06-08  Bruno Haible  <bruno@clisp.org>
76638
76639         * lib/csharpcomp.h: New file, from GNU gettext.
76640         * lib/csharpcomp.c: New file, from GNU gettext.
76641         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76642
76643 2005-06-08  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76646         warning on mingw.
76647
76648 2005-06-07  Derek Price  <derek@ximbiot.com>
76649
76650         Sync from CVS.
76651         * lib/glob_.h: Indent nested #ifdef.
76652
76653 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         Sync from coreutils.
76656         Use "file name" when talking about file names, instead of "filename"
76657         or "path", as per the GNU coding standards.
76658         * lib/mkdir-p.c: Renamed from makepath.c.
76659         (make_dir_parents): Renamed from make_path.  All callers changed.
76660         * lib/mkdir-p.h: Likewise.  All includers changed.
76661         * lib/filenamecat.c: Renamed from path-concat.c.
76662         (file_name_concat): Renamed from path_concat.  All callers changed.
76663         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76664         * lib/filenamecat.h: Likewise.  All includers changed.
76665         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76666         in comments or local variable names.
76667         * lib/basename.c: Likewise.
76668         * lib/canonicalize.c, canonicalize.h: Likewise.
76669         * lib/dirname.c, dirname.h: Likewise.
76670         * lib/euidaccess.c: Likewise.
76671         * lib/exclude.c: Likewise
76672         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76673         * lib/fsusage.c, fsuage.h: Likewise.
76674         * lib/fts.c, fts_.h: Likewise.
76675         * lib/getcwd.c: Likewise.
76676         * lib/getloadavg.c: Likewise.
76677         * lib/mkstemp.c: Likewise.
76678         * lib/mountlist.c, mountlist.h: Likewise.
76679         * lib/openat.c, openat.h: Likewise.
76680         * lib/readlink-stub.c: Likewise.
76681         * lib/readutmp.c, readutmp.h: Likewise.
76682         * lib/rename.c: Likewise.
76683         * lib/rmdir.c: Likewise.
76684         * lib/same.c: Likewise.
76685         * lib/savedir.c: Likewise.
76686         * lib/stripslash.c: Likewise.
76687         * lib/tempname.c: Likewise.
76688         * lib/xreadlink.c: Likewise.
76689         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76690         All uses changed.
76691         * lib/exclude.h: Likewise.
76692
76693         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76695         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76696         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76697         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76698         files have been getting away with it for years (MORE/BSD 4.3
76699         is extinct now).
76700         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76701         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76702
76703         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76704         Define to 256, not 255, as per modern POSIX.
76705
76706 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         Sync from coreutils.
76709         Use "file name" when talking about file names, instead of "filename"
76710         or "path", as per the GNU coding standards.
76711         * MODULES.html.sh: mkdir-p renamed from makepath.
76712         filenamecat renamed from path-concat.
76713         * modules/filenamecat: Renamed from modules/path-concat.
76714         (Files): filenamecat.h and filenamecat.c renamed from
76715         path-concat.h and path-concat.c.
76716         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76717         (Include): filenamecat.h, not path-concat.h.
76718         * modules/mkdir-p: Renamed from modules/makepath.
76719         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76720         makepath.c.
76721         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76722         (Include): mkdir-p.h, not makepath.h.
76723
76724 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         Sync from coreutils.
76727         * m4/mkdir-p.m4: Renamed from makepath.m4.
76728         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76729         Rename files from makepath.c to mkdir-p.c, and from
76730         makepath.h to mkdir-p.h.
76731         * m4/filenamecat.m4: Renamed from path-concat.m4.
76732         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76733         Rename files from path-concat.c to filenamecat.c,
76734         and from path-concat.h to filenamecat.h.
76735         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76736         "file name" in local variables or comments.
76737         * m4/rename.m4: Likewise.
76738
76739 2005-06-01  Bruno Haible  <bruno@clisp.org>
76740
76741         * modules/csharpexec: New file.
76742         * MODULES.html.sh (C#): New section.
76743
76744 2005-06-01  Bruno Haible  <bruno@clisp.org>
76745
76746         * m4/csharp.m4: New file, from GNU gettext.
76747         * m4/csharpexec.m4: New file, from GNU gettext.
76748
76749 2005-06-01  Bruno Haible  <bruno@clisp.org>
76750
76751         * lib/csharpexec.h: New file, from GNU gettext.
76752         * lib/csharpexec.c: New file, from GNU gettext.
76753         * lib/csharpexec.sh.in: New file, from GNU gettext.
76754
76755 2005-05-31  Derek Price  <derek@ximbiot.com>
76756             Paul Eggert  <eggert@cs.ucla.edu>
76757
76758         Sync from cvs.
76759         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76760
76761 2005-05-31  Derek Price  <derek@ximbiot.com>
76762             Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         Sync from cvs.
76765         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76766
76767 2005-05-29  Derek Price  <derek@ximbiot.com>
76768
76769         * config/srclist.txt (glob_.h, glob.c): Add these files.
76770
76771 2005-05-29  Derek Price  <derek@ximbiot.com>
76772
76773         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76774         * modules/glob: New file.
76775         * modules/getlogin_r: Add link to POSIX spec in description.
76776
76777 2005-05-29  Derek Price  <derek@ximbiot.com>
76778             Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * m4/glob.m4: New file.
76781
76782 2005-05-29  Derek Price  <derek@ximbiot.com>
76783             Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * lib/glob_.h, lib/glob.c: New files.
76786
76787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76790         * modules/fts-lgpl (Depends-on): Remove gettext.
76791
76792 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76795         and don't require gt_INTTYPES_PRI.
76796
76797 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76800
76801         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76802         the configuration hassle isn't worth it.
76803         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76804         (LONGEST_MODIFIER, PRIuMAX): Remove.
76805
76806 2005-05-27  Bruno Haible  <bruno@clisp.org>
76807
76808         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76809
76810 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76813         _POSIX_PTHREAD_SEMANTICS for Solaris.
76814
76815 2005-05-25  Derek Price  <derek@ximbiot.com>
76816
76817         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76818
76819 2005-05-25  Derek Price  <derek@ximbiot.com>
76820             Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76823         * lib/getlogin_r.c, getlogin_r.h: New files.
76824
76825 2005-05-25  Bruno Haible  <bruno@clisp.org>
76826             Derek Price  <derek@ximbiot.com>
76827
76828         * lib/getlogin_r.h: Simplify API documentation.
76829
76830 2005-05-23  Derek Price  <derek@ximbiot.com>
76831
76832         * modules/minmax (Files): Add m4/minmax.m4.
76833         (configure.ac): Add gl_MINMAX.
76834
76835 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76838         so that unistd-safer.h (GPL'ed code) need not be included.
76839
76840 2005-05-22  Bruno Haible  <bruno@clisp.org>
76841
76842         * m4/minmax.m4: New file.
76843         Based on a patch by Derek Price <derek@ximbiot.com>.
76844
76845 2005-05-22  Bruno Haible  <bruno@clisp.org>
76846
76847         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76848         (INT64_MIN): Fix definition.
76849         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76850
76851         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76852         NEED_SIGNED_INT_TYPES.
76853
76854         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76855         HAVE_SYSTEM_INTTYPES.
76856
76857 2005-05-22  Bruno Haible  <bruno@clisp.org>
76858
76859         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76860         Also include <sys/param.h> if it defines MIN, MAX.
76861         Based on a patch by Derek Price <derek@ximbiot.com>.
76862
76863 2005-05-21  Jim Meyering  <jim@meyering.net>
76864
76865         * modules/fts (Files): Add m4/inttypes-pri.m4.
76866         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76867
76868 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         New fts module.
76871         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76872         (setup_dir, free_dir): New functions.
76873         (enter_dir, leave_dir): Define trivial
76874         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76875         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76876         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76877         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76878         Move to fts-cycle.c.
76879         (fts_open): Use setup_dir.
76880         (fts_close): Use free_dir.
76881         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76882         This adds a label and some gotos, but the alternatives were messier.
76883         Check for memory allocation failure when entering a dir.
76884         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76885         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76886         (FTS): New member fts_cycle, that is a union that contains the
76887         old active_dir_ht and cycle_state.  All uses changed to mention
76888         fts_cycle.ht and fts_cycle.state.
76889         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76890         fts.c, with the following changes:
76891         (setup_dir, free_dir): New functions.
76892         (enter_dir): Now returns bool.  Return true if successful, false
76893         if memory exhausted.  All callers changed.
76894         Do not bother partly cleaning up on
76895         memory allocation failure; that is free_dir's job.
76896         However, free ad if hash_insert fails, to avoid memory leak.
76897         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76898         fts->fts_options to see which union member to use.
76899
76900 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76903         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76904
76905 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76908
76909 2005-05-20  Jim Meyering  <jim@meyering.net>
76910
76911         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76912         Now a macro, to pacify GCC.
76913
76914 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76915
76916         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76917         of -1.
76918
76919 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76920
76921         * lib/chown.c (rpl_chown): Return -1 on failure.
76922
76923 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76926         Don't check for stddef.h.
76927         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76928         don't use its results.
76929         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76930         since we include them unconditionally.  Don't require
76931         AM_STDBOOL_H, since stdbool is a prerequisite.
76932         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76933         since we assume C89 or better.
76934         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76935         as we don't use their results.
76936         Don't check for fchdir, memmove, memset, strrchr, as we use
76937         them unconditionally.
76938         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76939         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76940
76941 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76944         Include <stddef.h> unconditionally, since we assume C89 now.
76945         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76946         * lib/fts.c: Include fts_.h first, to check interface.
76947         Do not include intprops.h; no longer needed.
76948         Include cycle-check.h and hash.h, since fts_.h no longer does.
76949         Remove unnecessary casts of closedir to void.
76950         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76951         decide whether to decrement nlinks.
76952         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76953         (FTS): Use struct hash_table * instead of Hash_table, so that
76954         we no longer need to include hash.h here.
76955
76956 2005-05-18  Jim Meyering  <jim@meyering.net>
76957
76958         * modules/dirfd (License): Change to LGPL.  Most of the code
76959         is already in the public domain.
76960
76961 2005-05-18  Jim Meyering  <jim@meyering.net>
76962
76963         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76964         Reported by Yoann Vandoorselaere.
76965
76966 2005-05-17  Jim Meyering  <jim@meyering.net>
76967
76968         * m4/fts.m4: New file, from coreutils.
76969
76970 2005-05-17  Jim Meyering  <jim@meyering.net>
76971
76972         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76973
76974 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         Sync from coreutils.
76977         * m4/unlinkdir.m4: New file.
76978
76979 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         Sync from coreutils.
76982         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76983         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76984         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76985         White space changes only.
76986         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76987         special.
76988         * lib/yesno.c: Include getline.h, not ctype.h.
76989         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76990         Use getline to remove arbitrary restriction on response length.
76991
76992 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * config/srclist-update: Spell out "Street" in FSF postal
76995         mail address; this is the style the FSF seems to prefer.
76996
76997         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76998         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76999         this updates FSF postal mail address.
77000
77001         Sync from coreutils.
77002         * modules/unlinkdir: New file.
77003         * modules/yesno (Depends-on): Add getline.
77004         * MODULES.html.sh (File system functions): Add unlinkdir.
77005
77006 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77009         lib/strsep.h:
77010         Change the initial comment to refer to GPL, not LGPL.
77011         gnulib-tool will change it to LGPL as needed.
77012
77013         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77014         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77015         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77016         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77017         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77018         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77019         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77020         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77021         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77022         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77023         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77024         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77025         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77026         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77027         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77028         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77029         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77030         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77031         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77032         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77033         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77034         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77035         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77036         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77037         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77038         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77039         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77040         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77041         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77042         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77043         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77044         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77045         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77046         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77047         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77048         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77049         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77050         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77051         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77052         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77053         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77054         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77055         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77056         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77057         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77058         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77059         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77060         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77061         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77062         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77063         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77064         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77065         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77066         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77067         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77068         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77069         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77070         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77071         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77072         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77073         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77074         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77075         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77076         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77077         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77078         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77079         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77080         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77081         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77082         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77083         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77084         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77085         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77086         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77087         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77088         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77089         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77090         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77091         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77092         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77093         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77094         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77095         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77096         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77097         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77098         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77099         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77100         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77101         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77102         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77103         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77104         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77105         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77106         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77107         lib/yesno.c, lib/yesno.h:
77108         Update FSF postal mail address.
77109
77110 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77111
77112         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77113         tests/test-memmem.c, tests/test-stpncpy.c:
77114         Update FSF postal mail address.
77115
77116 2005-05-13  Bruno Haible  <bruno@clisp.org>
77117
77118         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77119         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77120         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77121         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77122         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77123         Add support for 64-bit integers in the MSVC compiler.
77124
77125 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77126
77127         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77128
77129 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77130
77131         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77132
77133 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * doc/getdate.texi (General date syntax): Don't say that date
77136         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77137         Problem reported by Nic Ferrier.
77138
77139 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77140
77141         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77142         specified in ai_socktype. Fix invalid ai_protocol
77143         check. ai_protocol is usually set to 0 or depending on
77144         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77145         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77146         ai_socktype / ai_protocol in the returned addrinfo structure.
77147
77148 2005-05-10  Simon Josefsson  <jas@extundo.com>
77149
77150         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77151         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77152
77153 2005-05-10  Karl Berry  <karl@gnu.org>
77154
77155         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77156         (from http://www.gnu.org/licenses).
77157         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77158         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77159         fdl.texi suffices.
77160
77161 2005-05-10  Karl Berry  <karl@gnu.org>
77162
77163         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77164         (COPYING.DOC): remove.
77165
77166         * config/srclist-update: new FSF address.
77167
77168 2005-05-10  Derek Price  <derek@ximbiot.com>
77169
77170         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77171         possible.
77172
77173 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77174             Bruno Haible  <bruno@clisp.org>
77175
77176         * modules/inet_ntop: New file.
77177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77178         inet_ntop.
77179
77180 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77181             Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/inet_ntop.m4: New file.
77184
77185 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77186             Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/inet_ntop.h: New file.
77189         * lib/inet_ntop.c: New file, from glibc with modifications.
77190
77191 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * modules/time_r (License): Change to LGPL.
77194         * modules/extensions (License): Change to LGPL.  Actually,
77195         the license is more permissive than that, but currently gnulib-tool
77196         doesn't know how to handle more-permissive licenses.
77197
77198         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77199         Problem reported by Dave Love.
77200
77201 2005-05-08  Jim Meyering  <jim@meyering.net>
77202
77203         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77204         blank.
77205
77206 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * modules/argmatch (Depends-on): Add stdbool.
77209         * modules/backupfile (Depends-on): Likewise.
77210         * modules/chdir-long (Depends-on): Likewise.
77211         * modules/closeout (Depends-on): Likewise.
77212         * modules/cycle-check (Depends-on): Likewise.
77213         * modules/dirname (Depends-on): Likewise.
77214         * modules/fnmatch (Depends-on): Likewise.
77215         * modules/fsusage (Depends-on): Likewise.
77216         * modules/fwriteerror (Depends-on): Likewise.
77217         * modules/getcwd (Depends-on): Likewise.
77218         * modules/getloadavg (Depends-on): Likewise.
77219         * modules/hard-locale (Depends-on): Likewise.
77220         * modules/makepath (Depends-on): Likewise.
77221         * modules/mountlist (Depends-on): Likewise.
77222         * modules/nanosleep (Depends-on): Likewise.
77223         * modules/posixtm (Depends-on): Likewise.
77224         * modules/quotearg (Depends-on): Likewise.
77225         * modules/readtokens (Depends-on): Likewise.
77226         * modules/readtokens0 (Depends-on): Likewise.
77227         * modules/readutmp (Depends-on): Likewise.
77228         * modules/save-cwd (Depends-on): Likewise.
77229         * modules/strftime (Depends-on): Likewise.
77230         * modules/userspec (Depends-on): Likewise.
77231         * modules/utimecmp (Depends-on): Likewise.
77232         * modules/xgetcwd (Depends-on): Likewise.
77233         * modules/xnanosleep (Depends-on): Likewise.
77234         * modules/xstrtod (Depends-on): Likewise.
77235         * modules/yesno (Depends-on): Likewise.
77236
77237 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77240         needless checks.
77241
77242 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         Merge from coreutils.  Among other things,
77245         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77246         * lib/fd-safer.c: New file.
77247         * lib/fcntl-safer.h, open-safer.c: Remove.
77248         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77249         * lib/dup-safer.c: Include unistd-safer.h first.
77250         Don't include errno.h.
77251         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77252         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77253         * lib/file-type.c: Rely on file-type.h change.
77254         * lib/getloadavg.c: Include unistd-safer.h.
77255         (getloadavg): Use safer open.
77256         * lib/getusershell.c: Include "stdio-safer.h".
77257         (getusershell): Use safer fopen.
77258         * lib/long-options.c (long_options): Use NULL rather than 0.
77259         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77260         'free'.
77261         * lib/modechange.c: Likewise.
77262         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77263         (MODE_DONE): New constant.
77264         (struct mode_change): Remove 'next' member.
77265         (make_node_op_equals): New function; like the old one of the
77266         same name, except it allocates an array.
77267         (mode_compile, mode_create_from_ref): Use it.
77268         (mode_compile): Allocate result as an array, not a linked list.
77269         Parse octal string ourself, so that we catch mistakes like "+0".
77270         (mode_adjust): Arg is an array, not a linked list.
77271         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77272         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77273         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77274         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77275         Remove.  This is now stat-macros.h's job.
77276         (talloc): Remove.  All callers replaced by xalloc, so that
77277         our invokers don't have to worry about reporting memory failures.
77278         (make_node_op_equals): Remove.
77279         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77280         New constants.
77281         (struct mode_change): Moved here from modechange.h.
77282         (mode_append_entry): Remove.
77283         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77284         apps to have incorrect behavior.  Use simpler algorithm for head
77285         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77286         Detect more invalid usages rather than having somewhat-random behavior.
77287         Don't insert an "a=" action, as that leads to incorrect behavior.
77288         (mode_compile, mode_create_from_ref): Return NULL on error instead
77289         of an enum, since now there's only one way to have an error.  All
77290         callers changed.
77291         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77292         at the correct time.  Simplify calculation of "+u" and its ilk.
77293         Don't mishandle "+X".
77294         (mode_free): Remove "register" and localize decls.
77295         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77296         (struct mode_change): Move to modechange.c; callers don't
77297         need to see this stuff.
77298         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77299         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77300         (mode_change, mode_adjust): Reflect the new signatures noted above.
77301         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77302         that might redefine system include files.
77303         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77304         (my_usleep): Use NULL rather than (void *) 0.
77305         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77306         Use siginterrupt to specify that system calls should be interrupted.
77307         (rpl_nanosleep): Move initialization of suspended closer to call of
77308         my_usleep.
77309         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77310         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77311         (desirable_utmp_entry): New function.
77312         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77313         using x2nrealloc, to simplify logic.
77314         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77315         size calculation.  Do not assume utmp file is a regular file.
77316         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77317         (READ_UTMP_CHECK_PIDS): New constant.
77318         * lib/save-cwd.c: Include unistd-safer.h.
77319         (save_cwd): Use fd_safer.
77320         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77321         [!_LIBC] Include "stat-macros.h" instead.
77322         * lib/unistd-safer.h (fd_safer): New decl.
77323
77324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * modules/getloadavg (Depends-on): Add unistd-safer.
77327         * modules/getusershell (Depends-on): Add stdio-safer.
77328         * modules/lstat (Depends-on): Remove xalloc.
77329         * modules/mkstemp (Depends-on): Add stat-macros.
77330         * modules/modechange (Depends-on): Remove xstrtol.
77331         Add stat-macros, xalloc.
77332         * modules/save-cwd (Depends-on): Add unistd-safer.
77333         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77334         * modules/unistd-safer (Files): Add lib/fd-safer.c
77335         (Makefile.am): Remove lib_SOURCES.
77336
77337         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77338         Remove fcntl-safer; unistd-safer supersedes it.
77339
77340 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77341
77342         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77343         AC_HEADER_STAT.
77344         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77345         (gl_PREREQ_CHOWN): Remove.
77346         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77347         it.  Don't require AC_HEADER_STAT.
77348         (gl_PREREQ_LSTAT): Remove.
77349         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77350         Don't require AC_HEADER_STAT.
77351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77352         (gl_PREREQ_RMDIR): Remove.
77353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77354         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77355         the stat-macros module a prerequisite.
77356         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77357         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77358         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77359         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77360         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77361         variable names.
77362         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77363         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77364         variable prefixes.
77365         * m4/fcntl-safer.m4: Remove.
77366         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77367         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77368         Invoke gl_PREREQ_FD_SAFER.
77369         (gl_PREREQ_FD_SAFER): New macro.
77370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77371         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77372         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77373         Remove duplicate call to AC_LIBOBJ(readutmp).
77374         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77375
77376         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77377         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77378
77379 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77380
77381         * MODULES.html.sh (Misc): Add byteswap.
77382
77383 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77384
77385         * modules/getcwd (Depends-on): Add extensions.
77386         * modules/openat (Depends-on): Likewise.
77387
77388 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77389
77390         * modules/byteswap: New file.
77391
77392 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77393
77394         * m4/byteswap.m4: New file.
77395
77396 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77397
77398         * lib/byteswap_.h: New file.
77399
77400 2005-04-25  Karl Berry  <karl@gnu.org>
77401
77402         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77403
77404 2005-04-25  Albert Chin  <china@thewrittenword.com>
77405
77406         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77407         Toolkit C bug.
77408
77409 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77410
77411         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77412         (func_ln_if_changed): Remove forcibly for no error message
77413         in case file does not exist.
77414
77415 2005-04-19  Simon Josefsson  <jas@extundo.com>
77416
77417         * gnulib-tool (Options): Make --symlink mean --symbolic.
77418
77419 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77420
77421         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77422
77423 2005-04-16  Simon Josefsson  <jas@extundo.com>
77424
77425         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77426
77427 2005-04-15  Simon Josefsson  <jas@extundo.com>
77428
77429         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77430
77431 2005-04-15  Simon Josefsson  <jas@extundo.com>
77432
77433         * gnulib-tool: Rename --symlink to --symbolic.
77434
77435 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77436
77437         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77438         symbolic links to files instead of copying/moving.  Add --aux-dir,
77439         specifying directory relative --dir where auxiliary build tools
77440         are placed.
77441
77442 2005-04-14  Bruno Haible  <bruno@clisp.org>
77443
77444         * modules/allocsa (License): Change to LGPL.
77445         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77446
77447 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77448
77449         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77450         that "UTC +1 second" continues to work.  Problem reported
77451         by Dmitry V. Levin.
77452         (relunit_snumber): New rule.
77453         (relunit): Use it.
77454
77455 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * lib/getdate.y (universal_time_zone_table): New constant.
77458         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77459         universal_time_zone_table.
77460         (lookup_zone): Prefer universal_time_zone_table to
77461         local_time_zone_table, so that "GMT" time stamps are allowed in
77462         London during the summer.  Problem reported by Ian Abbott.
77463
77464 2005-04-12  Jim Meyering  <jim@meyering.net>
77465
77466         * lib/human.c (humblock): Set *options even when returning due to
77467         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77468         warning from gcc-4.
77469
77470 2005-04-09  Jim Meyering  <jim@meyering.net>
77471
77472         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77473         -Wuninitialized: initialize tm0.tm_year.
77474
77475 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77478         count, since there's no maximum.  All uses changed.
77479         Add member dsts_seen.
77480         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77481         not being INT_MAX.
77482         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77483         Use pc_rels_seen to decide whther a date is absolute.
77484
77485         * lib/getdate.y (number): Don't overwrite year.
77486         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77487         check.
77488
77489 2005-04-02  Simon Josefsson  <jas@extundo.com>
77490
77491         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77492         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77493
77494 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77495
77496         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77497         where no absolute path name can be longer than PATH_MAX.
77498
77499 2005-03-27  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77502
77503 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77506         "one's complement" -> "ones' complement" in comment, as per Knuth.
77507         "value of type" -> "type or expression" in comment.
77508         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77509
77510 2005-03-26  Jim Meyering  <jim@meyering.net>
77511
77512         Comment nits.
77513         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77514         Correct typos: s/or/of/.
77515
77516 2005-03-26  Jim Meyering  <jim@meyering.net>
77517
77518         * modules/check-include-files: Move to ../ and rename to...
77519         * check-module: ...this.
77520
77521 2005-03-25  Jim Meyering  <jim@meyering.net>
77522
77523         * modules/xvasprintf (Files): Add xalloc.h.
77524
77525 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77526
77527         * modules/gettext (Files): config/config.rpath ->
77528         build-aux/config.rpath
77529         * modules/iconv (Files): Likewise.
77530         Problem reported by Oskar Liljeblad.
77531
77532 2005-03-23  Jim Meyering  <jim@meyering.net>
77533
77534         * modules/check-include-files: New script to check for
77535         missing dependencies, multiple includes, etc.
77536
77537         * modules/c-strtold (Depends-on): Add xalloc.
77538         * modules/c-strtod (Depends-on): Add xalloc.
77539         * modules/hash (Depends-on): Add xalloc.
77540         (Files): Remove lib/xalloc.h.
77541
77542         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77543         * modules/userspec (Files): Add lib/inttostr.h.
77544
77545 2005-03-23  Jim Meyering  <jim@meyering.net>
77546
77547         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77548
77549 2005-03-22  Jim Meyering  <jim@meyering.net>
77550
77551         * modules/stat-macros: New module.
77552         * modules/canonicalize, modules/euidaccess, modules/file-type,
77553         * modules/filemode, modules/lchown, modules/makepath,
77554         * modules/rmdir, modules/stat: Depend on new stat-macros module
77555         rather than listing lib/stat-macros.h manually.
77556         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77557
77558 2005-03-22  Jim Meyering  <jim@meyering.net>
77559
77560         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77561
77562 2005-03-22  Bruno Haible  <bruno@clisp.org>
77563
77564         * config/srclist.txt: Replace target directory 'config' with
77565         'build-aux'.
77566         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77567         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77568         ../build-aux/.
77569
77570 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77571
77572         * modules/chdir-long (Depends-on): Add mempcpy.
77573
77574         * modules/acl, modules/backupfile, modules/c-strtod,
77575         modules/c-strtold, modules/canon-host, modules/canonicalize,
77576         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77577         modules/exclude, modules/exitfail, modules/file-type,
77578         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77579         modules/getdate, modules/getline, modules/getpagesize,
77580         modules/getpass, modules/getugroups, modules/group-member,
77581         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77582         modules/inttostr, modules/long-options, modules/makepath,
77583         modules/md5, modules/memcasecmp, modules/memcoll,
77584         modules/modechange, modules/mountlist, modules/path-concat,
77585         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77586         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77587         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77588         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77589         modules/strftime, modules/strndup, modules/strverscmp,
77590         modules/timespec, modules/unlocked-io, modules/userspec,
77591         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77592         modules/yesno:
77593         Remove lib_SOURCES line from Makefile.am section, as this is now
77594         done automatically by the corresponding Autoconf macro.
77595
77596 2005-03-21  Jim Meyering  <jim@meyering.net>
77597
77598         Changes imported from coreutils.
77599
77600         * lib/cycle-check.c: Don't include xalloc.h.
77601
77602         * lib/path-concat.c: Don't include assert.h.
77603         (path_concat): Remove assertion that would have triggered
77604         for ABASE starting with more than one slash.
77605         Reported by Andreas Schwab.
77606
77607         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77608         properly when ABASE is an absolute file name.
77609         Correct the description of this function.
77610         Include <assert.h>.
77611         Add an assertion and a test driver.
77612         This fixes a bug introduced on 2004-07-02.
77613         Andreas Schwab reported the resulting failure of cp --parents:
77614         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77615
77616 2005-03-21  Jim Meyering  <jim@meyering.net>
77617
77618         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77620
77621 2005-03-21  Jim Meyering  <jim@meyering.net>
77622         and  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77625         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77626         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77627         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77628         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77629         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77630         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77631         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77632         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77633         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77634         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77635         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77636         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77637         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77638         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77639         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77640         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77641         for these modules.
77642
77643 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77646         (which shouldn't happen), generate nothing instead of returning 0
77647         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77648
77649 2005-03-16  Bruno Haible  <bruno@clisp.org>
77650
77651         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77652         HAVE_LONGLONG_64BIT.
77653
77654 2005-03-16  Bruno Haible  <bruno@clisp.org>
77655
77656         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77657         HAVE_LONGLONG_64BIT.
77658
77659 2005-03-16  Bruno Haible  <bruno@clisp.org>
77660
77661         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77662         HAVE_LONGLONG_64BIT.
77663
77664 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77667         reliably distinguish strftime failure from empty output on POSIX
77668         hosts.
77669
77670 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77673         (iconv_string): Don't guess a size-zero buffer, as that might cause
77674         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77675         result would be 'too large', where 'too large' is (heuristically)
77676         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77677         overflow concerns.  This will prevent some unwanted malloc failures
77678         when the inputs are very large.
77679
77680 2005-03-15  Karl Berry  <karl@gnu.org>
77681
77682         * config/srclist.txt (config.rpath): from gettext.
77683         * config/config.rpath: update.
77684
77685 2005-03-15  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77688         to 'negate'.
77689
77690         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77691         variable.
77692
77693         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77694         results.
77695
77696 2005-03-14  Simon Josefsson  <jas@extundo.com>
77697
77698         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77699         <fx@gnu.org>.
77700
77701 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77704         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77705         intprops.h.
77706         * lib/strtol.c: Likewise.
77707
77708 2005-03-14  Jim Meyering  <jim@meyering.net>
77709
77710         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77711         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77712         to be nonzero so that we (and caller) can detect the difference
77713         between a valid zero-length expansion and an error return, even
77714         when the underlying strftime fails before writing anything into
77715         that location.
77716
77717 2005-03-14  Bruno Haible  <bruno@clisp.org>
77718
77719         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77720         Update from GNU gettext 0.14.3.
77721
77722 2005-03-10  Jim Meyering  <jim@meyering.net>
77723
77724         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77725
77726 2005-03-10  Jim Meyering  <jim@meyering.net>
77727
77728         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77729         so that this module works on systems without fchdir.
77730
77731 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         Factor int-properties macros into a single file, except for
77734         glibc-related files.
77735         * lib/intprops.h: New file.
77736         * lib/getloadavg.c: Include it instead of limits.h.
77737         (INT_STRLEN_BOUND): Remove.
77738         * lib/human.c: Include intprops.h.
77739         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77740         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77741         302/1000.
77742         * lib/inttostr.h: Include intprops.h instead of limits.h.
77743         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77744         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77745         for consistency with intprops.h.
77746         (time_t_is_integer, twos_complement_arithmetic): Use them.
77747         * lib/sig2str.h: Include <signal.h>, intprops.h.
77748         (INT_STRLEN_BOUND): Remove.
77749         * lib/strftime.c (TYPE_SIGNED): Remove.
77750         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77751         * lib/strtol.c: Adjust comments to match intprops.h.
77752         * lib/userspec.c: Include intprops.h.
77753         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77754         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77755         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77756         instead of rolling our own expressions.
77757         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77758
77759         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77760         instead of int.
77761         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77762         the right thing even if adding 1900 would overflow.  Similarly
77763         for tm_mon + 1 and tm_yday + 1.
77764         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77765         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77766         (DO_SIGNED_NUMBER): New macro.
77767         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77768
77769 2005-03-07  Bruno Haible  <bruno@clisp.org>
77770
77771         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77772
77773 2005-03-07  Bruno Haible  <bruno@clisp.org>
77774
77775         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77776
77777 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77778
77779         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77780         (func_import): Only replace files via --import when they have actually
77781         changed.
77782
77783 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77784
77785         * m4/mmap-anon.m4: New file.
77786         * m4/pagealign_alloc.m4: New file.
77787
77788 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77789             Bruno Haible  <bruno@clisp.org>
77790
77791         * modules/pagealign_alloc: New file.
77792         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77793
77794 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77795             Bruno Haible  <bruno@clisp.org>
77796
77797         * lib/pagealign_alloc.h: New file.
77798         * lib/pagealign_alloc.c: New file.
77799
77800 2005-03-03  Bruno Haible  <bruno@clisp.org>
77801
77802         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77803         Use an all-permissive copyright notice, recommended by RMS.
77804
77805 2005-03-02  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77808         of AIX, the replacement has to be done only after <string.h> is
77809         included, therefore not in config.h. stpncpy.h does the replacement,
77810         and stpncpy.c uses it.
77811
77812 2005-03-02  Bruno Haible  <bruno@clisp.org>
77813
77814         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77815         stpncpy.c uses it.
77816
77817 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77820         The workaround isn't strictly needed for POSIX conformance, and
77821         it's too much of a pain to configure and maintain.  We'll ask
77822         people to fix their kernels instead.
77823         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77824         (NANOSLEEP_BUG_WORKAROUND): Remove.
77825         (xnanosleep): Remove the workaround.
77826
77827 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77830         Reported by Derek Price.
77831         (Include): Add "timespec.h".
77832
77833         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77834
77835 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77838         to detect nanosleep bug.
77839
77840 2005-03-01  Bruno Haible  <bruno@clisp.org>
77841
77842         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77843
77844 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * modules/gethrxtime: New file.
77847         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77848         (Depends-on): Add gethrxtime.
77849         (configure.ac): Add gl_XNANOSLEEP.
77850         (Makefile.am): Remove lib_SOURCES line.
77851
77852 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77855         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77856
77857 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77860         * lib/timespec.h (gettime): Return void, since it always
77861         succeeds now.  All uses changed.
77862         * lib/gettime.c (gettime): Likewise.
77863         [HAVE_NANOTIME]: Prefer nanotime.
77864         Assume gettimeofday succeeds, as POSIX requires.
77865         Assime time () succeeds, since other code already does.
77866         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77867         (timespec_subtract): Remove.
77868         (NANOSLEEP_BUG_WORKAROUND): New constant.
77869         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77870         things considerably.  Use it only on GNU/Linux hosts, since the
77871         workaround shouldn't be needed elsewhere.
77872
77873 2005-02-24  Bruno Haible  <bruno@clisp.org>
77874
77875         * modules/gettext (Files): Add m4/glibc2.m4.
77876
77877 2005-02-24  Bruno Haible  <bruno@clisp.org>
77878
77879         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77880         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77881         * m4/progtest.m4:
77882         Update from GNU gettext 0.14.2.
77883         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77884
77885 2005-02-24  Bruno Haible  <bruno@clisp.org>
77886
77887         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77888         * lib/config.charset: Update from GNU gettext 0.14.2.
77889
77890 2005-02-24  Bruno Haible  <bruno@clisp.org>
77891
77892         * lib/gettext.h: Update from GNU gettext 0.14.2.
77893
77894 2005-02-23  Simon Josefsson  <jas@extundo.com>
77895
77896         * m4/iconvme.m4: New file.
77897
77898 2005-02-23  Jim Meyering  <jim@meyering.net>
77899
77900         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77901         change.
77902         Thanks to Bruno Haible for catching it.
77903
77904 2005-02-22  Simon Josefsson  <jas@extundo.com>
77905
77906         * modules/iconvme: New file.
77907
77908         * MODULES.html.sh: Add iconvme.
77909
77910 2005-02-22  Simon Josefsson  <jas@extundo.com>
77911
77912         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77913
77914 2005-02-22  Simon Josefsson  <jas@extundo.com>
77915
77916         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77917
77918 2005-02-22  Jim Meyering  <jim@meyering.net>
77919
77920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77921         s/ifndef/ifdef/.
77922
77923 2005-02-20  Neil Conway  <neilc@samurai.com>
77924
77925         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77926         returned by OSX/Darwin if the specified buffer is not large
77927         enough for the hostname.
77928
77929 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77930
77931         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77932         pass it to _help, otherwise the latter coredumps trying to
77933         dereference state.root_argp.
77934
77935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77936
77937         * modules/chdir-long (Depends-on): Add memrchr.
77938         * modules/memrchr (Files): Add lib/memrchr.h.
77939         (Include): "memrchr.h".
77940
77941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77944
77945 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * lib/memrchr.h: New file.
77948         * lib/chdir-long.c: Include it.
77949         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77950         Don't bother including stddef.h.
77951
77952 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77955         inclusion.
77956         Include <sys/types.h>, for dev_t.
77957         (ME_DUMMY, ME_REMOTE): Move from here....
77958         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77959         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77960         Dmitry V. Levin.
77961         Include mountlist.h first, to test the interface.
77962
77963 2005-01-29  Bruno Haible  <bruno@clisp.org>
77964
77965         * lib/progname.c (program_name): Initialize.
77966         Needed when linking statically on MacOS X.
77967
77968 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         Sync from coreutils.
77971         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77972         (Depends-on): Add c-strtod.
77973         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77974
77975 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77976
77977         Sync from coreutils.
77978         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77979
77980         Remove files that are specific to coreutils.
77981         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77982
77983 2005-01-28  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/javacomp: New file.
77986         * MODULES.html.sh (Java): Add javacomp.
77987
77988 2005-01-28  Bruno Haible  <bruno@clisp.org>
77989
77990         * m4/javacomp.m4: New file, from GNU gettext.
77991
77992 2005-01-28  Bruno Haible  <bruno@clisp.org>
77993
77994         * lib/javacomp.sh.in: New file, from GNU gettext.
77995         * lib/javacomp.h: New file, from GNU gettext.
77996         * lib/javacomp.c: New file, from GNU gettext.
77997
77998 2005-01-26  Simon Josefsson  <jas@extundo.com>
77999
78000         * lib/gai_strerror.c: Use GPL in header.
78001
78002 2005-01-26  Bruno Haible  <bruno@clisp.org>
78003
78004         * modules/javaexec: New file.
78005         * MODULES.html.sh (Java): Add javaexec.
78006
78007 2005-01-26  Bruno Haible  <bruno@clisp.org>
78008
78009         * m4/javaexec.m4: New file, from GNU gettext.
78010
78011 2005-01-26  Bruno Haible  <bruno@clisp.org>
78012
78013         * lib/javaexec.sh.in: New file, from GNU gettext.
78014         * lib/javaexec.h: New file, from GNU gettext.
78015         * lib/javaexec.c: New file, from GNU gettext.
78016
78017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78018
78019         * modules/lchown (Depends-on): Remove lchown.h
78020
78021 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78022
78023         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78024         must be defined if the header file was not found, in order
78025         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78026
78027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78028
78029         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78030         initializers for struct pentry_state.
78031         (__argp_error): Check return value of __asprintf
78032         (__argp_failure): Translate error message
78033
78034         * lib/argp-parse.c: Removed braces around the expansion of N_()
78035
78036 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78039         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78040         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78041         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78042         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78043         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78044         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78045         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78046         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78047         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78048         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78049         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78050         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78051         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78052         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78053         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78054         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78055         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78056         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78057         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78058         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78059         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78060         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78061         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78062         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78063         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78064         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78065         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78066         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78067         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78068         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78069         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78070         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78071         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78072         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78073         Use an all-permissive copyright notice, recommended by RMS.
78074
78075 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * modules/chdir-long (Depends-on): Remove mempcpy.
78078
78079 2005-01-21  Jim Meyering  <jim@meyering.net>
78080
78081         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78082         same value as for Solaris 9.
78083
78084         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78085         component length.  This included changing the parameter to be
78086         of type `char *' rather than `char const *'.
78087         * lib/chdir-long.h (chdir_long): Update prototype.
78088
78089         * lib/openat.c (fdopendir, fstatat): New functions.
78090         * lib/openat.h: Include headers required for use of DIR and struct
78091         stat.
78092         [AT_SYMLINK_NOFOLLOW]: Define.
78093         (fdopendir, fstatat): Add prototypes.
78094
78095 2005-01-21  Bruno Haible  <bruno@clisp.org>
78096
78097         * modules/classpath: New file.
78098         * MODULES.html.sh (Java): Add classpath.
78099
78100 2005-01-21  Bruno Haible  <bruno@clisp.org>
78101
78102         * lib/classpath.h: New file, from GNU gettext.
78103         * lib/classpath.c: New file, from GNU gettext.
78104
78105 2005-01-20  Simon Josefsson  <jas@extundo.com>
78106
78107         * modules/version-etc-fsf: New file.
78108
78109 2005-01-20  Simon Josefsson  <jas@extundo.com>
78110
78111         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78112         * lib/version-etc.c: Remove version_etc_copyright.
78113         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78114         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78115
78116 2005-01-20  Simon Josefsson  <jas@extundo.com>
78117
78118         * lib/base64.h (isbase64): Add.
78119
78120         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78121         using a unsigned prototype, don't inline.
78122         (base64_decode): Use it.
78123
78124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78127         it.
78128
78129 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * lib/save-cwd.c (save_cwd): Remove code to support the case
78132         where fchdir is missing or flaky.
78133
78134 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78137
78138 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78141         AC_LIBSOURCES now does this.
78142         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78143         with new ullong_max module.
78144
78145 2005-01-19  Bruno Haible  <bruno@clisp.org>
78146
78147         * modules/sh-quote: New file.
78148         * MODULES.html.sh (Executing programs): Add sh-quote.
78149
78150 2005-01-19  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/sh-quote.h: New file, from GNU gettext.
78153         * lib/sh-quote.c: New file, from GNU gettext.
78154
78155 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         Merge from coreutils.
78158         * m4/ullong_max.m4: New file.
78159         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78160         (gl_MACROS): Assume localeconv exists.
78161
78162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78163
78164         Merge changes from coreutils, as described below in several
78165         changelogs dated today.
78166
78167         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78168         (O_DIRECTORY): Remove; not needed here, since "." must be
78169         a directory.  All uses removed.
78170         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78171         universal on Suns, and we also need to test for IRIX.
78172         Revamp code to use 'if' rather than '#if'.
78173         Avoid unnecessary comparison of cwd->desc to 0.
78174
78175         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78176         for known valid error numbers rather than observed invalid ones.
78177
78178 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78179
78180         * modules/ullong_max: New file.
78181
78182         * modules/chdir-long, modules/openat: New files.
78183         * modules/save-cwd (Depends-on): Depend on chdir-long.
78184         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78185
78186 2005-01-18  Jim Meyering  <jim@meyering.net>
78187
78188         Merge from coreutils.
78189         * m4/chdir-long.m4, m4/openat.m4: New files.
78190         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78191         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78192         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78193         is sane and DOES follow symlinks.  Besides, testing 20 different
78194         systems found no broken chown implementations.
78195         Prompted by a change in rsync's copy of this macro.
78196         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78197
78198         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78199
78200         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78201         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78202         NULL-means-set-to-current-time semantics.
78203         Remove temporary file immediately, rather than waiting
78204         for configure's at-exit trap code to do it.
78205
78206 2005-01-18  Jim Meyering  <jim@meyering.net>
78207
78208         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78209
78210         * lib/utimens.c (futimens): Account for the fact that futimes
78211         can also fail with errno == ENOSYS or errno == ENOENT.
78212         Patch from Dmitry V. Levin.
78213
78214         Change the name of the robust chdir function from chdir to chdir_long.
78215         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78216         (restore_cwd): Use chdir_long, not chdir.
78217         * lib/chdir-long.c: Renamed from chdir.c.
78218         * lib/chdir-long.h: Renamed from chdir.h.
78219         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78220         Hurd.
78221
78222 2005-01-18  Bruno Haible  <bruno@clisp.org>
78223
78224         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78225         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78226         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78227         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78228         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78229         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78230         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78231         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78232         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78233         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78234         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78235         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78236         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78237         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78238         Use an all-permissive copyright notice, recommended by RMS.
78239
78240 2005-01-18  Bob Proulx  <bob@proulx.com>
78241
78242         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78243         simplify offsetof() macro construct to avoid compile failure with
78244         native HP-UX 11.0 ANSI C compiler.
78245
78246 2005-01-17  Bruno Haible  <bruno@clisp.org>
78247
78248         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78249         redundant because stpncpy.m4 takes care of it.
78250
78251 2005-01-17  Bruno Haible  <bruno@clisp.org>
78252
78253         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78254
78255 2005-01-17  Bruno Haible  <bruno@clisp.org>
78256
78257         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78258         used.
78259
78260 2005-01-17  Bruno Haible  <bruno@clisp.org>
78261
78262         * lib/fwriteerror.h (fwriteerror): Change specification to include
78263         fclose.
78264         * lib/fwriteerror.c: Include <stdbool.h>.
78265         (fwriteerror): At the end, close the file stream. Record whether
78266         stdout was already closed.
78267
78268 2005-01-17  Bruno Haible  <bruno@clisp.org>
78269
78270         * lib/execute.c (environ): Declare if needed.
78271         * lib/pipe.c (environ): Likewise.
78272         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78273
78274 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78275
78276         * modules/argp: Depend on vsnprintf
78277
78278 2005-01-10  Jim Meyering  <jim@meyering.net>
78279
78280         * modules/closeout (Depends-on): Add atexit.
78281
78282 2005-01-06  Bruno Haible  <bruno@clisp.org>
78283
78284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78285
78286 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78289         definitions to be after all include files, to avoid collisions.
78290         Problem reported by Bob Proulx.
78291
78292 2005-01-04  Jim Meyering  <jim@meyering.net>
78293
78294         Changes imported from coreutils.
78295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78296         as the mkstemp template, use a temporary directory and an
78297         8.3-friendly template to avoid trouble on systems like DJGPP.
78298         Reported by Juan M. Guerrero via Stepan Kasal.
78299         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78300         close. Remove the temporary directory right away, rather than waiting
78301         for configure's at-exit trap code to do it.
78302         Suggestion from Stepan Kasal.
78303
78304 2005-01-01  Simon Josefsson  <jas@extundo.com>
78305
78306         * gnulib-tool: Print #include directives when --import'ing.
78307
78308 2004-12-28  Simon Josefsson  <jas@extundo.com>
78309
78310         * tests/test-base64.c: Include required header files.  Remove
78311         unused variables.
78312
78313 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         * modules/error (Depends-on): Remove gettext.
78316
78317 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78320         not needed.  This removes a dependency on the gettext module.
78321         [defined _LIBC]: Do not include <libintl.h>; not needed.
78322
78323 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78326         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78327
78328 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78331         HAVE_DECL_STRTOLD.
78332
78333 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         * modules/getdate (Depends-on): Remove alloca-opt.
78336
78337 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78338
78339         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78340
78341 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * lib/argp-parse.c: Include <stddef.h>.
78344         (alignof, alignto): New macros.
78345         (parser_init): Don't assume that void * is aligned sufficiently
78346         for struct option.
78347
78348         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78349         need to extend the stack.
78350         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78351         large.
78352
78353 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78354
78355         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78356
78357 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78358
78359         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78360         (2004-10-24) change.  Apparently this was a false alarm.
78361
78362         * modules/getdate: Depend on alloca-opt, not alloca.
78363
78364 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78367         Remove now-obsolete comment about AIX.
78368         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78369         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78370         (YYMAXDEPTH): New macro.
78371
78372 2004-12-18  Simon Josefsson  <jas@extundo.com>
78373
78374         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78375
78376 2004-12-18  Bruno Haible  <bruno@clisp.org>
78377
78378         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78379
78380 2004-12-18  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/fatal-signal.c (fatal_signals): Make non-const.
78383         (init_fatal_signals): New function.
78384         (uninstall_handlers, install_handlers): Ignore signals that were set to
78385         SIG_IGN.
78386         (at_fatal_signal): Call init_fatal_signals.
78387         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78388         SIG_IGN.
78389         Reported by Paul Eggert.
78390
78391 2004-12-18  Bruno Haible  <bruno@clisp.org>
78392
78393         * doc/alloca.texi: New file.
78394         * doc/alloca-opt.texi: New file.
78395
78396 2004-12-17  Jim Meyering  <jim@meyering.net>
78397
78398         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78399         Otherwise, install-sh could exit with improper exit status when
78400         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78401
78402 2004-12-16  Simon Josefsson  <jas@extundo.com>
78403
78404         * tests/test-base64.c: Add license.
78405
78406 2004-12-15  Stepan Kasal  <address@hidden>
78407
78408         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78409
78410 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * modules/getcwd (Files): Add m4/d-ino.m4.
78413         Suggested by Mark D. Baushke.
78414
78415 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78416
78417         * lib/getdate.y (textint): New member "negative".
78418         (time_zone_hhmm): New function.
78419         Expect 14 shift-reduce conflicts, not 13.
78420         (o_colon_minutes): New rule.
78421         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78422         (yylex): Set the "negative" member of signed numbers.
78423
78424 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * doc/getdate.texi (Time of day items, Time zone items):
78427         Describe new formats +00:00, UTC+00:00.
78428
78429 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78432         spurious "-l"s.  Problem reported by Stepan Kasal.
78433
78434 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78437         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78438
78439 2004-12-04  Simon Josefsson  <jas@extundo.com>
78440
78441         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78442         Vandoorselaere <yoann@prelude-ids.org>.
78443
78444 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         Changes imported from coreutils.
78447         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78448         exist.
78449         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78450
78451 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         Changes imported from coreutils.
78454         * lib/hard-locale.c: Assume <locale.h> exists.
78455         Include "strdup.h".
78456         (GLIBC_VERSION): New macro.
78457         (hard_locale): Assume setlocale exists.
78458         Rewrite to avoid #ifdef.
78459         Use strdup rather than malloc + strcpy.
78460         * lib/human.c: Assume <locale.h> exists.
78461         (human_readable): Assume localeconv exists.
78462
78463 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * modules/hard-locale (Depends-on): Add strdup.
78466
78467 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78468
78469         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78470         convert T2, not T.  (Imported from libc.)
78471
78472 2004-11-30  Simon Josefsson  <jas@extundo.com>
78473
78474         * modules/restrict (License): Change to LGPL.
78475
78476 2004-11-30  Simon Josefsson  <jas@extundo.com>
78477
78478         * m4/restrict.m4: Add copyright and copying conditions.
78479
78480 2004-11-30  Simon Josefsson  <jas@extundo.com>
78481
78482         * m4/base64.m4: New file.
78483
78484 2004-11-30  Simon Josefsson  <jas@extundo.com>
78485
78486         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78487         base64.
78488
78489         * tests/test-base64.c: New file.
78490
78491         * modules/base64: New file.
78492
78493 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78496         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78497
78498         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78499
78500 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78503         (__getcwd.c): Don't restore errno; glibc doesn't.
78504         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78505         first, falling back to our code only if its results look suspicious.
78506         Ensure that the resulting buffer is only as large as necessary.
78507
78508         * lib/readutmp.c: Include readutmp.h first.
78509         Include <errno.h>, since readutmp.h no longer does that.
78510         * lib/readutmp.h: Don't include <errno.h>,
78511         <sys/param.h>, <time.h>; not needed to establish interface.
78512         (errno): Remove decl.
78513         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78514         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78515         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78516
78517 2004-11-28  Simon Josefsson  <jas@extundo.com>
78518
78519         * lib/base64.h, base64.c: New file.
78520
78521 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78524
78525 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78528         (Depends-on): Remove pathmax, same.  Add mempcpy.
78529         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78530         (Makefile.am): Append getcwd.h to lib_SOURCES.
78531         (Include): Add getcwd.h.
78532         (Maintainer): Change from Jim Meyering to "all, glibc",
78533         since getdate now uses intended-for-glibc code.
78534         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78535         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78536
78537 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78540         HP's ANSI C compiler.
78541         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78542         Declaring int functions causes warnings on some modern systems and
78543         shouldn't be needed to compile on ancient ones.
78544         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78545         defined.
78546
78547         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78548         with the following changes.
78549         (__set_errno): Parenthesize properly.
78550         Include <stdbool.h>.
78551         (MIN, MAX, MATCHING_INO): New macros.
78552         (__getcwd): Define with prototype, not K&R form.
78553         Use heuristics to allocate default buffer on stack if possible.
78554         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78555         behavior, and to avoid the PATH_MAX limit when computing
78556         ../../../../...
78557         Use MATCHING_INO to compare inode number to file.
78558         Check for arithmetic overflow in size calculations.
78559         Fix bug in reallocation of dot array that caused getcwd to fail
78560         on directories nested deeper than 75.
78561         Be more careful about saving errno on error.
78562         Do not use realloc; use only free+malloc, as this is a bit
78563         more flexible and avoids a needless copy operation.
78564         Do not inspect st_dev and st_ino for symbolic links; POSIX
78565         doesn't specify the latter.
78566         Check for closedir errors.
78567         Avoid needless casts.
78568         Use "#ifdef weak_alias" around weak_alias, to be like other
78569         glibc code.
78570         The following changes to getcwd.c have effect only when used in
78571         gnulib; they have no effect inside glibc proper.
78572         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78573         as alloca isn't used.
78574         (alloca, __alloca): Likewise.
78575         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78576         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78577         unconditionally, as gnulib assumes C89 or better.
78578         Do not include <sys/param.h>.
78579         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78580         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78581         better.
78582         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78583         Include <dirent.h> in a way that is compatible with modern Autoconf.
78584         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78585         New macros, if not already defined.
78586         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78587         Use "_LIBC", not "defined _LIBC", for consistency.
78588         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78589         a mempcpy module.
78590         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78591         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78592         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78593         credit only to Jim Meyering and adjust the copyright dates.
78594         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78595         <stdlib.h>, <unistd.h>, "pathmax.h".
78596         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78597         (INITIAL_BUFFER_SIZE): Remove.
78598         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78599
78600 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78603         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78604         Use the _ONCE methods, for efficiency.
78605         Check for fcntl.h.  In test program, include <errno.h>
78606         and <fcntl.h> if available.  Remove old K&R cruft from
78607         test program.  Check for common errors in GNU/Linux,
78608         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78609         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78610         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78611         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78612         name accordingly.
78613         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78614         accommodate new getcwd.c.
78615         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78616         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78617         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78618         that's all we need now.
78619
78620 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78621
78622         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78623         argp-parse.c depends on getopt internals, that means we should
78624         always use our getopt, to be on the safe side.
78625         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78626         order not to spoil the result of an eventual previous invocation
78627         of gl_GETOPT_SUBSTITUTE.
78628
78629 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78630
78631         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78632         redefinition warnings. To avoid them, include the defines
78633         in `#if !defined __need_getopt ... #endif'. The only place
78634         where __getopt_argv_const is used is in definitions
78635         of getopt_long and getopt_long_only below, which are as well
78636         protected by `#ifndef __need_getopt'.
78637         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78638         __need_getopt after including <stdio.h> and <unistd.h> These
78639         headers might have defined it.
78640
78641 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78644
78645 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78648         (futimens): New function, which uses futimes if available.
78649         (futimens, utimens): Support timespec==NULL, with same semantics
78650         as utime and utimens.
78651         * lib/utimens.h (futimens): New decl.
78652
78653 2004-11-23  Jim Meyering  <jim@meyering.net>
78654
78655         * lib/getopt_.h: Remove trailing blanks.
78656
78657 2004-11-23  Jim Meyering  <jim@meyering.net>
78658
78659         * lib/__fpending.c: Add comment.
78660
78661 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * modules/canonicalize (Depends-on): Add xreadlink.
78664         Problem reported by James Youngman.
78665
78666 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78669         New macros.
78670         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78671         optopt): Use them instead of invoking ## directly; otherwise, the
78672         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78673
78674 2004-11-19  Bruno Haible  <bruno@clisp.org>
78675
78676         * lib/strtok_r.c: Move comments from here...
78677         * lib/strtok_r.h: ... to here.
78678
78679 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78682         implementations that mishandle size_t overflow.
78683
78684 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78687         might fail.  Problem reported by Yoann Vandoorselaere.
78688         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78689         implementations that mishandle size_t overflow.
78690
78691 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * modules/canon-host (Depends-on): Add strdup.
78694
78695 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78698
78699 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * lib/canon-host.c: Include "strdup.h".
78702         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78703         Use strdup instead of malloc/strcpy to duplicate strings.
78704
78705         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78706         (human_space_before_unit): New constant.
78707         * lib/human.c (human_readable): Support it.
78708
78709         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78710         (xgetcwd): Set errno correctly when failing.
78711         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78712         the failure is actually due to a PATH_MAX problem.
78713
78714         Further getopt changes to make it more likely that glibc will
78715         buy the changes back.
78716         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78717         (getopt): Use it, so to preserve glibc semantic
78718         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78719         when compiling for libc.
78720         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78721         (getopt_long, getopt_long_only): Use it.
78722
78723         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78724         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78725         (getopt): Argv is now char * const *, as per standard.
78726         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78727         not char *__getopt_argv_const *.
78728         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78729         _getopt_long_only_r): Likewise.
78730         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78731         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78732         _getopt_long_r, _getopt_long_only_r): Likewise.
78733         * lib/getopt_.h (__getopt_argv_const): Remove.
78734         (getopt): Argv is now char * const *, as per standard.
78735
78736         * lib/getdate.y (tORDINAL): New token.
78737         (day, relunit): Allow it for relative times.
78738         (relative_time_table): Use tORDINAL for ordinals.
78739
78740 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78743         Document that "second" isn't allowed as an ordinal number.
78744
78745 2004-11-16  Jim Meyering  <jim@meyering.net>
78746
78747         * modules/closeout (Depends-on): Add fpending.
78748
78749 2004-11-15  Jim Meyering  <jim@meyering.net>
78750
78751         * lib/closeout.c: Include "__fpending.h" once again.
78752         Include <stdbool.h>.
78753         (close_stdout): Don't fail just because stdout was closed initially,
78754         since some programs don't write to stdout in the normal course of
78755         operation (other than --version and --help), and we don't want this
78756         function to make e.g. `touch file >&-' fail.
78757         But do fail if it was closed and someone has tried to write to it.
78758         E.g., `printf foo >&-' must fail.
78759
78760 2004-11-13  Jim Meyering  <jim@meyering.net>
78761
78762         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78763
78764 2004-11-12  Simon Josefsson  <jas@extundo.com>
78765
78766         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78767         small doc fix is still pending.
78768
78769 2004-11-11  Simon Josefsson  <jas@extundo.com>
78770
78771         * modules/strtok_r: New file.
78772
78773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78774         strtok_r.
78775
78776 2004-11-11  Simon Josefsson  <jas@extundo.com>
78777
78778         * m4/strtok_r.m4: New file.
78779
78780         * m4/getopt.m4: Replace opterr.
78781
78782 2004-11-11  Simon Josefsson  <jas@extundo.com>
78783
78784         * lib/strtok_r.h, strtok_r.c: New file.
78785
78786 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78789         of replacing opterr, getopt, etc.  This should handle the
78790         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78791
78792 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78795         we can stop lying to compilers about the constness of argv when we
78796         are compiled outside glibc.
78797         (getopt, getopt_long, getopt_long_only): Use it.
78798         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78799         _getopt_internal, getopt): Likewise.
78800         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78801         _getopt_long_only_r): Likewise.
78802         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78803         _getopt_long_r, _getopt_long_only_r): Likewise.
78804
78805         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78806         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78807         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78808         the other external symbols.
78809         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78810         declaration, since the above renaming now works around collisions.
78811
78812 2004-11-11  Jim Meyering  <jim@meyering.net>
78813
78814         * lib/linebreak.c: Remove trailing blanks.
78815         * lib/alloca_.h: Likewise.
78816         * lib/acosl.c: Likewise.
78817         * lib/euidaccess.c: Likewise.
78818         * lib/allocsa.h: Likewise.
78819
78820 2004-11-10  Simon Josefsson  <jas@extundo.com>
78821
78822         * m4/getaddrinfo.m4: New file.
78823
78824 2004-11-10  Simon Josefsson  <jas@extundo.com>
78825
78826         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78827
78828 2004-11-10  Simon Josefsson  <jas@extundo.com>
78829
78830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78831         getaddrinfo.
78832
78833         * modules/getaddrinfo: New file.
78834
78835 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78838
78839 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * lib/mktime.c (SHR): New macro, which is a portable
78842         substitute for >> that should work even on Crays.
78843         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78844         Problem reported by Mark D. Baushke in
78845         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78846         * lib/getdate.y (SHR): Likewise.
78847         (tm_diff): Use it.
78848         * lib/strftime.c (SHR): Likewise.
78849         (tm_diff): Use it.
78850         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78851         quote_these_too, so that right shifts are well defined.  All uses
78852         changed.
78853
78854 2004-11-10  Jim Meyering  <jim@meyering.net>
78855
78856         Ensure that no close failure goes unreported.
78857         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78858         return early when it seems there's nothing to flush.
78859         Don't include __fpending.h.
78860
78861 2004-11-10  Jim Meyering  <jim@meyering.net>
78862
78863         * modules/closeout (Depends-on): Remove fpending.
78864
78865 2004-11-10  Jim Meyering  <jim@meyering.net>
78866
78867         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78868
78869 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78872         gl_FUNC_STRFTIME.
78873         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78874         and AC_REQUIRE when possible, to avoid duplicate checks.
78875         Check for <wchar.h>.
78876
78877 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78880
78881 2004-11-09  Bruno Haible  <bruno@clisp.org>
78882
78883         * m4/sockpfaf.m4: New file.
78884
78885 2004-11-05  Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78888         Reported by Mark D. Baushke <mdb@cvshome.org>.
78889
78890 2004-11-04  Bruno Haible  <bruno@clisp.org>
78891
78892         2004-09-11  Bruno Haible  <bruno@clisp.org>
78893                 * allocsa.valgrind: New file.
78894         2004-02-06  Bruno Haible  <bruno@clisp.org>
78895                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78896                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78897                 Reported by Christopher Seip <chris.seip@hp.com>.
78898
78899 2004-11-04  Bruno Haible  <bruno@clisp.org>
78900
78901         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78902         (Makefile.am): Distribute it.
78903
78904 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78907         with errno == ERANGE if the buffer is too small.
78908         Problem reported by Mark D. Baushke.
78909
78910 2004-11-03  Albert Chin  <china@thewrittenword.com>
78911             Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78914         equivalent, substitute $ac_type for equivalent type rather than
78915         blindly using uint32_t *always* which won't work if uint32_t is not
78916         available.  Define _UINT32_T to work around typedef of uint32_t if
78917         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78918         2.5.1.
78919
78920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * m4/jm-macros.m4: Sync from coreutils.
78923         (gl_MACROS): Check for mbrlen, for pathchk.
78924         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78925
78926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/xreadlink.c (MAXSIZE): New macro.
78929         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78930         size does not exceed MAXSIZE.  Avoid cast.
78931         As suggested by Mark D. Baushke in
78932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78933         if readlink fails with buffer size just under MAXSIZE, try again
78934         with MAXSIZE.
78935
78936 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78939
78940 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78941         and  Paul Eggert  <eggert@cs.ucla.edu>
78942
78943         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78944         (get_date): Overparenthesize to avoid GCC warning.
78945
78946 2004-11-02  Bruno Haible  <bruno@clisp.org>
78947
78948         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78949         returns void.
78950
78951 2004-11-02  Bruno Haible  <bruno@clisp.org>
78952
78953         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78954         function returns void.
78955
78956 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78959         fflush_unlocked, flockfile, funlockfile, funlockfile,
78960         fputs_unlocked, putc_unlocked.
78961
78962 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78963
78964         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78965         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78966         already declared.
78967
78968 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         * modules/getdate (Files): Add doc/getdate.texi.
78971         (Depends-on): Add setenv, xalloc.
78972
78973 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * lib/getdate.y: Add support for TZ="foo" within a date string.
78976         Fix some bugs near time_t boundaries.  Reject dates with
78977         out-of-range components, e.g., "Sept 31".
78978         Include <stdlib.h>, "setenv.h", "xalloc.h".
78979         (ISDIGIT_LOCALE): Remove; unused.
78980         Note that the TZ and time functions used here are not reentrant.
78981         (mktime_ok, get_tz): New functions.
78982         (TZBUFSIZE): New constant.
78983         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78984         This requires that we sometimes generate our own TZ="XXX..." setting.
78985
78986 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78987
78988         * doc/getdate.texi: New file, from coreutils with modifications for
78989         the new TZ parsing.
78990
78991 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78992
78993         * lib/mktime.c (not_equal_tm): Remove redundant check.
78994
78995 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * modules/regex (lib_SOURCES): Add regex.c.
78998         Reported by James Youngman in
78999         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79000
79001 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * lib/getdate.y: Use Bison 1.875 features, and some minor
79004         code cleanups.  This change does not affect semantics.
79005         Don't include <stdlib.h>; no longer needed.
79006         Don't include unlocked-io.h; only the "#if TEST" code uses
79007         stdio, and performance isn't crucial there.
79008         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79009         Bison 1.875 features as described below.
79010         All uses of "PC." replaced by "pc->".
79011         (YYSTYPE): Add a forward declaration.
79012         (yylex, yyerror): Use full prototypes in forward decls.
79013         Use "%pure-parser" rather than obsolescent "%pure_parser".
79014         Use %parse-param and %lex-param instead of obsolescent
79015         YYPARSE_PARAM and YYLEX_PARAM.
79016         (meridian_table, month_and_day_table, time_units_table,
79017         relative_time_table, time_zone_table, military_table,
79018         lookup_zone, lookup_word, get_date):
79019         Use NULL instead of 0 where appropriate.
79020         (to_hour): Avoid abort (), to avoid a dependency on
79021         stdlib.h.
79022         (yyerror, yylex): Now accepts parser_control * arg.
79023         (main) [TEST]: Use '\0' rather than 0 for char.
79024
79025 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79028
79029 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79032         It's now the caller's responsibility to handle the case where
79033         !HAVE_GETPAGESIZE && !defined getpagesize.
79034
79035         * lib/mktime.c (leapyear): Arg is long int, not int.
79036
79037 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79040
79041 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79044         missing.  Problem reported by James Youngman.
79045
79046 2004-10-16  Simon Josefsson  <jas@extundo.com>
79047
79048         * gnulib-tool: Fix comments.  Fix parse problem.
79049         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79050
79051 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79054         implementation of getopt_long.  Problem reported by Alexander Taler in:
79055         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79056
79057 2004-10-15  Bruno Haible  <bruno@clisp.org>
79058
79059         * gnulib-tool: Untabify. Initialize supplied_libname.
79060         (func_usage): More homogenous output.
79061         (func_modules_transitive_closure, func_modules_to_filelist,
79062         func_emit_lib_Makefile_am): New functions.
79063         (func_import): New function, extracted from big case statement. Use
79064         func_get_license, func_modules_transitive_closure,
79065         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79066         opt_lgpl. Don't use test -a, as it's not portable.
79067         (func_create_testdir): Use func_modules_transitive_closure,
79068         func_modules_to_filelist, func_emit_lib_Makefile_am.
79069
79070 2004-10-15  Bruno Haible  <bruno@clisp.org>
79071
79072         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79073
79074 2004-10-15  Bruno Haible  <bruno@clisp.org>
79075
79076         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79077         the portions belonging to each module.
79078         Suggested by Derek Robert Price <derek@ximbiot.com>.
79079
79080 2004-10-12  Simon Josefsson  <jas@extundo.com>
79081
79082         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79083         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79084         to real functions.
79085
79086 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79087
79088         * modules/vsnprintf: New file.
79089
79090 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79091
79092         * m4/vsnprintf.m4: New file.
79093
79094 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79095
79096         * lib/vsnprintf.h: New file.
79097         * lib/vsnprintf.c: New file.
79098
79099 2004-10-11  Bruno Haible  <bruno@clisp.org>
79100
79101         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79102         vsnprintf.
79103
79104 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79107
79108 2004-10-07  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79111         fits into the provided buffer.
79112
79113 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/diacrit.c, diacrit.h: Add GPL notice.
79116
79117         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79118         notice.
79119         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79120         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79121         This avoids a potential constant-folding bug.
79122
79123 2004-10-05  Bruno Haible  <bruno@clisp.org>
79124
79125         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79126         for the declaration of strsep.
79127
79128 2004-10-05  Bruno Haible  <bruno@clisp.org>
79129
79130         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79131
79132 2004-10-04  Simon Josefsson  <jas@extundo.com>
79133
79134         * modules/memmem: New file.
79135         * tests/test-memmem.c: New file.
79136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79137
79138 2004-10-04  Simon Josefsson  <jas@extundo.com>
79139
79140         * m4/memmem.m4: New file.
79141
79142 2004-10-04  Simon Josefsson  <jas@extundo.com>
79143
79144         * lib/memmem.h: New file.
79145         * lib/memmem.c: New file, taken from glibc.
79146
79147 2004-10-04  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79150         '#ifdef USE_UNLOCKED_IO'.
79151
79152 2004-10-04  Simon Josefsson  <jas@extundo.com>
79153
79154         * config/srclist.txt: Add memmem from glibc.
79155
79156 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79159
79160         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79161         modules/exclude, modules/getdate, modules/getline,
79162         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79163         modules/getusershell, modules/linebuffer, modules/md5,
79164         modules/mountlist, modules/posixtm, modules/readtokens,
79165         modules/readutmp, modules/regex, modules/sha1,
79166         modules/version-etc, modules/yesno:
79167         Remove dependency on unlocked-io.
79168
79169 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79172
79173         * m4/unlocked-io.m4: Add copyright notice.
79174         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79175
79176 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79179         * lib/xmalloc.c (xmemdup): Likewise.
79180         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79181         XFREE): Remove these long-obsolescent macros.
79182         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79183         * lib/xstrdup.c: Remove.
79184
79185         * lib/regex.c (re_comp): Cast gettext return value to char *,
79186         Problem reported by Martin Neitzel via Mark D. Baushke.
79187
79188 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79191         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79192         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79193         regex.c, sha1.c, version-etc.c, yesno.c:
79194         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79195         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79196         the includer's responsibility.
79197
79198         Sync from coreutils.
79199
79200         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79201         points to the start of a string, as the C Standard says the
79202         resulting behavior is undefined.
79203
79204         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79205         simple -> simple_backups, numbered_existing ->
79206         numbered_existing_backups, numbered -> numbered_backups
79207         to avoid shadowing problems.  All uses changed.
79208         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79209         * lib/backupfile.c (check_extension, numbered_backup):
79210         Rename locals to avoid shadowing 'basename'.
79211         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79212         once.
79213
79214         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79215         * lib/.cvsignore: Add getopt.h.
79216
79217 2004-10-04  Bruno Haible  <bruno@clisp.org>
79218
79219         * modules/README: New file.
79220         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79221         not a module.
79222
79223 2004-10-02  Jim Meyering  <jim@meyering.net>
79224
79225         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79226
79227 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79228
79229         * modules/strsep: New file.
79230
79231 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79232
79233         * m4/strsep.m4: New file.
79234
79235 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79236
79237         * lib/strsep.h: New file.
79238         * lib/strsep.c: New file.
79239
79240 2004-10-01  Simon Josefsson  <jas@extundo.com>
79241
79242         * lib/snprintf.c (snprintf): Handle size==0.
79243
79244 2004-10-01  Simon Josefsson  <jas@extundo.com>
79245             Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79248         (snprintf): Declare 'args'.
79249
79250 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * lib/snprintf.c: Remove comments as to why each header is needed.
79253
79254 2004-10-01  Bruno Haible  <bruno@clisp.org>
79255
79256         * MODULES.html.sh: Add strsep.
79257
79258 2004-09-30  Simon Josefsson  <jas@extundo.com>
79259
79260         * modules/snprintf: New file.
79261
79262 2004-09-30  Simon Josefsson  <jas@extundo.com>
79263
79264         * m4/snprintf.m4: New file.
79265
79266 2004-09-30  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/snprintf.h, lib/snprintf.c: New files.
79269
79270 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79271
79272         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79273         (hol_entry_help): Never translate an empty string.
79274         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79275         * lib/argp.h (OPTION_NO_TRANS): New option.
79276
79277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * modules/argp (Maintainer): Replace Simon Josefsson
79280         by Sergey Poznyakoff.
79281
79282 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79285         changes merged back into glibc.
79286
79287 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79290
79291 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79292
79293         * lib/xvasprintf.c: Include xalloc.h.
79294         (xvasprintf): Use xalloc_die, not xmalloc_die.
79295
79296 2004-09-29  Bruno Haible  <bruno@clisp.org>
79297
79298         * modules/alloca-opt: New file, derived from modules/alloca.
79299         * modules/allocsa: Depend on alloca-opt instead of alloca.
79300         * modules/setenv: Likewise.
79301         * modules/vasnprintf: Likewise.
79302         * MODULES.html.sh: Add alloca-opt.
79303
79304 2004-09-28  Simon Josefsson  <jas@extundo.com>
79305
79306         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79307         LGPL, and to replace license template from GPL to LGPL.
79308
79309 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * modules/dummy: Change license to LGPL.
79312
79313 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79316
79317 2004-09-24  Simon Josefsson  <jas@extundo.com>
79318
79319         * modules/minmax (License): Change from GPL to LGPL.
79320
79321 2004-09-23  Simon Josefsson  <jas@extundo.com>
79322
79323         * gnulib-tool (--import): Typo.
79324
79325 2004-09-23  Simon Josefsson  <jas@extundo.com>
79326
79327         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79328
79329 2004-09-22  Bruno Haible  <bruno@clisp.org>
79330
79331         * modules/*: Add 'License' field.
79332         * gnulib-tool: Accept --extract-license option.
79333         (func_get_license): New function.
79334
79335 2004-09-21  Bruno Haible  <bruno@clisp.org>
79336
79337         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79338         Reported by Simon Josefsson.
79339
79340 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79343         gl_AC_TYPE_LONG_LONG.
79344
79345 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79346
79347         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79348
79349 2004-09-18  Simon Josefsson  <jas@extundo.com>
79350         and  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79353         calls with autoreconf.  Define GL_LIB.
79354
79355 2004-09-14  Karl Berry  <karl@gnu.org>
79356
79357         * config/srclist.txt: unsync setenv.c, sigh.
79358
79359 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79362         Problem reported by Bruno Haible in:
79363         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79364
79365 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * config/srclist.txt: Comment out argp-pvh.c.
79368
79369 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79372         in case some system header has #define'd it.  Problem reported by
79373         Soeren D. Schulze in
79374         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79375
79376 2004-09-09  Karl Berry  <karl@gnu.org>
79377
79378         * regex.[ch]: delete from the root.  These were supposed to be
79379                 synced with emacs cvs, but this has not happened for about
79380                 a year, and anyway nothing else uses emacs regex.[ch].
79381                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79382                 lib/regex[.ch] is untouched.
79383
79384 2004-09-09  Bruno Haible  <bruno@clisp.org>
79385
79386         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79387
79388 2004-09-09  Bruno Haible  <bruno@clisp.org>
79389
79390         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79391         modifications.
79392         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79393
79394 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79395
79396         * modules/xvasprintf: New file.
79397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79398
79399 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79400
79401         * lib/xvasprintf.h: New file.
79402         * lib/xvasprintf.c: New file.
79403         * lib/xasprintf.c: New file.
79404
79405 2004-09-08  Bruno Haible  <bruno@clisp.org>
79406
79407         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79408
79409 2004-09-08  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79412         length is > INT_MAX.
79413         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79414         more.
79415
79416 2004-09-08  Bruno Haible  <bruno@clisp.org>
79417
79418         * lib/stdint_.h: New file, taken from GNU clisp.
79419
79420 2004-09-08  Bruno Haible  <bruno@clisp.org>
79421             Oskar Liljeblad  <oskar@osk.mine.nu>
79422
79423         * modules/stdint: New file.
79424         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79425
79426 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         Import from coreutils.
79429         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79430         strings on unbounded length.  alloca's performance benefits aren't
79431         that important here.
79432         (V_STRDUP): Remove.
79433         (parse_with_separator): New function, with most of the internals
79434         of the old parse_user_spec.  Allow user to omit both user and group,
79435         for compatibility with FreeBSD.
79436         Clone only the user name, not the entire spec.
79437         Do not set *uid, *gid unless entirely successful.
79438         Avoid memory leak in some failing cases.
79439         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79440         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79441         (parse_user_spec): Rewrite to use parse_with_separator.
79442
79443 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * modules/userspec: Don't depend on alloca.
79446
79447 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79450
79451 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79454         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79455         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79456
79457 2004-08-16  Simon Josefsson  <jas@extundo.com>
79458
79459         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79460         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79461         Add --dry-run for --import.
79462         Let user provided command line parameters override configure.ac
79463         settings.
79464
79465 2004-08-12  Simon Josefsson  <jas@extundo.com>
79466
79467         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79468         as discussed with Paul Eggert in threads rooted at
79469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79470         and
79471         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79472         Before, the test was empty, and relied on ELIDE_CODE in source
79473         code.)
79474         (gl_PREREQ_GETOPT): New macro.
79475         (gl_GETOPT): Use them.
79476
79477 2004-08-12  Simon Josefsson  <jas@extundo.com>
79478
79479         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79480         * lib/getopt_.h: Renamed from getopt.h.
79481
79482 2004-08-12  Simon Josefsson  <jas@extundo.com>
79483
79484         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79485         Change default library name from libfoo to libgnu.
79486         Now, if you have a configure.ac that says:
79487                 gl_SOURCE_BASE(gl)
79488                 gl_M4_BASE(gl/m4)
79489                 gl_MODULES(error getopt etcetera)
79490                 gl_INIT
79491         you can import all you need by running:
79492                 ../gnulib/gnulib-tool --import
79493
79494         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79495         (Makefile.am): Rewrite, use logic from argz.
79496         (Include): Use <getopt.h> instead of "getopt.h".
79497
79498 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * modules/argp (Files): Add m4/unlocked-io.m4.
79501         (Depends-on): Add extensions.
79502
79503 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79506         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79507         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79508         Check for program_invocation_name, program_invocation_short_name,
79509         flockfile, funlockfile, features.h, _getopt_long_only_r.
79510
79511 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79514         its complicated substitute.
79515         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79516         and program_invocation_name.
79517         (__argp_basename) [!_LIBC]: Remove; the only use was
79518         replaced by its body.
79519         (__argp_short_program_name): Change condition from
79520         !defined __argp_short_program_name to
79521         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79522         to match argp-namefrob.h.
79523         (__argp_failure): Don't assume strerror_r returns char *.
79524         * lib/argp-parse.c (N_): Define unconditionally.
79525         (argp_default_options): Fill out initializers with 0 to avoid
79526         gcc warnings.
79527
79528 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79531         getopt1.c.
79532
79533 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         Merge from coreutils.
79536
79537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79538
79539         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79540         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79541
79542 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         Merge from coreutils.
79545
79546         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79547         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79548         for Reliant Unix 5.43.
79549
79550         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79551         (union fooround): Use uintmax_t, not long int.
79552         The rest is a merge from libc:
79553         [defined _LIBC]: Include <shlib-compat.h>.
79554         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79555
79556         * lib/settime.c (settime): Recode to avoid warning with
79557         Sun Forte C 6U2.
79558
79559         * lib/strverscmp.c: Convert to UTF-8.
79560
79561 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79564         m4/uintmax_t.m4.
79565
79566 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         * modules/xalloc-die: New file.
79569         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79570
79571         * modules/md5 (Files): Add m4/uint32_t.m4.
79572         * modules/sha1: Renamed from modules/sha.
79573         (Files):
79574         Rename lib/sha.h to lib/sha1.h.
79575         Rename lib/sha.c to lib/sha1.c.
79576         Rename m4/sha.m4 to m4/sha1.m4.
79577         (lib_SOURCES): Likewise.
79578         (configure.ac): Rename gl_SHA to gl_SHA1.
79579         (Include): sha.h -> sha1.h.
79580
79581 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79584         * m4/sha1.m4: Renamed from sha.m4.
79585         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79586
79587 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * lib/obstack.h (obstack_empty_p):
79590         Don't assume that chunk->contents is suitably aligned.
79591         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79592         Likewise. Problem reported by Benno in
79593         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79594
79595         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79596         readable.  This could be improved further but it'd take some work.
79597
79598 2004-08-08  Simon Josefsson  <jas@extundo.com>
79599
79600         * modules/xgethostname (Depends-on): Remove exit and error (not
79601         used).
79602
79603         * modules/getpass-gnu: Add getpass.h.
79604         (Depends-on): Add stdbool.
79605         * modules/getpass: Add getpass.h.
79606
79607 2004-08-08  Simon Josefsson  <jas@extundo.com>
79608
79609         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79610         Check getpass declaration.
79611
79612 2004-08-08  Simon Josefsson  <jas@extundo.com>
79613
79614         * lib/xgethostname.c: Don't include error.h (not used).
79615
79616         * lib/getpass.h: Add.
79617         * lib/getpass.c: Include getpass.h first.
79618
79619 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * lib/xalloc-die.c: New file.
79622         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79623         All uses removed.
79624         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79625         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79626         xalloc-die.c.
79627         (_, N_, xalloc_die): Move to xalloc-die.c.
79628         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79629         so that we needn't mess with xalloc_msg_memory_exhausted.
79630
79631         * lib/sha1.h: Renamed from sha.h.
79632         (SHA1_H): Renamed from _SHA_H.
79633         (sha1_ctx): Renamed from sha_ctx.
79634         (sha1_init_ctx): Renamed from sha_init_ctx.
79635         (sha1_process_block): Renamed from sha_process_block.
79636         (sha1_process_bytes): Renamed from sha_process_bytes.
79637         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79638         (sha1_read_ctx): Renamed from sha_read_ctx.
79639         (sha1_stream): Renamed from sha_stream.
79640         (sha1_buffer): Renamed from sha_buffer.
79641         * lib/sha1.c: Likewise; renamed from sha.c.
79642         Do not include <sys/types.h>.
79643         Include <stddef.h> rather than <stdlib.h>.
79644
79645 2004-08-08  Bruno Haible  <bruno@clisp.org>
79646
79647         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79648         FILESYSTEM_PREFIX_LEN.
79649         * lib/progreloc.c: Likewise.
79650         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79651
79652 2004-08-06  Simon Josefsson  <jas@extundo.com>
79653
79654         * modules/progname (Depends-on): Don't depend on stdbool.
79655
79656 2004-08-06  Simon Josefsson  <jas@extundo.com>
79657
79658         * modules/getsubopt: New file.
79659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79660         getsubopt.
79661
79662 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         More merge from coreutils.
79665
79666         * m4/utimens.m4, m4/utimecmp.m4: New files.
79667         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79668         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79669         prereq.m4, sha.m4: Import changes from coreutils.
79670
79671 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         More merge from coreutils.
79674         * modules/raise, modules/readtokens0, modules/utimens:
79675         * modules/utimecmp, module/xnanosleep: New files.
79676         * modules/strftime: Add lib/strftime.h.
79677         Change include from <time.h> to "strftime.h".
79678         * modules/yesno: Add lib/yesno.h.
79679         * modules/backupfile: Remove lib/addext.c.
79680         * modules/euidaccess: Add stat-macros.h.
79681         * modules/canonicalize, modules/euidaccess,
79682         modules/filemode, modules/lchown, modules/makepath,
79683         modules/rmdir, modules/stat: Likewise.
79684
79685 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         Merge from tar.
79688         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79689         SIZE_MAX is a valid preprocessor constant.
79690         (__argp_basename): Change from "#ifndef _LIBC"
79691         to "#ifndef __argp_short_program_name", so that
79692         we don't compile these functions for tar.
79693
79694         More merges from coreutils.
79695         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79696         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79697         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79698         * lib/addext.c: Remove; no longer needed.
79699         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79700         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79701         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79702         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79703         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79704         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79705         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79706         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79707         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79708         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79709         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79710         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79711         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79712         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79713         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79714         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79715         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79716         Import changes from coreutils.
79717
79718 2004-08-05  Simon Josefsson  <jas@extundo.com>
79719
79720         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79721
79722 2004-08-05  Simon Josefsson  <jas@extundo.com>
79723
79724         * m4/getsubopt.m4: New file.
79725
79726 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         Merge from coreutils.
79729
79730         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79731         * m4/getcwd-path-max.m4: New files.
79732
79733         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79734         FILESYSTEM_PREFIX_LEN ->
79735         FILE_SYSTEM_PREFIX_LEN.
79736         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79737         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79738         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79739         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79740
79741         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79742         prerequisite modules now handle the DOS stuff.
79743         Don't check for unistd.h.
79744
79745 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         Merge from coreutils.
79748
79749         * lib/.gdb-history: Remove; this doesn't belong here.
79750
79751         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79752         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79753         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79754         * lib/getcwd.c: New files.
79755
79756         * lib/dirname.h: Include <stdbool.h>.
79757         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79758         for consistency with POSIX terminology.  All uses changed.
79759         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79760         (strip_trailing_slashes): Use bool for booleans.
79761         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79762
79763         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79764         sometimes returns a positive errno value even when it succeeds.
79765         (print_errno_message) [!LIBC]: Fall back on strerror if
79766         __strerror_r fails.
79767
79768         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79769         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79770         (longest_relative_suffix): New function.
79771         (path_concat): Use it.  Assume first argument is not NULL.
79772         Port to DOS.  Omit redundant separators.
79773         Report an error instead of returning NULL.
79774         Use mempcpy instead of memcpy.
79775         (xpath_concat): Remove: not declared or used.
79776
79777         * lib/same.h: Include <stdbool.h>
79778         (same_name): Return bool, not int.
79779         * lib/same.c (same_name): Likewise.
79780         (errno): Don't declare; we assume C89 or better now.
79781
79782         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79783         if not already defined.
79784
79785         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79786         * lib/dup-safer.c (errno): Likewise.
79787
79788 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         Merge from coreutils.
79791         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79792         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79793         * modules/path-concat: Don't depend on strdup.
79794
79795 2004-08-03  Simon Josefsson  <jas@extundo.com>
79796
79797         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79798         * lib/progname.h: Don't include stdbool.h.
79799
79800 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79803         * MODULES.html.sh (func_all_modules): Remove fatal.
79804
79805 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79808
79809 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79810
79811         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79812         working.
79813
79814 2004-08-02  Simon Josefsson  <jas@extundo.com>
79815
79816         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79817         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79818         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79819
79820 2004-08-01  Simon Josefsson  <jas@extundo.com>
79821
79822         * lib/xgetdomainname.c: Include stdlib.h, for free().
79823
79824 2004-07-19  Bruno Haible  <bruno@clisp.org>
79825
79826         * MODULES.html.sh (func_all_modules): Add dummy.
79827
79828 2004-07-16  Simon Josefsson  <jas@extundo.com>
79829
79830         * modules/dummy: New file.
79831
79832 2004-07-16  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/dummy.c: New file.
79835
79836 2004-07-16  Bruno Haible  <bruno@clisp.org>
79837
79838         * lib/backupfile.h: Add extern "C" for C++.
79839         * lib/closeout.h: Likewise.
79840         * lib/copy-file.h: Likewise.
79841         * lib/findprog.h: Likewise.
79842         * lib/full-write.h: Likewise.
79843         * lib/pathname.h: Likewise.
79844         * lib/progname.h: Likewise.
79845         * lib/stpcpy.h: Likewise.
79846         * lib/stpncpy.h: Likewise.
79847         * lib/strcase.h: Likewise.
79848         * lib/strstr.h: Likewise.
79849         * lib/xalloc.h: Likewise.
79850
79851         * lib/mbswidth.h: Add extern "C" for C++.
79852         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79853
79854 2004-07-13  Robert Millan  <robertmh@gnu.org>
79855
79856         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79857
79858 2004-07-09  Simon Josefsson  <jas@extundo.com>
79859
79860         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79861         failed without this.)
79862
79863 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * modules/chown (Files): Add lib/fchown-stub.c, since
79866         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79867
79868 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * lib/fchown-stub.c: New file.
79871
79872 2004-06-24  Jim Meyering  <jim@meyering.net>
79873
79874         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79875
79876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * modules/argz: Omit "#include".
79879
79880         * MODULES.html.sh (func_all_modules): Add calloc, to match
79881         2004-06-01 addition of calloc module.
79882
79883 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * m4/argz.m4: New file, which is autoupdated from libtool.
79886
79887 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79890         libtool.
79891
79892 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * config/srclist-update: Don't insist on "USA." before the
79895         close-comment, as libtool omits the period and puts the */ on a
79896         separate line.
79897         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79898         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79899
79900 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79901
79902         * modules/argz: New file.
79903         * MODULES.html.sh (func_all_modules): Add argz.
79904
79905 2004-06-12  Jim Meyering  <jim@meyering.net>
79906         and  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * modules/hash (Files): Add lib/xalloc.h.
79909         * modules/pipe (Depends-on): Add wait-process.
79910         * modules/stat (Depends-on): Add xalloc.
79911         * modules/userspec (Files): Add lib/userspec.h.
79912         * modules/xstrto
79913
79914         Upgrade from gettext-0.13.
79915         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79916         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79917         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79918
79919 2004-06-10  Jim Meyering  <jim@meyering.net>
79920
79921         * lib/calloc.c: New file.
79922
79923 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * lib/getdate.y (yylex): Allow space between sign and number.
79926         Problem reported by Dan Jacobson.
79927
79928 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         Merge from coreutils CVS.
79931
79932         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79933         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79934         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79935         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79936         xstrtol.m4: Fix copyright date and/or serial number.
79937
79938         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79939         See if we need an fchown replacement.
79940         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79941         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79942         and use the replacement function if we detect either defect.
79943
79944         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79945         gl_UTIMECMP.
79946
79947 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79948         and  Jim Meyering  <jim@meyering.net>
79949
79950         Merge from coreutils CVS.
79951
79952         * lib/stat-macros.h: New file, with contents from file-type.h
79953         and coreutils' system.h.
79954         * lib/file-type.c: Include "stat-macros.h".
79955         * lib/file-type.h (file_type): Move all macro definitions to new file,
79956         stat-macros.h.
79957
79958         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79959         Wrap old code with this conditional.
79960         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79961         function that does not dereference symlinks.
79962         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79963
79964         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79965         dependency problems.
79966         (xreadlink): Accept new arg SIZE, for efficiency.
79967         All decls and uses changed.
79968         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79969
79970         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79971         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79972
79973         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79974         sysexits.h.
79975
79976 2004-06-01  Jim Meyering  <jim@meyering.net>
79977
79978         * m4/calloc.m4: New file.
79979
79980 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79983         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79984         Also, fix a typo in a diagnostic.
79985
79986 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79989         or AC_FUNC_REALLOC.
79990
79991 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79994         macros to be defined.
79995         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79996         the allocator returns NULL because the requested size is zero.
79997
79998 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80001         var.  Add comment explaining why libc still defines it.  This
80002         merges the following patch from glibc:
80003         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80004
80005 2004-05-20  Andreas Schwab  <schwab@suse.de>
80006
80007         * m4/free.m4: Replace free if it not known to work, not the other
80008         way round.
80009
80010 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80013         present in glibc since revision 1.1 of this file.
80014         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80015         obstack_alignment_mask, obstack_alloc, obstack_base,
80016         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80017         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80018         obstack_grow0, obstack_init, obstack_int_grow,
80019         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80020         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80021         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80022         nonexistent functions.
80023
80024 2004-05-18  Karl Berry  <karl@gnu.org>
80025
80026         * config/srclist.txt: break link for vasnprintf.c.
80027
80028 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         Port obstack to the AS/400, where pointers are 16 bytes wide and
80031         you cannot cast an integer to a valid pointer.  This patch is
80032         currently waiting to be integrated into glibc; see
80033         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80034
80035         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80036         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80037         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80038         (struct obstack): temp member is now a union of a pointer and
80039         an integer, instead of an integer.  All integer uses changed.
80040         This does not affect the physical layout of struct obstack,
80041         except on hosts (like the AS/400) where the size or alignment of
80042         void * is greater than that of ptrdiff_t.
80043         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80044         __STDC__)]: Store temporary in pointer member of union, not
80045         integer member.
80046         * lib/obstack.c: Include <stddef.h>, for offsetof.
80047         (struct fooalign): Remove; it doesn't need a name.
80048         (union fooround): Change double to long double, and add void *.
80049         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80050         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80051         not a macro.  Hence the values are always int; so remove all
80052         casts-to-int in uses.
80053
80054 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80057         we can get this patch merged into glibc.
80058
80059 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80060             Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * m4/argp: Depend on alloca.
80063
80064 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80065             Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80068         freecoding.
80069
80070 2004-05-17  Bruno Haible  <bruno@clisp.org>
80071
80072         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80073         precision that consists of a '.' followed by an empty digit string.
80074         Patch by Tor Lillqvist <tml@iki.fi>.
80075
80076 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80077
80078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80079         for backward compatibility with older code.  We need our own
80080         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80081         it under some other name, and our alloca.h will define it.
80082
80083 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80084             Derek Price  <derek@ximbiot.com>
80085
80086         * lib/alloca.c: Include <alloca.h>, to get our interface.
80087         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80088         include <alloca.h> first.  Use C89 prototype for alloca; this
80089         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80090         Use #elif for simplicity, since we can assume C89 now.
80091         Don't try to source the system alloca.h since it will not be found
80092         and to prevent recursively including its replacement.
80093         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80094         * lib/regex.c: Likewise.
80095
80096 2004-05-16  Derek Price  <derek@ximbiot.com>
80097             Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         getline cleanup.  This changes the getndelim2 API: both order of
80100         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80101         no delimiter).
80102
80103         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80104         interface does that.
80105         (getline): Always use getdelim, so that we don't have two
80106         copies of this code.
80107         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80108         if available.
80109         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80110         (GETNDELIM2_MAXIMUM): New macro.
80111         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80112         instead of the old practice of delim2==0.  All callers changed.
80113         Return -1 on overflow, instead of returning junk.
80114         Do not set *linesize unless allocation succeeds.
80115         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80116         that we include sys/types.h.
80117         * lib/getnline.h: Likewise.
80118         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80119         (getndelim2): Reorder arguments.
80120         * lib/getnline.c (getnline, getndelim):
80121         Don't discard the NMAX argument.
80122         (getnline): Invoke getndelim, to avoid code duplication.
80123         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80124         of (size_t) -1 by callers of the getnline family.
80125
80126 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80129         Check for gettimeofday.
80130         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80131         Check for settimeofday, stime.
80132
80133 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * lib/nanosleep.c (suspended): Change its type from int to
80136         sig_atomic_t volatile.
80137         (first_call): Make it private to rpl_nanosleep, and have it
80138         be zero initially as that's a bit faster.
80139         (my_usleep): Round up fractional times instead of truncating them,
80140         as this is the usual meaning for 'sleep'.
80141
80142         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80143         doesn't work.
80144         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80145         (ENOSYS): Define if not defined.
80146         (settime): Fall back on stime if it exists and settimeofday fails.
80147         But don't bother with fallbacks if a method fails with errno == EPERM.
80148
80149 2004-05-11  Jim Meyering  <jim@meyering.net>
80150
80151         Prior to this change, the save_cwd caller required read access to the
80152         current directory on most systems (ones with the fchdir function).
80153
80154         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80155         fails, try write-only, and finally, resort to using xgetcwd.
80156
80157 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * lib/obstack.c, obstack.h: Import changes from libc.
80160
80161 2004-04-28  Bruno Haible  <bruno@clisp.org>
80162
80163         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80164         also implicitly appends .exe to executables.
80165         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80166         accepts Windows pathnames.
80167         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80168         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80169         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80170         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80171         Reported by Derek Robert Price <derek@ximbiot.com>.
80172
80173 2004-04-21  Karl Berry  <karl@gnu.org>
80174
80175         * config/srclist.txt (localcharset.c): break sync.
80176
80177 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80178
80179         * m4/host-os.m4: Add a copyright notice.
80180
80181 2004-04-20  Jim Meyering  <jim@meyering.net>
80182
80183         Change UTILS_ to gl_ in AC_DEFINE'd names.
80184         Change utils_- and jm_-prefixed variables, too.
80185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80186         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80188
80189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80190         Don't emit trailing blanks.
80191         Also rename jm_-prefixed variables to have gl_ prefix.
80192
80193         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80194         Also rename jm_-prefixed variables to have gl_ prefix.
80195
80196         * m4/jm-macros.m4: Reflect the renamings.
80197         * m4/prereq.m4: Likewise.
80198
80199 2004-04-20  Jim Meyering  <jim@meyering.net>
80200
80201         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80202         memory.
80203
80204 2004-04-20  Jim Meyering  <jim@meyering.net>
80205             Bruno Haible  <bruno@clisp.org>
80206
80207         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80208         memory when realloc fails.
80209
80210 2004-04-19  Jim Meyering  <jim@meyering.net>
80211
80212         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80213         now that readutmp.c may call `free (0)'.
80214
80215 2004-04-19  Bruno Haible  <bruno@clisp.org>
80216
80217         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80218         * m4/inttypes_h.m4: Likewise.
80219         * m4/stdint_h.m4: Likewise.
80220         * m4/intmax_t.m4: Likewise.
80221         * m4/uintmax_t.m4: Likewise.
80222
80223 2004-04-18  Jim Meyering  <jim@meyering.net>
80224
80225         * m4/prereq.m4: Don't forbid jm_ prefix.
80226
80227         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80228         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80229         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80230         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80231         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80232         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80233         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80234         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80235         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80236         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80237         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80238         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80239         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80240         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80241         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80242         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80243         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80244         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80245         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80246
80247 2004-04-18  Jim Meyering  <jim@meyering.net>
80248
80249         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80250         failure, don't leak memory and do call END_UTMP_ENT.
80251
80252 2004-04-16  Jim Meyering  <jim@meyering.net>
80253
80254         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80255         coreutils' stat program.
80256         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80257
80258 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80259
80260         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80261         C89.
80262         (CHAR_BIT): Remove, since we assume C89.
80263         Include <stdint.h> if available, as per current Autoconf CVS advice.
80264
80265 2004-03-31  Jim Meyering  <jim@meyering.net>
80266
80267         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80268         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80269         * m4/xalloc.m4: Likewise.
80270
80271 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80272
80273         Merge from coreutils.
80274
80275         * m4/inttostr.m4: New file.
80276         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80277         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80278         Require gl_CLOCK_TIME.
80279         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80280
80281 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80282
80283         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80284         not bool, to be more consistent with Unix conventions.
80285         Suggested by Bruno Haible.
80286
80287         Merge from coreutils.
80288
80289         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80290         * lib/umaxtostr.c: New files.
80291
80292         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80293         the usual <time.h> dance.
80294         (get_date): Change signature to support fractional time stamps.
80295         All callers changed.
80296         * lib/getdate.y: Include "getdate.h" first, as we can now
80297         assume C89 and don't need to worry about 'const'.
80298         Similarly, include "unlocked-io.h" near start, not in middle.
80299         Include <limits.h>.
80300         (textint.value): Use long int rather than int.
80301         (textint.digits): Use size_t rather than int.
80302         (BILLION, LOG10_BILLION): New constants.
80303         (parser_control): New member rel_ns.  Members day_ordinal,
80304         time_zone, month, day, hour, minutes, rel_year, rel_month,
80305         rel_day, rel_hour, rel_minutes, rel_seconds
80306         are now long int, not int.  Member seconds is now struct timespec,
80307         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80308         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80309         not int.
80310         (%union.intval): Now long int, not int.
80311         New member timespec.
80312         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80313         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80314         (spec): Now is a timespec or an item list.
80315         (timespec, items): New nonterminals.
80316         (time, rel, relunit, number, get_date):
80317         Add support for fractional seconds.
80318         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80319         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80320         (to_hour): First arg is now long int, not int.
80321         (to_year): Returns long int, not int.
80322         Don't treat year -70 like 70.
80323         (tm_diff): Returns long int, not int.
80324         (lookup_word): Use bool instead of int when appropriate.
80325         (yylex): Use size_t for count, not int.
80326         Detect overflow when parsing large integer constants.
80327         Add support for fractions.
80328         (get_date): Make pointers 'const' if possible.
80329         Use more-portable code to detect integer overflow.
80330         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80331         Don't use ctime; it's not reliable if the year has >4 digits.
80332
80333         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80334         This is for compatibility with BSD.
80335
80336         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80337         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80338         From coreutils' system.h.
80339
80340         * lib/userspec.c: Don't include "posixver.h".
80341         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80342         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80343         compatible extension.  Simplify code by removing a boolean int
80344         that was always nonzero if a string was nonnull.
80345
80346 2004-03-30  Jim Meyering  <jim@meyering.net>
80347
80348         Merge from coreutils.
80349
80350         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80351         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80352         on some systems one must include <grp.h> before it.
80353         Reported by Christian Krackowizer.
80354
80355 2004-03-30  Jim Meyering  <jim@meyering.net>
80356
80357         Merge from coreutils.
80358
80359         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80360
80361         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80362         an empty input stream.
80363
80364         * lib/readtokens.c: Include <stdbool.h>.
80365         (readtoken): Use `size_t' rather than int/long.
80366         All callers adjusted.
80367         Use `bool' rather than `int' where appropriate.
80368         Use memset rather than an explicit loop.
80369         Use x2nrealloc rather than xrealloc.
80370         Allow the use of `\0' as a delimiter.
80371         (readtokens): Likewise.
80372         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80373
80374 2004-03-30  Jim Meyering  <jim@meyering.net>
80375
80376         * m4/realloc.m4: Remove file, since now it does no more than
80377         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80378         the `configure.ac' section of module/realloc.
80379         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80380
80381 2004-03-30  Bruno Haible  <bruno@clisp.org>
80382
80383         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80384         nonnull.
80385
80386 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80387
80388         Merge changes to getloadavg.c from coreutils and Emacs.
80389
80390         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80391         Define to an expression, not to the empty string.
80392         Include cloexec.h and xalloc.h.
80393         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80394         Use set_cloexec_flag rather than rolling our own.
80395         * lib/cloexec.c, lib/cloexec.h: New files.
80396
80397 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80398
80399         * m4/cloexec.m4: New file.
80400
80401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80402
80403         * lib/getopt.h: Sync with libc CVS.
80404
80405 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80406             Bruno Haible  <bruno@clisp.org>
80407
80408         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80409         mbswidth.
80410
80411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80412             Bruno Haible  <bruno@clisp.org>
80413
80414         * lib/mbswidth.h: Include <wchar.h> only if
80415         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80416         <wchar.h>.
80417         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80418
80419 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80420
80421         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80422         Sync with libc CVS.
80423         * lib/getopt_int.h: New file, also synced from libc.
80424
80425 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80426
80427         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80428         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80429         Bring back getopt.c, getopt.h, getopt1.c.
80430
80431 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80432
80433         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80434         All uses changed.  Check for sa_sigaction member; this fixes
80435         a bug first reported by Jason Andrade in
80436         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80437
80438 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80439
80440         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80441         '#if' expressions.  Unlike the code it replaces, it does not
80442         depend on (defined _SC_PAGESIZE).  However, it does depend on
80443         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80444         first reported by Jason Andrade in
80445         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80446
80447 2004-02-25  Simon Josefsson  <jas@extundo.com>
80448
80449         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80450
80451 2004-02-25  Simon Josefsson  <jas@extundo.com>
80452
80453         * lib/strdup.h: New file.
80454         * lib/strdup.c: Include it.
80455         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80456         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80457
80458 2004-02-23  Karl Berry  <karl@gnu.org>
80459
80460         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80461         (from fencepost.gnu.org:/gd/gnuorg).
80462
80463 2004-02-23  Karl Berry  <karl@gnu.org>
80464
80465         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80466         * config/srclist.txt: add maintain/standards documents.
80467
80468 2004-02-18  Bruno Haible  <bruno@clisp.org>
80469
80470         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80471         Reported by Derek Robert Price <derek@ximbiot.com>.
80472
80473 2004-02-16  Karl Berry  <karl@gnu.org>
80474
80475         * config/mkinstalldirs, install-sh: update from automake.
80476
80477 2004-02-06  Karl Berry  <karl@gnu.org>
80478
80479         * m4/po.m4: update from gettext 0.14.1.
80480
80481 2004-02-06  Karl Berry  <karl@gnu.org>
80482
80483         * lib/config.charset: update from gettext 0.14.1.
80484
80485 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80486
80487         Add comments and code, prompted by suggestions from Bruno Haible
80488         for sh-quote.
80489         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80490         describing the enum quoting_style values.
80491         * lib/quotearg.c (quotearg_alloc): New function.
80492         (quotearg_buffer_restyled): Treat lone { and } as special.
80493         Treat = as special.  Work around bug with older shells
80494         that "see" a '\' that is really the 2nd byte of a multibyte char.
80495         Quote empty string with shell_quoting_style.
80496
80497 2004-02-03  Bruno Haible  <bruno@clisp.org>
80498
80499         * m4/pipe.m4: New file, from GNU gettext.
80500
80501 2004-02-03  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/pipe.h: New file, from GNU gettext.
80504         * lib/pipe.c: New file, from GNU gettext.
80505
80506 2004-01-27  Bruno Haible  <bruno@clisp.org>
80507
80508         * m4/execute.m4: New file, from GNU gettext.
80509
80510 2004-01-27  Bruno Haible  <bruno@clisp.org>
80511
80512         * lib/execute.h: New file, from GNU gettext.
80513         * lib/execute.c: New file, from GNU gettext.
80514         * lib/w32spawn.h: New file, from GNU gettext.
80515
80516 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80517
80518         Merge from diffutils.
80519
80520         * lib/file-type.c (file_type): Add typed memory objects.
80521         * lib/file-type.h (S_TYPEISTMO): New macro.
80522
80523         * lib/c-stack.h (c_stack_action): Remove argv argument.
80524         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80525         (die): Don't calculate message unless segv_action returns.
80526         (get_stack_location, min_address_from_argv, max_address_from_argv,
80527         volatile stack_base, volatile_stack_size): Remove.
80528         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80529         that every segmentation violation is a stack overflow.  (Ouch!)
80530         See Debian bug 136249 (still outstanding) for more info about why
80531         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80532
80533 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80534
80535         Exit-status fix from coreutils.
80536
80537         Use exit_failure consistently in place of EXIT_FAILURE,
80538         so that program exit statuses are consistent on failure.
80539
80540         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80541         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80542         * lib/argmatch.h: Comment fix to match the above.
80543         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80544         Now a macro referring to exit_failure, instead of a separate
80545         variable.  Include "exitfail.h" to get it.
80546         * lib/xstrtol.h: Include "exitfail.h".
80547         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80548
80549         * lib/long-options.c (parse_long_options): Use prototype
80550         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80551         for clarity.
80552
80553 2004-01-21  Jim Meyering  <jim@meyering.net>
80554
80555         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80556         so as not to conflict with a different-sized __mktime_internal
80557         function in GNU libc.
80558         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80559         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80560
80561 2004-01-20  Karl Berry  <karl@gnu.org>
80562
80563         * config/config.guess: update from config.
80564
80565         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80566
80567 2004-01-20  Bruno Haible  <bruno@clisp.org>
80568
80569         Safer stack allocation.
80570         * lib/setenv.c: Include allocsa.h.
80571         (alloca): Remove fallback definition.
80572         (freea): Remove macro.
80573         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80574         instead of freea.
80575
80576 2004-01-20  Bruno Haible  <bruno@clisp.org>
80577
80578         * m4/eealloc.m4: New file, from GNU gettext.
80579
80580 2004-01-20  Bruno Haible  <bruno@clisp.org>
80581
80582         * m4/allocsa.m4: New file, from GNU gettext.
80583
80584 2004-01-20  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/xallocsa.h: New file, from GNU gettext.
80587         * lib/xallocsa.c: New file, from GNU gettext.
80588
80589 2004-01-20  Bruno Haible  <bruno@clisp.org>
80590
80591         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80592
80593 2004-01-20  Bruno Haible  <bruno@clisp.org>
80594
80595         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80596         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80597         specially.
80598
80599 2004-01-20  Bruno Haible  <bruno@clisp.org>
80600
80601         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80602         patch.
80603
80604 2004-01-20  Bruno Haible  <bruno@clisp.org>
80605
80606         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80607
80608 2004-01-20  Bruno Haible  <bruno@clisp.org>
80609
80610         * lib/eealloc.h: New file.
80611
80612 2004-01-20  Bruno Haible  <bruno@clisp.org>
80613
80614         * lib/binary-io.h: Avoid warnings on Cygwin.
80615
80616 2004-01-20  Bruno Haible  <bruno@clisp.org>
80617
80618         * lib/allocsa.h: New file, from GNU gettext.
80619         * lib/allocsa.c: New file, from GNU gettext.
80620
80621 2004-01-18  Karl Berry  <karl@gnu.org>
80622
80623         * doc/gpl.texi, doc/lgpl.texi: new files.
80624
80625 2004-01-18  Karl Berry  <karl@gnu.org>
80626
80627         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80628         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80629
80630 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80631
80632         Merge from coreutils.
80633
80634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80635         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80636         (gl_DEFAULT_POSIX2_VERSION): Move
80637         the documentation from 'configure' into 'config.hin',
80638         so that 'configure --help' isn't burdened by it and
80639         we don't have to worry about its formatting there.
80640         Reword the documentation so that it's more succinct
80641         and can be run together into a single paragraph.
80642         * m4/same.m4 (gl_SAME): Check for pathconf.
80643
80644 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80645
80646         Merge from coreutils.
80647
80648         * lib/posixver.c: Include posixver.h.
80649
80650         * lib/same.c: Include <stdbool.h>, <limits.h>.
80651         (_POSIX_NAME_MAX): Define if not defined.
80652         (MIN): New macro.
80653         (same_name): If file names are silently truncated, report
80654         that the file names are the same if they are the same after
80655         the silent truncation.
80656
80657         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80658         conversion function.
80659         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80660         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80661         longer needed.
80662
80663 2004-01-15  Jim Meyering  <jim@meyering.net>
80664
80665         Merge from coreutils.
80666
80667         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80668         if no library is required.
80669         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80670         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80671         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80672         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80673         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80674         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80675         value, $ac_cv_search_crypt, if it's "none required".
80676         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80677         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80678         not gl_FUNC_GETLOADAVG.
80679         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80680         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80681
80682 2004-01-15  Jim Meyering  <jim@meyering.net>
80683
80684         Merge from coreutils.
80685
80686         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80687         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80688         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80689
80690         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80691         optional configure-time default.
80692
80693         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80694
80695         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80696
80697 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80698
80699         Merge from coreutils.
80700
80701         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80702         value, $ac_cv_search_nanosleep, if it's "none required".
80703
80704 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80705
80706         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80707         with like-named macro in fnmatch.c.
80708         (EXT): Use an internal constant instead.
80709
80710         Merge fnmatch patches from glibc.
80711         * lib/fnmatch.c (mbsinit): Remove define.
80712         Add libc_hidden_ver (__fnmatch, fnmatch).
80713         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80714         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80715
80716 2004-01-14  Karl Berry  <karl@gnu.org>
80717
80718         * config/install-sh: update from automake.
80719
80720 2004-01-13  Karl Berry  <karl@gnu.org>
80721
80722         * config/install-sh: update from automake.
80723
80724 2004-01-09  Karl Berry  <karl@gnu.org>
80725
80726         * config/install-sh: update from automake.
80727
80728 2004-01-05  Karl Berry  <karl@gnu.org>
80729
80730         * config/config.{sub,guess}: update from config.
80731
80732 2003-12-31  Karl Berry  <karl@gnu.org>
80733
80734         * config/depcomp: update from automake.
80735
80736 2003-12-14  Karl Berry  <karl@gnu.org>
80737
80738         * lib/config.charset: update from gettext-runtime.
80739
80740 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80741
80742         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80743         Bug reported by Alfred M. Szmidt.
80744
80745 2003-12-03  Bruno Haible  <bruno@clisp.org>
80746
80747         * m4/gettext.m4: Upgrade from gettext-0.13.
80748         * m4/po.m4: Upgrade from gettext-0.13.
80749         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80750         * m4/intmax.m4: New file, from gettext-0.13.
80751         * m4/printf-posix.m4: New file, from gettext-0.13.
80752
80753 2003-11-29  Karl Berry  <karl@gnu.org>
80754
80755         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80756
80757 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80758             Bruno Haible  <bruno@clisp.org>
80759
80760         * lib/printf-parse.h: Don't include sys/types.h.
80761         (ARG_NONE): New macro.
80762         (char_directive): Change type of *arg_index fields to size_t.
80763         * lib/printf-parse.c: Don't include sys/types.h.
80764         (SSIZE_MAX): Remove macro.
80765         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80766         Remove unnecessary overflow check.
80767         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80768         fields.
80769
80770 2003-11-25  Bruno Haible  <bruno@clisp.org>
80771
80772         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80773
80774 2003-11-25  Bruno Haible  <bruno@clisp.org>
80775
80776         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80777         gt_TYPE_SSIZE_T.
80778
80779 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80780
80781         * modules/alloca: Remove dependency on xalloc.
80782
80783 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80784
80785         * lib/alloca.c: Remove dependency on xalloc module.
80786         (xalloc_die): Remove.
80787         (memory_full) [!defined emacs]: New macro.
80788         [!defined emacs]: Don't include xalloc.h.
80789         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80790         address arithmetic overflows.  Change datatypes a bit to avoid
80791         unnecessary casts.
80792
80793 2003-11-22  Jim Meyering  <jim@meyering.net>
80794
80795         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80796         s/size/size_t/.
80797
80798 2003-11-21  Karl Berry  <karl@gnu.org>
80799
80800         * config/config.{sub,guess}: update from config.
80801
80802 2003-11-18  Karl Berry  <karl@gnu.org>
80803
80804         * config/config.{sub,guess}: update from config.
80805
80806         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80807
80808 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80809
80810         * README: Mention that S+T cannot overflow if S is the size of
80811         an existing object and T is sufficiently small.
80812
80813 2003-11-17  Jim Meyering  <jim@meyering.net>
80814
80815         On systems without utime and without a utimes function capable of
80816         dealing with a NULL struct utimbuf* argument, this utime replacement
80817         could -- in unusual circumstances -- leak a file descriptor.
80818         * lib/utime.c: Include <unistd.h> and <errno.h>.
80819         (utime_null): Be sure to close `fd' and to preserve errno.
80820         Reported by Geoff Collyer via Arnold Robbins.
80821
80822 2003-11-17  Bruno Haible  <bruno@clisp.org>
80823
80824         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80825         (Depends-on): Add xsize.
80826
80827 2003-11-17  Bruno Haible  <bruno@clisp.org>
80828
80829         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80830
80831 2003-11-17  Bruno Haible  <bruno@clisp.org>
80832
80833         * lib/vasnprintf.c (alloca): Remove fallback definition.
80834         (freea): Remove definition.
80835         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80836         Reported by Paul Eggert.
80837
80838 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80839             Bruno Haible  <bruno@clisp.org>
80840
80841         Protect against address arithmetic overflow.
80842         * lib/printf-args.h: Include stddef.h.
80843         (arguments): Change type of field 'count' to size_t.
80844         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80845         'unsigned int' where appropriate.
80846         * lib/printf-parse.h: Include sys/types.h.
80847         (char_directive): Change type of *arg_index fields to ssize_t.
80848         (char_directives): Change type of fields 'count', max_*_length to
80849         size_t.
80850         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80851         (SSIZE_MAX): Define fallback value.
80852         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80853         instead of 'int' where appropriate. Check a_allocated, d_allocated
80854         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80855         * lib/vasnprintf.c: Include xsize.h.
80856         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80857         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80858         overflow. Avoid wraparound when converting a width or precision from
80859         decimal to binary.
80860
80861 2003-11-16  Bruno Haible  <bruno@clisp.org>
80862
80863         Update from GNU gettext.
80864         * lib/printf-parse.c: Generalize to it can be compiled for wide
80865         strings.
80866         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80867         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80868         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80869         SNPRINTF): New macros.
80870         Don't include <alloca.h> if the file is used inside libintl.
80871         (local_wcslen): New function, for Solaris 2.5.1.
80872         (VASNPRINTF): Use it instead of wcslen.
80873
80874 2003-11-16  Bruno Haible  <bruno@clisp.org>
80875
80876         * lib/xsize.h (xmax): New function.
80877         (xsum, xsum3, xsum4): Declare as "pure" functions.
80878
80879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80880
80881         * modules/xalloc (Files): Undo latest change, since xalloc.h
80882         no longer needs SIZE_MAX or PTRDIFF_MAX.
80883
80884 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80885
80886         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80887         gl_PTRDIFF_MAX.
80888
80889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80890
80891         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80892         "return", to pacify some unknown compiler.  Problem reported
80893         by Joerg Schilling.
80894
80895 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80896
80897         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80898         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80899         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80900         heuristic is just as accurate as far as we know, and it removes a
80901         dependency on size_max.m4 and ptrdiff_max.m4.
80902
80903 2003-11-11  Bruno Haible  <bruno@clisp.org>
80904
80905         * modules/xsize (Files): Add m4/size_max.m4.
80906         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80907
80908 2003-11-11  Bruno Haible  <bruno@clisp.org>
80909
80910         * m4/size_max.m4: New file.
80911         * m4/ptrdiff_max.m4: New file.
80912         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80913         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80914         (gl_XALLOC): Invoke it.
80915
80916 2003-11-11  Bruno Haible  <bruno@clisp.org>
80917
80918         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80919         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80920         defined.
80921
80922 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80923
80924         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80925         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80926         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80927         From Bruno Haible.
80928         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80929         not (size_t) -1, since it's defined here.
80930
80931 2003-11-09  Karl Berry  <karl@gnu.org>
80932
80933         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80934
80935 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80936
80937         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80938         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80939         Reject sizes of exactly SIZE_MAX bytes.
80940         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80941         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80942
80943 2003-11-05  Bruno Haible  <bruno@clisp.org>
80944
80945         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80946         SIZE_MAX defined in <limits.h> on Solaris.
80947
80948 2003-11-04  Jim Meyering  <jim@meyering.net>
80949
80950         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80951         variable names, rather than @VAR@.
80952         * modules/poll: Likewise.
80953
80954 2003-11-04  Bruno Haible  <bruno@clisp.org>
80955
80956         * modules/xsize: New file.
80957         * modules/linebreak: Depend on xsize.
80958         * MODULES.html.sh (func_all_modules): Add xsize.
80959
80960 2003-11-04  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/xsize.m4: New file.
80963
80964 2003-11-04  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/xsize.h: New file.
80967         * lib/linebreak.c: Include xsize.h.
80968         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80969         argument for overflow.
80970         Suggested by Paul Eggert.
80971
80972 2003-11-03  Karl Berry  <karl@gnu.org>
80973
80974         * config/config.{guess,sub}: update from config.
80975
80976 2003-11-03  Jim Meyering  <jim@meyering.net>
80977
80978         * modules/userspec (lib_SOURCES): Add userspec.h.
80979         (Include): Add "userspec.h".
80980         Improve description.
80981
80982 2003-11-03  Jim Meyering  <jim@meyering.net>
80983
80984         * lib/userspec.c: Include "userspec.h".
80985         * lib/userspec.h: New file.
80986
80987 2003-11-03  Bruno Haible  <bruno@clisp.org>
80988
80989         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80990
80991 2003-11-03  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80994         available, to avoid (extremely rare) race condition.
80995         Suggested by Paul Eggert.
80996
80997 2003-11-02  Karl Berry  <karl@gnu.org>
80998
80999         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81000
81001 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81002
81003         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81004         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81005         (read_filesystem_list): Set and use me_type_malloced.
81006         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81007         whatever the type happens to be), for brevity and consistency.
81008         Check for size calculation overflow on Alphas running OSF/1.
81009
81010 2003-10-31  Jim Meyering  <jim@meyering.net>
81011
81012         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81013
81014         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81015
81016 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81017             Bruno Haible  <bruno@clisp.org>
81018
81019         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81020         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81021
81022 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81025         netbsd*-gnu*.  Suggested by Robert Millan.
81026
81027 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81028
81029         * modules/group-member: Depend on stdbool.
81030
81031 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81032
81033         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81034
81035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81036
81037         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81038         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81039         after the 'gnu' in these cases.  This fixes some bugs in the
81040         previous change, and is based on suggestions by Robert Millan.
81041
81042 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81043
81044         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81045         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81046         no longer needed.
81047         * lib/quotearg.c (quotearg_n_options): Use it.
81048         * lib/group-member.c: Include <stdbool.h>.
81049         (free_group_info): Arg is now const *; don't free arg.
81050         (get_group_info): Now returns bool and accepts struct group_info *,
81051         rather than returning a malloc'ed struct group_info *.
81052         All uses changed.  Check for overflow in internal size calculation.
81053
81054         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81055         rather than xmalloc/xrealloc.
81056         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81057         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81058         conformance bug: the old code used a pointer after freeing the
81059         storage that it addressed.
81060         * lib/hash.c (hash_initialize): Simplify the code by using
81061         xalloc_oversized rather than doing it by hand.
81062         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81063         the buffer preserved.  Use free and xmalloc instead.
81064         * lib/quotearg.c (quotearg_n_options): Likewise.
81065         Use a simpler test for size overflow.  Don't use xalloc_oversized
81066         because unsigned int might be wider than size_t (!); this suggests
81067         that we should switch from unsigned int to size_t for slot numbers.
81068
81069 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81070
81071         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81072         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81073         NetBSD kernels.  Requested by Richard Stallman.
81074
81075 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81076
81077         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81078         to allocate the returned structure.  Do not allocate a subarray,
81079         as x2nrealloc will do that.
81080         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81081         instead of xnrealloc.
81082         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81083
81084 2003-10-27  Bruno Haible  <bruno@clisp.org>
81085
81086         * lib/stdbool_.h: Better support for BeOS.
81087
81088 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81089
81090         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81091         now uses inline.
81092
81093 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81094
81095         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81096         callers that want to do their own size-overflow checking.  Include
81097         <stdbool.h>, since xalloc_oversized returns bool.
81098         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81099         to use xalloc_oversized.
81100
81101         Add two functions x2realloc, x2nrealloc, for programs that grow
81102         arrays dynamically by doubling their sizes.
81103         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81104         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81105         New functions.
81106
81107         Port to C99 semantics for 'inline' of external functions.
81108         Bug reported by Bruno Haible.
81109         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81110         with the old contents of xnmalloc.
81111         (xnmalloc, xmalloc): Use it.
81112         (xnrealloc_inline): New static inline function,
81113         with the old contents of xnrealloc.
81114         (xnrealloc, xrealloc): Use it.
81115
81116         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81117         that.
81118
81119 2003-10-26  Karl Berry  <karl@gnu.org>
81120
81121         * config/srclist.txt (COPYING.DOC): no longer available from
81122         /gd/gnuorg; don't know where the ultimate source is.
81123
81124 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81125
81126         Fix several address-calculation bugs in the hash modules,
81127         plus some minor code cleanup.
81128
81129         * lib/hash.h: Include <stdbool.h>, for bool.
81130         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81131         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81132         hash_get_n_entries, hash_get_max_bucket_length,
81133         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81134         hash_rehash): Use size_t rather than unsigned.
81135         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81136         hash_get_n_buckets_used, hash_get_n_entries,
81137         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81138         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81139         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81140         Likewise.
81141         (SIZE_MAX): Define if not defined.
81142         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81143         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81144         hash_print):
81145         Use const * when possible.
81146         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81147         (check_tuning): Fix bug: if tuning parameters were very close to
81148         0 or 1, rounding errors could have caused subscript violations.
81149         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81150         (hash_initialize): Add 'fail:' label
81151         to free table and return NULL, and use it to simplify code.
81152         Use calloc rather than clearing the storage ourself.
81153         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81154         buffer size calculations.
81155         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81156         Include <stddef.h>, for size_t.
81157         * lib/hash-pjw.c (hash_pjw): Likewise.
81158         Switch to method described by Bruno Haible.
81159         Include <limits.h>, for CHAR_BIT.
81160         (SIZE_BITS): New macro.
81161
81162 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81163
81164         * m4/getline.m4 (AM_FUNC_GETLINE):
81165         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81166         hosts.  Problem reported by Derek Robert Price in
81167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81168         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81169         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81170
81171 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81172
81173         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81174         ceiling the allocation at NMAX bytes rather than silently
81175         discarding input bytes before NMAX is reached.  This makes
81176         a difference only if NMAX exceeds SIZE_MAX / 2.
81177
81178         * lib/obstack.c: Merge from glibc.
81179         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81180         Add libc_hidden_def (_obstack_newchunk).
81181         (_obstack_free) [! defined _LIBC]: Remove.
81182         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81183         a clone of the function body.
81184         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81185         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81186
81187         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81188         glibc.
81189         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81190         arg to memcpy.
81191
81192         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81193         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81194         Don't use lvalue casts, as GCC plans to remove support for them
81195         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81196         was also present in the non-GCC version, indicating that this
81197         code had always been buggy and had never been widely used.
81198         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81199         Use the fast variant of each macro, rather than copying the
81200         definiens of the fast variant; that way, we'll be more likely to
81201         catch future bugs in the fast variants.
81202
81203 2003-10-20  Bruno Haible  <bruno@clisp.org>
81204
81205         * modules/wait-process: New file.
81206         * MODULES.html.sh (func_all_modules): Add wait-process.
81207
81208 2003-10-20  Bruno Haible  <bruno@clisp.org>
81209
81210         * m4/wait-process.m4: New file.
81211
81212 2003-10-20  Bruno Haible  <bruno@clisp.org>
81213
81214         * lib/wait-process.h: New file, from GNU gettext.
81215         * lib/wait-process.c: New file, from GNU gettext.
81216
81217 2003-10-19  Jim Meyering  <jim@meyering.net>
81218
81219         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81220         HPUX 10.20.
81221
81222 2003-10-18  Karl Berry  <karl@gnu.org>
81223
81224         * config/config.guess: update from config.
81225
81226 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81227
81228         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81229         (getgroups): First arg is int, not size_t.
81230         Don't let 'free' mangle errno.
81231
81232 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81233
81234         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81235
81236 2003-10-16  Karl Berry  <karl@gnu.org>
81237
81238         * config/config.{guess,sub}: update from config.
81239
81240 2003-10-16  Jim Meyering  <jim@meyering.net>
81241
81242         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81243         memcpy.
81244
81245 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81246
81247         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81248         (SIZE_MAX): Remove.
81249         (new_exclude, add_exclude_file): Initial size no longer needs to
81250         be a power of 2.
81251         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81252         our own address arithmetic overflow checking.
81253
81254         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81255         (fnmatch): Do not alloca more than 2000 wide characters;
81256         instead, use malloc for large buffers.
81257         Check for address arithmetic overflow, and return -1
81258         with errno set to ENOMEM in that case.
81259         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81260         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81261         instead, return -1.  Check for address arithmetic overflow.
81262
81263 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81264
81265         Handle invalid suffixes and overflow independently, so that
81266         callers can treat them independently as needed.  Fix some bugs in
81267         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81268         suffix for a human-readable blocksize.  The major caller-visible
81269         change is the addition of a new
81270         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81271         that both overflow and suffix chars were found.
81272
81273         * lib/human.c (humblock): Don't check separately for invalid suffix
81274         char; that is xstrtoumax's job (now that its bug is fixed).
81275         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81276         INTMAX_MAX]: New macros.
81277         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81278         TYPE_MAXIMUM): New macros.
81279         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81280         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81281         if overflow occurs, as it's what __strtol does and it's more useful
81282         in practice.
81283         (__xstrtol): If __strtol reports some error other than ERANGE,
81284         reflect it to the caller as LONGINT_INVALID.  If it reports
81285         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81286         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81287         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81288         value.
81289         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81290         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81291         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81292         [defined UINTMAX_MAX]: New macros.
81293
81294 2003-10-14  Bruno Haible  <bruno@clisp.org>
81295
81296         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81297
81298 2003-10-14  Bruno Haible  <bruno@clisp.org>
81299
81300         * m4/sig_atomic_t: New file, from GNU gettext.
81301         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81302
81303 2003-10-14  Bruno Haible  <bruno@clisp.org>
81304
81305         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81306         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81307         Also use volatile where needed.
81308
81309 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81310
81311         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81312         Change maintainer from Bruno Haible to 'all'.
81313
81314 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81315
81316         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81317
81318 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81319
81320         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81321         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81322         and define in terms of the other primitives.
81323         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81324         (SIZE_MAX): Define if not already defined.
81325         (array_size_overflow): New function.
81326         (xalloc_die): Abort instead of exiting if 'error' returns.
81327         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81328         (xmalloc, xrealloc): Use them.
81329         (xcalloc): Check for address arithmetic overflow.
81330         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81331         a bit faster than strcpy.
81332
81333 2003-10-10  Simon Josefsson  <jas@extundo.com>
81334
81335         * modules/argp (Depends-on): Add restrict and strcase.
81336
81337 2003-10-10  Simon Josefsson  <jas@extundo.com>
81338
81339         * m4/argp.m4: Add AC_C_INLINE.
81340
81341 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81342
81343         Merge getpass from libc, plus a few fixes.
81344
81345         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81346         Include <stdbool.h>.
81347         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81348         __fsetlocking to empty.
81349         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81350         do include <bits/libc-lock.h>.
81351         Do not include <fcntl.h>; not needed.
81352         [_LIBC]: Include <wchar.h>.
81353         (NOTCANCEL_MODE): New macro.
81354         (flockfile, funlockfile) [_LIBC]: New macros.
81355         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81356         [!_LIBC]: New macros.
81357         (call_fclose): New function.
81358         (getpass): Use it.  Save tty stream separately; this simplifies the
81359         code and makes it more reliable if stdin happens to equal stdout.
81360         Invoke __fsetlocking on tty.
81361         Handle thread cancellation if needed.
81362         Namespace cleanup (use __tcgetattr, __getline).
81363         Use bool for Booleans.
81364         [USE_IN_LIBIO]: Handle wide streams.
81365         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81366         stream might go where.
81367
81368         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81369         doesn't have to include <stdio.h> before us.
81370         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81371         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81372         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81373         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81374         if not declared, so that we can use getpass.c code from libc without
81375         rewriting it.
81376         (flockfile, ftrylockfile, funlockfile): New macros.
81377
81378 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81379
81380         * modules/getpass: Depend on stdbool.
81381
81382 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81383
81384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81385
81386 2003-10-07  Karl Berry  <karl@gnu.org>
81387
81388         * config/config.{guess,sub}: update from config.
81389
81390 2003-10-06  Jim Meyering  <jim@meyering.net>
81391             Bruno Haible  <bruno@clisp.org>
81392
81393         This lets translators provide better translations for the
81394         "Written by ..." part of --version output.
81395         * lib/version-etc.h: Include stdarg.h.
81396         (version_etc_copyright): Declare as readonly.
81397         (version_etc): Make this function variadic with a NULL-terminated list
81398         of author name strings.
81399         (version_etc_va): New declaration.
81400         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81401         (version_etc_copyright): Declare as readonly.
81402         (version_etc_va): New function. Provide a different translatable string
81403         for each possible number of authors < 10. Abbreviate when there are 10
81404         authors or more.
81405         (version_etc): Make this function variadic. Call version_etc_va.
81406         Suggestion from Gary V. Vaughan.
81407
81408         * lib/long-options.h (parse_long_options): Change prototype: the
81409         authors string is moved to the end and becomes variadic.
81410         * lib/long-options.c: Include stdarg.h.
81411         (parse_long_options): Make this function variadic, too.
81412         Call version_etc_va, not version_etc.
81413
81414 2003-10-06  Bruno Haible  <bruno@clisp.org>
81415
81416         * modules/version-etc-2: Remove file.
81417         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81418
81419 2003-10-06  Bruno Haible  <bruno@clisp.org>
81420
81421         * modules/fatal-signal: New file.
81422         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81423
81424 2003-10-06  Bruno Haible  <bruno@clisp.org>
81425
81426         * m4/fatal-signal.m4: New file.
81427         * m4/signalblocking.m4: New file, from GNU gettext.
81428
81429 2003-10-06  Bruno Haible  <bruno@clisp.org>
81430
81431         * lib/version-etc-2.h: Remove file.
81432         * lib/version-etc-2.c: Remove file.
81433
81434 2003-10-06  Bruno Haible  <bruno@clisp.org>
81435
81436         * lib/fatal-signal.h: New file, from GNU gettext.
81437         * lib/fatal-signal.c: New file, from GNU gettext.
81438
81439 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81440
81441         * README: Rework advice for preventing empty .o files.
81442         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81443         not <sys/types.h>.
81444
81445 2003-10-04  Karl Berry  <karl@gnu.org>
81446
81447         * lib/argp*: update from libc.
81448
81449 2003-10-04  Karl Berry  <karl@gnu.org>
81450
81451         * config/config.{guess,sub}: update from config.
81452
81453 2003-10-02  Bruno Haible  <bruno@clisp.org>
81454
81455         * modules/lchown (Include): Add lchown.h.
81456         * modules/time_r (Include): Use "..." syntax.
81457         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81458
81459 2003-10-01  Simon Josefsson  <jas@extundo.com>
81460
81461         * MODULES.html.sh (func_all_modules): Move gethostname from section
81462         'based on' to section 'lacking' POSIX:2001.
81463
81464 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81465
81466         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81467         to output mode on the same stream.
81468
81469 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81470
81471         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81472         Fix arg typo in previous patch.
81473
81474 2003-09-28  Jim Meyering  <jim@meyering.net>
81475
81476         * lib/error.c: Correct cpp indentation.
81477
81478 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81479
81480         * modules/free: New file.
81481
81482 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81483
81484         * m4/free.m4: New file.
81485
81486 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81487
81488         * lib/minmax.h (MIN, MAX)
81489         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81490         Omit the special code that used __typeof__, since we worry that
81491         it could be more trouble than it's worth.  See:
81492         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81493         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81494
81495         * lib/free.c: New file.
81496
81497 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81498
81499         Trivial fixes to Makefile.am parts of module listings.
81500         * modules/strstr: Append strstr.h to lib_SOURCES.
81501         * modules/strcase: Likewise, for strcase.h.
81502
81503 2003-09-27  Karl Berry  <karl@gnu.org>
81504
81505         * config/mkinstalldirs: update from automake.
81506
81507 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81508
81509         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81510         (error_tail): Do not loop, reallocating temporary buffer, since
81511         the output cannot contain more wide characters than the input
81512         contains bytes, the size must be big enough already.  This avoids
81513         one potential size overflow calculation.  Check for size overflow
81514         when calculating temporary buffer size.  Free temporary buffer
81515         when done, if it was allocated with malloc; this plugs a memory
81516         leak.  Remove casts from void * to pointers, that are no longer
81517         needed now that we're assuming C89 or better.
81518
81519         Merge error changes from glibc.
81520
81521         * lib/error.c, error.h: Update copyright notice header to match glibc.
81522         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81523         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81524         Disable cancellation while printing error.
81525         * lib/error.h: Prepend __ to parameter names.
81526
81527 2003-09-26  Jim Meyering  <jim@meyering.net>
81528
81529         * lib/error.c (error_tail): Move some declarations
81530         into inner scope where the local variables are used.
81531
81532 2003-09-26  Bruno Haible  <bruno@clisp.org>
81533
81534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81535         stpncpy().
81536         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81537
81538 2003-09-26  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81541         (stpncpy): Define as alias for gnu_stpncpy.
81542         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81543
81544 2003-09-25  Simon Josefsson  <jas@extundo.com>
81545
81546         * lib/xgetdomainname.h: New file.
81547         * lib/xgetdomainname.c: New file.
81548
81549 2003-09-25  Simon Josefsson  <jas@extundo.com>
81550             Bruno Haible  <bruno@clisp.org>
81551
81552         * modules/getdomainname: New file.
81553         * modules/xgetdomainname: New file.
81554         * MODULES.html.sh (func_all_modules): Add getdomainname,
81555         xgetdomainname.
81556
81557 2003-09-25  Simon Josefsson  <jas@extundo.com>
81558             Bruno Haible  <bruno@clisp.org>
81559
81560         * m4/getdomainname.m4: New file.
81561
81562 2003-09-25  Simon Josefsson  <jas@extundo.com>
81563             Bruno Haible  <bruno@clisp.org>
81564
81565         * lib/getdomainname.h: New file.
81566         * lib/getdomainname.c: New file.
81567
81568 2003-09-25  Karl Berry  <karl@gnu.org>
81569
81570         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81571
81572 2003-09-25  Karl Berry  <karl@gnu.org>
81573
81574         * config/install-sh: update from automake.
81575
81576 2003-09-25  Bruno Haible  <bruno@clisp.org>
81577
81578         * modules/version-etc-2: New file, from modules/version-etc with
81579         modifications.
81580         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81581
81582 2003-09-25  Bruno Haible  <bruno@clisp.org>
81583
81584         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81585         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81586
81587 2003-09-24  Simon Josefsson  <jas@extundo.com>
81588
81589         * modules/xgethostname: Add xgethostname.h.
81590
81591 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81592
81593         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81594         the buffer associated with the argument.  Bug reported by
81595         Simon Josefsson.
81596
81597 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81598
81599         * README: Document assumptions that 'int' is at least 32 bits
81600         wide, that integer arithmetic is 2's complement without overflow,
81601         that there are no holes in integer values, that adding sizes of
81602         two nonoverlapping objects can't overflow, and that all-bits-zero
81603         yields scalar zero.  Fix spelling and capitalization typos.
81604
81605 2003-09-19  Karl Berry  <karl@gnu.org>
81606
81607         * lib/argp.h: update from libc.
81608
81609 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81610
81611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81612         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81613         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81614
81615 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81616
81617         * gnulib-tool: Use "test -h", not "test -L", for portability
81618         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81619         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81620         (sed_extract_prog): Issue s commands one-by-one, rather than
81621         using \| in one s command.
81622
81623 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81624
81625         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81626         input error, instead of returning NULL the next time we are called
81627         (and therefore losing track of errno).
81628
81629 2003-09-16  Bruno Haible  <bruno@clisp.org>
81630
81631         * gnulib-tool (func_create_testdir): Warn about duplicated
81632         dependencies.
81633
81634 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81635
81636         * modules/argmatch, modules/fatal, modules/obstack,
81637         modules/xalloc, modules/xgethostname: Sort dependencies by
81638         importance, not alphabetically.
81639
81640 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81641
81642         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81643         fails, so that the caller gets the proper errno.
81644
81645         * lib/readutmp.c (read_utmp): Likewise.
81646         Check for fstat error.  Close stream and free storage
81647         when failing.
81648
81649 2003-09-14  Karl Berry  <karl@gnu.org>
81650
81651         * config/srclist.txt (strdup.c): disable for c89 changes.
81652
81653 2003-09-14  Jim Meyering  <jim@meyering.net>
81654
81655         * lib/getloadavg.c: Correct cpp indentation.
81656         * lib/strdup.c: Likewise.
81657         * lib/vasnprintf.c: Likewise.
81658
81659 2003-09-14  Bruno Haible  <bruno@clisp.org>
81660
81661         * modules/fwriteerror: New file.
81662         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81663
81664 2003-09-14  Bruno Haible  <bruno@clisp.org>
81665
81666         * lib/fwriteerror.h: New file.
81667         * lib/fwriteerror.c: New file.
81668
81669 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81670
81671         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81672         modules/xgethostname, modules/xalloc: Depend on exit.
81673
81674 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81675
81676         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81677
81678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81679         and AC_MINIX, too, so that their extensions are available.
81680
81681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81682         This macro has been superseded by gl_BACKUPFILE.
81683
81684         More patches to assume C89 or better.
81685
81686         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81687
81688         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81689         unconditionally.
81690         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81692         Include <string.h>, <stdlib.h> unconditionally.
81693         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81694         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81695         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81696         headers or for string.h.
81697         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81698         or strtoul.
81699
81700         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81701         headers.
81702         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81703         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81705         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81706         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81708         memcpy, memset.
81709         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81710         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81711         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81712         strtol.
81713         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81714         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81715         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81716         strtoul.
81717
81718 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81719
81720         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81721         * lib/obstack.c [!defined _LIBC]: Likewise.
81722         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81723         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81724         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81725
81726         More changes to assume C89 or better.
81727
81728         * lib/error.c (error_tail): Assume vprintf.
81729
81730         * lib/argmatch.c (getenv): Remove decl.
81731         * lib/progreloc.c (get_full_program_name): Define via prototype.
81732         * lib/setenv.c (clearenv): Likewise.
81733         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81734         needed.
81735         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81736         (malloc, memcpy): Remove decls.
81737         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81738         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81739         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81740         (memcpy): Remove macro.
81741         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81742         (__P): Remove.  All uses removed.
81743         (PTR): Remove.  All uses changed to void *.
81744         (CHAR_BIT, NULL): Remove.
81745         (spaces, zeros, memset_space, memset_zero)
81746         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81747         Remove.
81748         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81749         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81750         Define with prototype.
81751         Remove now-unnecessary prototype decl.
81752         (extra_args_spec): Assume ANSI C.  All uses changed.
81753         (extra_args_spec_iso): Remove.
81754         (my_strftime, emacs_strftimeu): Define via prototype.
81755         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81756         unconditionally.
81757         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81758         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81759         (strtoul, strtol): Remove decls.
81760         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81761         LONG_MAX): Remove.
81762         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81763         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81764         (LOCALE_PARAM_PROTO): New macro.
81765         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81766         (INTERNAL (strtol), strtol): Define with a prototype.
81767         (PARAMS): Remove.  All uses removed.
81768         * lib/tempname.c: Include <string.h> unconditionally.
81769         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81770         * lib/xgethostname.c (main): Define with a prototype.
81771         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81772         Include <stdlib.h> unconditionally.
81773         (calloc, malloc, realloc, free): Remove decls.
81774         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81775         Include <stdlib.h> unconditionally.  Sort include file names.
81776         (strtod): Remove.
81777         (xstrtod): Define with a prototype.
81778         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81779         (strtol, strtoul): Remove decls.
81780
81781 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81782
81783         More patches to assume C89 or better.
81784         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81785         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81786         string.h, memchr, STDC_HEADERS.
81787
81788 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81789
81790         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81791         Include <stdlib.h>, <string.h> unconditionally.
81792         Remove now-unnecessary cast to char *.
81793         * lib/strnlen.c: Include <string.h> unconditionally.
81794         * lib/yesno.c (yesno): Define with a prototype.
81795
81796 2003-09-11  Bruno Haible  <bruno@clisp.org>
81797
81798         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81799
81800 2003-09-10  Jim Meyering  <jim@meyering.net>
81801
81802         * lib/error.c: Correct indentation of cpp directives.
81803
81804 2003-09-10  Bruno Haible  <bruno@clisp.org>
81805
81806         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81807         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81808         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81809         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81810         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81811         <stdlib.h> and <string.h> checks.
81812         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81813         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81814
81815 2003-09-10  Bruno Haible  <bruno@clisp.org>
81816
81817         * lib/strcspn.c: Include <string.h> unconditionally.
81818         * lib/strpbrk.c: Include <string.h> unconditionally.
81819         * lib/strstr.c: Include <string.h> unconditionally.
81820         * lib/unicodeio.c: Include <string.h> unconditionally.
81821         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81822         * lib/unsetenv.c: Likewise.
81823         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81824         * lib/yesno.c: Include <stdlib.h> unconditionally.
81825         (rpmatch): Add prototype.
81826
81827 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81828
81829         More patches to assume C89 or better.
81830         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81831         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81832         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81833         or for string.h.
81834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81835         stdlib.h.
81836         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81837         C headers.
81838         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81839         string.h.
81840         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81841         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81842         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81843         or for string.h.
81844         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81845         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81846         C headers.
81847         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81848         memcpy.
81849         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81850         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81851         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81852         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81853         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81854         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81855         string.h, free.
81856         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81857         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81858         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81859         C headers, or for string.h.
81860         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81861         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81862         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81863         headers, memory.h, stdlib.h, string.h, strings.h.
81864         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81865         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81866         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81867         strchr.
81868         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81869         headers, memory.h, string.h.
81870         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81871         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81872         free.
81873         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81874         headers.
81875         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81876         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81877         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81878         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81879         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81880
81881 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81882
81883         More K&R removal.
81884
81885         * lib/acosl.c (main): Use a prototype.
81886         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81887         tanl.c: Likewise.
81888
81889         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81890
81891         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81892         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81893         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81894         with a prototype.
81895         * lib/getopt.c (const): Remove macro.
81896         Include <string.h> unconditionally.
81897         (my_index): Remove; all uses changed to strchr.
81898         (strlen): Remove decl.
81899         (exchange): Remove forward decl; no longer needed.
81900         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81901         Define with prototype.
81902         * lib/getopt1.c (const): Remove macro.
81903         (getopt_long, getopt_long_only, main): Define with prototype.
81904
81905         * lib/getugroups.c: Include <string.h> unconditionally.
81906
81907         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81908         (getusershell, setusershell, endusershell, readname, main):
81909         Define with prototypes.
81910
81911         * lib/group-member.c: Include group-member.h first.
81912         Include <stdlib.h> unconditionally.
81913
81914         * lib/hard-locale.c: Include hard-locale.h first.
81915         Include <stdlib.h>, <string.h> unconditionally.
81916
81917         * lib/hash.c (free, malloc): Remove decls.
81918         Include <stdlib.h> unconditionally.
81919
81920         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81921         (getenv): Do not declare.
81922
81923         * lib/idcache.c: Include <string.h> unconditionally.
81924
81925         * lib/long-options.c: Include long-options.h first, to test interface.
81926         Include <stdlib.h> unconditionally.
81927
81928         * lib/makepath.c: Include makepath.h first, to test interface.
81929         Include <stdlib.h> and <string.h> unconditionally.
81930
81931         * lib/linebuffer.c: Include <stdlib.h>.
81932         (free): Remove decl.
81933
81934         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81935         stddef.h. rpl_malloc returns void *, not char *.
81936         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81937         prototype.
81938
81939         * lib/md5.h: Include <limits.h> unconditionally.
81940         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81941         (__P): Remove; all uses removed.
81942         * lib/md5.c: Include "md5.h" first.
81943         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81944         md5_buffer, md5_process_bytes, md5_process_block):
81945         Define with prototypes.
81946         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81947         * lib/sha.c: Include "sha.h" first.
81948         Include <stdlib.h>, <string.h> unconditionally.
81949
81950         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81951         * lib/memcmp.c (__ptr_t): Likewise.
81952         * lib/memrchr.c (__ptr_t): Likewise.
81953         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81954         Include <string.h> unconditionally.
81955         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81956         * lib/memchr.c: Include <stdlib.h> unconditionally.
81957         * lib/memchr.c (LONG_MAX): Remove.
81958         * lib/memrchr.c (LONG_MAX): Likewise.
81959         * lib/memchr.c (__memchr): Define via a prototype.
81960         * lib/memrchr.c (__memrchr): Likewise.
81961         * lib/memcmp.c (__P): Remove, and remove all uses.
81962         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81963         Remove forward decls; no longer needed.
81964         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81965         Use types required by C89 in prototype.
81966
81967         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81968         * lib/savedir.c: Likewise.
81969         * lib/mkdir.c (free): Remove decl.
81970         * lib/rmdir.c (rmdir): Define with a prototype.
81971         * lib/savedir.c: Include savedir.h first, to test interface.
81972
81973         * lib/mktime.c (STDC_HEADERS): Remove.
81974         Include <stdlib.h>, <string.h> unconditionally.
81975
81976         * lib/modechange.c: Include <stdlib.h> unconditionally.
81977         (malloc): Remove decl.
81978
81979         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81980         (free): Remove decl.
81981
81982         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81983         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81984         (This type really should be intptr_t, but that's a C99ism.)
81985         (_obstack_memcpy): Remove: all uses changed to memcpy.
81986         Include <string.h> unconditionally.
81987         (struct obstack): Assume __STDC__ for types of members
81988         chunkfun, freefun, extra_arg.
81989         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81990         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81991         obstack_begin, obstack_specify_allocation,
81992         obstack_specify_allocation_with_arg, obstack_chunkfun,
81993         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81994         Remove unprototyped decls and the macros that use them.
81995         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81996         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81997         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81998         (defined __STDC__ && __STDC__)]:
81999         Remove nonprototyped code.
82000         Include <stdlib.h> unconditionally.
82001         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82002         _obstack_allocated_p, _obstack_free, obstack_free,
82003         _obstack_memory_used, print_and_abort):
82004         Define using prototypes.
82005         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82006         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82007         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82008         obstack_next_free, obstack_object_size, obstack_room) [0]:
82009         Remove unused, unprototyped code.
82010
82011         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82012
82013         * lib/physmem.c (physmem_total, physmem_available, main): Define
82014         with prototypes.
82015
82016         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82017         (main): Define with a prototype.
82018
82019         * lib/posixver.c (getenv): Remove decl.
82020
82021         * lib/putenv.c (malloc): Returns void *, not char *.
82022         Include <string.h> unconditionally.
82023         (strchr, memcpy, NULL): Do not define.
82024
82025         * lib/readtokens.c: Include readtokens.h first, to test interface.
82026         Include <stdlib.h>, <string.h> unconditionally.
82027         (init_tokenbuffer): Define with a prototype.
82028
82029         * lib/regex.c (PARAMS): Remove.  All uses removed.
82030         All uses of _RE_ARGS removed, too.
82031         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82032         unconditionally.
82033         (bzero): Assume memset exists.
82034         (memcmp, memcpy, NULL): Remove.
82035         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82036         char, or assignments to local vars of type signed char.
82037         (init_syntax_once, PREFIX(extract_number_and_incr),
82038         PREFIX(print_partial_compiled_pattern),
82039         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82040         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82041         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82042         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82043         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82044         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82045         wcs_compile_range, byte_compile_range, truncate_wchar,
82046         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82047         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82048         count_mbs_length, wcs_re_match_2_internal,
82049         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82050         PREFIX(alt_match_null_string_p),
82051         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82052         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82053         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82054         now-unnecessary declaration, if any.
82055         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82056         regcomp, regexec):
82057         Remove now-unnecessary casts among pointer types.
82058         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82059
82060         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82061         (free): Remove decl.
82062
82063         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82064
82065         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82066         (free): Remove decl.
82067
82068         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82069         * lib/xgetcwd.c: Likewise.
82070
82071         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82072         (free): Remove decl.
82073
82074         * lib/strchrnul.c (strchrnul): Define with a prototype.
82075         Fix bug: c_in was not converted to char before searching.
82076
82077         The following changes are not K&R related:
82078
82079         * lib/group-member.h: Include <sys/types.h>, so that this file is
82080         self-contained.
82081         * lib/makepath.h: Likewise.
82082
82083         * lib/getusershell.c (readname, default_index, line_size, readname):
82084         Use size_t, not int, for sizes.
82085         (readname): If the size overflows, report an error instead of
82086         looping forever.
82087
82088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82089
82090         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82091         libc.
82092
82093 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82094
82095         * README: New section: portability guidelines.
82096
82097 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82098
82099         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82100         C89 spec.
82101
82102 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82103
82104         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82105
82106 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82107
82108         Assume C89 or better; remove K&R cruft.
82109         A few of these changes were first proposed by Derek Robert Price
82110         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82111
82112         * lib/addext.c: Include <string.h> unconditionally.
82113         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82114         Don't declare getenv or malloc.
82115
82116         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82117         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82118         (NULL): Remove.
82119         (find_stack_direction, alloca): Use prototypes.
82120
82121         * lib/atexit.c (atexit): Define using a prototype.
82122
82123         * lib/basename.c, dirname.c, stripslash.c:
82124         Include <string.h> unconditionally.
82125
82126         * lib/bcopy.c: Include <stddef.h>.
82127         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82128
82129         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82130
82131         * lib/error.h (error, error_at_line, error_print_progname)
82132         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82133         * lib/error.c: Include error.h first, to check interface.
82134         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82135         (VA_START): Remove; all uses changeed to va_start.
82136         (exit, strerror): Remove decls.
82137         (error_print_progname): Prototype uncondionally.
82138         Don't include <errno.h>; no longer needed.
82139         (private_strerror): Remove.
82140         (error_tail): Always define.
82141         (error, error_at_line): Assume C89 or better; always use prototypes.
82142         * lib/fatal.c: Include "fatal.h" first, to test interface.
82143         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82144         (VA_START): Remove; all uses changed to va_start.
82145         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82146         this case.
82147         (exit): Remove decl.
82148         (fatal): Prototype unconditionally.  Assume va_start works.
82149         Abort at end, to pacify gcc.
82150
82151         * lib/euidaccess.c (main): Define with a prototype.
82152
82153         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82154
82155         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82156
82157         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82158         prototypes.
82159         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82160         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82161         (getenv): Remove decl.
82162         (fnmatch): Define using a prototype.
82163         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82164         (FCT): Define using a prototype.
82165
82166         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82167
82168         * lib/gethostname.c: Include <stddef.h>.
82169         (gethostname): Define with prototype.  Length is size_t, not int.
82170
82171 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82172
82173         Assume C89 or better; remove K&R cruft.
82174         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82175         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82176         string.h, getenv, malloc.
82177         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82178         headers.
82179         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82180         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82181         do not check for strerror.
82182         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82183         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82184         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82185         do not check for doprnt or vprintf.
82186         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82187         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82188
82189 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82190
82191         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82192         getversion.c should have been removed then, but was accidentally
82193         preserved.
82194
82195         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82196         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82197
82198 2003-09-08  Karl Berry  <karl@gnu.org>
82199
82200         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82201                 config, forget about prep.
82202
82203         * config/depcomp, missing: update from automake.
82204
82205 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82206
82207         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82208         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82209
82210 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82211
82212         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82213         copy_tm_result.  Bug reported by Simon Josefsson in
82214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82215
82216 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82217
82218         * m4/time_r.m4: New file.
82219         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82221         is. Check for timegm declaration.
82222         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82223         Do not check for gmtime_r.
82224         Replace mktime if __mktime_internal does not exist and if mktime
82225         hasn't been replaced already.
82226
82227 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82228
82229         * lib/time_r.c, lib/time_r.h: New files.
82230
82231         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82232         __localtime_r.
82233         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82234         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82235
82236         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82237         __gmtime_r.
82238         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82239         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82240         Include <time_r.h>.
82241
82242         * lib/timegm.c: Switch to glibc implementation, with the following
82243         changes:
82244         [defined HAVE_CONFIG_H]: Include <config.h>.
82245         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82246         (__mktime_internal) [!defined _LIBC]: New decl.
82247         (__gmtime_r) [!defined _LIBC]: New macro and function.
82248         (timegm): Use a prototype, since gnulib assumes C89.
82249         Do not bother declaring tmp to be const, as it's not really usefu.
82250         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82251         (timegm): Declare only if HAVE_DECL_TIMEGM.
82252
82253 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82254
82255         * MODULES.html.sh (func_all_modules): Add time_r.
82256         * modules/time_r: New file.
82257         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82258         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82259
82260 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82261
82262         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82263         Bug reported by Lute Kamstra in
82264         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82265
82266         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82267         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82268         course with correspondingly smaller numbers for tomorrow and
82269         yesterday.  From Tadayoshi Funaba.  Originally installed into
82270         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82271         coreutils merge?).
82272
82273 2003-08-31  Simon Josefsson  <jas@extundo.com>
82274
82275         * modules/timegm: New file.
82276         * MODULES.html.sh (func_all_modules): Add timegm.
82277
82278 2003-08-31  Simon Josefsson  <jas@extundo.com>
82279
82280         * m4/timegm.m4: New file.
82281
82282 2003-08-31  Simon Josefsson  <jas@extundo.com>
82283
82284         * lib/timegm.h: New file.
82285         * lib/timegm.c: New file.  Based on
82286         wget-1.8.2/src/http.c:mktime_from_utc.
82287
82288 2003-08-31  Karl Berry  <karl@gnu.org>
82289
82290         * lib/argp.h: update from libc.
82291
82292 2003-08-28  Bruno Haible  <bruno@clisp.org>
82293
82294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82295         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82296         followed by '#define fnmatch fnmatch_posix' gives an error.
82297
82298 2003-08-28  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82301         warning on QNX, which defines O_BINARY to 000000.
82302
82303 2003-08-27  Jim Meyering  <jim@meyering.net>
82304
82305         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82306         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82307         would fail after 32.  Reported by Danny Levinson.  Details here:
82308         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82309
82310 2003-08-24  Bruno Haible  <bruno@clisp.org>
82311
82312         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82313         MSVC7 <stdio.h> is included later.
82314
82315 2003-08-22  Simon Josefsson  <jas@extundo.com>
82316
82317         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82318
82319 2003-08-20  Karl Berry  <karl@gnu.org>
82320
82321         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82322
82323 2003-08-20  Bruno Haible  <bruno@clisp.org>
82324
82325         * modules/progname: New file.
82326         * MODULES.html.sh (func_all_modules): Add progname.
82327
82328 2003-08-20  Bruno Haible  <bruno@clisp.org>
82329
82330         * lib/progname.h: New file, from GNU gettext.
82331         * lib/progname.c: New file, from GNU gettext.
82332         * lib/progreloc.c: New file, from GNU gettext.
82333
82334 2003-08-19  Jim Meyering  <jim@meyering.net>
82335
82336         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82337         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82338
82339 2003-08-19  Bruno Haible  <bruno@clisp.org>
82340
82341         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82342         more.
82343
82344 2003-08-19  Bruno Haible  <bruno@clisp.org>
82345
82346         * lib/xstrdup.c: Assume <string.h> exists.
82347
82348 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82349
82350         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82351         in makefile rules.
82352
82353 2003-08-18  Jim Meyering  <jim@meyering.net>
82354
82355         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82356         * m4/lib-ld.m4: Likewise.
82357
82358 2003-08-18  Jim Meyering  <jim@meyering.net>
82359
82360         * lib/setenv.h: Indent nested cpp directive.
82361         * lib/vasnprintf.c: Remove trailing blanks.
82362
82363 2003-08-17  Simon Josefsson  <jas@extundo.com>
82364
82365         * modules/xstrndup: New file.
82366         * MODULES.html.sh (func_all_modules): Add xstrndup.
82367
82368 2003-08-17  Simon Josefsson  <jas@extundo.com>
82369
82370         * modules/argp: Fix autoconf macro name. Add more dependencies.
82371
82372 2003-08-17  Simon Josefsson  <jas@extundo.com>
82373
82374         * m4/xstrndup.m4: New file.
82375
82376 2003-08-17  Simon Josefsson  <jas@extundo.com>
82377
82378         * m4/argp.m4: New file.
82379
82380 2003-08-17  Simon Josefsson  <jas@extundo.com>
82381             Bruno Haible  <bruno@clisp.org>
82382
82383         * lib/xstrndup.h: New file.
82384         * lib/xstrndup.c: New file.
82385
82386 2003-08-17  Bruno Haible  <bruno@clisp.org>
82387
82388         * modules/strndup (Files, Include): Add lib/strndup.h.
82389
82390 2003-08-17  Bruno Haible  <bruno@clisp.org>
82391
82392         * modules/euidaccess (Files): Add lib/euidaccess.h.
82393
82394 2003-08-17  Bruno Haible  <bruno@clisp.org>
82395
82396         * lib/strndup.h: New file.
82397
82398 2003-08-17  Bruno Haible  <bruno@clisp.org>
82399
82400         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82401         like AC_GNU_SOURCE.
82402         * modules/extensions (configure.ac): Comment out the invocation of
82403         gl_USE_SYSTEM_EXTENSIONS.
82404
82405 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82406
82407         Merges from coreutils, etc.
82408         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82409         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82410         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82411         fixing a typo.
82412         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82413         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82414
82415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82416
82417         Document merge from coreutils.
82418         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82419         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82420         * modules/utime: Add m4/utimes-null.m4.
82421
82422 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82423
82424         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82425         space, undoing this 2003-08-12 change:
82426         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82427
82428 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82429
82430         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82431         strtoul.c from libc, undoing this 2003-08-12 change:
82432         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82433
82434 2003-08-16  Jim Meyering  <jim@meyering.net>
82435
82436         Merges from coreutils.
82437         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82438         prefix.  Adjust cache variables similarly.  Create 500 rather than
82439         just 300 files, to exercise bug on Darwin6.5, too.
82440         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82441         $missing_dir.
82442         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82443         AM_SYS_POSIX_TERMIOS.
82444         Reported by mkc@mathdogs.com.
82445         Also change use of $am_cv_sys_posix_termios
82446         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82447         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82448         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82449         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82450         in /proc/mounts until it finds one with matching device number.  This
82451         is unnecessary when the FILE argument *is* a mount point.  No stat call
82452         is necessary in that case.  So, disable the statvfs-testing code on
82453         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82454         as RedHat bug# 84846.
82455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82456         to 1MB, so as not to render systems with no stack size limit (e.g.,
82457         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82458         Include <unistd.h>.  On some systems,
82459         it is required for the definition of _SC_PAGESIZE.
82460
82461 2003-08-16  Jim Meyering  <jim@meyering.net>
82462
82463         Merge from coreutils.
82464         * lib/xstrtoimax.c: #else #if -> #elif.
82465         * lib/xstrtoumax.c: Likewise.
82466
82467 2003-08-16  Jim Meyering  <jim@meyering.net>
82468
82469         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82470         * m4/utimes.m4: Removed.
82471         * m4/utimes-null.m4: Renamed from utimes.m4.
82472
82473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82474         to 1MB, so as not to render systems with no stack size limit (e.g.,
82475         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82476         Include <unistd.h>.  On some systems,
82477         it is required for the definition of _SC_PAGESIZE.
82478
82479 2003-08-16  Jim Meyering  <jim@meyering.net>
82480         and Paul Eggert  <eggert@cs.ucla.edu>
82481
82482         Merges from coreutils, etc.
82483
82484         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82485         using the latest version from cvs.  This avoids problems with #line
82486         directives using a vendor (Sun) compiler.
82487         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82488         Don't set GETGROUPS_LIB here; now it's
82489         done via getgroups.m4's wrapper function.
82490         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82491         rather than just in sh-util/configure.in, so that the
82492         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82493         same.
82494         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82495         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82496         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82497         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82498         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82499         Remove code that is now done by the newly-required macros.
82500         Append $(EXEEXT) to DF_PROG.
82501         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82502         Do not invoke or require the following here,
82503         since prereq.m4 or some gnulib .m4 now does this for us:
82504         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82505         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82506         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82507         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82508         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82509         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82510         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82511         AC_FUNC_OBSTACK.
82512         Do not replace the following functions, as this is now the job
82513         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82514         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82515         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82516         atexit getpass, strdup, getpagesize.
82517         Replace 'raise'.
82518         Do not check for the following functions, as this is now the job
82519         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82520         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82521         setregid.
82522         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82523         Check for sys/sysctl.h.
82524         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82525         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82526         of checking for ssize_t ourselves.
82527
82528         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82529         Require every macro that gnulib/modules/* suggests for us.
82530         (jm_PREREQ_ADDEXT): New macro.
82531         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82532         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82533
82534         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82535         (gl_PHYSMEM): Use it.
82536         Also check for `table' function.
82537         Check for new headers and functions.
82538         Add check for sys/sysmp.h.
82539         With suggestions from Kaveh Ghazi.
82540         Ignore headers that are present but cannot be compiled.  This
82541         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82542         C 5.4.
82543
82544 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82545
82546         Document merge from coreutils.
82547         * modules/userspec: Depend on posixver.
82548         * modules/strftime: Depend on tzset.
82549
82550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82551
82552         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82553         rather than tab, after '#' in shell-script copyright notices.
82554         Suggested by Bruno Haible.
82555
82556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82557
82558         * config/srclist-update: Use three spaces, rather than tab, after '#'
82559         in shell-script copyright notices.  Suggested by Bruno Haible.
82560         Remove unnecessary parenthesization in regular expression.
82561
82562 2003-08-15  Jim Meyering  <jim@meyering.net>
82563
82564         Merge from coreutils.
82565         * lib/xgethostname.c: Include <stdlib.h>.
82566         (xghostname): Don't exit for anything other than memory-related
82567         failure; just return NULL.
82568         * lib/userspec.c: Include "posixver.h".
82569         (parse_user_spec): Accept `.' as a separator only
82570         in pre-POSIX-200112 mode.
82571         * lib/strtoimax.c: Use #elif rather than #else #if.
82572         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82573         Remove function, now that we can rely on a working tzset function.
82574         [!_LIBC]: Ensure that the required autoconf test has been run.
82575         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82576         Use underlying_strftime for %r.
82577         * lib/sha.c: Merge in some clean-up and optimization changes from
82578         glibc.
82579         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82580         Ensure that it is a multiple of 64.
82581         Rearrange loop exit tests so as to avoid performing an
82582         additional fread after encountering an error or EOF.
82583         * lib/realloc.c: Update copyright date.
82584
82585 2003-08-15  Jim Meyering  <jim@meyering.net>
82586         and Paul Eggert  <eggert@twinsun.com>
82587
82588         Merge from coreutils.
82589         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82590         member but strut utmpx does not.  Needed for AIX 4.3.3.
82591         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82592
82593 2003-08-15  Jim Meyering  <jim@meyering.net>
82594         and Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         Merges from coreutils, etc.
82597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82598         Require gl_FUNC_TZSET_CLOBBER.
82599         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82600         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82601         members.
82602
82603 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82604
82605         Help the merge from coreutils.
82606         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82608         * m4/tzset.m4: Use it too.
82609
82610 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82611
82612         * modules/tzset: New file.
82613
82614 2003-08-14  Jim Meyering  <jim@meyering.net>
82615
82616         Merges from coreutils.
82617         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82618         variable names, rather than @FNMATCH_H@.
82619         * modules/alloca: Likewise for $(ALLOCA_H).
82620
82621         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82622         the three copies of the literal target, `fnmatch.h'.
82623         * modules/alloca (alloca.h): Likewise.
82624
82625 2003-08-14  Jim Meyering  <jim@meyering.net>
82626
82627         Merge from coreutils.
82628         * m4/tzset.m4: New file.
82629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82630         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82631         otherwise, AIX 5.1 systems would end up using the latter.
82632         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82633         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82634         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82635         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82636
82637 2003-08-14  Jim Meyering  <jim@meyering.net>
82638
82639         Merge from coreutils.
82640         * lib/obstack.h: Whitespace changes.
82641         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82642         and xcalloc return values.
82643         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82644         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82645         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82646         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82647         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82648         error from mntctl.
82649         Use mntctl's return value to drive the entry-processing loop, since
82650         we can't rely on the value of the vmt_length member in the last
82651         entry.  On some systems doing so could result in exhausting
82652         virtual memory.  Based in part on a patch from Mike Jetzer.
82653
82654 2003-08-14  Jim Meyering  <jim@meyering.net>
82655         and Paul Eggert  <eggert@twinsun.com>
82656
82657         Merges from coreutils, plus other fixes.
82658         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82659         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82660         for credits and details.  Thanks to Kaveh Ghazi for helping
82661         to keep these files in sync.
82662         (ARRAY_SIZE): Define it.
82663         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82664         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82665         (memcasecmp): Don't assume size_t fits in unsigned int.
82666         Remove casts and duplicate code.
82667         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82668         (memcpy): Remove definition.
82669         Merge in some clean-up and optimization changes from glibc.
82670         [BLOCKSIZE]: Move definition to top of file.
82671         Ensure that it is a multiple of 64.
82672         Rearrange loop exit tests so as to avoid performing an
82673         additional fread after encountering an error or EOF.
82674         * lib/md5.h (md5_uintptr): Define.
82675         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82676         return to the initial working directory.  Preserve errno
82677         for caller.
82678         * lib/idcache.c: Include "xalloc.h".
82679         (xmalloc, xrealloc): Remove decls.
82680         (getuser): Remove casts no longer required in C89.
82681         * lib/human.c: Include stdio.h, for sprintf.
82682         * lib/group-member.c: Include "xalloc.h".
82683         (xmalloc, xrealloc): Remove decls.
82684         (get_group_info): Remove casts no longer required in C89.
82685         * lib/getusershell.c (readname): Remove casts no longer required in
82686         C89.
82687         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82688         * lib/getline.c: Whitespace fix, from coreutils.
82689
82690 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82691
82692         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82693         Check for isascii.
82694
82695         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82696         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82697         Undo previous (whitespace-only) change.
82698
82699 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82700
82701         * lib/exclude.c: Include <ctype.h>
82702         (IN_CTYPE_DOMAIN): New macro.
82703         (is_space): New fn.
82704         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82705         and empty lines.
82706
82707         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82708         Undo previous (whitespace-only) change.
82709
82710 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82711
82712         * config/srclist-update: Change update back to the old behavior,
82713         leaving whitespace alone.  Use one 'sed' command rather than a
82714         pipeline.
82715         (fixlicense): Now a variable, not a function.
82716         (remove_trailing_blanks): Remove.
82717         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82718         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82719         Undo previous (whitespace-only) change.
82720
82721 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82722
82723         Merge from coreutils.
82724         * modules/euidaccess: Add lib_SOURCES, include for new
82725         file euidaccess.h
82726
82727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82728
82729         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82730         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82731         Normalize leading white space and remove trailing white space.
82732
82733         Merge from coreutils
82734         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82735
82736         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82737         0.12.1.  These files are now being upgraded automatically by
82738         ../config/srclist-update.
82739
82740 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82741
82742         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82743         Normalize leading white space and remove trailing white space.
82744         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82745         notice, as per ../config/srclist-update.
82746
82747         Merge from coreutils.
82748         * lib/euidaccess.h: New file.
82749         * lib/euidaccess.c: Include it.
82750         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82751         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82752         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82753
82754 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82755
82756         * config/srclist-update: Add copyright notice.
82757         (remove_id_lines, remove_trailing_blanks): New constants.
82758         (fixfile): Use them to normalize spacing a bit in copied files.
82759         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82760         Normalize leading white space and remove trailing white space.
82761
82762         * config/texinfo.tex: Sync with texinfo.
82763
82764         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82765         strtoul.c from libc, to merge coreutils whitespace changes.
82766
82767         * config/srclist.txt: Get the following m4 files from gettext:
82768         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82769         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82770         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82771         wint_t.m4.
82772
82773 2003-08-12  Karl Berry  <karl@gnu.org>
82774
82775         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82776         been made.
82777
82778 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82779
82780         * modules/gnu-source, m4/gnu-source.m4:
82781         Remove; we're assuming Autoconf 2.54 or later now.
82782         Suggested by Bruno Haible.
82783         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82784
82785 2003-08-11  Bruno Haible  <bruno@clisp.org>
82786
82787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82788
82789 2003-08-11  Bruno Haible  <bruno@clisp.org>
82790
82791         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82792         (vasnprintf): Use it instead of wcslen.
82793
82794 2003-08-11  Bruno Haible  <bruno@clisp.org>
82795
82796         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82797         value to ensure that _Bool promotes to int. Use #define for _Bool when
82798         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82799
82800 2003-08-10  Karl Berry  <karl@gnu.org>
82801
82802         * lib/regex.h: update from libc (whitespace fix).
82803
82804 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82805
82806         Merge some files from coreutils.  These changes were
82807         originally made by Jim Meyering.
82808         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82809         many older Unixes require this.
82810         * lib/alloca.c (alloca): Remove cast to argument of free;
82811         no longer needed in C89.
82812         * lib/alloca_.h, regex.h: Fix white space to match
82813         what GNU indent does.
82814
82815 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82816
82817         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82818         apparently Emacs's Unicode mode got confused before my 2003-08-05
82819         checkin.
82820
82821 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82822
82823         * m4/extensions.m4: New file.
82824         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82825         Require gl_USE_SYSTEM_EXTENSIONS.
82826         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82827         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82828
82829 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82830
82831         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82832         * modules/extensions, modules/gnu-source: New files.
82833         * modules/timespec, modules/unlocked-io: Depend on extensions.
82834
82835 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82836
82837         * modules/restrict: New file.
82838         * MODULES.html.sh (func_all_modules): Add restrict.
82839         * modules/regex: Depend on restrict.
82840
82841 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82842
82843         * m4/restrict.m4: New file.
82844         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82845
82846 2003-08-07  Bruno Haible  <bruno@clisp.org>
82847
82848         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82849         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82850
82851 2003-08-07  Bruno Haible  <bruno@clisp.org>
82852
82853         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82854         makes the module 'getndelim2' compatible with the module 'getline'.
82855
82856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82857
82858         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82859         byte with "\201" to avoid glitches when editing that source file
82860         with multi-gnome-terminal.
82861
82862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82863
82864         * lib/bumpalloc.h: Remove.
82865
82866 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82867
82868         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82869         * modules/bumpalloc: Remove.
82870
82871 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82872
82873         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82874         GNU coding style.
82875
82876         Merge from coreutils.
82877         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82878         1. From glibc.
82879         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82880         from Karl Berry, implemented by Jim Meyering.
82881         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82882         from Dmitry V. Levin.
82883         Remove anachronistic cast of xrealloc.
82884         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82885         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82886         type. Otherwise, it wouldn't compile with at least /bin/cc on
82887         ymp-cray-unicos9.0.2.X.
82888         Combine two mostly-identical uses of alloca into one.
82889         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82890
82891 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82892
82893         [From Emacs.]
82894
82895         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82896         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82897         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82898         obsolete NLIST_NAME_UNION.
82899         [__GNU__]: Undef BSD and FSCALE.
82900         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82901
82902 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82903
82904         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82905         an enum type, so that it's guaranteed to promote to int.  See:
82906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82907
82908 2003-08-03  Karl Berry  <karl@gnu.org>
82909
82910         * config/depcomp: update from automake.
82911
82912 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82913
82914         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82915         (strerror): Don't assume that a printable int fits in 14 bytes.
82916
82917 2003-07-31  Bruno Haible  <bruno@clisp.org>
82918
82919         * modules/getpass-gnu: New file.
82920         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82921
82922 2003-07-31  Bruno Haible  <bruno@clisp.org>
82923
82924         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82925
82926 2003-07-24  Karl Berry  <karl@gnu.org>
82927
82928         * config/missing: update from automake.
82929
82930 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82931             Bruno Haible  <bruno@clisp.org>
82932
82933         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82934         * lib/getline.c (getline, getdelim): Likewise.
82935         Remove _GNU_SOURCE define; now it's defined in config.h through
82936         m4/getline.m4.
82937
82938 2003-07-23  Karl Berry  <karl@gnu.org>
82939
82940         * config/config.sub: update from prep.
82941
82942 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82943
82944         * modules/xalloc (Depends-on): Add exitfail.
82945         * modules/xmemcoll: Likewise.
82946
82947 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82948
82949         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82950         over-parenthesization in macros.
82951
82952         Sync with coreutils.
82953
82954         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82955         required by C99.
82956
82957         Use `exit_failure' for xalloc and xmemcoll instead of their own
82958         private exit-failure variables.
82959         * lib/xalloc.h (xalloc_exit_failure): Remove.
82960         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82961         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82962         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82963         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82964         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82965
82966 2003-07-20  Jim Meyering  <jim@meyering.net>
82967
82968         * modules/closeout (Depends-on): Add exitfail.
82969         Suggestion from Bruno Haible.
82970
82971 2003-07-19  Karl Berry  <karl@gnu.org>
82972
82973         * config/config.sub: update from prep.
82974
82975 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82976
82977         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82978         Remove.
82979         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82980         to test that it can stand by itself.  Include "exitfail.h".
82981         Clients should set exit_failure instead.
82982         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82983
82984 2003-07-18  Bruno Haible  <bruno@clisp.org>
82985
82986         * modules/getndelim2: New file.
82987         * modules/getline: Share files with module getndelim2.
82988         * modules/getnline: Depend on getndelim2 instead of sharing files with
82989         it. Add getnline.c to lib_SOURCES.
82990         * MODULES.html.sh (func_all_modules): Add getndelim2.
82991
82992 2003-07-18  Bruno Haible  <bruno@clisp.org>
82993
82994         * m4/getndelim2.m4: New file.
82995         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82996         invoke gl_PREREQ_GETNDELIM2.
82997         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82998         gl_PREREQ_GETNDELIM2.
82999         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83000         gl_GETNDELIM2.
83001
83002 2003-07-18  Bruno Haible  <bruno@clisp.org>
83003
83004         * lib/getndelim2.h: New file.
83005         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83006         getndelim2.h.
83007         (getndelim2): Make non-static. Change return type to ssize_t.
83008         * lib/getline.h: Change argument names.
83009         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83010         * lib/getnline.c: Include getndelim2.h.
83011
83012 2003-07-18  Andreas Schwab  <schwab@suse.de>
83013
83014         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83015
83016 2003-07-17  Karl Berry  <karl@gnu.org>
83017
83018         * config/config.sub: update from prep.
83019
83020 2003-07-17  Bruno Haible  <bruno@clisp.org>
83021
83022         * modules/getnline: New file.
83023         * modules/getline: Add lib/getndelim2.c to source file list.
83024         * MODULES.html.sh (func_all_modules): Add getnline.
83025
83026 2003-07-17  Bruno Haible  <bruno@clisp.org>
83027
83028         * m4/getnline.m4: New file.
83029
83030 2003-07-17  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/Makefile.am.in: Remove file.
83033         * m4/Makefile.am: Remove file.
83034         * m4/Makefile.in: Remove file.
83035
83036 2003-07-17  Bruno Haible  <bruno@clisp.org>
83037
83038         * lib/getnline.h: New file.
83039         * lib/getnline.c: New file.
83040         * lib/getndelim2.c: New file, extracted from getline.c.
83041         (getndelim2): Renamed from getdelim2, with added nmax argument.
83042         * lib/getline.c: Include getndelim2.c.
83043         (getdelim2): Moved out to getndelim2.c.
83044         (getline, getdelim): Update.
83045
83046 2003-07-17  Bruno Haible  <bruno@clisp.org>
83047
83048         * lib/Makefile.am: Remove file.
83049         * lib/Makefile.in: Remove file.
83050
83051 2003-07-17  Bruno Haible  <bruno@clisp.org>
83052
83053         * configure.in: Remove file.
83054         * Makefile.in: Remove file.
83055
83056 2003-07-17  Bruno Haible  <bruno@clisp.org>
83057
83058         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83059
83060 2003-07-16  Karl Berry  <karl@gnu.org>
83061
83062         * config/srclist-update: was running fixlicense twice, which caused
83063                 texinfo.tex to be nullified for some reason.  Simplify,
83064                 $gplsrc is no longer needed as far as I can see?
83065
83066 2003-07-16  Jim Meyering  <jim@meyering.net>
83067
83068         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83069
83070 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83071
83072         * config/srclist.txt: Get the following files from gettext-runtime/intl
83073         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83074         ref-del.sin.  From Bruno Haible.
83075         * config/srclist-update (fixfile): Change grep pattern again, since the
83076         previous fix didn't work (there was another trailing $).  Use
83077         '[$]' to escape the $s.
83078
83079 2003-07-15  Karl Berry  <karl@gnu.org>
83080
83081         * lib/vasnprintf.c: update from gettext.
83082
83083 2003-07-15  Karl Berry  <karl@gnu.org>
83084
83085         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83086         gets expanded when surrounded by '$'.
83087
83088 2003-07-15  Jim Meyering  <jim@meyering.net>
83089
83090         * modules/save-cwd: Don't depend on error.  From Derek Price.
83091
83092 2003-07-15  Jim Meyering  <jim@meyering.net>
83093
83094         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83095
83096 2003-07-14  Simon Josefsson  <jas@extundo.com>
83097
83098         * modules/mempcpy: New file.
83099         * MODULES.html.sh (func_all_modules): Add mempcpy.
83100
83101 2003-07-14  Simon Josefsson  <jas@extundo.com>
83102
83103         * m4/mempcpy.m4: New file.
83104
83105 2003-07-14  Simon Josefsson  <jas@extundo.com>
83106
83107         * lib/mempcpy.h: New file.
83108         * lib/mempcpy.c: New file.
83109
83110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83111
83112         * modules/getdate, modules/posixtm: Depend on mktime.
83113
83114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83115
83116         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83117         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83118         unicodeio.c, unicodeio.h, unlocked-io.h:
83119         Switch from LGPL to GPL.
83120
83121 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83122
83123         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83124         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83125         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83126         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83127         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83128         updated automatically by ../config/srclist-update.  This changes
83129         their license from LPGL to GPL.
83130
83131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83132
83133         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83134         assumed to refer to the root of the most recent stable gettext version.
83135         * config/srclistvars.sh: Add defaults for eggert.
83136         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83137         Match "This program" as well as "The program".  This is needed
83138         for gettext.
83139
83140 2003-07-14  Jim Meyering  <jim@meyering.net>
83141
83142         Don't emit diagnostics.  Let callers do that.
83143         * lib/save-cwd.c: Don't include "error.h".
83144         (save_cwd): Don't call error.  Ensure that errno is valid
83145         when returning nonzero.
83146
83147         * lib/save-cwd.h (restore_cwd): Update prototype.
83148         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83149         Simplify.  Don't call error upon failure.  Let callers do that.
83150         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83151         when auditing is enabled.  But don't bother updating the #if.
83152
83153 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83154
83155         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83156         it breaks C++ compilation.
83157         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83158
83159 2003-07-10  Simon Josefsson  <jas@extundo.com>
83160
83161         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83162
83163 2003-07-10  Jim Meyering  <jim@meyering.net>
83164
83165         * m4/clock_time.m4: Remove trailing blank.
83166         * m4/intmax_t.m4: Likewise.
83167
83168 2003-07-10  Jim Meyering  <jim@meyering.net>
83169
83170         * lib/vasnprintf.c: Remove trailing blanks.
83171         Make cpp indentation consistent.
83172
83173 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83174
83175         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83176         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83177         Switch from LGPL to GPL.
83178
83179 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83180
83181         * config/srclist.txt: Sort sublists.  Add
83182         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83183         that differ from gnulib for one reason or another; we'd like this list
83184         to be smaller but for now let's document what we have.
83185
83186 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83187
83188         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83189         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83190         and sweeter "eval x=$x".
83191         * config/srclist.txt: Get lib/argp* from glibc.
83192
83193 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83194
83195         * lib/mktime.c: Fix some boundary cases and remove need for floating
83196         point.
83197
83198         Issue a compile-time diagnostic if time_t is floating point, or if
83199         two's complement arithmetic is not in effect, or if arithmetic
83200         right shift does not propagate the sign.  These assumptions were
83201         all in the original code but they weren't checked.
83202
83203         (TIME_T_MIDPOINT, verify): New macros.
83204         (__isleap): Remove; it has integer overflow problems.
83205         (leapyear): New function, without those problems.
83206         (ydhms_tm_diff): Remove; splitting into two parts.
83207         (ydhms_diff): New function, containing the arithmetic part of
83208         the old ydhms_tm_diff function.  Issue a compile-time
83209         diagnostic if we are not using C99 integer division.
83210         Avoid casts when possible.
83211         (guess_time_tm): New function, containing the checking part of
83212         the old ydhms_tm_diff function.  Return the new value, rather than
83213         the difference between it and the old.  Accept a new argument T
83214         so that *T specifies the old value.  Check for overflow in the result.
83215
83216         (__mktime_internal): Use a time_t offset, not a long int offset.
83217         This undoes the 2003-06-04 change, which is no longer needed now
83218         that we have better overflow checking.
83219         (localtime_offset): Likewise.
83220
83221         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83222         and long are 64-bit but int is only 32-bit.
83223         (ydhms_diff): Use long int to store year1 and yday1.
83224         Issue a compile-time diagnostic if long int is not wide enough.
83225
83226         (__mktime_internal): Use long int to store adjusted year and yday.
83227         Use plain C rather than preprocessor commands, if that doesn't
83228         affect efficiency.
83229         Check for overflow (and try to repair) after each probe
83230         rather than checking only at the very end.  This avoids some bugs
83231         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83232         does not equal GMT offset at maximum time).
83233         Use integer to check for overflow rather than floating point; this
83234         is more portable to non-IEEE hosts, and is a tad faster.
83235         When we detect that we are oscillating between two values,
83236         don't check whether tm_isdst has the requested value, since
83237         we already know the answer.  When tm_isdst has the wrong value,
83238         use a different heuristic to find the right one, based on the
83239         extreme values actually observed in practice in tz2003a,
83240         rather than the (overly optimistic) "previous 3 calendar quarters".
83241
83242         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83243         "T const" to accommodate glibc style.
83244         (check_result): Use less-confusing report format.  "long" -> "long int.
83245         (main): Likewise.
83246         Don't loop if the iteration overflows time_t.
83247         Allow a negative step in the iteration.
83248
83249 2003-07-06  Karl Berry  <karl@gnu.org>
83250
83251         * config/depcomp: update from automake.
83252         * config/config.sub: update from prep.
83253
83254 2003-07-03  Karl Berry  <karl@gnu.org>
83255
83256         * config/config.guess: update from prep.
83257
83258 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83259
83260         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83261         xreadlink.c now includes it unconditionally.
83262
83263 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83264
83265         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83266         having it depend on HAVE_SYS_TYPES_H.
83267
83268 2003-07-01  Bruno Haible  <bruno@clisp.org>
83269
83270         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83271         <sys/types.h> should be sufficient.
83272         Reported by Paul Eggert.
83273
83274 2003-06-26  Karl Berry  <karl@gnu.org>
83275
83276         * config/depcomp: update from automake.
83277
83278 2003-06-26  Bruno Haible  <bruno@clisp.org>
83279
83280         * modules/human: Depend on module stdbool.
83281
83282 2003-06-25  Bruno Haible  <bruno@clisp.org>
83283
83284         * modules/readlink: New file.
83285         * modules/xreadlink: Depend on it.
83286         * MODULES.html.sh (func_all_modules): Add readlink.
83287
83288 2003-06-25  Bruno Haible  <bruno@clisp.org>
83289
83290         * m4/readlink.m4: New file.
83291
83292 2003-06-25  Bruno Haible  <bruno@clisp.org>
83293
83294         * lib/readlink.c: New file.
83295
83296 2003-06-22  Karl Berry  <karl@gnu.org>
83297
83298         * config/srclist.txt: update mkinstalldirs from automake.
83299         * config/mkinstalldirs: update.
83300
83301 2003-06-22  Bruno Haible  <bruno@clisp.org>
83302
83303         Portability to mingw32.
83304         * m4/ssize_t.m4: New file, from GNU gettext.
83305         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83306         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83307
83308 2003-06-22  Bruno Haible  <bruno@clisp.org>
83309
83310         * modules/safe-read: Add m4/ssize_t.m4.
83311         * modules/xreadlink: Add m4/ssize_t.m4.
83312
83313 2003-06-20  Bruno Haible  <bruno@clisp.org>
83314
83315         Assume C89, so PARAMS isn't needed.
83316         * lib/unicodeio.h (PARAMS): Remove.
83317         * lib/unicodeio.c: Don't use PARAMS.
83318
83319 2003-06-18  Karl Berry  <karl@gnu.org>
83320
83321         * config/config.{guess,sub}: update from prep.
83322
83323 2003-06-18  Jim Meyering  <jim@meyering.net>
83324
83325         Merge changes from coreutils.
83326         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83327         Remove explicit declarations of xmalloc and realloc.
83328         Include xalloc.h.
83329         (read_utmp): Remove anachronistic cast of xmalloc.
83330
83331 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83332
83333         Assume C89, so PARAMS isn't needed.
83334         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83335         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83336         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83337         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83338         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83339         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83340         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83341         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83342         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83343         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83344         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83345         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83346         no longer needed. Anyway, config.h should always be included before any
83347         other file.
83348
83349 2003-06-11  Simon Josefsson  <jas@extundo.com>
83350
83351         * modules/sysexits: New file.
83352         * MODULES.html.sh (func_all_modules): Add sysexits.
83353
83354 2003-06-11  Simon Josefsson  <jas@extundo.com>
83355
83356         * lib/sysexit_.h: New file.
83357
83358 2003-06-11  Derek Price  <derek@ximbiot.com>
83359
83360         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83361         necessary.
83362
83363 2003-06-11  Bruno Haible  <bruno@clisp.org>
83364
83365         * m4/sysexits.m4: New file.
83366
83367 2003-06-10  Simon Josefsson  <jas@extundo.com>
83368
83369         * lib/argp.h: New file, from glibc.
83370         * lib/argp-ba.c: New file, from glibc.
83371         * lib/argp-eexst.c: New file, from glibc.
83372         * lib/argp-fmtstream.c: New file, from glibc.
83373         * lib/argp-fmtstream.h: New file, from glibc.
83374         * lib/argp-fs-xinl.c: New file, from glibc.
83375         * lib/argp-help.c: New file, from glibc.
83376         * lib/argp-namefrob.h: New file, from glibc.
83377         * lib/argp-parse.c: New file, from glibc.
83378         * lib/argp-pv.c: New file, from glibc.
83379         * lib/argp-pvh.c: New file, from glibc.
83380         * lib/argp-xinl.c: New file, from glibc.
83381
83382 2003-06-10  Simon Josefsson  <jas@extundo.com>
83383
83384         * modules/strchrnul: New file.
83385
83386 2003-06-10  Simon Josefsson  <jas@extundo.com>
83387
83388         * modules/argp: New file.
83389
83390 2003-06-10  Simon Josefsson  <jas@extundo.com>
83391
83392         * m4/strchrnul.m4: New file.
83393
83394 2003-06-10  Simon Josefsson  <jas@extundo.com>
83395
83396         * lib/strchrnul.h: New file.
83397         * lib/strchrnul.c: New file.
83398
83399 2003-06-10  Bruno Haible  <bruno@clisp.org>
83400
83401         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83402
83403 2003-06-07  Karl Berry  <karl@gnu.org>
83404
83405         * config/config.{guess,sub}: update from prep.
83406
83407 2003-06-07  Jim Meyering  <jim@meyering.net>
83408
83409         * modules/strtod: Use $(...) notation, not @...@ for
83410         AC_REPLACE'd variables.
83411         * modules/localcharset: Likewise.
83412
83413 2003-06-07  Jim Meyering  <jim@meyering.net>
83414
83415         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83416         in place of my name in the copyright comment.
83417         Remove definition and uses of __P.
83418
83419         From coreutils.
83420         * lib/stat.c: Don't declare xmalloc explicitly.
83421         Instead, include "xalloc.h".
83422         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83423         xrealloc, and xcalloc return values.
83424         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83425         Improve comment.
83426         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83427
83428 2003-06-07  Bruno Haible  <bruno@clisp.org>
83429
83430         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83431         avoid AC_CONFIG_LINKS.
83432         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83433         fnmatch.h, to avoid AC_CONFIG_LINKS.
83434         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83435
83436 2003-06-07  Bruno Haible  <bruno@clisp.org>
83437
83438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83439         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83440         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83441         directory.
83442         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83443         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83444         directory.
83445
83446 2003-06-06  Jim Meyering  <jim@meyering.net>
83447
83448         Merge from coreutils.
83449         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83450         Consolidate declarations and initializations of *_base* locals.
83451
83452         Merge from coreutils.
83453         This avoids a core dump on systems without GNU putenv,
83454         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83455         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83456         (unsetenv): New static function, from GNU libc.
83457         (rpl_putenv): Use it.
83458
83459         * lib/modechange.c: Remove trailing blanks.
83460
83461         Merge from coreutils.
83462         * lib/fsusage.c: Remove declaration of statfs.
83463         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83464
83465         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83466
83467 2003-06-06  Jim Meyering  <jim@meyering.net>
83468
83469         * lib/stdbool_.h: Renamed from stdbool.h.in.
83470
83471 2003-06-06  Jim Meyering  <jim@meyering.net>
83472             Bruno Haible  <bruno@clisp.org>
83473
83474         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83475         Adjust Makefile.am snippet not to redirect directly to target.
83476         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83477
83478 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83479
83480         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83481         mismatch, look in future quarters as well as past.  This fixes a
83482         bug when processing fall-backwards gaps immediately after a long
83483         period of daylight-saving time.
83484
83485         * lib/mktime.c: Assume freestanding C89 or better.
83486         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83487         (__P): Remove; not used.
83488         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83489         (mktime, not_equal_tm, print_tm, check_result,
83490         main): Use prototypes.  Use const * where appropriate.
83491         (main): Fix typo in testing code that uncovered by above changes.
83492         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83493
83494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83495
83496         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83497         locale.h, localeconv.  This merges changes from coreutils.
83498
83499         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83500         It can be removed after the next Autoconf is released.
83501         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83502         needed.
83503
83504 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83505
83506         * lib/mktime.c: Fix Debian bug 177940
83507         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83508         (localtime_offset): Now long int, not time_t, because we want it
83509         to be guaranteed to be signed.  All uses changed.
83510         (__mktime_internal): If overflow would occur when adding offset,
83511         don't add it.
83512
83513         Merge 'human' changes from coreutils.  Rewrite to support
83514         locale-specific notations like thousands separators.
83515         * lib/human.c: Simplify authorship notice.
83516         Include human.h immediately after config.h.
83517         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83518         <limits.h>: Do not include, since human.h does.
83519         (SIZE_MAX, UINTMAX_MAX): New macros.
83520         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83521         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83522         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83523         (power_letter): Renamed from suffixes.
83524         (generate_suffix_backwards): Remove.
83525         (adjust_value): Now takes int style (because of human.h changes)
83526         and long double value (for greater precision on some platforms).
83527         (group_number): New function.
83528         (human_readable): Use it.  Use integer options, not enum.
83529         Put the options before the sizes in the arg list.
83530         Support all the new options.
83531         The old human_readable function has been removed;
83532         use inttostr.h instead.
83533         (human_readable, default_block_size, humblock):
83534         Use uintmax_t, not int, for block sizes.
83535         (human_readable_inexact, block_size_types): Remove.
83536         (block_size_opts): New constant.
83537         (human_options): Renamed from human_block_size, with new signature
83538         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83539         * lib/human.h: Add copyright and authorship notice.
83540         Include <limits.h> and <stdbool.h> unconditionally.
83541         (PARAMS): Remove.  All uses removed.
83542         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83543         (enum human_inexact_style): Remove tag; now a nameless enum.
83544         (human_floor, human_ceiling, human_round_to_even): Now have
83545         values 2, 0, 1 rather than -1, 1, 0.
83546         (human_group_digits, human_suppress_point_zero, human_autoscale,
83547         human_base_1024, human_SI, human_B): New constants.
83548         (human_readable_inexact, human_block_size): Remove.
83549         (human_readable): Size args are now uintmax_t, not int.
83550         (human_options): New decl.
83551
83552         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83553         unnecessary now that we assume C89 or better.  This change
83554         imported from coreutils.
83555
83556         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83557         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83558         in the 2003-05-30 sync from glibc.
83559
83560         .h files should stand alone, but we shouldn't include <sys/types.h>
83561         if we can get away with just <stddef.h>.
83562
83563         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83564         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83565         rather than <sys/types.h>, as we merely need size_t.
83566         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83567         to get size_t.
83568         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83569         Include <stdio.h>, to get FILE.
83570         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83571         memcasecmp.h has included <stddef.h> and all we need is size_t.
83572         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83573         our interface, instead of including <sys/types.h>
83574
83575 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83576
83577         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83578         now, as glibc mktime is buggy on non-glibc systems.
83579
83580 2003-06-03  Karl Berry  <karl@gnu.org>
83581
83582         * config/config.sub: update from prep.
83583
83584 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83585
83586         [from coreutils]
83587         Fix some minor time-related bugs with POSIX time arguments.
83588         Some valid time stamps were being rejected (notably -1, and
83589         time stamps before 1900 on 64-bit hosts).  And some invalid
83590         time stamps were being accepted, e.g. September 31.
83591
83592         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83593         that we can return (time_t) -1 successfully.
83594         * lib/posixtm.c: Likewise.
83595         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83596         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83597         (t): Remove static var.
83598         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83599         of static var.  All uses changed.
83600         (year): Do not reject years before 1900; they can occur with
83601         64-bit time_t.
83602         (posix_time_parse): Do not check for out-of-range components;
83603         that is now the caller's responsibility, since our checks were
83604         only approximations.
83605         (posixtime): Use mktime to check for out-of-range components,
83606         since it knows them exactly.
83607         If mktime returns (time_t) -1, check whether an error actually occurred
83608         by invoking localtime on -1.
83609         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83610         posixtime failures better.
83611         Improve the test data (in comments only).
83612
83613 2003-06-02  Karl Berry  <karl@gnu.org>
83614
83615         * config/mkinstalldirs (version): new variable.
83616         (--version): new option.
83617         (usage): improve message.
83618
83619 2003-05-30  Karl Berry  <karl@gnu.org>
83620
83621         * lib/mktime.c: update from libc.
83622
83623 2003-05-30  Bruno Haible  <bruno@clisp.org>
83624
83625         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83626         * config/config.rpath: Upgrade to gettext-0.12.1.
83627
83628 2003-05-30  Bruno Haible  <bruno@clisp.org>
83629
83630         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83631         * m4/nls.m4: New file, from gettext-0.12.1.
83632         * m4/po.m4: New file, from gettext-0.12.1.
83633         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83634
83635 2003-05-30  Bruno Haible  <bruno@clisp.org>
83636
83637         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83638         * lib/localcharset.h: Likewise.
83639         * lib/localcharset.c: Likewise.
83640
83641 2003-05-29  Karl Berry  <karl@gnu.org>
83642
83643         * config/config.rpath: update from gettext.
83644
83645 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83646
83647         Assume the headers required for C89 freestanding compilers.
83648         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83649         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83650         * m4/human.m4 (gl_HUMAN): Likewise.
83651         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83652         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83653         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83654         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83655         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83656         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83657
83658 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83659
83660         Assume the headers required for C89 freestanding compilers.
83661         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83662         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83663         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83664         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83665         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83666         define, since <limits.h> is guaranteed to do that.
83667         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83668         * lib/exclude.c: Include <stdbool.h> unconditionally.
83669         * lib/tempname.c: Include <stddef.h> unconditionally.
83670         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83671         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83672         <stddef.h> does that.
83673         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83674         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83675         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83676         needed.
83677         * lib/xstrtol.c: Likewise.
83678         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83679         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83680
83681         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83682         warnings on some platforms.
83683
83684         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83685         arbitrarily.
83686
83687 2003-05-26  Jim Meyering  <jim@meyering.net>
83688
83689         Merge in a change from coreutils:
83690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83691         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83692         that condition, rather than `-1' which is slightly misleading.
83693         Change the name of the cache variable to have the gl_ prefix.
83694         Prompted by a patch from Richard Dawe for DJGPP.
83695
83696 2003-05-24  Karl Berry  <karl@gnu.org>
83697
83698         * config/config.guess: update from prep.
83699
83700 2003-05-22  Karl Berry  <karl@gnu.org>
83701
83702         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83703
83704 2003-05-20  Karl Berry  <karl@gnu.org>
83705
83706         * config/config.guess: update from prep.
83707
83708 2003-05-18  Karl Berry  <karl@gnu.org>
83709
83710         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83711         might actually be set by the user.
83712
83713         * config/depcomp, install-sh, mdate-sh: update from automake.
83714
83715 2003-05-17  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83718         invalid expansion for AC_EGREP_CPP.
83719         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83720         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83721         Suggested by Akim Demaille <akim@epita.fr> in
83722         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83723
83724 2003-05-12  Jim Meyering  <jim@meyering.net>
83725
83726         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83727         the space-padded-by-default conversion specifiers, %e, %k, %l.
83728
83729 2003-05-12  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83732         the string is longer than 4 KB.
83733
83734 2003-05-11  Karl Berry  <karl@gnu.org>
83735
83736         * config/config.{guess,sub}: update from prep.
83737
83738 2003-05-09  Bruno Haible  <bruno@clisp.org>
83739
83740         * modules/error: Add m4/strerror_r.m4 to file list.
83741
83742 2003-05-03  Bruno Haible  <bruno@clisp.org>
83743
83744         Upgrade to Unicode-4.0.
83745         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83746         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83747         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83748         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83749         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83750         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83751         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83752         Change width of U+E0100..U+E01EF from 1 to 0.
83753
83754 2003-04-25  Jim Meyering  <jim@meyering.net>
83755
83756         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83757         of type size_t, not int.
83758
83759 2003-04-25  Bruno Haible  <bruno@clisp.org>
83760
83761         * lib/copy-file.c: Include <stddef.h>, for size_t.
83762
83763 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83764
83765         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83766         code which expansion is under static control.  Patch imported from
83767         Akim Demaille's patch to Bison; see
83768         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83769
83770 2003-04-14  Bruno Haible  <bruno@clisp.org>
83771
83772         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83773
83774 2003-04-11  Jim Meyering  <jim@meyering.net>
83775
83776         Merge changes from Coreutils.
83777
83778         2003-03-22  Jim Meyering  <jim@meyering.net>
83779
83780         * lib/strftime.c (widen): Cast alloca return value to proper type.
83781
83782         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83783
83784         From GNU libc.
83785         * lib/strftime.c (my_strftime): Handle very large width
83786         specifications for numeric values correctly.  Improve checks for
83787         overflow.
83788
83789         2003-01-19  Jim Meyering  <jim@meyering.net>
83790
83791         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83792         definitions.
83793         (nl_get_alt_digit) [! defined my_strftime]: Define.
83794         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83795         _nl_get_alt_digit and _nl_get_walt_digit.
83796
83797         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83798         libc. These changes have no effect outside of _LIBC.
83799
83800 2003-04-10  Bruno Haible  <bruno@clisp.org>
83801
83802         * modules/findprog: New file.
83803         * MODULES.html.sh (func_all_modules): Add it.
83804
83805 2003-04-10  Bruno Haible  <bruno@clisp.org>
83806
83807         * m4/findprog.m4: New file.
83808         * m4/eaccess.m4: New file.
83809
83810 2003-04-10  Bruno Haible  <bruno@clisp.org>
83811
83812         * lib/findprog.h: New file, from GNU gettext.
83813         * lib/findprog.c: New file, from GNU gettext.
83814
83815 2003-04-05  Jim Meyering  <jim@meyering.net>
83816
83817         Merge changes from Coreutils.
83818
83819         * lib/exclude.h (PARAMS): Remove definition and uses.
83820         * lib/exclude.c: Remove uses of `PARAMS'.
83821
83822         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83823         Add test-cases for DOS filenames. Declare program_name.
83824         (main): Set up program_name.  Patch by Rich Dawe.
83825
83826         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83827         error from mntctl.
83828         Use mntctl's return value to drive the entry-processing loop, since
83829         we can't rely on the value of the vmt_length member in the last
83830         entry.  On some systems doing so could result in exhausting
83831         virtual memory.  Based in part on a patch from Mike Jetzer.
83832
83833 2003-04-04  Bruno Haible  <bruno@clisp.org>
83834
83835         * modules/linebreak: New file.
83836         * MODULES.html.sh (func_all_modules): Add it.
83837
83838 2003-04-04  Bruno Haible  <bruno@clisp.org>
83839
83840         * m4/linebreak.m4: New file.
83841
83842 2003-04-04  Bruno Haible  <bruno@clisp.org>
83843
83844         * lib/linebreak.h: New file, from GNU gettext.
83845         * lib/linebreak.c: New file, from GNU gettext with slight
83846         modifications.
83847         * lib/lbrkprop.h: New file, from GNU gettext.
83848
83849 2003-04-03  Bruno Haible  <bruno@clisp.org>
83850
83851         * modules/utf8-ucs4: New file.
83852         * modules/utf16-ucs4: New file.
83853         * modules/ucs4-utf8: New file.
83854         * modules/ucs4-utf16: New file.
83855         * MODULES.html.sh (func_all_modules): Add them.
83856
83857 2003-04-03  Bruno Haible  <bruno@clisp.org>
83858
83859         * m4/utf-ucs4.m4: New file.
83860         * m4/ucs4-utf.m4: New file.
83861
83862 2003-04-03  Bruno Haible  <bruno@clisp.org>
83863
83864         * lib/utf8-ucs4.h: New file, from GNU gettext.
83865         * lib/utf16-ucs4.h: New file, from GNU gettext.
83866         * lib/ucs4-utf8.h: New file, from GNU gettext.
83867         * lib/ucs4-utf16.h: New file, from GNU gettext.
83868
83869 2003-04-02  Bruno Haible  <bruno@clisp.org>
83870
83871         * modules/binary-io: New file.
83872         * MODULES.html.sh (func_all_modules): Add it.
83873
83874 2003-04-02  Bruno Haible  <bruno@clisp.org>
83875
83876         * lib/binary-io.h: New file, from GNU gettext.
83877
83878 2003-04-01  Bruno Haible  <bruno@clisp.org>
83879
83880         * modules/pathname: New file.
83881         * MODULES.html.sh (func_all_modules): Add it.
83882
83883 2003-04-01  Bruno Haible  <bruno@clisp.org>
83884
83885         * lib/pathname.h: New file, from GNU gettext.
83886         * lib/concatpath.c: New file, from GNU gettext.
83887
83888 2003-03-30  Bruno Haible  <bruno@clisp.org>
83889
83890         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83891
83892 2003-03-30  Bruno Haible  <bruno@clisp.org>
83893
83894         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83895         function chown() doesn't exist.
83896
83897 2003-03-28  Bruno Haible  <bruno@clisp.org>
83898
83899         * modules/copy-file: New file.
83900         * MODULES.html.sh (func_all_modules): Add it.
83901
83902 2003-03-28  Bruno Haible  <bruno@clisp.org>
83903
83904         * m4/copy-file.m4: New file.
83905
83906 2003-03-28  Bruno Haible  <bruno@clisp.org>
83907
83908         * lib/copy-file.h: New file, from GNU gettext.
83909         * lib/copy-file.c: New file, from GNU gettext.
83910
83911 2003-03-18  Jim Meyering  <jim@meyering.net>
83912
83913         * lib/quote.c (quote_n): Fix typo in comment.
83914
83915 2003-03-18  Bruno Haible  <bruno@clisp.org>
83916
83917         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83918         checking.
83919         * m4/onceonly_2_57.m4: Likewise.
83920
83921 2003-03-17  Bruno Haible  <bruno@clisp.org>
83922
83923         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83924         (m4_quote): Remove macro.
83925         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83926
83927 2003-03-14  Jim Meyering  <jim@meyering.net>
83928
83929         Merge changes from Coreutils.
83930         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83931         to be const, in order to avoid warnings.
83932         (obstack_room): Likewise.
83933         (obstack_empty_p): Likewise.
83934
83935 2003-03-14  Bruno Haible  <bruno@clisp.org>
83936
83937         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83938         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83939
83940 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83941
83942         Merge changes from Bison.
83943         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83944         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83945         when compiling Bison 1.875's `bitset bset = obstack_alloc
83946         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83947         * lib/hash.c: Include <stdbool.h> unconditionally.
83948
83949 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83950
83951         * m4/onceonly.m4 (m4_quote): New macro.
83952         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83953         Quote AC_FOREACH variable-expansions properly.
83954
83955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83956
83957         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83958
83959 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83960
83961         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83962         Reported by Bruce Becker; see:
83963         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83964
83965 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83966             Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83969         Reported by John Hughes, see
83970         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83971
83972 2003-02-20  Bruno Haible  <bruno@clisp.org>
83973
83974         * MODULES.html.sh (func_all_modules): Add poll.
83975
83976 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83977
83978         * modules/poll: New file.
83979
83980 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83981
83982         * lib/poll_.h: New file.
83983         * lib/poll.c: New file.
83984
83985 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83986
83987         * m4/poll.m4: New file.
83988
83989 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83990
83991         * modules/mathl: New file.
83992
83993 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83994
83995         * lib/mathl.h: New file.
83996         * lib/acosl.c: New file.
83997         * lib/asinl.c: New file.
83998         * lib/atanl.c: New file.
83999         * lib/ceill.c: New file.
84000         * lib/cosl.c: New file.
84001         * lib/expl.c: New file.
84002         * lib/floorl.c: New file.
84003         * lib/frexpl.c: New file.
84004         * lib/ldexpl.c: New file.
84005         * lib/logl.c: New file.
84006         * lib/sincosl.c: New file.
84007         * lib/sinl.c: New file.
84008         * lib/sqrtl.c: New file.
84009         * lib/tanl.c: New file.
84010         * lib/trigl.c: New file.
84011         * lib/trigl.h: New file.
84012
84013 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84014
84015         * m4/mathl.m4: New file.
84016
84017 2003-02-18  Bruno Haible  <bruno@clisp.org>
84018
84019         * MODULES.html.sh (func_all_modules): Add mathl.
84020
84021 2003-02-17  Bruno Haible  <bruno@clisp.org>
84022
84023         * modules/mkdtemp: New module.
84024         * MODULES.html.sh (func_all_modules): Add it.
84025
84026 2003-02-17  Bruno Haible  <bruno@clisp.org>
84027
84028         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84029
84030 2003-02-17  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/mkdtemp.h: New file, from GNU gettext.
84033         * lib/mkdtemp.c: New file, from GNU gettext.
84034
84035 2003-02-02  Jim Meyering  <jim@meyering.net>
84036
84037         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84038         e.g. glibc-2.2.93.
84039
84040 2003-01-31  Bruno Haible  <bruno@clisp.org>
84041
84042         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84043         'rpl_rename'.
84044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84045         'rpl_strnlen'.
84046         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84047         'rpl_strtod'.
84048         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84049         'rpl_utime'.
84050
84051 2003-01-31  Bruno Haible  <bruno@clisp.org>
84052
84053         * lib/rename.c: #undef rename before defining rpl_rename.
84054         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84055
84056 2003-01-30  Bruno Haible  <bruno@clisp.org>
84057
84058         * modules/vasnprintf, modules/vasprintf: New modules.
84059         * MODULES.html.sh (func_all_modules): Add them.
84060
84061 2003-01-30  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/signed.m4: New file, from GNU gettext.
84064         * m4/longdouble.m4: New file, from GNU gettext.
84065         * m4/wchar_t.m4: New file, from GNU gettext.
84066         * m4/wint_t.m4: New file, from GNU gettext.
84067         * m4/vasnprintf.m4: New file.
84068         * m4/vasprintf.m4: New file.
84069
84070 2003-01-30  Bruno Haible  <bruno@clisp.org>
84071
84072         * lib/printf-args.h: New file, from GNU gettext.
84073         * lib/printf-args.c: New file, from GNU gettext.
84074         * lib/printf-parse.h: New file, from GNU gettext.
84075         * lib/printf-parse.c: New file, from GNU gettext.
84076         * lib/vasnprintf.h: New file, from GNU gettext.
84077         * lib/vasnprintf.c: New file, from GNU gettext.
84078         * lib/asnprintf.c: New file, from GNU gettext.
84079         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84080         * lib/vasprintf.c: New file, from GNU gettext.
84081         * lib/asprintf.c: New file, from GNU gettext.
84082
84083 2003-01-29  Bruno Haible  <bruno@clisp.org>
84084
84085         * modules/stpncpy: New module.
84086         * MODULES.html.sh (func_all_modules): Add it.
84087
84088 2003-01-29  Bruno Haible  <bruno@clisp.org>
84089
84090         * m4/stpncpy.m4: New file.
84091
84092 2003-01-29  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84095         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84096
84097 2003-01-28  Bruno Haible  <bruno@clisp.org>
84098
84099         * modules/c-ctype: New module.
84100         * MODULES.html.sh (func_all_modules): Add it.
84101
84102 2003-01-28  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84105         Paul Eggert.
84106         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84107         Paul Eggert.
84108
84109 2003-01-27  Bruno Haible  <bruno@clisp.org>
84110
84111         * modules/xsetenv: New module.
84112         * MODULES.html.sh (func_all_modules): Add it.
84113
84114 2003-01-27  Bruno Haible  <bruno@clisp.org>
84115
84116         * lib/xsetenv.h: New file, from GNU gettext.
84117         * lib/xsetenv.c: New file, from GNU gettext.
84118
84119 2003-01-23  Jim Meyering  <jim@meyering.net>
84120
84121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84122         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84123
84124 2003-01-23  Bruno Haible  <bruno@clisp.org>
84125
84126         * modules/minmax: New module.
84127         * MODULES.html.sh (func_all_modules): Add it.
84128
84129 2003-01-23  Bruno Haible  <bruno@clisp.org>
84130
84131         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84132         Eggert.
84133
84134 2003-01-22  Bruno Haible  <bruno@clisp.org>
84135
84136         * modules/exit: New module.
84137         * MODULES.html.sh (func_all_modules): Add it.
84138
84139 2003-01-22  Bruno Haible  <bruno@clisp.org>
84140
84141         * lib/exit.h: New file, from GNU gettext.
84142
84143 2003-01-19  Bruno Haible  <bruno@clisp.org>
84144
84145         * gnulib-tool: Recognize option --extract-maintainer.
84146         (func_get_maintainer): New function.
84147         * modules/*: Add Maintainer entry.
84148
84149 2003-01-16  Jim Meyering  <jim@meyering.net>
84150
84151         * m4/regex.m4: The `regex' struct is both input and output.
84152         Initialize it before each use.  Patch by Tim Waugh.
84153
84154 2003-01-16  Bruno Haible  <bruno@clisp.org>
84155
84156         * MODULES.html.sh: Add a table of contents. Add the module name as
84157         leftmost column. Add hyperlinks.
84158
84159 2003-01-15  Bruno Haible  <bruno@clisp.org>
84160
84161         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84162
84163 2003-01-15  Bruno Haible  <bruno@clisp.org>
84164
84165         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84166         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84167         suffix.
84168
84169 2003-01-15  Bruno Haible  <bruno@clisp.org>
84170
84171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84172
84173 2003-01-15  Bruno Haible  <bruno@clisp.org>
84174
84175         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84176         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84177
84178 2003-01-14  Jim Meyering  <jim@meyering.net>
84179
84180         * lib/same.c (same_name): Tweak a comment.
84181
84182 2003-01-14  Bruno Haible  <bruno@clisp.org>
84183
84184         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84185         when a string comparison is sufficient.
84186
84187 2003-01-14  Bruno Haible  <bruno@clisp.org>
84188
84189         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84190         'unsigned int'.
84191
84192 2003-01-14  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/hash-pjw.c: Add comment about low quality of this function.
84195
84196 2003-01-13  Bruno Haible  <bruno@clisp.org>
84197
84198         * modules/stpcpy: Distribute lib/stpcpy.h.
84199         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84200
84201 2003-01-13  Bruno Haible  <bruno@clisp.org>
84202
84203         * modules/*: Add a description.
84204         * modules/strpbrk: Fix Makefile.am snippet.
84205         * modules/strtoimax: Fix dependencies.
84206         * modules/strtoumax: Likewise.
84207
84208 2003-01-13  Bruno Haible  <bruno@clisp.org>
84209
84210         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84211         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84212         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84213
84214 2003-01-13  Bruno Haible  <bruno@clisp.org>
84215
84216         * gnulib-tool (func_create_testdir): Store config/* files in the main
84217         directory.
84218         * config.rpath: Move to ...
84219         * config/config.rpath: ... here.
84220         * modules/gettext: Contains config/config.rpath, not config.rpath.
84221         * modules/iconv: Likewise.
84222
84223 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84224
84225         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84226         to avoid collisions with libcurses and libreadline.
84227
84228         * m4/getstr.m4: Remove.
84229         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84230
84231 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84232
84233         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84234         to avoid collisions with libcurses and libreadline.
84235
84236         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84237         * lib/getstr.h, getstr.c: Remove.
84238         * lib/getline.c: Include "getline.h", to check interface.
84239         Move body of old getstr.c here: this defines MIN_CHUNK and
84240         declares getdelim2, which is renamed from getstr.
84241         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84242
84243         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84244         All uses changed.
84245         * lib/linebuffer.h: Likewise.
84246         (readline): Remove backward-compatibility macro.
84247
84248 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84249
84250         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84251         to avoid collisions with libcurses and libreadline.
84252         * getstr: Remove.
84253         * MODULES.html.sh: Remove getstr.
84254         * modules/getline: Depend on unlocked-io, not getstr.
84255
84256 2003-01-12  Jim Meyering  <jim@meyering.net>
84257
84258         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84259
84260 2003-01-10  Bruno Haible  <bruno@clisp.org>
84261
84262         * modules/alloca: Change Makefile.am requirements. Simplify Include
84263         requirements. Add lib/alloca_.h to file list.
84264
84265 2003-01-10  Bruno Haible  <bruno@clisp.org>
84266
84267         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84268
84269 2003-01-10  Bruno Haible  <bruno@clisp.org>
84270
84271         * lib/alloca_.h: New file.
84272         * lib/getdate.y: Unconditionally include alloca.h.
84273         * lib/makepath.c: Likewise.
84274         * lib/setenv.c: Likewise.
84275         * lib/userspec.c: Likewise.
84276
84277 2003-01-09  Karl Berry  <karl@gnu.org>
84278
84279         * MODULES.html.sh: include `dirname $0` in PATH, to find
84280         gnulib-tool.
84281
84282 2003-01-09  Bruno Haible  <bruno@clisp.org>
84283
84284         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84285         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84286
84287 2003-01-09  Bruno Haible  <bruno@clisp.org>
84288
84289         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84290
84291 2003-01-09  Bruno Haible  <bruno@clisp.org>
84292
84293         * lib/stdbool.h.in: New file.
84294
84295 2003-01-09  Bruno Haible  <bruno@clisp.org>
84296
84297         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84298         * MODULES.html.sh: Likewise.
84299
84300 2003-01-08  Jim Meyering  <jim@meyering.net>
84301
84302         * lib/full-write.c: Undefine and define-away `const' after inclusion
84303         of errno.h, not before.  Suggestion from Bruno Haible.
84304
84305 2003-01-08  Bruno Haible  <bruno@clisp.org>
84306
84307         * modules/full-read: Depend on full-write.
84308
84309 2003-01-08  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/safe-read.c: Include specification header first, to ensure its
84312         selfcontainedness.
84313         * lib/full-write.c: Likewise.
84314
84315 2003-01-07  Jim Meyering  <jim@meyering.net>
84316
84317         * lib/full-write.c: Rework so that it may serve to define full_read,
84318         too.
84319         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84320
84321 2003-01-07  Bruno Haible  <bruno@clisp.org>
84322
84323         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84324         <inttypes.h>.
84325         * lib/xstrtol.h: Likewise.
84326         * lib/xstrtoimax.c: Likewise.
84327         * lib/xstrtoumax.c: Likewise.
84328         * lib/human.h: Likewise.
84329
84330         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84331         on systems that have <inttypes.h> but not <stdint.h>.
84332
84333 2003-01-07  Bruno Haible  <bruno@clisp.org>
84334
84335         * MODULES.html.sh: Add copyright notice.
84336         (missed_files): Omit CVS directory entries.
84337         (func_module): Make it work with sed-3.02.
84338         * MODULES.txt: Remove file.
84339
84340 2003-01-06  Jim Meyering  <jim@meyering.net>
84341
84342         * lib/version-etc.c: Update year in translatable copyright string.
84343
84344 2003-01-03  Karl Berry  <karl@gnu.org>
84345
84346         * config/config.{guess,sub}: update from prep.
84347
84348 2003-01-02  Karl Berry  <karl@gnu.org>
84349
84350         * doc/COPYING.DOC: belatedly updated to 1.2.
84351
84352 2003-01-01  Karl Berry  <karl@gnu.org>
84353
84354         * gnulib-tool (func_verify_module): report module name $module in
84355         error message, not $1.
84356         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84357         be created, only if it doesn't exist.
84358         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84359
84360 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84361
84362         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84363
84364 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84365
84366         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84367         memcmp if strcoll doesn't work.
84368
84369 2002-12-31  Bruno Haible  <bruno@clisp.org>
84370
84371         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84372         nonempty.
84373
84374 2002-12-31  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/memcoll.c (STRCOLL): New macro.
84377         (memcoll): Use it.
84378
84379 2002-12-31  Bruno Haible  <bruno@clisp.org>
84380
84381         * lib/localcharset.h: New file.
84382         * lib/localcharset.c: Include it.
84383         * lib/unicodeio.c: Likewise.
84384
84385 2002-12-31  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84388         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84389
84390 2002-12-31  Bruno Haible  <bruno@clisp.org>
84391
84392         * lib/getline.h: Include <stddef.h>, for size_t.
84393
84394         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84395         * lib/unicodeio.c: Don't include <stddef.h>.
84396
84397 2002-12-31  Bruno Haible  <bruno@clisp.org>
84398
84399         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84400         HAVE_TM_ZONE.
84401
84402 2002-12-24  Karl Berry  <karl@gnu.org>
84403
84404         * config/config.guess: update from prep.
84405
84406 2002-12-24  Bruno Haible  <bruno@clisp.org>
84407
84408         General infrasructure.
84409         * m4/README: Rewritten.
84410         * m4/onceonly.m4: New file.
84411         * m4/onceonly_2_57.m4: New file.
84412
84413         Module atexit.
84414         * m4/atexit.m4: New file.
84415
84416         Module strtod.
84417         * m4/strtod.m4: New file.
84418
84419         Module strtol.
84420         * m4/strtol.m4: New file.
84421
84422         Module strtoul.
84423         * m4/strtoul.m4: New file.
84424
84425         Module memchr.
84426         * m4/memchr.m4: New file.
84427
84428         Module memcmp.
84429         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84430         (jm_FUNC_MEMCMP): Invoke it.
84431
84432         Module memcpy.
84433         * m4/memcpy.m4: New file.
84434
84435         Module memmove.
84436         * m4/memmove.m4: New file.
84437
84438         Module memset.
84439         * m4/memset.m4: New file.
84440
84441         Module strcspn.
84442         * m4/strcspn.m4: New file.
84443
84444         Module strpbrk.
84445         * m4/strpbrk.m4: New file.
84446
84447         Module strstr.
84448         * m4/strstr.m4: New file.
84449
84450         Module strerror.
84451         * m4/strerror.m4: New file.
84452
84453         Module mktime.
84454         * m4/mktime.m4: Renamed from jm-mktime.m4.
84455         (gl_PREREQ_MKTIME): New macro.
84456         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84457
84458         Module malloc.
84459         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84460         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84461         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84462
84463         Module realloc.
84464         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84465         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84466         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84467
84468         Module strftime.
84469         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84471         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84472         gl_TM_GMTOFF.
84473         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84474
84475         Module xalloc.
84476         * m4/xalloc.m4: New file.
84477
84478         Module alloca.
84479         * m4/alloca.m4: New file.
84480
84481         Module putenv.
84482         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84483         (jm_FUNC_PUTENV): Invoke it.
84484
84485         Module setenv.
84486         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84487         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84488         when invoked twice.
84489         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84490         gt_FUNC_SETENV.
84491
84492         Module memrchr.
84493         * m4/memrchr.m4: New file.
84494
84495         Module stpcpy.
84496         * m4/stpcpy.m4: New file.
84497
84498         Module strcase.
84499         * m4/strcase.m4: New file.
84500
84501         Module strdup.
84502         * m4/strdup.m4: New file.
84503
84504         Module strnlen.
84505         * m4/strnlen.m4: New file.
84506
84507         Module strndup.
84508         * m4/strndup.m4: New file.
84509
84510         Module xstrtod.
84511         * m4/xstrtod.m4: New file.
84512
84513         Module xstrtol.
84514         * m4/xstrtol.m4: New file.
84515
84516         Module getdate.
84517         * m4/getdate.m4: New file.
84518
84519         Module unlocked-io.
84520         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84521         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84522         * m4/jm-glibc-io.m4n: Remove file.
84523
84524         Module long-options.
84525         * m4/long-options.m4: New file.
84526
84527         Module md5.
84528         * m4/md5.m4: New file.
84529
84530         Module sha.
84531         * m4/sha.m4: New file.
84532
84533         Module getstr.
84534         * m4/getstr.m4: New file.
84535
84536         Module getline.
84537         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84538         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84539         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84540         simply getline. Infoke gl_PREREQ_GETLINE.
84541
84542         Module obstack.
84543         * m4/obstack.m4: New file.
84544
84545         Module hash.
84546         * m4/hash.m4: New file.
84547
84548         Module readtokens.
84549         * m4/readtokens.m4: New file.
84550
84551         Module strverscmp.
84552         * m4/strverscmp.m4: New file.
84553
84554         Module stdbool.
84555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84556         OSF/1.
84557
84558         Module strtoll.
84559         * m4/strtoll.m4: New file.
84560
84561         Module strtoull.
84562         * m4/strtoull.m4: New file.
84563
84564         Module strtoimax.
84565         * m4/strtoimax.m4: New file.
84566
84567         Module strtoumax.
84568         * m4/strtoumax.m4: New file.
84569
84570         Module xstrtoimax.
84571         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84572         jm_AC_PREREQ_XSTRTOIMAX.
84573         Moved the strtol prerequisites to strtol.m4.
84574         Moved the strtoll prerequisites to strtoll.m4.
84575         Moved the strtoimax prerequisites to strtoimax.m4.
84576
84577         Module xstrtoumax.
84578         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84579         jm_AC_PREREQ_XSTRTOUMAX.
84580         Moved the strtoul prerequisites to strtoul.m4.
84581         Moved the strtoull prerequisites to strtoull.m4.
84582         Moved the strtoumax prerequisites to strtoumax.m4.
84583
84584         Module chown.
84585         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84586         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84587
84588         Module dup2.
84589         * m4/dup2.m4: New file.
84590
84591         Module ftruncate.
84592         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84593         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84594
84595         Module getgroups.
84596         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84597         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84598
84599         Module gettimeofday.
84600         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84601         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84602         gl_PREREQ_GETTIMEOFDAY.
84603
84604         Module mkdir.
84605         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84606         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84607
84608         Module mkstemp.
84609         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84610         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84611         jm_AC_TYPE_UINTMAX_T.
84612         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84613
84614         Module stat.
84615         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84616         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84617
84618         Module lstat.
84619         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84620         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84621
84622         Module timespec.
84623         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84624         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84625         * m4/st_mtim.m4: Indentation.
84626
84627         Module nanosleep.
84628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84629         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84630         gl_PREREQ_NANOSLEEP.
84631
84632         Module regex.
84633         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84634         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84635         (gl_REGEX): New macro.
84636
84637         Module rename.
84638         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84639         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84640
84641         Module rmdir.
84642         * m4/rmdir.m4: New file.
84643
84644         Module utime.
84645         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84646         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84647         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84648
84649         Module dirname.
84650         * m4/dirname.m4: New file.
84651
84652         Module getopt.
84653         * m4/getopt.m4: New file.
84654
84655         Module unistd-safer.
84656         * m4/unistd-safer.m4: New file.
84657
84658         Module fnmatch.
84659         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84660         declaration.
84661         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84662         (gl_FUNC_FNMATCH_POSIX): New macro.
84663         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84664         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84665         simply fnmatch.
84666
84667         Module exclude.
84668         * m4/exclude.m4: New file.
84669
84670         Module human.
84671         * m4/human.m4: New file.
84672
84673         Module acl.
84674         * m4/acl.m4: Nop.
84675
84676         Module backupfile.
84677         * m4/backupfile.m4: New file.
84678         * m4/d-ino.m4: Indentation.
84679
84680         Module fsusage.
84681         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84682         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84683         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84684
84685         Module dirfd.
84686         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84687         requirements.
84688
84689         Module euidaccess.
84690         * m4/euidaccess.m4: New file.
84691
84692         Module file-type.
84693         * m4/file-type.m4: New file.
84694
84695         Module fileblocks.
84696         * m4/fileblocks.m4: New file.
84697
84698         Module filemode.
84699         * m4/filemode.m4: New file.
84700
84701         Module isdir.
84702         * m4/isdir.m4: New file.
84703
84704         Module lchown.
84705         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84706         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84707
84708         Module makepath.
84709         * m4/makepath.m4: New file.
84710
84711         Module modechange.
84712         * m4/modechange.m4: New file.
84713
84714         Module mountlist.
84715         * m4/mountlist.m4: New file.
84716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84717         Indentation.
84718
84719         Module path-concat.
84720         * m4/path-concat.m4: New file.
84721
84722         Module pathmax.
84723         * m4/pathmax.m4: New file.
84724
84725         Module same.
84726         * m4/same.m4: New file.
84727
84728         Module save-cwd.
84729         * m4/save-cwd.m4: New file.
84730
84731         Module savedir.
84732         * m4/savedir.m4: New file.
84733
84734         Module xgetcwd.
84735         * m4/xgetcwd.m4: New file.
84736         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84737
84738         Module xreadlink.
84739         * m4/xreadlink.m4: New file.
84740
84741         Module safe-read.
84742         * m4/safe-read.m4: New file.
84743
84744         Module safe-write.
84745         * m4/safe-write.m4: New file.
84746
84747         Module closeout.
84748         * m4/closeout.m4: New file.
84749
84750         Module stdio-safer.
84751         * m4/stdio-safer.m4: New file.
84752
84753         Module getpass.
84754         * m4/getpass.m4: New file.
84755
84756         Module getugroups.
84757         * m4/getugroups.m4: New file.
84758
84759         Module group-member.
84760         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84761         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84762
84763         Module idcache.
84764         * m4/idcache.m4: New file.
84765
84766         Module userspec.
84767         * m4/userspec.m4: New file.
84768
84769         Module gettime.
84770         * m4/clock_time.m4: New file.
84771         * m4/gettime.m4: New file.
84772
84773         Module settime.
84774         * m4/settime.m4: New file.
84775
84776         Module posixtm.
84777         * m4/posixtm.m4: New file.
84778
84779         Module gethostname.
84780         * m4/gethostname.m4: New file.
84781
84782         Module canon-host.
84783         * m4/canon-host.m4: New file.
84784
84785         Module gettext.
84786         * m4/codeset.m4: New file, from gettext-0.11.5.
84787         * m4/gettext.m4: New file, from gettext-0.11.5.
84788         * m4/glibc21.m4: New file, from gettext-0.11.5.
84789         * m4/iconv.m4: New file, from gettext-0.11.5.
84790         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84791         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84792         * m4/inttypes.m4: New file, from gettext-0.11.5.
84793         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84794         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84795         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84796         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84797         * m4/lib-link.m4: New file, from gettext-0.11.5.
84798         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84799         * m4/progtest.m4: New file, from gettext-0.11.5.
84800         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84801         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84802         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84803
84804         Module localcharset.
84805         * m4/localcharset.m4: New file.
84806
84807         Module hard-locale.
84808         * m4/hard-locale.m4: New file.
84809
84810         Module mbswidth.
84811         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84812         onceonly macros.
84813         * m4/mbrtowc.m4: Add comment.
84814
84815         Module memcasecmp.
84816         * m4/memcasecmp.m4: New file.
84817
84818         Module memcoll.
84819         * m4/memcoll.m4: New file.
84820
84821         Module unicodeio.
84822         * m4/unicodeio.m4: New file.
84823
84824         Module rpmatch.
84825         * m4/rpmatch.m4: New file.
84826
84827         Module yesno.
84828         * m4/yesno.m4: New file.
84829
84830         Module exitfail.
84831         * m4/exitfail.m4: New file.
84832
84833         Module c-stack.
84834         * m4/c-stack.m4 (gl_C_STACK): New macro.
84835         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84836
84837         Module error.
84838         * m4/error.m4 (gl_ERROR): New macro.
84839         (jm_PREREQ_ERROR): Use onceonly macros.
84840
84841         Module fatal.
84842         * m4/fatal.m4: New file.
84843
84844         Module getloadavg.
84845         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84846         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84847
84848         Module getpagesize.
84849         * m4/getpagesize.m4: New file.
84850
84851         Module getusershell.
84852         * m4/getusershell.m4: New file.
84853
84854         Module physmem.
84855         * m4/physmem.m4: New file.
84856
84857         Module posixver.
84858         * m4/posixver.m4: New file.
84859
84860         Module quotearg.
84861         * m4/quotearg.m4: New file.
84862
84863         Module quote.
84864         * m4/quote.m4: New file.
84865
84866         Module readutmp.
84867         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84868
84869         Module sig2str.
84870         * m4/sig2str.m4: New file.
84871
84872         Other.
84873         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84874         ulonglong.m4.
84875         * m4/intmax_t.m4: New file.
84876         * m4/d-type.m4: Indentation.
84877         * m4/jm-macros.m4: Update.
84878         * m4/prereq.m4 (jm_PREREQ): Update.
84879         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84880         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84881         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84882         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84883         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84884         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84885         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84886         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84887         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84888         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84889         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84890         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84891         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84892         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84893         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84894         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84895         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84896         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84897         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84898
84899 2002-12-24  Bruno Haible  <bruno@clisp.org>
84900
84901         * MODULES.txt: Update according to m4/ changes.
84902
84903         Module gettext.
84904         * config.rpath: New file, from gettext-0.11.5.
84905
84906         * modules/*: New module descriptions.
84907         * gnulib-tool: New file.
84908         * MODULES.html.sh: New file.
84909
84910 2002-12-21  Karl Berry  <karl@gnu.org>
84911
84912         * doc/fdl.texi: update to version 1.2.
84913
84914 2002-12-19  Karl Berry  <karl@gnu.org>
84915
84916         * config/config.guess: update from prep.
84917
84918 2002-12-18  Bruno Haible  <bruno@clisp.org>
84919
84920         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84921         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84922
84923 2002-12-17  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84926         stdlib.h, string.h.
84927
84928 2002-12-17  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/canon-host.c (strdup): Remove unused declaration.
84931
84932         * lib/fsusage.c: Include full_read.h.
84933         (get_fs_usage): Use full_read instead of safe_read.
84934
84935         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84936
84937 2002-12-12  Karl Berry  <karl@gnu.org>
84938
84939         * config/config.guess: update from prep.
84940
84941 2002-12-11  Bruno Haible  <bruno@clisp.org>
84942
84943         * m4/setenv.m4: New file, from gettext-0.11.5.
84944
84945 2002-12-11  Bruno Haible  <bruno@clisp.org>
84946
84947         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84948         not unsetenv().
84949         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84950         modifications:
84951
84952         2002-12-11  Bruno Haible  <bruno@clisp.org>
84953
84954                 * setenv.c (alloca): Fall back to malloc.
84955                 (freea): New macro.
84956                 (setenv): Use freea() to free memory allocated with alloca().
84957
84958         2002-11-13  Bruno Haible  <bruno@clisp.org>
84959
84960                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84961                 function declarations.
84962                 * unsetenv.c (unsetenv): Likewise.
84963
84964         2002-03-04  Bruno Haible  <bruno@clisp.org>
84965
84966                 Portability to AIX 4.3.3.
84967                 * unsetenv.c: New file, extracted from setenv.c.
84968                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84969
84970         2001-12-20  Bruno Haible  <bruno@clisp.org>
84971
84972                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84973                 use malloc instead. For SunOS 4.
84974
84975         2001-12-11  Bruno Haible  <bruno@clisp.org>
84976
84977                 * setenv.c: Declare alloca.
84978                 (compar_fn_t): New typedef.
84979                 (KNOWN_VALUE, STORE_VALUE): Use it.
84980
84981         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84982         setenv.h.
84983
84984 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84985
84986         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84987         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84988         Choose values that are less likely to collide with system fnmatch
84989         options.
84990         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84991         defined (e.g., a pure POSIX system).
84992         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84993         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84994
84995 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84996
84997         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84998         a pain in practice to deal with generated m4 files.  This change
84999         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85000
85001         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85002         and jm-glibc-io.m4, as they are no longer a special case.
85003         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85004         kludge and the auto-generation stuff.  Check only whether the
85005         functions are declared, not whether they exist, since older hosts
85006         that don't declare the functions can't use the optimization anyway.
85007
85008 2002-12-06  Jim Meyering  <jim@meyering.net>
85009
85010         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85011
85012         Merge in changes from libc's misc/error.c, in preparation
85013         for the merge of gnulib's changes back into libc.
85014
85015         * lib/error.c (_): Define only if not already defined.
85016         Move definition to follow all #include directives.
85017         Include unlocked-io.h only if !_LIBC.
85018         [_LIBC]: Include <libio/libioP.h>.
85019         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85020         (fflush): Tweak definition to use INTUSE.
85021         (putc): Define.
85022
85023 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85024
85025         * lib/alloca.c [defined emacs]: Include "lisp.h".
85026         (xalloc_die) [defined emacs]: New macro.
85027         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85028         [! defined emacs]: Include <xalloc.h>.
85029         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85030         (pointer): Typedef to POINTER_TYPE *.
85031         (malloc): Remove decl; we now always use xmalloc.
85032         (alloca): Use old-style definition, since Emacs needs this.
85033         Check for arithmetic overflow when computing combined size.
85034
85035 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85036
85037         Do not generate unlocked-io.h automatically, since it's easier to
85038         maintain it by hand.
85039
85040         * lib/unlocked-io.h: New file, from GNU diffutils,
85041         but with proper copyright notice and attribution.
85042         * lib/gen-uio: Remove.
85043         * lib/Makefile.am: Add copyright notice.
85044         (libfetish_a_SOURCES): Add unlocked-io.h.
85045         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85046         (DISTCLEANFILES, io_functions): Remove macros.
85047         (EXTRA_DIST): Remove gen_uio.
85048         (unlocked-io.h): Remove rule.
85049
85050 2002-12-04  Jim Meyering  <jim@meyering.net>
85051
85052         Reflect the fact that stat.c and lstat.c are no longer generated.
85053         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85054         (DISTCLEANFILES): Likewise.
85055         (EXTRA_DIST): Likewise.
85056         (all_local): Don't depend on stat.c or lstat.c.
85057         (stat.c, lstat.c): Remove rules.
85058         (EXTRA_DIST): Remove xstat.in.
85059
85060         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85061         * lib/stat.c: New file.  Contents mostly from xstat.in.
85062         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85063         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85064
85065         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85066         too.
85067         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85068
85069 2002-12-03  Jim Meyering  <jim@meyering.net>
85070
85071         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85072         but not semantics, to minimize the differences between these two files.
85073         (safe_read): Change comment to mention SAFE_READ_ERROR.
85074
85075         * lib/safe-read.c (IS_EINTR): Define.
85076         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85077
85078 2002-12-02  Jim Meyering  <jim@meyering.net>
85079
85080         * lib/safe-read.c (EINTR): Define.
85081         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85082         (INT_MAX): Provide fallback.
85083         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85084
85085         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85086
85087 2002-12-02  Bruno Haible  <bruno@clisp.org>
85088
85089         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85090         Define, taken from safe-read.c.
85091         (INT_MAX): Provide fallback.
85092         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85093         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85094
85095         * lib/safe-read.c (EINTR): Remove definition.
85096         (safe_read): Don't use EINTR if it is absent.
85097
85098 2002-12-01  Jim Meyering  <jim@meyering.net>
85099
85100         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85101         zero.
85102         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85103
85104 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85105
85106         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85107         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85108         with `if (! (value < limit)) abort ();', for readability.
85109
85110 2002-11-26  Karl Berry  <karl@gnu.org>
85111
85112         * lib/strdup.c: copy from libc again, with jim's ok.
85113         * lib/.cppi-disable: re-add strdup.c
85114
85115 2002-11-25  Karl Berry  <karl@gnu.org>
85116
85117         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85118         instead of "strtol.c".
85119
85120 2002-11-25  Karl Berry  <karl@gnu.org>
85121
85122         * config/install-sh: update from automake for variable quoting, $0 in
85123         error msgs, etc.
85124
85125         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85126         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85127         entry.
85128
85129 2002-11-25  Jim Meyering  <jim@meyering.net>
85130
85131         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85132
85133 2002-11-24  Karl Berry  <karl@gnu.org>
85134
85135         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85136         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85137
85138 2002-11-24  Jim Meyering  <jim@meyering.net>
85139
85140         Update from coreutils:
85141
85142         * lib/mktime.c: Merge in changes from libc.
85143
85144         Avoid a link-time failure on some Linux systems.
85145         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85146         (otherwise).
85147         (__mon_yday): Declare with the STATIC attribute.
85148         (__mktime_internal): Likewise.
85149         Based on a report from Greg Schafer.
85150
85151 2002-11-23  Jim Meyering  <jim@meyering.net>
85152
85153         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85154         Use `unsigned', not `int', as type of index.
85155
85156         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85157
85158         * lib/fsusage.c: Remove unneeded parentheses around operands of
85159         `defined'.
85160
85161 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85162
85163         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85164         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85165         so that we can be included first.
85166         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85167         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85168         No need to include stddef.h or sys/types.h any more.
85169         Surround local include files with "", not "<>".
85170         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85171         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85172         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85173         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85174         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85175         (ISPRINT): Remove; no longer needed now that we assume C89.
85176
85177         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85178         Preserve errno.
85179
85180         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85181         quotearg_char): Use SIZE_MAX rather than
85182         (size_t) -1 when we are talking about "infinity".
85183
85184         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85185
85186 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85187
85188         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85189         hint that one should use `if (! x) abort ();' rather than `assert
85190         (x);', and anyway it's one less thing to worry about configuring.
85191         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85192         hash_rehash, hash_insert): Use abort rather than assert.
85193
85194 2002-11-22  Bruno Haible  <bruno@clisp.org>
85195
85196         * lib/safe-read.h: Assume C89. Add comments.
85197         (safe_read): Change return type to size_t.
85198         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85199         byte counts > SSIZE_MAX correctly.
85200         * lib/safe-write.h: New file.
85201         * lib/safe-write.c: New file.
85202         * lib/full-read.h: New file.
85203         * lib/full-read.c: New file.
85204         * lib/full-write.h: Assume C89. Add comments.
85205         * lib/full-write.c: Include safe-write.h.
85206         (full_write): Rewritten to use safe_write.
85207         Suggested by Jim Meyering and Paul Eggert.
85208
85209 2002-11-21  Jim Meyering  <jim@meyering.net>
85210
85211         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85212
85213         Merge in changes from the coreutils.
85214
85215         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85216         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85217         <stdint.h>.
85218         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85219         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85220         int.  Work more efficiently if X is the same width as uintmax_t.
85221         Do not compare X to -1, to avoid bogus compiler warning.
85222         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85223         Don't assume that f_frsize and f_bsize are the same type.
85224
85225         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85226         warning on FreeBSD.
85227
85228         * lib/makepath.c (make_path): Restore umask *before* creating the final
85229         component.
85230         (make_path): Minor reformatting.
85231
85232         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85233         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85234         HAVE_MALLOC/HAVE_REALLOC.
85235
85236         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85237         dummy ones.  At least on GNU/Linux systems, `auto' means something
85238         else.
85239         From Michael Stone.
85240
85241 2002-11-21  Bruno Haible  <bruno@clisp.org>
85242
85243         Remove case insensitive option matching.
85244         * lib/argmatch.h (argcasematch): Remove declaration.
85245         (ARGCASEMATCH): Remove macro.
85246         (__xargmatch_internal): Remove case_sensitive argument.
85247         (XARGMATCH): Update.
85248         (XARGCASEMATCH): Remove macro.
85249         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85250         case_sensitive argument.
85251         (argcasematch): Remove function.
85252         (__xargmatch_internal): Remove case_sensitive argument.
85253         (main): Use XARGMATCH instead of XARGCASEMATCH.
85254
85255         * lib/xmalloc.c: Change compile-time error message. Add comment about
85256         required autoconf version.
85257
85258 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85259
85260         Merge argmatch cleanups from Bison.  Assume C89.
85261
85262         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85263         Include stdlib.h, for EXIT_FAILURE.
85264         Always include <string.h>, since we assume C89.
85265         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85266         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85267         Include <stddef.h> instead, since it's all we need for size_t.
85268         (PARAMS): Remove.  All uses removed.
85269         (ARRAY_CARDINALITY): Do not bother to #undef.
85270         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85271         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85272         Remove unnecessary parentheses.
85273         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85274         Insert necessary parentheses.
85275         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85276         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85277
85278 2002-11-19  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85281         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85282
85283         * lib/mbswidth.h (PARAMS): Remove macro.
85284         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85285         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85286
85287         * lib/gcd.h (PARAMS): Remove macro.
85288         (gcd): Use ANSI C function declarations.
85289         * lib/gcd.c (gcd): Likewise.
85290
85291 2002-11-15  Bruno Haible  <bruno@clisp.org>
85292
85293         * lib/strcspn.c: Include <stddef.h>.
85294         (strcspn): Use ANSI C function declaration. Change return type to
85295         size_t. Use NULL.
85296         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85297         (strpbrk): Use NULL.
85298         * lib/strpbrk.h (PARAMS): Remove macro.
85299         (strpbrk): Use ANSI C function declaration.
85300         * lib/strstr.c: Don't include <sys/types.h>.
85301         * lib/strstr.h (PARAMS): Remove macro.
85302         (strstr): Use ANSI C function declarations.
85303
85304 2002-11-14  Karl Berry  <karl@gnu.org>
85305
85306         * config/mkinstalldirs: `do' on separate line, instead of
85307         `for var; do'.
85308
85309 2002-11-06  Bruno Haible  <bruno@clisp.org>
85310
85311         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85312         * lib/gcd.c (gcd): Likewise.
85313
85314 2002-11-05  Bruno Haible  <bruno@clisp.org>
85315
85316         * lib/gcd.h: New file, from gettext-0.11.5.
85317         * lib/gcd.c: New file, from gettext-0.11.5.
85318
85319 2002-11-05  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85322         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85323         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85324         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85325
85326         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85327         <libintl.h>.
85328         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85329         <libintl.h>.
85330
85331         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85332         * lib/human.c: Include gettext.h instead of <libintl.h>.
85333         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85334         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85335         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85336         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85337         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85338         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85339         (textdomain): Remove definition.
85340         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85341
85342         * lib/long-options.c: Remove include of <libintl.h> and definition of
85343         _.
85344         * lib/same.c: Remove include of <libintl.h> and definition of _.
85345
85346 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85347
85348         * lib/config.charset: A few additions for Solaris.
85349
85350 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85351
85352         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85353         * lib/localcharset.c (locale_charset): Declare as extern "C".
85354
85355 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85356
85357         * lib/config.charset: msdos in uk_UA uses CP1125.
85358
85359 2002-11-04  Bruno Haible  <bruno@clisp.org>
85360
85361         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85362         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85363         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85364         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85365         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85366
85367 2002-11-04  Bruno Haible  <bruno@clisp.org>
85368
85369         * lib/localcharset.c (locale_charset): Don't return an empty string.
85370
85371 2002-11-04  Bruno Haible  <bruno@clisp.org>
85372
85373         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85374         aliases.
85375
85376 2002-11-04  Bruno Haible  <bruno@clisp.org>
85377
85378         * lib/config.charset: Update for newest glibc. Add canonical names
85379         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85380
85381 2002-11-04  Bruno Haible  <bruno@clisp.org>
85382
85383         * lib/config.charset: Add support for NetBSD.
85384
85385 2002-11-04  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85388
85389 2002-11-01  Bruno Haible  <bruno@clisp.org>
85390
85391         * configure.in: Add AC_CONFIG_AUX_DIR call.
85392         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85393         test/Makefile.
85394         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85395
85396 2002-09-28  Karl Berry  <karl@gnu.org>
85397
85398         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85399         installed automake until the next release, since changes have been
85400         made.
85401
85402 2002-09-25  Karl Berry  <karl@gnu.org>
85403
85404         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85405         * lib/getopt*: copy from libc/posix.
85406         * lib/gettext.h: copy from gettext.
85407         * lib/.cppi-disable: add strdup.c, gettext.h.
85408
85409 2002-09-25  Karl Berry  <karl@gnu.org>
85410
85411         * config/srclist.txt: enable gettext.h check.
85412         * config/config.{guess,sub}: update from prep.
85413         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85414                 from automake 1.6.3.
85415         See srclist*.
85416
85417 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85418
85419         * regex.c (PATFETCH): Remove the translating fetch.
85420         (PATFETCH_RAW): Rename to PATFETCH.
85421         (set_image_of_range): New fun.
85422         (SET_RANGE_TABLE_WORK_AREA): Use it.
85423         (regex_compile): Don't translate the pattern chars so eagerly.
85424         Only do it when inserting an `exactn' bytecode or when handling
85425         a char-range.
85426         (mutually_exclusive_p): Avoid empty statement.
85427
85428 2002-07-06  Jim Meyering  <meyering@lucent.com>
85429
85430         * m4/README: Don't mention Makefile.am.in.
85431         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85432
85433 2002-07-01  Jim Meyering  <meyering@lucent.com>
85434
85435         * lib/c-stack.c: Include sys/time.h.
85436         From Volker Borchert.
85437
85438 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85439
85440         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85441
85442 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85443
85444         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85445         New macro.  Use it uniformly instead of
85446         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85447         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85448         reported by Vin Shelton.
85449
85450 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85453         Do not assume SA_SIGINFO behavior.
85454         Bug reported by Jim Meyering on NetBSD 1.5.2.
85455
85456 2002-06-22  Jim Meyering  <meyering@lucent.com>
85457
85458         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85459         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85460
85461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85462         now that configure.ac uses AC_GNU_SOURCE.
85463         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85464         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85465
85466         Update to latest tools.  Suggestions from Paul Eggert.
85467         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85468         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85469         * m4/fnmatch.m4: Likewise.
85470         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85471         to AC_HEADER_STDBOOL
85472
85473 2002-06-22  Jim Meyering  <meyering@lucent.com>
85474
85475         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85476         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85477
85478 2002-06-22  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85481
85482         * lib/exitfail.c, exitfail.h: Likewise.
85483         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85484
85485         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85486         of fnmatch.h.
85487         (EXTRA_DIST): Add fnmatch_loop.c.
85488         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85489
85490         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85491         * lib/fnmatch.c: Update from diffutils-2.8.2.
85492         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85493         * lib/fnmatch.h: Remove file.
85494
85495 2002-06-21  Jim Meyering  <meyering@lucent.com>
85496
85497         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85498         * m4/mbrtowc.m4: Likewise.
85499
85500         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85501         * m4/mbswidth.m4: Reflect name change:
85502         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85504
85505         * m4/lib-link.m4: Update from gettext-0.11.2.
85506         * m4/gettext.m4: Likewise.
85507
85508         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85509         From Alfred M. Szmidt.
85510
85511 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85512
85513         * lib/file-type.h: Report an error if neither S_ISREG nor
85514         S_IFREG is defined, instead of using a test specific to glibc
85515         2.2.  This should be safe, since POSIX requires S_ISREG and
85516         Unix Version 7 had S_IFREG.  We don't need to check for
85517         <sys/types.h> since we don't use any symbols that it defines.
85518
85519 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85520
85521         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85522         $@-t, so that each temporary file name is unique and valid in the first
85523         8 characters, for operation under DOS.
85524
85525 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85526
85527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85528
85529 2002-06-15  Jim Meyering  <meyering@lucent.com>
85530
85531         Work even with DJGPP 2.03, which lacks support for symlinks.
85532         From Richard Dawe.
85533         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85534         is defined.
85535         * lib/lchown.c (S_ISLNK): Likewise.
85536
85537 2002-06-15  Jim Meyering  <meyering@lucent.com>
85538
85539         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85540         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85541         have been included before this file.
85542
85543 2002-06-14  Jim Meyering  <meyering@lucent.com>
85544
85545         * lib/file-type.h: Use the version from diffutils-2.8.2.
85546         * lib/file-type.c: Likewise.
85547
85548 2002-06-07  Jim Meyering  <meyering@lucent.com>
85549
85550         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85551         They're needed at least for NetBSD 1.5.2.
85552         ($statxfs_includes): Include those same headers.
85553         ($statxfs_includes): Include sys/vfs.h if available.
85554         ($statxfs_includes): Likewise for sys/statvfs.h.
85555         Check for the following members in both structs statfs and statvfs:
85556         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85557
85558 2002-06-01  Jim Meyering  <meyering@lucent.com>
85559
85560         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85561         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85562
85563 2002-05-28  Jim Meyering  <meyering@lucent.com>
85564
85565         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85566         Reported by Volker Borchert.
85567
85568 2002-05-27  Jim Meyering  <meyering@lucent.com>
85569
85570         Fix a problem seen only on nonconforming systems whereby ls.c's
85571         use of localtime, and then of gettimeofday would cause trouble:
85572         the localtime call used to initialize rpl_gettimeofday's save
85573         mechanism would clobber ls's current local time information so
85574         that in any long listing the first file would always be listed
85575         with date 1970-01-01.  Analysis by Volker Borchert.
85576
85577         * lib/gettimeofday.c (localtime): Undefine.
85578         (rpl_localtime): New function.
85579
85580 2002-05-27  Jim Meyering  <meyering@lucent.com>
85581
85582         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85583         localtime.
85584
85585         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85586         use the replacement function; it wouldn't resolve at link time.
85587         Reported by Volker Borchert.
85588
85589 2002-05-22  Jim Meyering  <meyering@lucent.com>
85590
85591         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85592         file-type.h.
85593         * lib/file-type.h: New file.
85594         * lib/file-type.c (file_type): New file/function.  Extracted from
85595         diffutils.
85596
85597 2002-04-30  Jim Meyering  <meyering@lucent.com>
85598
85599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85600
85601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85602
85603         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85604
85605 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85606
85607         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85608         Do not check for alloca.h (no longer used) or stdbool.h (was never
85609         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85610
85611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85612
85613         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85614
85615 2002-04-29  Jim Meyering  <meyering@lucent.com>
85616
85617         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85618         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85619         Use AC_FUNC_STRNLEN here instead.
85620
85621         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85622         With autoconf-2.53a, it's part of AC_PROG_CC.
85623
85624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85625
85626         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85627         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85628
85629 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85630
85631         * lib/sig2str.h, lib/sig2str.c: New files.
85632         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85633
85634 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85635
85636         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85637         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85638         of 127, since 64 is the largest conceivable number for ancient
85639         nonstandard hosts.
85640         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85641
85642 2002-04-28  Jim Meyering  <meyering@lucent.com>
85643
85644         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85645
85646 2002-04-24  Jim Meyering  <meyering@lucent.com>
85647
85648         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85649         (jm_PREREQ): Use it.
85650
85651         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85652         mach/mach.h fcntl.h.
85653         Check for this function: setlocale.
85654
85655 2002-04-24  Jim Meyering  <meyering@lucent.com>
85656
85657         * lib/gettext.h: New file, from Gettext.
85658         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85659         (libfetish_a_SOURCES): Add gettext.h.
85660
85661 2002-04-16  Jim Meyering  <meyering@lucent.com>
85662
85663         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85664         ut_pid, ut_id, ut_exit.
85665
85666 2002-04-16  Jim Meyering  <meyering@lucent.com>
85667
85668         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85669         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85670         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85671
85672 2002-04-12  Jim Meyering  <meyering@lucent.com>
85673
85674         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85675         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85676         existence of the getmntinfo function.  Needed for Darwin 5.3.
85677
85678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85679         This is necessary at least on Darwin 5.3.
85680
85681         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85682         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85683         strnlen.o in the library, and that makes some versions of ranlib
85684         object.
85685
85686 2002-04-12  Jim Meyering  <meyering@lucent.com>
85687
85688         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85689
85690 2002-04-09  Jim Meyering  <meyering@lucent.com>
85691
85692         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85693         to be more precise.  Rather than saying we're checking whether the
85694         function `works', say what we're testing.
85695         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85696         Reported by Bruno Haible.
85697
85698 2002-03-10  Jim Meyering  <meyering@lucent.com>
85699
85700         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85701         Suggestion from Santiago Vila.
85702
85703 2002-03-08  Jim Meyering  <meyering@lucent.com>
85704
85705         * lib/rename.c: Mention that this wrapper is needed also on
85706         mips-dec-ultrix4.4 systems.
85707
85708 2002-03-02  Jim Meyering  <meyering@lucent.com>
85709
85710         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85711         not HAVE_CLOCK_SETTIME.
85712
85713 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85714
85715         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85716         Check for clock_settime.
85717
85718 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85719
85720         * lib/nanosleep.h: Rename to....
85721         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85722
85723         * lib/gettime.c: New file.
85724         * lib/settime.c: New file.
85725         * lib/stime.c: Remove.
85726
85727         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85728         timespec.h.  Remove nanosleep.h.
85729
85730 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/acl.m4: New file.
85733         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85734         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85735
85736 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85737
85738         * lib/acl.c, lib/acl.h: New files.
85739         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85740
85741 2002-02-24  Jim Meyering  <meyering@lucent.com>
85742
85743         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85744         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85745         cause trouble.  Reported by Nelson Beebe.
85746
85747 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85748
85749         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85750         compilers that don't know that xalloc_die never returns.
85751
85752 2002-02-20  Jim Meyering  <meyering@lucent.com>
85753
85754         * lib/getdate.c: Regenerate using bison-1.33.
85755
85756 2002-02-17  Jim Meyering  <meyering@lucent.com>
85757
85758         * config/config.guess (main): Don't use `head -1'; it's no longer
85759         portable. Use `sed 1q' instead.
85760
85761 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85762
85763         * m4/codeset.m4: Upgrade to gettext-0.11.
85764         * m4/gettext.m4: Upgrade to gettext-0.11.
85765         * m4/glibc21.m4: Upgrade to gettext-0.11.
85766         * m4/iconv.m4: Upgrade to gettext-0.11.
85767         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85768         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85769         * m4/lib-ld.m4: New file, from gettext-0.11.
85770         * m4/lib-link.m4: New file, from gettext-0.11.
85771         * m4/lib-prefix.m4: New file, from gettext-0.11.
85772         * m4/progtest.m4: Upgrade to gettext-0.11.
85773
85774 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85775
85776         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85777         (jm_PREREQ): Use it.
85778
85779 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85780
85781         * lib/posixver.c, lib/posixver.h: New files.
85782         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85783
85784 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85785             Bruno Haible  <bruno@clisp.org>
85786
85787         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85788         (fwrite_success_callback): New declaration.
85789         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85790         print_unicode_char. Call failure callback instead of error.
85791         (fwrite_success_callback): New function.
85792         (exit_failure_callback): New function.
85793         (fallback_failure_callback): New function.
85794         (print_unicode_char): Call unicode_to_mb.
85795
85796 2002-01-26  Jim Meyering  <meyering@lucent.com>
85797
85798         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85799         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85800
85801 2002-01-26  Jim Meyering  <meyering@lucent.com>
85802
85803         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85804
85805 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85806
85807         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85808
85809 2002-01-22  Jim Meyering  <meyering@lucent.com>
85810
85811         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85812         Otherwise, some versions of automake would omit the rule that makes
85813         Makefile from Makefile.in.
85814
85815 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85816
85817         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85818         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85819         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85820         (memcoll): Set errno to zero if there is no error.
85821
85822         * lib/quotearg.c (quotearg_buffer_restyled):
85823         Fix bug with quoting buffers containing NUL when backslashing escapes.
85824         This bug was exposed by the other changes in this patch.
85825         (quotearg_n_options): New arg ARGSIZE.
85826         All callers changed.
85827         (quoting_options_from_style): New function.
85828         (quotearg_n_style): Use it.
85829         (quotearg_n_style_mem): New function.
85830
85831         * lib/quotearg.h (quotearg_n_style_mem): New function.
85832
85833 2002-01-19  Jim Meyering  <meyering@lucent.com>
85834
85835         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85836         Remove useless quotes: DF_PROG="df".
85837         * m4/strnlen.m4: New file.
85838
85839 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85840
85841         * lib/backupfile.c (ISDIGIT): Comment fix.
85842         * lib/getdate.y (ISDIGIT): Likewise.
85843         * lib/posixtm.c (ISDIGIT, year): Likewise.
85844         * lib/strverscmp.c (ISDIGIT): Likewise.
85845         * lib/userspec.c (ISDIGIT): Likewise.
85846
85847 2002-01-16  Jim Meyering  <meyering@lucent.com>
85848
85849         * lib/getdate.y: Add three semicolons, each just before a closing
85850         brace. Bison (as of version 1.31) no longer papers over that mistake.
85851
85852 2002-01-05  Jim Meyering  <meyering@lucent.com>
85853
85854         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85855
85856 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85857
85858         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85859         not silently exit merely because the output buffer happens to
85860         have nothing pending.
85861
85862 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85863
85864         See the big note in ../ChangeLog.
85865         * lib/human.c (suffixes): Prefer K to k for 1024.
85866         (generate_suffix_backwards): New function.
85867         (human_readable_inexact): Use it.
85868         * lib/xstrtol.c (__xstrtol): If there is no number but there
85869         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85870         Accept 'K' as well as 'k'.
85871
85872 2001-12-15  Jim Meyering  <meyering@lucent.com>
85873
85874         * lib/regex.h (__restrict_arr): Update from libc.
85875
85876         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85877         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85878         (STREQ): Define.
85879
85880 2001-12-14  Jim Meyering  <meyering@lucent.com>
85881
85882         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85883         Suggestion from Bruno Haible.
85884
85885 2001-12-10  Jim Meyering  <meyering@lucent.com>
85886
85887         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85888         xrealloc, Instead, include "xalloc.h".
85889         (initbuffer): Don't cast xmalloc return value to char*.
85890         (readline): Reword comment.
85891         Don't cast xrealloc return value to char*
85892         Return NULL, not 0.
85893
85894 2001-12-09  Jim Meyering  <meyering@lucent.com>
85895
85896         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85897         about `signed and unsigned type in conditional expression'.
85898         * lib/posixtm.c (posix_time_parse): Likewise.
85899
85900         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85901
85902         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85903         to avoid a pedantic warning.
85904
85905         * lib/getstr.c: Don't include assert.h.
85906         (getstr): Remove warning-evoking assertions.
85907         Return -1 if offset parameter is out of bounds.
85908         Change the type of a local from int to size_t.
85909
85910         * lib/strftime.c (my_strftime_localtime_r): Include this function
85911         definition in the `#if ! HAVE_TM_GMTOFF' block.
85912
85913         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85914         Include xalloc.h instead.
85915
85916 2001-12-02  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85919         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85920         included.
85921
85922         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85923         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85924
85925 2001-11-30  Akim Demaille  <akim@epita.fr>
85926
85927         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85928         before being defined.
85929
85930 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85931
85932         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85933         First arg is int, not unsigned.
85934         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85935         (SIZE_MAX, UINT_MAX): New macros.
85936         (quotearg_n_options): Abort if N is negative.
85937         Avoid overflow check on hosts where size_t is 64 bits and int
85938         is 32 bits, as overflow is impossible there.
85939         Fix off-by-one typo that caused unnecessary reallocation.
85940
85941 2001-11-27  Jim Meyering  <meyering@lucent.com>
85942
85943         * lib/tempname.c: Merge with version from libc.
85944         * lib/regex.c: Likewise.
85945
85946         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85947         systems for which STDC_HEADERS is 0, it was not included, resulting in
85948         a warning about an integer-to-pointer conversion problem with getenv.
85949         Reported by Volker Borchert.
85950
85951 2001-11-26  Jim Meyering  <meyering@lucent.com>
85952
85953         * lib/gtod.h: Remove file.
85954         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85955         * lib/gettimeofday.c: Don't include gtod.h.
85956         (GTOD_init): Remove function.
85957         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85958         Suggestion from Volker Borchert.
85959
85960 2001-11-23  Jim Meyering  <meyering@lucent.com>
85961
85962         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85963         it.
85964         * lib/hash.c (struct hash_table): Define it here instead.
85965
85966 2001-11-22  Jim Meyering  <meyering@lucent.com>
85967
85968         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85969
85970 2001-11-20  Jim Meyering  <meyering@lucent.com>
85971
85972         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85973         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85974
85975 2001-11-19  Jim Meyering  <meyering@lucent.com>
85976
85977         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85978         directory.  Use "conftestXXXXXX" as the template.
85979         Suggestion from Paul Eggert.
85980
85981         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85982         immediately, so the test doesn't mistakenly hit the max-open-files
85983         limit.
85984
85985 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85986
85987         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85988         (TEMPORARIES): New macro.
85989         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85990         removes an artificial limitation (e.g. HP-UX 10.20, where
85991         TMP_MAX is 17576).
85992
85993 2001-11-18  Jim Meyering  <meyering@lucent.com>
85994
85995         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85996
85997 2001-11-18  Jim Meyering  <meyering@lucent.com>
85998
85999         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86000         on SunOS 4.
86001
86002         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86003         files will be created before anything else.
86004
86005 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86006
86007         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86008         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86009
86010 2001-11-17  Jim Meyering  <meyering@lucent.com>
86011
86012         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86013         Prompted by a report from Bob Proulx.
86014
86015         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86016         Instead, require UTILS_FUNC_MKSTEMP.
86017
86018 2001-11-17  Jim Meyering  <meyering@lucent.com>
86019
86020         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86021         Now, that's done as part of AC_FUNC_STRTOD.
86022
86023 2001-11-17  Jim Meyering  <meyering@lucent.com>
86024
86025         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86026         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86027         rather than group writable.  Patch by Juan F. Codagnone.
86028
86029         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86030         xrealloc, Instead, include "xalloc.h".
86031
86032         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86033         Remove explicit declarations of xmalloc, xrealloc,
86034         and xstrdup.  Instead, include "xalloc.h".
86035
86036         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86037         unlocked-io.h.
86038         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86039         Likewise.
86040         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86041
86042         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86043         Reported by Padraig Brady.
86044
86045         * lib/mkstemp.c: #undef mkstemp.
86046         Include config.h.
86047         (rpl_mkstemp): Rename from mkstemp.
86048         Protoize.
86049
86050 2001-11-16  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86053         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86054         determine the amount of total physical memory, use pstat_getstatic.
86055         HPUX-11 doesn't define _SC_PHYS_PAGES.
86056         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86057         If sysconf couldn't be used to determine the amount of available
86058         physical memory, use both pstat_getstatic and pstat_getdynamic.
86059         Based on a patch from Bob Proulx.
86060
86061 2001-11-10  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86064         (jm_PREREQ): Use it.
86065
86066 2001-11-09  Jim Meyering  <meyering@lucent.com>
86067
86068         * m4/jm-macros.m4: Require autoconf-2.52f.
86069         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86070         Use these AC_-prefixed names, not the AM_-prefixed ones.
86071
86072         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86073
86074 2001-11-05  Jim Meyering  <meyering@lucent.com>
86075
86076         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86077
86078 2001-11-04  Jim Meyering  <meyering@lucent.com>
86079
86080         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86081         $DEFS.
86082
86083 2001-11-03  Jim Meyering  <meyering@lucent.com>
86084
86085         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86086         of AC_DEFUN.
86087
86088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86089         know the name of the variable in the macro definition.
86090
86091 2001-11-03  Jim Meyering  <meyering@lucent.com>
86092
86093         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86094         in argmatch_to_argument call.
86095
86096         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86097         argument.
86098
86099         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86100         e.g., a fault due to an attempt to free a NULL pointer.
86101
86102 2001-11-01  Jim Meyering  <meyering@lucent.com>
86103
86104         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86105         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86106
86107 2001-11-01  Jim Meyering  <meyering@lucent.com>
86108
86109         * lib/dirfd.c, lib/dirfd.h: New files.
86110         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86111
86112         * lib/hash.c (hash_print) [TESTING]: Clean up.
86113
86114 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86115
86116         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86117         to avoid a warning if -Wall.
86118
86119 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86120
86121         * README: New file
86122         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86123         (per RMS's instructions, this is now the canonical source)
86124         * lgpl/, gpl/: New directories.
86125
86126 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86127
86128         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86129
86130 2001-10-21  Jim Meyering  <meyering@lucent.com>
86131
86132         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86133         this code would end up calling gettext even in packages built
86134         with --disable-nls.
86135         * lib/getopt.c (_): Likewise.
86136         * lib/regex.c (_): Likewise.
86137
86138 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86139
86140         * m4/error.m4 (jm_PREREQ_ERROR):
86141         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86142         AC_FUNC_STRERROR_R does that.
86143         Check for strerror declaration.
86144
86145         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86146         are supposed to have them these days.
86147         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86148         Merge changes from latest Autoconf CVS.
86149         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86150         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86151         POSIX decided to standardize on the int flavor of strerror_r.
86152
86153 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86154
86155         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86156         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86157         Use strerror_r that is only a macro, even if it is not a function.
86158         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86159         (private_strerror): Use prototypes, not old-style function definition.
86160         (print_errno_message): New function.
86161         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86162         char*-flavored one.
86163         (error_tail, error, error_at_line): Use it.
86164
86165 2001-10-11  Jim Meyering  <meyering@lucent.com>
86166
86167         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86168         and quote_n (1, ... to avoid clobbering a buffer.
86169
86170 2001-10-05  Jim Meyering  <meyering@lucent.com>
86171
86172         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86173         hash-pjw.h.
86174         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86175         * lib/hash-pjw.h: New file.
86176
86177 2001-09-30  Jim Meyering  <meyering@lucent.com>
86178
86179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86180         `struct fsstat' has the `f_fstypename' member.
86181         Use that to define FS_TYPE, which is now used to make
86182         the getfsstat link test tighter.
86183
86184 2001-09-30  Jim Meyering  <meyering@lucent.com>
86185
86186         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86187         Include <sys/ucred.h>, for Apple Darwin.
86188         Include sys/mount.h and sys/fs_types.h only if available.
86189         (FS_TYPE): Define.
86190         (read_filesystem_list): Use FS_TYPE.
86191
86192 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86193
86194         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86195         a boolean context.
86196
86197 2001-09-29  Jim Meyering  <meyering@lucent.com>
86198
86199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86200         [one-argument getmntent function]): Include stdio.h before mntent.h.
86201         SunOS 4.1.x needs it for the declaration of `FILE'.
86202         Patch by Volker Borchert.
86203
86204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86205         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86206         sys/fs_types.h, and make the link-test for getfsstat guard #include
86207         directives with appropriate #if HAVE_*_H tests so that we can
86208         detect getfsstat on Apple Darwin1.3.7 systems.
86209         Reported by Nelson Beebe.
86210         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86211
86212 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86213
86214         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86215         #defines strtoimax.  Also treat the other strto* functions
86216         like strtoimax.
86217
86218         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86219         Check for strtoul and strtoumax,
86220         as those declarations are made even in the signed case.
86221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86222         Likewise, for strtol and strtoimax.
86223
86224 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86225
86226         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86227         #defines strtoimax.  Also treat the other strto* functions
86228         like strtoimax.
86229
86230         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86231         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86232         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86233
86234 2001-09-26  Jim Meyering  <meyering@lucent.com>
86235
86236         Most macros in unlocked-io.h had the wrong number of arguments.
86237         * lib/gen-uio: New script.
86238         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86239         * lib/unlocked-io.hin: Remove file.
86240         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86241         rather than trying to embed it here.
86242         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86243         Reported by Padraig Brady.
86244
86245 2001-09-25  Volker Borchert  <bt@teknon.de>
86246
86247         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86248         `result'.
86249
86250 2001-09-24  Jim Meyering  <meyering@lucent.com>
86251
86252         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86253
86254 2001-09-23  Jim Meyering  <meyering@lucent.com>
86255
86256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86257         instead of the mere test for existence of mntent.h.  The latter
86258         would get a false-positive on AIX 3.4 systems.
86259         In the outer getmntent if-block, don't die if neither of the getmntent
86260         tests succeeds.  Instead, just fall through and continue with the
86261         remaining tests.
86262
86263 2001-09-23  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/mountlist.c: Remove useless parentheses in #if directives.
86266         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86267         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86268
86269 2001-09-22  Jim Meyering  <meyering@lucent.com>
86270
86271         * m4/gettext.m4: New file.  From gettext.
86272         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86273         * m4/progtest.m4: Likewise
86274         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86275         * m4/glibc21.m4: Likewise.
86276
86277         * m4/libintl.m4: Remove.  No longer used.
86278
86279 2001-09-22  Jim Meyering  <meyering@lucent.com>
86280
86281         * lib/localcharset.c: Update from latest gettext.
86282         * lib/config.charset: Likewise.
86283
86284 2001-09-20  Jim Meyering  <meyering@lucent.com>
86285
86286         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86287         strtoimax.
86288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86289         strtoumax.
86290
86291 2001-09-20  Jim Meyering  <meyering@lucent.com>
86292
86293         * lib/xstrtol.c (strtoimax): Guard declaration with
86294         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86295         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86296         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86297         (strtoumax): Likewise, for completeness (it wasn't necessary).
86298
86299 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86300
86301         * lib/strtoimax.c (HAVE_LONG_LONG):
86302         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86303         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86304         to work around bug in IBM C compiler.
86305
86306 2001-09-17  Jim Meyering  <meyering@lucent.com>
86307
86308         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86309         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86310         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86311         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86312         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86313         whenever the right hand side need not be expanded by the shell.
86314
86315 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86316
86317         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86318         library.  It's not correct, as some older glibcs are buggy.
86319         fnmatch wasn't fixed until glibc 2.2.
86320
86321         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86322         special shell magic here.
86323
86324 2001-09-16  Jim Meyering  <meyering@lucent.com>
86325
86326         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86327         * m4/jm-macros.m4: Require it.
86328
86329 2001-09-16  Jim Meyering  <meyering@lucent.com>
86330
86331         * lib/mkdir.c: New file.
86332
86333 2001-09-15  Jim Meyering  <meyering@lucent.com>
86334
86335         * m4/jm-macros.m4: Check for help2man.
86336
86337 2001-09-11  Jim Meyering  <meyering@lucent.com>
86338
86339         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86340         The body, by Paul Eggert, was moved here from configure.in.
86341         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86342
86343 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86344
86345         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86346         (jm_PREREQ): Use it.
86347
86348 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86351         Use ssize_t, not int, to store result of readlink.
86352         Check for ssize_t overflow as well as size_t overflow,
86353         as POSIX says the result of readlink is implementation-defined
86354         when ssize_t overflows.
86355         Remove unnecessary cast to char*.
86356         Use free+malloc instead of realloc, as the storage doesn't need
86357         to be preserved and it's clearer and can be more efficient that way.
86358         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86359         * lib/xreadlink.h (xreadlink): Update prototype.
86360
86361 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86362
86363         * lib/xgetcwd.c: Revert some of the previous change; intead,
86364         fix the HAVE_GETCWD_NULL code to behave more like the
86365         !HAVE_GETCWD_NULL code used to.
86366
86367         Include "xalloc.h".
86368         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86369         invoke xalloc_die.
86370
86371 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86372
86373         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86374         sys/param.h, as pathmax.h includes them.
86375
86376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86377
86378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86379         (jm_PREREQ_XGETCWD): New macro.
86380
86381         * m4/getcwd.m4: New file.
86382
86383 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86384
86385         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86386         like the HAVE_GETCWD_NULL code.
86387         Include pathmax.h if not HAVE_GETCWD.
86388         Do not include xalloc.h.
86389         (INITIAL_BUFFER_SIZE): New symbol.
86390         Do not use xmalloc / xrealloc, since the caller is responsible for
86391         handling errors.  Preserve errno around `free' during failure.
86392         Do not overrun buffer when using getwd.
86393
86394 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86395
86396         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86397         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86398         getcwd (NULL, 0).
86399
86400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86401
86402         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86403         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86404         spotted by Jim Meyering.
86405
86406 2001-09-03  Jim Meyering  <meyering@lucent.com>
86407
86408         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86409         failure.
86410
86411 2001-09-02  Jim Meyering  <meyering@lucent.com>
86412
86413         * lib/error.c: Update from GNU libc.
86414
86415 2001-09-01  Jim Meyering  <meyering@lucent.com>
86416
86417         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86418         Used by df.
86419
86420 2001-09-01  Jim Meyering  <meyering@lucent.com>
86421
86422         * lib/xreadlink.c: New file.
86423         * lib/xreadlink.h: New file.
86424         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86425         xreadlink.h.
86426
86427         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86428         doesn't conflict with sparc Solaris 7's definition in
86429         /usr/include/sys/int_types.h.
86430
86431         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86432         files.
86433         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86434         and strncasecmp as r-values.  Unixware didn't have declarations.
86435
86436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86437
86438         * lib/xstrtol.h: Add copyright notice.
86439         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86440         LONGINT_INVALID_SUFFIX_CHAR.
86441
86442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86443
86444         * lib/xstrtol.c (strtoimax): New decl.
86445
86446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/xgetcwd.c: Don't include pathmax.h.
86449         Include stdlib.h and unistd.h if available.
86450         Include xalloc.h.
86451         (xmalloc, xstrdup, free): Remove decls.
86452         (xgetcwd): Don't assume sizes fit in unsigned.
86453         Check for overflow when computing sizes.
86454         Simplify reallocation code.
86455
86456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86457
86458         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86459         a directory's st_size can have an arbitrary value, so the old
86460         usage could waste an arbitrary amount of memory.  All uses
86461         changed.
86462         * lib/savedir.h: Update prototype.
86463
86464 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86465
86466         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86467
86468         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86469         old strtoimax.c.
86470
86471         Also, make the following further changes to make this file's
86472         configuration more similar to that of strtol.c:
86473         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86474         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86475         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86476         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86477         changed to signed values.
86478
86479         And make the following changes as well:
86480         Fix copyright notice, as 1999 was missing.
86481         (verify): New macro.
86482         (strtoimax): Check sizes at compile-time, not run-time.
86483         Prefer strtol to strtoll if both work.
86484         (main): Remove; it was not that useful and was a pain to maintain.
86485
86486         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86487
86488 2001-08-31  Jim Meyering  <meyering@lucent.com>
86489
86490         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86491         Use an initial, malloc'd, buffer of length 128 rather than
86492         a statically allocated one of length 1024.
86493
86494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86495
86496         Simplify code, partly by assuming autoconf 2.52 semantics.
86497
86498         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86499
86500         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86501         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86502         All uses removed.
86503         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86504         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86505         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86506         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86507         jm_AC_HEADER_INTTYPES_H.
86508         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86509
86510         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86511
86512         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86513         Quote first arg of AC_DEFUN.
86514         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86515         since they are needed to parse the include file even if we need
86516         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86517         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86518         but with opposite signedness.
86519
86520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86521
86522         Merge 'exclude' changes from tar 1.13.22.
86523         This fixes one or two unlikely storage allocation overflow bugs,
86524         but doesn't change user-visible behavior otherwise.
86525
86526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86527
86528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86529         (jm_PREREQ_EXCLUDE): New macro.
86530
86531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86532
86533         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86534         tm to be declared.
86535
86536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86537
86538         * lib/hash.c: Remove '2001' from copyright notice.
86539
86540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86541
86542         * lib/full-write.h: New file.
86543         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86544         * lib/full-write.c: Correct credits, as cccp.c no longer
86545         exists and anyway it was so heavily changed from the old cccp
86546         code as to be unrecognizable.  Include full-write.h.
86547         (full_write): Return size_t, with short writes meaning failure.
86548         All callers changed.  This fixes a bug with large buffers
86549         on 64-bit hosts.
86550         * lib/utime.c: Include full-write.h.
86551
86552 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86553
86554         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86555         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86556         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86557         Include if available.
86558         (<xalloc.h>): Include
86559         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86560         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86561         collide with FNM macros.
86562         (struct patopts): New struct.
86563         (struct exclude): Use it, as exclude patterns now come with options.
86564         (new_exclude): Support above changes.
86565         (new_exclude, add_exclude_file):
86566         Initial size must now be a power of two to simplify overflow checking.
86567         (free_exclude, fnmatch_no_wildcards): New function.
86568         (excluded_filename): No longer requires options arg, as the options
86569         are determined by add_exclude.  Now returns bool, not int.
86570         (excluded_filename, add_exclude):
86571         Add support for the fancy new exclusion options.
86572         (add_exclude, add_exclude_file): Now takes int options arg.
86573         Check for arithmetic overflow when computing sizes.
86574         (add_exclude_file): xrealloc might modify errno, so don't
86575         realloc until after errno might be used.
86576
86577         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86578         New macros.
86579         (free_exclude): New decl.
86580         (add_exclude, add_exclude_file): Now takes int options arg.
86581         (excluded_filename): No longer requires options arg, as the options
86582         are determined by add_exclude.  Now returns bool, not int.
86583
86584 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86585
86586         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86587
86588 2001-08-27  Jim Meyering  <meyering@lucent.com>
86589
86590         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86591
86592         * lib/version-etc.c (N_): Remove definition.
86593         Revert most of last change.
86594         Instead, simply don't mark the `Copyright...' string for translation.
86595         Based on advice from Paul Eggert.
86596
86597         * lib/strtoxmax.c: Tweak comment.
86598
86599 2001-08-26  Jim Meyering  <meyering@lucent.com>
86600
86601         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86602
86603         * m4/xstrtoimax.m4: New file.
86604         * m4/xstrtoumax.m4: Add comments explaining why we
86605         AC_REPLACE_FUNCS(strtol).
86606
86607 2001-08-26  Jim Meyering  <meyering@lucent.com>
86608
86609         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86610         of copyright with `%s' so translators don't get an untranslated
86611         message in 2002.
86612         (COPYRIGHT_YEAR): Define.
86613         (version_etc): Use fprintf rather than fputs.
86614         Suggestion from Ulrich Drepper.
86615
86616         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86617
86618         * lib/strtoll.c: New file, from GNU libc.
86619         * lib/xstrtoimax.c: New file.
86620
86621         * lib/xstrtol.h: Add xstrtoimax.
86622         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86623         * lib/strtoimax.c: New file.  Likewise, but first define
86624         STRTOUXMAX_SIGNED.
86625
86626         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86627         ...
86628         * lib/strtoxmax.c: ... then renamed to this.
86629
86630 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86631
86632         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86633         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86634         (jm_AC_TYPE_INTMAX_T): New macro.
86635         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86636
86637         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86638
86639         * m4/longlong.m4: Renamed from ulonglong.m4.
86640         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86641         * m4/uintmax_t.m4: Removed.
86642
86643 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86644
86645         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86646         Port to Solaris 8, where 'sed' requires a space after the 'r'
86647         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86648         Redirect output to $tmp just once.
86649
86650 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86651
86652         * lib/addext.c (<errno.h>): Include.
86653         (errno): Declare if not defined.
86654         (addext): Work correctly when pathconf returns -1 and leaves
86655         errno alone because there is no limit.  Also, work even if
86656         pathconf returns a value greater than SIZE_MAX.
86657
86658 2001-08-12  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86661         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86662         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86663         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86664         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86665         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86666         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86667         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86668         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86669         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86670         utime.m4, utimes.m4, xstrtoumax.m4:
86671         Quote the first argument in each use of AC_DEFUN.
86672
86673 2001-08-12  Jim Meyering  <meyering@lucent.com>
86674
86675         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86676         Simply `return getcwd (NULL, 0);'.
86677         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86678         Use 1300 as initial value for length, not PATH_MAX.
86679
86680         * lib/pathmax.h: Clean up cpp syntax.
86681
86682 2001-08-12  Jim Meyering  <meyering@lucent.com>
86683
86684         * lib/gettimeofday.c: New file.
86685         * lib/gtod.h: New file.
86686         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86687
86688 2001-08-05  Jim Meyering  <meyering@lucent.com>
86689
86690         * m4/jm-macros.m4: Require autoconf-2.52.
86691
86692 2001-08-04  Jim Meyering  <meyering@lucent.com>
86693
86694         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86695         stmt, to get in sync with glibc.
86696
86697 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86698
86699         The following changes are from gettext 0.10.39 as maintained by
86700         Bruno Haible.
86701
86702         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86703         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86704         with inverted sense.  All uses changed.
86705
86706         * lib/mbswidth.c: Don't include <limits.h>.
86707         Include <stdlib.h> and <string.h> unconditionally.
86708         (iswcntrl, mbsinit, ISCNTRL): New macros.
86709         (mbsnwidth): Use K&R style function declarations.
86710         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86711         can optimize it when MB_CUR_MAX == 1.
86712         The width of control characters is zero, not 1.
86713
86714 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86715
86716         The following changes are from gettext 0.10.39 as maintained by
86717         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86718
86719         * m4/codeset.m4: Upgrade to serial AM1.
86720         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86721         all uses changed.  Quote first arg of AC_DEFUN.
86722         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86723
86724         * m4/iconv.m4: Upgrade to serial AM2.
86725         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86726         Add --with-libconv-prefix.
86727         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86728         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86729         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86730         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86731         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86732
86733         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86734         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86735         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86736         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86737         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86738         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86740         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86741         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86742
86743         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86744         string.h any more.
86745
86746         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86747         not the default value.
86748
86749         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86750         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86751         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86752         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86753         Also check for iswcntrl, used for wcwidth fallback.
86754         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86755         to Autoconf 2.13.
86756
86757 2001-08-03  Jim Meyering  <meyering@lucent.com>
86758
86759         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86760         as it was in the original.  Reported by Paul Eggert.
86761
86762 2001-07-16  Jim Meyering  <meyering@lucent.com>
86763
86764         * m4/gettimeofday.m4: New file.
86765         Prompted by a report from Bernhard Baehr.
86766
86767 2001-07-15  Jim Meyering  <meyering@lucent.com>
86768
86769         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86770         stuff. Now it's in ../Makefile.cfg.
86771
86772 2001-07-15  Jim Meyering  <meyering@lucent.com>
86773
86774         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86775         (BUILT_SOURCES): Add unlocked-io.h.
86776         (io_functions): Define.
86777         (unlocked-io.h): New rule.
86778         (DISTCLEANFILES): Add unlocked-io.h.
86779         (all-local): Depend on unlocked-io.h, to ensure it is created.
86780
86781         * lib/unlocked-io.hin: New file
86782
86783         * lib/regex.c: Update from glibc.
86784
86785 2001-07-05  Jim Meyering  <meyering@lucent.com>
86786
86787         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86788         recommendation.
86789         (libfetish_a_SOURCES): Put all .h files here instead.
86790         Remove a thus-exposed (better checks in automake) duplicate and
86791         two unnecessary .h files.
86792
86793 2001-07-04  Jim Meyering  <meyering@lucent.com>
86794
86795         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86796         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86797         distcheck failure.
86798
86799 2001-07-02  Jim Meyering  <meyering@lucent.com>
86800
86801         The following changes were prompted by suggestions from Bruno Haible.
86802
86803         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86804         is now generated.
86805         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86806         definition of EXTRA_DIST.
86807         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86808         ensure that the generated file is created/updated whenever the list
86809         of $(unlocked_functions) is changed.
86810         (jm-glibc-io.m4): New rule.
86811         (unlocked-io.h): New rule -- currently unused.
86812
86813 2001-06-24  Jim Meyering  <meyering@lucent.com>
86814
86815         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86816         unmatched right bracket, rather than kludging it with an extra,
86817         falsely-matching quote in a comment.  Patch by Akim Demaille.
86818
86819 2001-06-11  Jim Meyering  <meyering@lucent.com>
86820
86821         * lib/regex.c: Update from GNU libc.
86822
86823 2001-05-27  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86826         Check for ut_type in struct utmp.
86827
86828 2001-05-27  Jim Meyering  <meyering@lucent.com>
86829
86830         * lib/readutmp.h (UT_TYPE): Define.
86831
86832 2001-05-24  Jim Meyering  <meyering@lucent.com>
86833
86834         * lib/argmatch.c: Include "quote.h".
86835         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86836         quote function.  Reported by Göran Uddeborg.
86837
86838 2001-05-22  Jim Meyering  <meyering@lucent.com>
86839
86840         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86841         now that we use the package-supplied version unconditionally.
86842         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86843
86844 2001-05-21  Jim Meyering  <meyering@lucent.com>
86845
86846         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86847         shell syntax errors.
86848
86849 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86850
86851         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86852
86853 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86854
86855         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86856         Don't bother to check library strftime, since
86857         we'll be using our own my_strftime function anyway.
86858         Define my_strftime instead of strftime.
86859
86860 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86861
86862         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86863         which is not yet declared.
86864
86865 2001-05-15  Jim Meyering  <meyering@lucent.com>
86866
86867         * m4/regex.m4: Use proper quoting so brackets appear in the test
86868         program.
86869         Reported by, and with help from, Bruno Haible.
86870
86871 2001-05-13  Jim Meyering  <meyering@lucent.com>
86872
86873         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86874         undefined.
86875
86876 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86877
86878         dirname code cleanup.  base_name now behaves more compatibly
86879         with POSIX basename when given file names that have trailing
86880         slashes, and similarly for dir_name.  Add new primitives
86881         base_len and dir_len.  Put the directory-name-related decls
86882         into dirname.h.
86883
86884         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86885         * lib/backupfile.c (base_name): Likewise.
86886         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86887         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86888         * lib/makepath.c (strip_trailing_slashes): Likewise.
86889         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86890         ISSLASH): Likewise.
86891         * lib/rename.c (strip_trailing_slashes): Likewise.
86892         * lib/same.c (base_name): Likewise.
86893         * lib/stripslash.c (ISSLASH): Likewise.
86894
86895         * lib/addext.c: Include <dirname.h> after size_t is defined.
86896         * lib/backupfile.c: Likewise.
86897
86898         * lib/addext.c (addext): Use base_len to trim redundant
86899         trailing slashes instead of doing it ourselves.
86900         But do not trim the last slash if it is not redundant.
86901
86902         * lib/backupfile.c (find_backup_file_name,
86903         max_backup_version): Use base_len instead of rolling it ourselves.
86904         Handle the case of "" and (on DOS) "C:" correctly.
86905
86906         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86907         needed. Include <string.h>, <dirname.h>.
86908         (base_name): Allow file names ending in slashes, other than names
86909         that are all slashes.  In this case, return the basename followed
86910         by the slashes.  This is more general, and can be used in places
86911         where the original base_name purposely had an assertion failure.
86912         (base_len): New function.
86913
86914         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86915         Do not include <assert.h>; no longer needed.
86916         Include xalloc.h.
86917         (memrchr): Remove decl.
86918         (dir_name_r): Remove.
86919         (dir_len): Renamed from dirlen.  All callers changed.
86920         Rewrite in terms of base_name, for simplicity and consistency.
86921         (dir_name): Never return NULL.  All callers changed.
86922         Do not include <stdlib.h> in test program; no longer needed.
86923         return 0; is fine for test program.
86924
86925         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86926         New macros.
86927         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86928
86929         * lib/path-concat.c (path_concat): Use base_len to compute
86930         base length, not strlen; this means we cannot rely on memcpy
86931         to null-terminate.
86932
86933         * lib/same.c (STREQ): Remove.
86934         (same_name): Handle the case where the basename ends in trailing '/'.
86935
86936         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86937         a slash was stripped.  Do not strip the last slash after a
86938         file system prefix.
86939
86940 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/Makefile.am (libfetish_a_SOURCES):
86943         Add strftime.c, since we now compile it on all hosts.
86944
86945         * lib/strftime.c (my_strftime):
86946         Define to nstrftime if emacs, but only if my_strftime is not defined.
86947         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86948         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86949         Add one more extra argument: a nanoseconds value.
86950         All uses changed.
86951         (ns): New macro.
86952         (my_strftime function): Add %N format.
86953         (emacs_strftimeu): Renamed from emacs_strftime,
86954         with extra ut argument.
86955
86956 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86957
86958         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86959
86960 2001-04-21  Jim Meyering  <meyering@lucent.com>
86961
86962         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86963         doesn't interfere.
86964
86965 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86966
86967         * m4/ftruncate.m4: Check for chsize.
86968         Link with ftruncate.o unconditionally if ftruncate is missing.
86969         This was required when cross-compiling to i586-mingw32msvc.
86970
86971 2001-04-08  Jim Meyering  <meyering@lucent.com>
86972
86973         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86974         recomputed; that's necessary when the offset spans a DST transition.
86975         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86976
86977 2001-04-02  Jim Meyering  <meyering@lucent.com>
86978
86979         * lib/regex.h, regex.c: Update from GNU libc.
86980
86981 2001-03-24  Jim Meyering  <meyering@lucent.com>
86982
86983         * m4/jm-macros.m4: Require autoconf-2.49d.
86984
86985 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86986
86987         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86988
86989 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86992
86993 2001-03-17  Jim Meyering  <meyering@lucent.com>
86994
86995         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86996         now that the version in autoconf is equivalent.
86997         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86998
86999         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87000         Suggestion from Akim Demaille.
87001
87002         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87003         (jm_PREREQ_TEMPNAME): New function.
87004
87005 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/tempname.c (uint64_t): Define to uintmax_t if
87008         not defined, and if UINT64_MAX is not defined.
87009         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87010         Reported by John David Anglin.
87011
87012 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87013
87014         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87015         resolve alias if codeset is empty.
87016         * lib/config.charset (BeOS): Use wildcard syntax.
87017
87018 2001-03-13  Jim Meyering  <meyering@lucent.com>
87019
87020         * lib/path-concat.c (path_concat)
87021         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87022         concatenating e.g., `C:' and `foo'.
87023         From Bruno Haible.
87024
87025 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87026
87027         * lib/localcharset.c (locale_charset): Don't use
87028         setlocale(LC_CTYPE,NULL). Don't return NULL.
87029         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87030
87031 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87032
87033         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87034         support for DOS/DJGPP.
87035
87036 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87037
87038         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87039         lacks mkstemp.  Compile our own tempname.c if we compile our own
87040         mkstemp.c, as mkstemp relies on tempname.
87041
87042 2001-03-01  Jim Meyering  <meyering@lucent.com>
87043
87044         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87045         AH_VERBATIM really does output its argument verbatim.
87046
87047 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87048
87049         * lib/Makefile.am (libfetish_a_SOURCES):
87050         Add dup-safer.c, fopen-safer.c.
87051         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87052
87053         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87054         * lib/unistd-safer.h: New files.
87055
87056 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87057
87058         The mkstemp replacement is taken from glibc 2.2.2, with some
87059         portability fixes for use outside glibc, as follows:
87060
87061         * lib/tempname.c (struct_stat64): New macro.
87062         (direxists, __gen_tempname): Use it.
87063         This avoids a portability problem with Solaris 8.
87064
87065         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87066         (<stddef.h>, <stdint.h>, <string.h>):
87067         Include only if STDC_HEADERS || _LIBC.
87068         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87069         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87070         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87071         (__set_errno): Define this macro if <errno.h> doesn't.
87072         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87073         Define these macros if <stdio.h> doesn't.
87074         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87075         Define these macros if <sys/stat.h>
87076         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87077         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87078         __xstat64): Define if not _LIBC.
87079         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87080         (__gen_tempname): Invoke gettimeofday only if
87081         HAVE_GETTIMEOFDAY || _LIBC;
87082         otherwise, fall back on plain "time".
87083         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87084
87085         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87086
87087         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87088
87089 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87090
87091         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87092
87093 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87094
87095         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87096         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87097         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87099
87100 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87101
87102         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87103         Remove workaround macros for hosts that have mbrtowc but not
87104         mbstate_t, as we now insist on proper declarations for both
87105         before using mbrtowc.
87106
87107 2001-02-17  Jim Meyering  <meyering@lucent.com>
87108
87109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87110         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87111         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87112         UnixWare 7.1.1.
87113
87114         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87115         rather than AC_CACHE_VAL.
87116
87117 2001-02-17  Jim Meyering  <meyering@lucent.com>
87118
87119         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87120         around included file name.
87121
87122         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87123
87124         * lib/strftime.c: Update from GNU libc (the only changes were to
87125         comments).
87126
87127 2001-02-17  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/regex.c: Update from libc.
87130
87131 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87132
87133         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87134         clash.
87135
87136 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87137
87138         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87139         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87140         Reported by Mark Hounschell via Paul Eggert.
87141
87142 2001-02-07  Jim Meyering  <meyering@lucent.com>
87143
87144         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87145
87146 2001-02-05  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87149         it includes the patch required for `large file' support with at least
87150         HP-UX's 10.20 /bin/cc.
87151
87152 2001-02-03  Jim Meyering  <meyering@lucent.com>
87153
87154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87155         AS_IF, now that it works once again (mysteriously).
87156         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87157
87158 2001-01-30  Jim Meyering  <meyering@lucent.com>
87159
87160         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87161         * m4/chown.m4: Rename conftestchown to conftest.chown.
87162         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87163         s/conftestdir2/conftest.d2/.
87164         * m4/utimes.m4: s/conftestdata/conftest.data/
87165         Inspired by Pavel Roskin's change in autoconf.
87166
87167 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87168
87169         * lib/config.charset: Update for FreeBSD 4.2.
87170
87171 2001-01-27  Jim Meyering  <meyering@lucent.com>
87172
87173         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87174         a use of AS_IF.
87175         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87176
87177 2001-01-26  Jim Meyering  <meyering@lucent.com>
87178
87179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87180         quotearg.c includes it.
87181
87182 2001-01-26  Jim Meyering  <meyering@lucent.com>
87183
87184         * lib/quotearg.c: Include stddef.h.
87185         * lib/quote.c: Include stddef.h.
87186         Reported by Axel Kittenberger.
87187
87188         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87189         line in double quotes so that it evokes a better diagnostic.
87190         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87191         Reported by Axel Kittenberger.
87192
87193 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87194
87195         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87196         as if it was a `charset'.
87197
87198 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87199
87200         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87201         has const.
87202
87203 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87204
87205         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87206         to avoid a warning.  Add back 'const' to inptr.
87207
87208 2001-01-20  Jim Meyering  <meyering@lucent.com>
87209
87210         Be sure that headers are checked before used in code compiled
87211         for the type checks.
87212         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87213         In place of that, invoke jm_CHECK_ALL_TYPES.
87214         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87215         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87216         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87217         The check for ssize_t was mistakenly run before the test for unistd.h.
87218
87219         The configure-time check for stdbool.h was missing.
87220         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87221         (jm_PREREQ_HASH): New function.
87222
87223 2001-01-17  Jim Meyering  <meyering@lucent.com>
87224
87225         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87226         for autoconf-2.49c.
87227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87228
87229 2001-01-16  Jim Meyering  <meyering@lucent.com>
87230
87231         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87232         From Bruno Haible.
87233
87234 2001-01-14  Jim Meyering  <meyering@lucent.com>
87235
87236         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87237         foo and bar.  Create conftestdir/ in the script, not in the C code.
87238         Remove directories in the script, not in the C code.
87239         Remove conftestdir{,2} before trying to create the directory.
87240         Make the entire configure script fail if the mkdir fails.
87241
87242 2001-01-14  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/rename.c: New file.  From Volker Borchert.
87245         Include stdlib.h, string.h or strings.h, and xalloc.h.
87246         Use strip_trailing_slashes rather than open-coding it.
87247
87248 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87249
87250         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87251
87252 2001-01-03  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87255         of local `inptr' to avoid warning with some system declarations of
87256         iconv.
87257
87258 2001-01-02  Volker Borchert  <bt@teknon.de>
87259
87260         * m4/rename.m4: New file.
87261         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87262
87263 2001-01-01  Jim Meyering  <meyering@lucent.com>
87264
87265         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87266         even on systems with utmpx.h.  It's necessary for the declaration of
87267         utmp's ut_user member.  Reported by Andreas Jaeger.
87268
87269         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87270         available. They are required for the declarations of getgrgid and
87271         getpwuid resp.
87272         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87273         Reported by Andreas Jaeger.
87274
87275 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87276
87277         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87278         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87279         so `make install' also works in VPATH builds.
87280
87281 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87282
87283         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87284         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87285         can be used in subdirectories.
87286
87287 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87288
87289         * lib/modechange.c: Do not assume that mode_t uses the
87290         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87291         the other-execute bit of FOO even if S_IXOTH != 1.
87292
87293         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87294         WOTH, XOTH, ALLM): New macros.
87295         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87296          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87297         Use them.
87298         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87299         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87300         (mode_compile):
87301         No need to use uintmax_t; unsigned long is long enough.
87302         Don't bother to get suffix since we don't use it.
87303
87304 2000-12-26  Jim Meyering  <meyering@lucent.com>
87305
87306         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87307         better with autoheader.
87308
87309 2000-12-24  Jim Meyering  <meyering@lucent.com>
87310
87311         * lib/hash.c (is_prime): Return explicit boolean values.
87312         (hash_get_first): Return NULL to appease Irix5.6's 89.
87313         Reported by Nelson Beebe.
87314
87315 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87316
87317         * lib/localcharset.c (locale_charset): Add support for Win32.
87318
87319 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87320
87321         * lib/physmem.h, lib/physmem.c: New files.
87322
87323         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87324         (noinst_HEADERS): Add physmem.h.
87325
87326         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87327         't' for compatibility with Solaris 8 sort.
87328
87329 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87330
87331         * lib/config.charset: Add support for BeOS.
87332
87333 2000-12-17  Jim Meyering  <meyering@lucent.com>
87334
87335         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87336         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87337
87338 2000-12-16  Jim Meyering  <meyering@lucent.com>
87339
87340         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87341         N and M) would have treated it like `chown N:N FILE'.
87342
87343         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87344
87345 2000-12-16  Jim Meyering  <meyering@lucent.com>
87346
87347         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87348         SHELLS_FILE to a file name that's useful on djgpp systems.
87349         Include stdlib.h.
87350         (ADDITIONAL_DEFAULT_SHELLS): Define.
87351         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87352         Based mostly on a patch from Prashant TR.
87353
87354 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87355
87356         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87357         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87358         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87359
87360 2000-12-08  Andreas Schwab  <schwab@suse.de>
87361
87362         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87363         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87364
87365 2000-12-07  Jim Meyering  <meyering@lucent.com>
87366
87367         * lib/stripslash.c (ISSLASH): Define.
87368         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87369         `/'.
87370         From Prashant TR.
87371
87372         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87373         (dir_name_r): Declare this function as static.
87374         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87375         manifest itself on a name containing a mix of slashes and
87376         backslashes.
87377         Make this function work with names starting with a DOS-style
87378         drive letter and colon prefix.
87379         (dir_name): Append `.' if necessary.
87380         Based mostly on patches from Prashant TR and Eli Zaretskii.
87381
87382         * lib/dirname.h (dir_name_r): Remove prototype.
87383
87384 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87385
87386         * m4/off_t-format.m4: Remove this file.
87387         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87388
87389 2000-12-06  Jim Meyering  <meyering@lucent.com>
87390
87391         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87392         replacement strtoull, we may well need the replacement strtoul, too.
87393         Check for declarations of strtoul and strtoull.
87394         Check for strtol.  Mainly as a cue to cause automake to include
87395         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87396         Check for limits.h -- strtol.c needs it.
87397
87398 2000-12-05  Jim Meyering  <meyering@lucent.com>
87399
87400         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87401
87402 2000-12-04  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87405         Also include memory.h, stdlib.h, unistd.h if appropriate.
87406         Reported by Andreas Jaeger (conflicting declaration of malloc).
87407
87408 2000-12-02  Jim Meyering  <meyering@lucent.com>
87409
87410         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87411         * m4/jm-macros.m4 (jm_MACROS): require it.
87412
87413 2000-12-02  Jim Meyering  <meyering@lucent.com>
87414
87415         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87416
87417 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87418
87419         * lib/memrchr.c: Include <config.h> before any system include file.
87420
87421 2000-11-30  Jim Meyering  <meyering@lucent.com>
87422
87423         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87424
87425 2000-11-30  Jim Meyering  <meyering@lucent.com>
87426
87427         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87428
87429 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87430
87431         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87432
87433 2000-11-26  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87436
87437 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87438
87439         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87440         size of (size_t) -1; it's not portable.
87441
87442 2000-11-17  Jim Meyering  <meyering@lucent.com>
87443
87444         * lib/strstr.c: Update from GNU libc.
87445
87446 2000-11-17  Akim Demaille  <akim@epita.fr>
87447
87448         * lib/obstack.h: Formatting changes.
87449         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87450         prevent type checking.
87451         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87452         cast the value to (void *): assigning a `foo *' to a `void *'
87453         variable is valid.
87454         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87455
87456 2000-11-16  Jim Meyering  <meyering@lucent.com>
87457
87458         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87459
87460 2000-11-11  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87463
87464 2000-11-10  Jim Meyering  <meyering@lucent.com>
87465
87466         * lib/obstack.h: Update from GNU libc.
87467         * lib/obstack.c: Likewise.
87468
87469 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87470
87471         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87472
87473 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87474
87475         * lib/getusershell.c (setusershell): Use rewind rather than
87476         fseek/fseeko, to avoid configuration hassles with fseeko.
87477         Don't bother opening SHELLS_FILE if shellstream is NULL;
87478         it's not necessary.
87479
87480 2000-11-05  Jim Meyering  <meyering@lucent.com>
87481
87482         * lib/makepath.h (make_dir): Declare.
87483         * lib/makepath.c (make_dir): Remove `static' attribute.
87484         Tweak a comment.
87485
87486 2000-11-04  Jim Meyering  <meyering@lucent.com>
87487
87488         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87489
87490 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87491
87492         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87493         last one in a bucket, advance to the next bucket.
87494
87495 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87496
87497         * lib/fnmatch.c: Do not comment out all the code if we are using
87498         the GNU C library, because in some cases we are replacing buggy
87499         code in the GNU C library itself.
87500
87501 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87502
87503         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87504         (regex_compile): Catch bogus \(\1\).
87505
87506 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87507
87508         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87509         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87510         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87511
87512 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87513
87514         * lib/error.h, getline.h, modechange.h:
87515         Remove "2000" from Copyright line, as the file hasn't been
87516         changed this year other than in the copyright notice.
87517
87518         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87519         was changed this year.
87520
87521 2000-10-29  Jim Meyering  <meyering@lucent.com>
87522
87523         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87524         renaming.
87525         * m4/ls-mntd-fs.m4: Likewise
87526
87527 2000-10-29  Jim Meyering  <meyering@lucent.com>
87528
87529         * lib/xstat.in: Fix grammar in comment.
87530
87531 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87532
87533         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87534         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87535         doesn't define __restrict_arr.
87536
87537 2000-10-28  Jim Meyering  <meyering@lucent.com>
87538
87539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87540         (jm_PREREQ_MEMCHR): New function.
87541
87542 2000-10-28  Jim Meyering  <meyering@lucent.com>
87543
87544         * lib/memchr.c: Update from libc.
87545         Adjust for portability:
87546         [HAVE_STDLIB_H]: Include stdlib.h.
87547         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87548         Undef __memchr, too.
87549         [!weak_alias]: Define __memchr to memchr.
87550
87551         * lib/regex.c: Update from libc.
87552         * lib/regex.h: Likewise.
87553         * lib/getopt1.c: Likewise.
87554         * lib/memcmp.c: Likewise.
87555
87556         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87557         Avoid using fseek, when possible -- it's broken by design.
87558         Patch by Ulrich Drepper.
87559
87560 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87561
87562         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87563         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87564         Giving in to popular pressure to shut up the compiler with casts.
87565
87566 2000-10-26  Jim Meyering  <meyering@lucent.com>
87567
87568         * lib/strftime.c: Update from libc.
87569
87570 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87571
87572         * regex.c: More `unsigned char' -> `re_char' changes.
87573         Also change several `int' into `re_wchar_t'.
87574         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87575         (PUSH_FAILURE_POINTER): Don't cast any more.
87576         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87577         We want GCC to complain, since this piece of code makes
87578         re_match non-reentrant, which *should* be fixed.
87579         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87580         (EXTEND_BUFFER): Use RETALLOC.
87581         (SET_LIST_BIT): Don't cast.
87582         (re_wchar_t): New type.
87583         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87584         that those two functions will always properly return.
87585         (IMMEDIATE_QUIT_CHECK): Cast to void.
87586         (analyse_first): Use recursion rather than an explicit stack.
87587         (re_compile_fastmap): Can't fail anymore.
87588         (re_search_2): Don't check re_compile_fastmap for failure.
87589         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87590         Now also sets the new value (passed in a new argument).
87591         (re_match_2_internal): Use it.
87592         Also, use a new var `reg' of type size_t when looping through regs
87593         rather than reuse the inappropriate `mcnt'.
87594
87595 2000-10-25  Jim Meyering  <meyering@lucent.com>
87596
87597         * lib/obstack.c: Update from libc.
87598
87599 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87600
87601         * regex.c (regex_compile): Change the way of handling a range from
87602         a char less than 256 to a char not less than 256.
87603
87604 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87605
87606         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87607         NT-Emacs only.
87608         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87609         so that re_search functions only quit when callers expect them to.
87610
87611 2000-10-23  Jim Meyering  <meyering@lucent.com>
87612
87613         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87614         wrong.  That set_locale call must not have any side effects.
87615         From Paul Eggert.
87616
87617 2000-10-22  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87620         [CYCLIC]: Remove now-unused definition.
87621
87622         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87623         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87624         Suggestion from Ulrich Drepper.
87625
87626 2000-10-21  Jim Meyering  <meyering@lucent.com>
87627
87628         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87629         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87630         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87631
87632 2000-10-21  Jim Meyering  <meyering@lucent.com>
87633
87634         * lib/dirname.c (memrchr): Declare if necessary.
87635         (dir_name): Remove the restriction that there be no
87636         trailing slashes.  Now, this code skips past them, effectively
87637         ignoring them.
87638         [TEST_DIRNAME] (main): New unit tests.
87639
87640         * lib/memrchr.c: New file from GNU libc.
87641         Undef __memrchr, too.
87642         [!weak_alias]: Define __memrchr to memrchr.
87643         Guard weak_alias use with `#ifdef weak_alias'.
87644
87645 2000-10-21  Jim Meyering  <meyering@lucent.com>
87646
87647         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87648         (dir_name): Use dir_name_r.
87649         * lib/dirname.h (dir_name_r): Declare it.
87650
87651 2000-10-17  Jim Meyering  <meyering@lucent.com>
87652
87653         * lib/quote.h (PARAMS): Define and use.
87654         Reported by Akim Demaille.
87655
87656         * lib/getopt.c: Update from libc.
87657
87658 2000-10-16  Jim Meyering  <meyering@lucent.com>
87659
87660         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87661         setlocale.
87662         From Jan Fedak.
87663
87664 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87665
87666         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87667
87668 2000-09-25  Jim Meyering  <meyering@lucent.com>
87669
87670         * lib/md5.h (rol): Define (from GnuPG).
87671
87672         * lib/sha.c: Give credit (GnuPG) where due.
87673         (M): Use rol rather than open-coding it.
87674         Add a FIXME comment.
87675
87676 2000-09-21  Jim Meyering  <meyering@lucent.com>
87677
87678         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87679         Reported by Michael Stone.
87680
87681 2000-09-20  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87684         (noinst_HEADERS): Add sha.h.
87685         Based on code from Scott G. Miller and from GnuPG.
87686
87687 2000-09-18  Jim Meyering  <meyering@lucent.com>
87688
87689         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87690         LIBS. Otherwise, everyone ends up linking with -lelf for some
87691         configurations.
87692         Reported by Mike Stone.
87693
87694 2000-09-15  Jim Meyering  <meyering@lucent.com>
87695
87696         * lib/regex.c: Update from libc.
87697
87698 2000-09-10  Jim Meyering  <meyering@lucent.com>
87699
87700         * lib/getopt.c (_getopt_internal): Update from glibc.
87701
87702 2000-09-09  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87705         think it should be used as a general replacement for isascii.
87706         * lib/fnmatch.c: Likewise.
87707         * lib/mbswidth.c: Likewise
87708         * lib/regex.c: Likewise.
87709
87710         Don't use atoi.
87711         * lib/userspec.c: Include sys/param.h and limits.h.
87712         Include xstrtol.h.
87713         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87714         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87715         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87716         UID, GID.  Check range.
87717
87718 2000-09-06  Jim Meyering  <meyering@lucent.com>
87719
87720         * lib/getopt.c (_getopt_internal): Update from glibc.
87721
87722 2000-08-30  Jim Meyering  <meyering@lucent.com>
87723
87724         * lib/strftime.c: Merge in changes from GNU libc.
87725
87726 2000-08-26  Jim Meyering  <meyering@lucent.com>
87727
87728         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87729         * m4/fpending.m4: New file.
87730
87731 2000-08-26  Jim Meyering  <meyering@lucent.com>
87732
87733         * lib/closeout.c: Include "__fpending.h".
87734         (close_stdout_status): Return right away if there's nothing to flush.
87735
87736         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87737         * lib/__fpending.c: New file.
87738         * lib/__fpending.h: New file.
87739
87740 2000-08-20  Jim Meyering  <meyering@lucent.com>
87741
87742         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87743         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87744         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87745
87746 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87747
87748         Improve fileutils installation on systems where running
87749         programs (like install) can't be unlinked.
87750         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87751         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87752
87753 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87754
87755         Standardize on "memory exhausted" instead of "Memory exhausted"
87756         or "virtual memory exhausted".
87757         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87758         "virtual memory exhausted".
87759         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87760         our own message.
87761         * lib/userspec.c (parse_user_spec): Likewise.
87762         * lib/bumpalloc.h: comment fix
87763         * lib/same.c, userspec.c: Include xalloc.h.
87764
87765         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87766         not char *const and pointing to a constant array.
87767         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87768         (xrealloc): Comment fix.
87769
87770         * lib/userspec.c (parse_user_spec):
87771         Don't translate a message until just before returning,
87772         to avoid unnecessary translation.
87773
87774 2000-08-07  Jim Meyering  <meyering@lucent.com>
87775
87776         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87777         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87778         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87779         getgroups.c, gethostname.c, getopt.h, group-member.c,
87780         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87781         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87782         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87783         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87784         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87785         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87786         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87787         yesno.c: Back out Copyright date changes for each file with no change
87788         this year.  This eases coordination with other programs using the same
87789         source code modules.  From Paul Eggert.
87790
87791 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87792
87793         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87794         not char, for compatibility with glibc 2.1.3 strftime.c.
87795
87796 2000-08-03  Greg McGary  <greg@mcgary.org>
87797
87798         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87799         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87800         (EXTEND_BUFFER): Use them.
87801
87802 2000-08-01  Jim Meyering  <meyering@lucent.com>
87803
87804         * lib/dirname.c (ISSLASH): Define.
87805         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87806         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87807         both `\' and `/' may be use as path separators.
87808         Based on a patch from Prashant TR.
87809
87810 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87811
87812         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87813         slot vector a constant, since it might get modified.
87814
87815 2000-07-31  Jim Meyering  <meyering@lucent.com>
87816
87817         * lib/xmalloc.c: Use `virtual memory exhausted', not
87818         `Memory exhausted'.
87819         * lib/obstack.c (print_and_abort): Likewise.
87820
87821 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87822
87823         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87824         buffer, so that the caller can always quote one small
87825         component of a "memory exhausted" message in slot 0.
87826         From a suggestion by Jim Meyering.
87827
87828 2000-07-30  Jim Meyering  <meyering@lucent.com>
87829
87830         * lib/makepath.c (make_path): Quote the other instance, too.
87831
87832         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87833         (STATIC_BUF_SIZE): Define.
87834         (quotearg_n_options): Use only statically allocated storage when
87835         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87836         than STATIC_BUF_SIZE.
87837
87838 2000-07-29  Jim Meyering  <meyering@lucent.com>
87839
87840         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87841         * lib/dirname.c (dir_name): Likewise.
87842
87843         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87844         `/'.
87845
87846         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87847         (dir_name): Assert that there are no trailing slashes.
87848
87849 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87850
87851         * lib/mbswidth.h (mbswidth): Add a flags argument.
87852         (mbswidth): New declaration.
87853         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87854         * lib/mbswidth.c (mbswidth): Add a flags argument.
87855         (mbsnwidth): New function.
87856
87857 2000-07-24  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87860
87861 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87862
87863         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87864
87865 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87866
87867         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87868         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87869         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87870         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87871         invoke multibyte primitives.
87872
87873 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87874
87875         * lib/quotearg.c:
87876         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87877         so that mbstate_t is always defined.
87878
87879         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87880         be 1 in at least one GCC installation, and this configuration
87881         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87882         performance on hosts that have mbrtowc but have only unibyte
87883         locales, but I assume these hosts are rare.
87884
87885 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87886
87887         * lib/mbswidth.c (_XOPEN_SOURCE):
87888         Don't define; this causes problems on Solaris 7.
87889         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87890
87891 2000-07-23  Jim Meyering  <meyering@lucent.com>
87892
87893         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87894         too: getgrgid, getpwuid, getuid.
87895
87896 2000-07-23  Jim Meyering  <meyering@lucent.com>
87897
87898         * lib/basename.c (base_name): Add an assertion.
87899
87900 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87901
87902         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87903         shadow its mbsinit function.
87904
87905 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87906
87907         * lib/mbswidth.h: New file.
87908         * lib/mbswidth.c: New file.
87909         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87910         (noinst_HEADERS): Add mbswidth.h.
87911
87912 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87913
87914         * lib/config.charset: Add support for FreeBSD. Improve support for
87915         HP-UX and IRIX 6.
87916
87917 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87918
87919         * m4/mbswidth.m4: New file.
87920         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87921
87922 2000-07-15  Jim Meyering  <meyering@lucent.com>
87923
87924         * lib/makepath.c: Include quote.h.
87925         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87926         corresponding argument in a `quote (...)' call.
87927         Give better diagnostics.
87928
87929         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87930         (noinst_HEADERS): Add quote.h.
87931
87932         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87933         from tar's src/misc.c.
87934         * lib/quote.h: New file.  Prototypes for same.
87935
87936 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87937
87938         From a suggestion by Bruno Haible.
87939         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87940         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87941         to decide whether to define the BeOS workaround macro;
87942         this adjusts to the change to AC_MBSTATE_T.
87943
87944 2000-07-14  Jim Meyering  <meyering@lucent.com>
87945
87946         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87947         jm_AC_TYPE_UINTMAX_T.
87948
87949 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87950
87951         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87952
87953         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87954         quotearg_buffer_restyled): Add support for
87955         clocale_quoting_style.  Undo previous change to
87956         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87957         and "{RIGHT QUOTATION MARK}" msgids.
87958
87959 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87960
87961         From a suggestion by Bruno Haible.
87962         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87963         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87964         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87965         and mbstate_t, to a single-part test that simply defines mbstate_t.
87966         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87967         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87968
87969 2000-07-10  Jim Meyering  <meyering@lucent.com>
87970
87971         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87972
87973         * m4/gnu-source.m4: Output to confdefs.h directly.
87974         Suggestion from Akim Demaille.
87975
87976 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87977
87978         The old behavior of quoting `like this' doesn't look good with
87979         newer, ISO-style fonts.  See:
87980         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87981
87982         Instead, quote "like this" by default.  Let the translator
87983         tailor the locale-specific quoting behavior by providing
87984         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87985
87986         * lib/quotearg.c (N_): New macro.
87987         (gettext_default): New function.
87988         (quotearg_buffer_restyled): Use
87989         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87990         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87991
87992 2000-07-09  Jim Meyering  <meyering@lucent.com>
87993
87994         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87995         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87996
87997         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87999
88000 2000-07-09  Jim Meyering  <meyering@lucent.com>
88001
88002         * lib/Most files: Update copyright dates to include 2000.
88003
88004 2000-07-08  Jim Meyering  <meyering@lucent.com>
88005
88006         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88007         if not defined.
88008         (xgethostname): Remove now-unnecessary #ifdef.
88009         Move declaration of `err' into loop where it's used.
88010
88011 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88012         and Bruno Haible  <haible@clisp.cons.org>
88013
88014         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88015         only if the test for an object-type mbstate_t fails.  This
88016         prevents us from mistakenly reporting that mbstate_t is a
88017         system object type after we "#define mbstate_t int" to work
88018         around its lack.
88019
88020 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88021         and Bruno Haible  <haible@clisp.cons.org>
88022
88023         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88024
88025 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88026
88027         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88028         to strerror_r.
88029         Include <ctype.h> for use of isalpha.
88030
88031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88032
88033         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88034         by allocating a larger buffer. Test the gethostname return value for
88035         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88036         returns an error and ENAMETOOLONG isn't defined.
88037
88038 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88039
88040         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88041         dimension.
88042
88043 2000-07-04  Jim Meyering  <meyering@lucent.com>
88044
88045         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88046         of the deprecated AC_CHECKING.
88047
88048 2000-07-04  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88051         Reported by Bruno Haible.
88052
88053 2000-07-04  Jim Meyering  <meyering@lucent.com>
88054
88055         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88056         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88057         lacks mbrtowc.
88058
88059 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88060
88061         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88062         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88063
88064 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88065         and Bruno Haible  <haible@clisp.cons.org>
88066
88067         * lib/quotearg.c (mbrtowc):
88068         Assign to *pwc, and return 1 only if result is nonzero.
88069         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88070
88071 2000-07-03  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88074
88075 2000-07-03  Jim Meyering  <meyering@lucent.com>
88076
88077         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88078         This is necessary to get a definition of e.g., UTMP_FILE on
88079         HP-UX 10.20.
88080         From Bob Proulx.
88081
88082 2000-07-02  Jim Meyering  <meyering@lucent.com>
88083
88084         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88085
88086         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88087         AC_LIBOBJ(function_name).
88088         * m4/chown.m4: Likewise.
88089         * m4/fnmatch.m4: Likewise.
88090         * m4/ftruncate.m4: Likewise.
88091         * m4/getgroups.m4: Likewise.
88092         * m4/getline.m4: Likewise.
88093         * m4/group-member.m4: Likewise.
88094         * m4/jm-macros.m4: Likewise.
88095         * m4/lstat.m4: Likewise.
88096         * m4/malloc.m4: Likewise.
88097         * m4/memcmp.m4: Likewise.
88098         * m4/nanosleep.m4: Likewise.
88099         * m4/putenv.m4: Likewise.
88100         * m4/realloc.m4: Likewise.
88101         * m4/regex.m4: Likewise.
88102         * m4/stat.m4: Likewise.
88103         * m4/strftime.m4: Likewise.
88104
88105 2000-07-02  Jim Meyering  <meyering@lucent.com>
88106
88107         * lib/quotearg.c (mbstate_t): Don't define here.
88108
88109 2000-07-02  Jim Meyering  <meyering@lucent.com>
88110
88111         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88112
88113 2000-07-01  Jim Meyering  <meyering@lucent.com>
88114
88115         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88116
88117 2000-07-01  Jim Meyering  <meyering@lucent.com>
88118
88119         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88120         problem.
88121
88122 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88123
88124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88125         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88126
88127 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88128
88129         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88130         per change in ../m4/ls-mntd-fs.m4.
88131         (read_filesystem_list): Ignore symbolic links.
88132
88133 2000-06-29  Jim Meyering  <meyering@lucent.com>
88134
88135         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88136         for declaration of strcmp.
88137
88138         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88139
88140         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88141         Avoid warning by casting result to `char *' to remove `const'.
88142
88143 2000-06-28  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88146         included by quotearg.c, for which we perform this test.  From
88147         Bruno Haible.
88148
88149 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88150
88151         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88152         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88153         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88154
88155 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88156
88157         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88158
88159 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88160
88161         savedir now sets errno on failure and invokes xmalloc to get memory.
88162         Fix a couple of other minor bugs while we're at it.
88163
88164         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88165         (NAMLEN): Remove macro.
88166         (malloc, realloc): Remove decls.
88167         (stpcpy): Likewise.
88168         ("xalloc.h"): Include.
88169         (NAME_SIZE_DEFAULT): New macro.
88170         (savedir): Use xmalloc / xrealloc to allocate memory.
88171         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88172         Skip "" directory entries.
88173         Use strlen to calculate directory entry length, since the old method
88174         is rarely used these days and isn't worth supporting.
88175         Don't use a pointer after freeing it.
88176         Check for integer overflow when calculating allocation size.
88177         Use memcpy to copy entries, instead of stpcpy.
88178         Set errno properly when returning NULL.
88179         Check for readdir error.
88180
88181 2000-06-26  Jim Meyering  <meyering@lucent.com>
88182
88183         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88184
88185 2000-06-25  Jim Meyering  <meyering@lucent.com>
88186
88187         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88188         Linux header bug when _XOPEN_SOURCE is defined to 500.
88189
88190 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88191
88192         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88193         deficiency.
88194
88195 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88196
88197         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88198         Include xalloc.h.
88199         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88200
88201 2000-06-24  Jim Meyering  <meyering@lucent.com>
88202
88203         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88204         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88205         for which strerror does return char*, but which lacks a conveniently
88206         accessible declaration of the function.  If the compile-test says
88207         strerror_r doesn't work, then resort to a `run'-test that works on
88208         BeOS and segfaults on DEC Unix.
88209
88210 2000-06-24  Jim Meyering  <meyering@lucent.com>
88211
88212         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88213
88214 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88215
88216         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88217         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88218
88219 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88220
88221         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88222         (mbrtowc, mbstate_t): Define substitutes if
88223         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88224         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88225         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88226
88227 2000-06-23  Jim Meyering  <meyering@lucent.com>
88228
88229         * m4/afs.m4: Add missing AC_MSG_RESULT.
88230         Reported by Bruno Haible.
88231
88232         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88233         Suggestion from Bruno Haible.
88234
88235 2000-06-23  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88238
88239 2000-06-21  Jim Meyering  <meyering@lucent.com>
88240
88241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88242
88243 2000-06-21  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88246         (noinst_HEADERS): Add getstr.h.
88247
88248         * lib/getline.c (getstr): Move into a separate file.
88249         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88250         the following changes: new parameter, delim2; both delim[12]
88251         parameters have type `int', not `char'.  The latter would lose
88252         with 8-bit delimiters.
88253         * lib/getstr.h: New file.
88254
88255 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88256
88257         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88258         than 1024, return a memory chunk of least possible size, instead
88259         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88260         Use free/xmalloc instead of xrealloc to avoid copying for very long
88261         paths.
88262
88263 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88264
88265         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88266         the empty string.
88267
88268 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88269
88270         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88271         address, not strdup.  Include <stdlib.h> and don't declare free().
88272
88273 2000-06-19  Jim Meyering  <meyering@lucent.com>
88274
88275         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88276
88277 2000-06-18  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88280
88281         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88282         `checking whether...' message to be consistent with that of the
88283         lstat test.
88284
88285 2000-06-18  Jim Meyering  <meyering@lucent.com>
88286
88287         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88288         Besides, these days every porting target provides a mkdir function.
88289
88290         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88291         needed. (this snippet comes from src/system.h).
88292
88293 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88294
88295         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88296
88297 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88298
88299         * lib/human.c (adjust_value): New function.
88300         (human_readable_inexact): Apply rounding style even when
88301         printing approximate values.
88302
88303 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88304
88305         * lib/human.c (human_readable_inexact): Allow an input block
88306         size that is not a multiple of the output block size, and vice versa.
88307         Reported by Piergiorgio Sartor.
88308
88309 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88310
88311         * lib/getdate.y (get_date): Apply relative times after time
88312         zone indicator, not before.  Reported by Todd A. Jacobs.
88313
88314 2000-06-13  Jim Meyering  <meyering@lucent.com>
88315
88316         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88317
88318         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88319
88320 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88321
88322         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88323
88324 2000-06-12  Jim Meyering  <meyering@lucent.com>
88325
88326         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88327         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88328         optional argument.
88329         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88330         the optional argument, `lib'.
88331
88332 2000-06-08  Jim Meyering  <meyering@lucent.com>
88333
88334         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88335
88336 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88337
88338         Rewrite largefile configuration so that we don't need to run
88339         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88340         AC_CANONICAL_HOST in configure.in -- jmm]
88341
88342         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88343         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88344         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88345         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88346         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88347         All uses changed.
88348         Instead of inspecting the output of getconf, try to compile the
88349         test program without and with the macro definition.
88350         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88351         for getconf.  Instead, check for the needed flags by compiling
88352         test programs.
88353
88354 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88355
88356         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88357
88358 2000-06-04  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88361         SunOS 4.1.4 for which gid_t is an unsigned type.
88362
88363 2000-06-03  Jim Meyering  <meyering@lucent.com>
88364
88365         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88366         now that autoconf requires that.
88367
88368         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88369         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88370         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88371
88372 2000-06-03  Jim Meyering  <meyering@lucent.com>
88373
88374         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88375
88376 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88377
88378         * m4/glibc21.m4: New file.
88379         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88380
88381 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88382
88383         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88384         newer, don't install charset.alias.
88385         * lib/config.charset: Change the Linux/glibc rules so they become empty
88386         on glibc-2.1 or newer.
88387
88388 2000-06-02  Jim Meyering  <meyering@lucent.com>
88389
88390         * lib/mountlist.c: Back out last change.  Instead, do this...
88391         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88392         me_dummy member using the same `ignore'-testing code.
88393         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88394         fs_type strings.
88395         From Mark D. Roth.
88396
88397 2000-05-29  Jim Meyering  <meyering@lucent.com>
88398
88399         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88400         mounts with the `ignore' attribute.  Based on a patch from
88401         Mark D. Roth.
88402
88403 2000-05-28  Jim Meyering  <meyering@lucent.com>
88404
88405         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88406         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88407         * m4/stat.m4: Likewise.
88408         * m4/lstat.m4: Likewise.
88409         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88410
88411         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88412         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88413
88414 2000-05-26  Jim Meyering  <meyering@lucent.com>
88415
88416         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88417
88418 2000-05-24  Jim Meyering  <meyering@lucent.com>
88419
88420         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88421         autoconf requires that.
88422         * m4/lib-check.m4: Likewise.
88423         * m4/jm-macros.m4: Likewise.
88424         * m4/strftime.m4: Likewise.
88425
88426         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88427         AC_CHECK_DECLS, now that autoconf requires that.
88428
88429 2000-05-22  Jim Meyering  <meyering@lucent.com>
88430
88431         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88432         * m4/lstat.m4: Likewise.
88433
88434 2000-05-22  Jim Meyering  <meyering@lucent.com>
88435
88436         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88437
88438 2000-05-20  Jim Meyering  <meyering@lucent.com>
88439
88440         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88441         (jm_PREREQ): Use it.
88442
88443 2000-05-18  Jim Meyering  <meyering@lucent.com>
88444
88445         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88446         back, too, since it may have been modified by allocate_entry.
88447         (hash_delete): Rewrite to use neither the assignment operator
88448         nor the comma operator in an if-expression.
88449
88450 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88451
88452         * lib/closeout.c:
88453         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88454         Remove; no longer needed.
88455         "quotearg.h": Add include.
88456         (file_name): Do not bother to explicitly initialize to NULL; it's less
88457         efficient on some hosts.
88458         (close_stdout_status): Remove test as to whether stdout was already
88459         closed; it breaks for the case "echo x | sort >&-".
88460         Quote file name colons.
88461         Do not assume that _("write error") lacks format strings.
88462
88463 2000-05-15  Jim Meyering  <meyering@lucent.com>
88464
88465         * lib/version-etc.c (version_etc_copyright): Update the copyright
88466         string used in all --version output.
88467
88468 2000-05-14  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/closeout.c (close_stdout_set_file_name): New function.
88471         (close_stdout_status): Use new file-scoped global.
88472         Return right away if fstat says the stdout file descriptor is invalid.
88473         * lib/closeout.h (close_stdout_set_file_name): Declare.
88474
88475 2000-05-10  Jim Meyering  <meyering@lucent.com>
88476
88477         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88478         (close_stdout_set_status): New function.
88479         * lib/closeout.h (close_stdout_set_status): Declare.
88480
88481 2000-05-09  Jim Meyering  <meyering@lucent.com>
88482
88483         * m4/gettext.m4: Rename this...
88484         * m4/libintl.m4: ...to this.
88485
88486 2000-05-08  Jim Meyering  <meyering@lucent.com>
88487
88488         * lib/long-options.c: Don't include closeout.h.
88489         (parse_long_options): Don't call close_stdout for --version.
88490
88491 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88492
88493         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88494         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88495         2.1.3 bug.  This avoids a clash when files like regex.c define
88496         _GNU_SOURCE.
88497
88498 2000-05-06  Jim Meyering  <meyering@lucent.com>
88499
88500         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88501         (AC_REPLACE_FUNCS): Add strnlen.
88502
88503         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88504         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88505
88506         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88507         AC_SEARCH_LIBS call for nanosleep.
88508         (LIB_NANOSLEEP): Set and AC_SUBST.
88509
88510 2000-05-06  Jim Meyering  <meyering@lucent.com>
88511
88512         * lib/strnlen.c: Undefine __strnlen and strnlen.
88513         [!weak_alias]: Define __strnlen to strnlen.
88514
88515         * lib/atexit.c: New file, from libiberty.
88516
88517 2000-05-06  Jim Meyering  <meyering@lucent.com>
88518
88519         * lib/closeout.c (close_stdout_status): Also check for errors on the
88520         stderr stream.
88521
88522 2000-05-05  Jim Meyering  <meyering@lucent.com>
88523
88524         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88525         AC_SEARCH_LIBS call for clock_gettime.
88526         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88527
88528         * m4/search-libs.m4: Update from autoconf.
88529
88530         su doesn't work on Solaris 2.6.
88531         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88532         <shadow.h>.  Reported by Dragos Harabor.
88533
88534 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88535
88536         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88537         memcpy instead of xmalloc, xrealloc, path_concat.
88538         (locale_charset): Treat empty environment variables as absent.
88539         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88540
88541 2000-05-04  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/getopt.c: Update from glibc.
88544         * lib/obstack.c: Likewise.
88545         * lib/obstack.h: Likewise.
88546         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88547         file
88548
88549         * lib/regex.h: Likewise.
88550         * lib/strndup.c: Likewise.
88551         * lib/strnlen.c: New file, from glibc.
88552
88553 2000-05-03  Jim Meyering  <meyering@lucent.com>
88554
88555         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88556
88557 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88558
88559         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88560         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88561         compile-time test, rather than inspecting host and OS, to
88562         decide whether to define _LARGEFILE_SOURCE.
88563
88564 2000-05-01  Jim Meyering  <meyering@lucent.com>
88565
88566         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88567
88568         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88569         Based on a patch from Bruno Haible.
88570
88571 2000-05-01  Jim Meyering  <meyering@lucent.com>
88572
88573         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88574
88575 2000-04-29  Jim Meyering  <meyering@lucent.com>
88576
88577         * lib/path-concat.c: Declare strdup only if it's not defined.
88578         * lib/canon-host.c: Likewise.
88579
88580 2000-04-28  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88583         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88584         is included first, then limits.h is included by locale.h by libintl.h.
88585         From John David Anglin.
88586
88587 2000-04-25  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/makepath.c (S_IRWXUGO): Define.
88590         (make_path): Always perform explicit chmod if MODE specifies any
88591         of the `special' permission bits.  Prompted by a bug report against
88592         install from Mate Wierdl and Joost van Baal.
88593
88594 2000-04-18  Jim Meyering  <meyering@lucent.com>
88595
88596         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88597         (jm_PREREQ): Use it.
88598
88599 2000-04-18  Jim Meyering  <meyering@lucent.com>
88600
88601         * lib/README: New file.
88602
88603         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88604         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88605
88606 2000-04-17  Jim Meyering  <meyering@lucent.com>
88607
88608         Get it right :-)
88609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88610         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88611         Suggestion from Akim Demaille.
88612
88613 2000-04-17  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88616         the definition of it to rpl_strftime also defined-away the system's
88617         declaration.
88618
88619 2000-04-15  Jim Meyering  <meyering@lucent.com>
88620
88621         Use `C' to denote so-called `contiguous' files, the same way
88622         that tar does.
88623         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88624         (ftypelet): Use S_ISCTG.
88625         From Michael Deutschmann.
88626
88627 2000-04-14  Jim Meyering  <meyering@lucent.com>
88628
88629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88630         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88631         clobbered.
88632
88633 2000-04-14  Jim Meyering  <meyering@lucent.com>
88634
88635         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88636
88637 2000-04-13  Jim Meyering  <meyering@lucent.com>
88638
88639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88640         AH_VERBATIM to insert required #ifndef into config.h.in.
88641         Suggestion from Akim Demaille.
88642
88643 2000-04-12  Jim Meyering  <meyering@lucent.com>
88644
88645         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88646         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88647         Christian Krackowizer.
88648
88649         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88650         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88651         (AC_SYS_LARGEFILE): Require.
88652         (AM_C_PROTOTYPES): Require.
88653
88654 2000-04-08  Jim Meyering  <meyering@lucent.com>
88655
88656         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88657         names don't conflict.  Reported by Eli Zaretskii.
88658
88659 2000-04-07  Jim Meyering  <meyering@lucent.com>
88660
88661         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88662         sys/types.h, to work around system header problems on AIX 3.2.5.
88663         From Bruno Haible.
88664
88665 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88666
88667         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88668         bug.  Deal with the different error behavior of Irix iconv.
88669
88670 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88671
88672         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88673         IRIX if the installer said otherwise.
88674
88675 2000-04-05  Jim Meyering  <meyering@lucent.com>
88676
88677         Portability tweaks required for ultrix4.3.
88678         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88679         (jm_CHECK_DECLS): Add getutent to the list of functions.
88680         (_jm_DECL_HEADERS): Add utmpx.h.
88681         From John David Anglin.
88682
88683         * m4/strftime.m4: Back out the 2000-04-02 change.
88684         Instead of that change, simply undefine putenv in the test program.
88685
88686 2000-04-05  Jim Meyering  <meyering@lucent.com>
88687
88688         Portability tweaks required for ultrix4.3.
88689         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88690         getutent.
88691         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88692         * lib/canon-host.c: Declare strdup.
88693         * lib/path-concat.c: Likewise.
88694         From John David Anglin.
88695
88696 2000-04-04  Jim Meyering  <meyering@lucent.com>
88697
88698         Be more DOS 8.3-friendly.
88699         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88700         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88701         * lib/Makefile.am: Reflect renaming.
88702         Reported by Eli Zaretskii.
88703
88704         Use a temporary file name that won't clash with `charset.alias'
88705         in the DOS 8.3 name space.
88706         * lib/Makefile.am (charset_tmp): Define.
88707         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88708         (uninstall-local): Likewise.
88709         Reported by Eli Zaretskii.
88710
88711 2000-04-03  Jim Meyering  <meyering@lucent.com>
88712
88713         * m4/gettext.m4: Fix typo in comment.
88714
88715         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88716         textutils/configure.in).  Suggestion from Paul Eggert.
88717         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88718
88719 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88720
88721         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88722         variable in the shell rather than using putenv, which isn't
88723         portable.  This avoids the configure-time inter-test dependency
88724         on the potentially-renamed putenv function.
88725
88726 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88727
88728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88729         before checking struct stat.st_blksize, so that
88730         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88731
88732 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88733
88734         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88735         since strftime.c uses HAVE_STRFTIME to decide whether to use
88736         the underlying strftime.
88737
88738 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88739
88740         * lib/time/strftime.c (my_strftime): Make sure we call the system
88741         strftime, not ourselves, when invoking the underlying strftime.
88742
88743 2000-03-24  Jim Meyering  <meyering@lucent.com>
88744
88745         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88746         (charset_alias): Define.
88747         (install-exec-local): Factor out common code.
88748         (uninstall-local): Split lines longer than 80.
88749         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88750         (SUFFIXES): Define.
88751         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88752         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88753
88754 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88755
88756         * lib/config.charset: Output a line containing "Packages using this
88757         file".
88758         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88759         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88760         ref-del.sed): New rules.
88761
88762 2000-03-17  Jim Meyering  <meyering@lucent.com>
88763
88764         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88765         Otherwise, include <strings.h>
88766
88767 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88768
88769         * lib/unicodeio.c (utf8_wctomb): New function.
88770         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88771         format instead of in UCS-4 with platform dependent endianness.
88772
88773 2000-03-10  Jim Meyering  <meyering@lucent.com>
88774
88775         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88776         From Marco Franzen.
88777
88778 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88779
88780         * lib/savedir.c (savedir): Work even if directory size is
88781         negative; this can happen with some screwy NFS configurations.
88782
88783 2000-03-06  Jim Meyering  <meyering@lucent.com>
88784
88785         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88786         if it's NULL (because we ran out of memory).  From Bruno Haible.
88787
88788 2000-03-05  Jim Meyering  <meyering@lucent.com>
88789
88790         * lib/localcharset.c ("path-concat.h"): Include.
88791         (get_charset_aliases): Use path_concat instead of ANSI string
88792         concatenation.
88793
88794         * lib/unicodeio.h (PARAMS): Define.
88795         Use it to guard prototype.
88796
88797 2000-03-04  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88800         for lib/localcharset.c.
88801
88802 2000-03-04  Jim Meyering  <meyering@lucent.com>
88803
88804         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88805         installing into it.
88806         (uninstall-local): Uncomment this rule so `make distcheck' works
88807         once again.
88808
88809         * lib/unicodeio.c (<errno.h>): Include it.
88810         (errno): Declare if not defined.
88811
88812         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88813
88814         * lib/config.charset: New version, incorporating remarks from a linux
88815         i18n mailing list.  From Bruno Haible.
88816
88817 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88818
88819         * m4/codeset.m4: New file.
88820         * m4/iconv.m4: New file.
88821         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88822
88823 2000-03-03  Jim Meyering  <meyering@lucent.com>
88824
88825         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88826
88827 2000-03-02  Jim Meyering  <meyering@lucent.com>
88828
88829         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88830         the messages come out on separate lines.
88831
88832         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88833         rather than jm_CHECK_DECLARATIONS.
88834         * m4/decl.m4: Remove now-unused file.
88835
88836         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88837         geteuid.
88838
88839 2000-03-02  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88842
88843 2000-03-01  Jim Meyering  <meyering@lucent.com>
88844
88845         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88846         * lib/unicodeio.c: Likewise.
88847
88848 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88849
88850         * lib/config.charset: New file.
88851         * lib/localcharset.c: New file.
88852         * lib/unicodeio.h, lib/unicodeio.c: New files.
88853         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88854         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88855         (noinst_HEADERS): Add unicodeio.h.
88856         (all-local, install-exec-local, charset.alias): New targets.
88857
88858 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88859
88860         * lib/quotearg.c (ALERT_CHAR): New macro.
88861         (quotearg_buffer_restyled): Use it.
88862
88863 2000-02-27  Jim Meyering  <meyering@lucent.com>
88864
88865         * m4/check-decl.m4: Add getenv to the list.
88866
88867 2000-02-27  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88870         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88871
88872         * lib/backupfile.c: Guard inclusion of stdlib.h with
88873         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88874         Declare malloc if needed.
88875
88876         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88877         `#ifndef HAVE_DECL..'
88878         now that autoconf always defines the HAVE_DECL_ symbols.
88879         * lib/human.c: Likewise.
88880         * lib/same.c: Likewise.
88881         * lib/strtoumax.c: Likewise.
88882
88883         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88884         declaration check was not run.
88885         * lib/hash.c: Likewise.
88886         * lib/human.c: Likewise.
88887         * lib/same.c: Likewise.
88888         * lib/strtoumax.c: Likewise.
88889
88890         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88891         `.', then first look up the entire `.'-containing string as a login
88892         name.
88893
88894 2000-02-23  Jim Meyering  <meyering@lucent.com>
88895
88896         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88897         in place of my hack.
88898
88899 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88900
88901         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88902         (textint): New typedef.
88903         (parser_control): Member year changed from int to textint.
88904         All uses changed.
88905         (YYSTYPE): Removed; replaced by %union with int and textint members.
88906         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88907         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88908         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88909         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88910         (date, number, to_year): Use width of number in digits, not its value,
88911         to determine whether it's a 2-digit year, or a 2-digit time.
88912         (yylex): Store number of digits of numeric tokens.
88913         Reported by John Kendall.
88914
88915         (parser_control): Changed from struct parser_control to typedef (for
88916         consistency).  All uses changed.
88917
88918         (tID): Removed; not used.
88919         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88920
88921 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88922
88923         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88924         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88925
88926 2000-02-12  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/userspec.c (ISDIGIT): Define it.
88929         (isdigit): Remove definition.
88930         (is_number): Use ISDIGIT, not isdigit.
88931         <libintl.h>: Include.
88932         (_ and N_): Define.
88933         (parse_user_spec): Mark translatable strings.
88934
88935 2000-02-10  Jim Meyering  <meyering@lucent.com>
88936
88937         With these changes, nanosleep.[ch] are finally enough like the other
88938         lib/* replacement files to compile on a few more losing systems.
88939
88940         * lib/nanosleep.h: Don't include config.h.
88941         Remove prototype from declaration of nanosleep.
88942         (PARAMS): Remove now-unneeded definition.
88943         * lib/nanosleep.c: #undef nanosleep.
88944         (rpl_nanosleep): Rename from nanosleep.
88945
88946 2000-02-10  Jim Meyering  <meyering@lucent.com>
88947
88948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88949         gnu_nanosleep to rpl_nanosleep.
88950
88951 2000-02-09  Jim Meyering  <meyering@lucent.com>
88952
88953         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88954         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88955
88956 2000-02-08  Akim Demaille  <akim@epita.fr>
88957
88958         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88959         `[' and `]' and remove uses of `changequote'.
88960         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88961         (AC_SYS_LARGEFILE): Likewise.
88962         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88963         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88964         of changequote.
88965         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88966         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88967         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88968         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88969
88970 2000-02-05  Jim Meyering  <meyering@lucent.com>
88971
88972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88973         Remove explicit use of AC_HEADER_TIME.  It is required by
88974         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88975         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88976         in autoconf whereby the expansion of the latter ended up preceding
88977         the expansion of its prerequisite, AC_HEADER_TIME.
88978         Reported by Volker Borchert.
88979
88980 2000-02-03  Jim Meyering  <meyering@lucent.com>
88981
88982         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88983
88984 2000-02-03  Jim Meyering  <meyering@lucent.com>
88985
88986         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88987         rather than with `#if HAVE_UTMPNAME'.
88988
88989 2000-02-02  Jim Meyering  <meyering@lucent.com>
88990
88991         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88992         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88993         Reported by Eli Zaretskii.
88994
88995 2000-02-01  Jim Meyering  <meyering@lucent.com>
88996
88997         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88998
88999 2000-01-31  Jim Meyering  <meyering@lucent.com>
89000
89001         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89002         functions.  Add the time.h and sys/time.h headers along with the
89003         AC_REQUIRE'ment of AC_HEADER_TIME.
89004
89005 2000-01-31  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/nanosleep.h (nanosleep): Guard declaration with
89008         `#if ! HAVE_DECL_NANOSLEEP'.
89009         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89010         the declaration in that vendor's sys/timers.h.
89011         Reported by Christian Krackowizer.
89012
89013         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89014         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89015         (ISPRINT): Likewise.
89016         Reported by Tom Tromey.
89017
89018 2000-01-30  Jim Meyering  <meyering@lucent.com>
89019
89020         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89021
89022         * m4/prereq.m4 (utmp_includes): Define.
89023         Check for ut_user and ut_name members in both struct utmpx
89024         and struct utmp.
89025
89026 2000-01-30  Jim Meyering  <meyering@lucent.com>
89027
89028         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89029         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89030         header files where only utmpx.ut_user is declared.
89031
89032         * lib/readutmp.h (UT_USER): Define.
89033
89034 2000-01-29  Jim Meyering  <meyering@lucent.com>
89035
89036         * m4/lib-check.m4: New file containing library-related checks from
89037         fileutils and sh-utils (textutils had none).
89038
89039 2000-01-28  Jim Meyering  <meyering@lucent.com>
89040
89041         * m4/perl.m4: Change format of warning message to look more like that
89042         from the missing script.  Suggestion from François Pinard.
89043
89044 2000-01-25  Jim Meyering  <meyering@lucent.com>
89045
89046         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89047         well as time.h in the compile check.
89048         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89049         Fix typo in cross-compiling case: s/yes/no/.
89050
89051 2000-01-23  Jim Meyering  <meyering@lucent.com>
89052
89053         * m4/jm-macros.m4: Move df-related tests here from
89054         fileutils/configure.in
89055
89056         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89057         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89058
89059         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89060         s/space/ac_fsusage_space/.
89061         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89062
89063         * m4/ftruncate.m4: New file (derived from part of
89064         fileutils/configure.in).
89065         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89066         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89067
89068         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89069         AC_SUBST these here, rather than just in sh-util/configure.in, so
89070         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89071         all the same.
89072         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89073         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89074         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89075         (AC_SUBST(POW_LIBM)): Likewise.
89076         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89077
89078 2000-01-23  Jim Meyering  <meyering@lucent.com>
89079
89080         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89081         obstack.c.
89082
89083 2000-01-22  Jim Meyering  <meyering@lucent.com>
89084
89085         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89086
89087         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89088
89089         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89090         configure.in
89091         (AC_CHECK_HEADERS): Likewise for sh-utils.
89092         (AC_CHECK_HEADERS): Likewise for textutils.
89093         Merge the three lists of headers.
89094
89095         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89096         from fileutils' configure.in.
89097
89098         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89099         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89100         check-decl.m4.
89101
89102         * m4/check-decl.m4: Use #if rather than #ifdef.
89103         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89104         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89105         (_jm_DECL_HEADERS): Define new function.
89106         (jm_CHECK_DECLARATIONS): Require it.
89107
89108 2000-01-22  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89111         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89112         Required for some AIX systems.  Reported by Christian Krackowizer.
89113         [TESTING] (main): New function.
89114
89115         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89116         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89117         letters.
89118
89119         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89120         iswprint.
89121
89122         * lib/strverscmp.c (ISDIGIT): Define.
89123         (strverscmp): Use ISDIGIT, not isdigit.
89124
89125 2000-01-19  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89128         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89129         defines `struct timespec' in <sys/time.h>
89130
89131         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89132         Thanks to Akim for explaining.
89133
89134 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89135
89136         * lib/nanosleep.c (nanosleep):
89137         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89138         POSIX.1 doesn't require SA_INTERRUPT and some systems
89139         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89140         it's been part of POSIX.1 since day 1 (in 1988).
89141
89142 2000-01-17  Jim Meyering  <meyering@lucent.com>
89143
89144         * lib/interlock: Remove unused file.  Reported by François Pinard.
89145
89146 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89147
89148         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89149         alert, backslash, formfeed, and vertical tab unnecessarily in
89150         shell quoting style.
89151
89152 2000-01-16  Jim Meyering  <meyering@lucent.com>
89153
89154         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89155         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89156         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89157         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89158
89159 2000-01-16  Jim Meyering  <meyering@lucent.com>
89160
89161         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89162         because the latter didn't work.
89163
89164 2000-01-15  Jim Meyering  <meyering@lucent.com>
89165
89166         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89167         (AC_REPLACE_FUNCS): Add memcpy and memset.
89168         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89169         Add strpbrk.
89170         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89171
89172 2000-01-12  Jim Meyering  <meyering@lucent.com>
89173
89174         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89175         (jm_PREREQ): Use it.
89176         (jm_PREREQ_READUTMP): New macro.
89177         (jm_PREREQ): Use it.
89178
89179 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89180
89181         Quote multibyte characters correctly.
89182         * m4/c-bs-a.m4: New file.
89183         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89184         (jm_PREREQ): Use it.
89185
89186 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89187
89188         * m4/uintmax_t.m4: Port to autoconf 2.13.
89189
89190 2000-01-08  Jim Meyering  <meyering@ascend.com>
89191
89192         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89193         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89194
89195 2000-01-04  Jim Meyering  <meyering@ascend.com>
89196
89197         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89198         jm_STRUCT_DIRENT_D_TYPE.
89199         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89200         jm_STRUCT_DIRENT_D_INO.
89201         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89202         jm_STRUCT_UTIMBUF.
89203         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89204         renamings.
89205         * m4/utime.m4: Likewise.
89206
89207         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89208         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89209
89210 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89211
89212         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89213         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89214
89215 2000-01-02  Jim Meyering  <meyering@ascend.com>
89216
89217         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89218         remember if this is necessary.
89219
89220 1999-12-26  Jim Meyering  <meyering@ascend.com>
89221
89222         * m4/jm-macros.m4: Use it here.
89223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89224
89225 1999-12-23  Jim Meyering  <meyering@ascend.com>
89226
89227         * m4/jm-macros.m4: Check for clock_gettime (moved from
89228         fileutils/configure.in)
89229         Check for gettimeofday.
89230
89231 1999-12-20  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89234         autoconf-2.14a-1999-12-20.
89235
89236 1999-12-19  Jim Meyering  <meyering@ascend.com>
89237
89238         * m4/lstat-slash.m4: New file.
89239         * m4/jm-macros.m4: Use the new macro:
89240         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89241
89242 1999-12-07  Jim Meyering  <meyering@ascend.com>
89243
89244         * m4/perl.m4: Require that File::Compare be available, too.
89245         Too many systems seem to lack it.
89246
89247         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89248         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89249
89250 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89251
89252         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89253         problem with the QNX 4.25 shell, which doesn't propagate exit
89254         status of failed commands inside shell assignments.
89255
89256 1999-11-17  Jim Meyering  <meyering@ascend.com>
89257
89258         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89259
89260 1999-11-07  Jim Meyering  <meyering@ascend.com>
89261
89262         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89263
89264 1999-11-06  Jim Meyering  <meyering@ascend.com>
89265
89266         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89267         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89268
89269 1999-11-05  Jim Meyering  <meyering@ascend.com>
89270
89271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89272         configure.in of textutils, fileutils, and sh-utils into this one
89273         (shared between those packages) file.
89274         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89275         AC_STRUCT_ST_BLKSIZE.
89276
89277 1999-11-03  Jim Meyering  <meyering@ascend.com>
89278
89279         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89280         of AC_CHECK_TYPE checks includes unistd.h.
89281         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89282         Suggestion from Akim Demaille.
89283
89284 1999-10-30  Jim Meyering  <meyering@ascend.com>
89285
89286         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89287         m4-quoted string.
89288         * m4/ls-mntd-fs.m4: Likewise.
89289         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89290         * m4/jm-winsz1.m4: Likewise.
89291
89292         * m4/const.m4: Remove file, since the fix made it into the experimental
89293         version of autoconf.
89294         * m4/mktime.m4: Likewise.
89295
89296         * m4/check-type.m4: Remove file, now that the latest version of
89297         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89298
89299         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89300         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89301         AC_CHECK_TYPE.
89302
89303 1999-10-04  Jim Meyering  <meyering@ascend.com>
89304
89305         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89306
89307 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89308
89309         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89310         2.95.1 bug with HP-UX 10.20.
89311
89312 1999-09-17  Jim Meyering  <meyering@ascend.com>
89313
89314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89315         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89316         due to missing strdup (against sh-utils-2.0).
89317
89318 1999-08-29  Jim Meyering  <meyering@ascend.com>
89319
89320         * m4/jm-macros.m4: Require jm_BISON.
89321         * m4/bison.m4: New file.
89322
89323 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89324
89325         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89326         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89327
89328 1999-08-05  Jim Meyering  <meyering@ascend.com>
89329
89330         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89331         to avoid conflicts with `conftest' on 8+3 filesystems.
89332         Suggestion from Eli Zaretskii.
89333
89334 1999-08-04  Jim Meyering  <meyering@ascend.com>
89335
89336         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89337         fileutils and sh-utils (textutils's getline test was inadequate).
89338         (AM_FUNC_GETLINE): Run this test.
89339         (AC_CHECK_FUNCS): Check for getdelim.
89340         Reported by Bob Proulx.
89341
89342 1999-08-02  Jim Meyering  <meyering@ascend.com>
89343
89344         * m4/jm-macros.m4: Add a comment.
89345
89346 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89347
89348         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89349         <inttypes.h> defines strtoumax as a macro (and not as a
89350         function).
89351
89352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89353
89354         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89355         that we can shift, multiply and divide unsigned long long
89356         values; Ultrix cc can't do it.
89357
89358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89359
89360         * m4/mktime.m4: New file, which is a preview of what should appear
89361         in the next public autoconf release.
89362
89363 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89364
89365         * m4/lfs.m4: Remove this file.
89366         * m4/largefile.m4: New file.  It contains the old contents of
89367         lfs.m4, except that all names with prefix AC_LFS have been
89368         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89369         compatible with future autoconf versions.  Also, some minor m4
89370         quoting problems have been fixed.
89371
89372 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89373
89374         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89375         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89376         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89377         and simplify the shell code.
89378
89379 1999-08-01  Jim Meyering  <meyering@ascend.com>
89380
89381         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89382         m4.
89383
89384 1999-07-20  Jim Meyering  <meyering@ascend.com>
89385
89386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89387
89388 1999-07-15  Jim Meyering  <meyering@ascend.com>
89389
89390         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89391
89392 1999-05-22  Jim Meyering  <meyering@ascend.com>
89393
89394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89395
89396 1999-05-20  Jim Meyering  <meyering@ascend.com>
89397
89398         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89399         Add a colon after each `then' in case $4 is empty.
89400
89401 1999-05-16  Jim Meyering  <meyering@ascend.com>
89402
89403         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89404
89405 1999-05-10  Jim Meyering  <meyering@ascend.com>
89406
89407         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89408
89409         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89410         AC_FUNC_MKTIME.
89411
89412 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89413
89414         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89415
89416 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89417
89418         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89419         not CPPFLAGS, so that linking works correctly in IRIX.
89420
89421 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89422
89423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89424
89425 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89426
89427         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89428         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89430         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89431         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89432
89433         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89434
89435 1999-04-20  Jim Meyering  <meyering@ascend.com>
89436
89437         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89438         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89439         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89440
89441 1999-04-18  Jim Meyering  <meyering@ascend.com>
89442
89443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89444         * m4/jm-macros.m4: Use it.
89445
89446 1999-04-06  Jim Meyering  <meyering@ascend.com>
89447
89448         * m4/strftime.m4: Remove test for %f.
89449
89450 1999-03-29  Jim Meyering  <meyering@ascend.com>
89451
89452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89453         superset of the AC_TYPE_* checks in the textutils, fileutils,
89454         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89455         AC_TYPE_PID_T.
89456
89457 1999-03-28  Jim Meyering  <meyering@ascend.com>
89458
89459         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89460         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89461         replaced e.g., in the *.sh files of the sh-utils.
89462
89463 1999-03-20  Jim Meyering  <meyering@ascend.com>
89464
89465         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89466         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89467         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89468
89469 1999-03-19  Jim Meyering  <meyering@ascend.com>
89470
89471         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89472
89473 1999-03-12  Jim Meyering  <meyering@ascend.com>
89474
89475         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89476
89477 1999-03-07  Jim Meyering  <meyering@ascend.com>
89478
89479         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89480         declared.
89481
89482 1999-02-17  Jim Meyering  <meyering@ascend.com>
89483
89484         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89485         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89486
89487 1999-02-07  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/group-member.m4: New file -- extracted from sh-utils'
89490         configure.in.
89491
89492         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89493         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89494
89495 1999-02-06  Jim Meyering  <meyering@ascend.com>
89496
89497         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89498         * m4/fnmatch.m4: Likewise.
89499         * m4/getgroups.m4: Likewise.
89500         * m4/lstat.m4: Likewise.
89501         * m4/malloc.m4: Likewise.
89502         * m4/putenv.m4: Likewise.
89503         * m4/realloc.m4: Likewise.
89504         * m4/regex.m4: Likewise.
89505         * m4/stat.m4: Likewise.
89506         * m4/strftime.m4: Likewise.
89507         Suggestion from Alain Magloire.
89508
89509         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89510         * m4/fnmatch.m4: Likewise.
89511         * m4/getgroups.m4: Likewise.
89512         * m4/getline.m4: Likewise.
89513         * m4/lstat.m4: Likewise.
89514         * m4/malloc.m4: Likewise.
89515         * m4/memcmp.m4: Likewise.
89516         * m4/putenv.m4: Likewise.
89517         * m4/realloc.m4: Likewise.
89518         * m4/regex.m4: Likewise.
89519         * m4/stat.m4: Likewise.
89520         * m4/strftime.m4: Likewise.
89521         Suggestion from Alain Magloire.
89522
89523         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89524         an argument.
89525
89526         * m4/regex.m4: Add a run-time Test for proper operation of
89527         re_compile_pattern.
89528
89529 1999-01-31  Jim Meyering  <meyering@ascend.com>
89530
89531         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89532
89533 1999-01-30  Jim Meyering  <meyering@ascend.com>
89534
89535         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89536
89537         * m4/jm-mktime.m4: Make this a wrapper around the official
89538         AM_FUNC_MKTIME rather than my private copy, now that the official one
89539         is up to date.
89540         * m4/mktime.m4: Remove file.
89541
89542         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89543         * m4/uptime.m4: Likewise.
89544         * m4/uintmax_t.m4: Likewise.
89545
89546 1999-01-28  Jim Meyering  <meyering@ascend.com>
89547
89548         * m4/jm-macros.m4: Use jm_AFS.
89549         * m4/afs.m4: New file (from fileutils' configure.in).
89550
89551         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89552         * m4/chown.m4: Likewise.
89553         * m4/d-ino.m4: Likewise.
89554         * m4/d-type.m4: Likewise.
89555         * m4/fnmatch.m4: Likewise.
89556         * m4/getgroups.m4: Likewise.
89557         * m4/gettext.m4: Likewise.
89558         * m4/jm-mktime.m4: Likewise.
89559         * m4/jm-winsz2.m4: Likewise.
89560         * m4/lcmessage.m4: Likewise.
89561         * m4/ls-mntd-fs.m4: Likewise.
89562         * m4/malloc.m4: Likewise.
89563         * m4/memcmp.m4: Likewise.
89564         * m4/putenv.m4: Likewise.
89565         * m4/realloc.m4: Likewise.
89566         * m4/st_mtim.m4: Likewise.
89567         * m4/strftime.m4: Likewise.
89568
89569 1999-01-16  Jim Meyering  <meyering@ascend.com>
89570
89571         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89572         (ARGMATCH_DIE_DECL): Define.
89573
89574 1999-01-12  Jim Meyering  <meyering@ascend.com>
89575
89576         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89577         Reported by Lars Hecking.
89578
89579 1999-01-10  Jim Meyering  <meyering@ascend.com>
89580
89581         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89582         gross kludge.
89583         * m4/inttypes_h.m4: Likewise.
89584         * m4/lstat.m4: Likewise.
89585         * m4/malloc.m4: Likewise.
89586         * m4/readdir.m4: Likewise.
89587         * m4/realloc.m4: Likewise.
89588         * m4/st_dm_mode.m4: Likewise.
89589         * m4/stat.m4: Likewise.
89590         * m4/utimbuf.m4: Likewise.
89591         * m4/utimes.m4: Likewise.
89592
89593         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89594         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89595         comments in config.h.in are meaningful.
89596
89597         * m4/jm-macros.m4: Require autoconf-2.13 here.
89598
89599         * m4/regex.m4: By default, don't use the included regex.c on systems
89600         with glibc 2.  Suggestion from Uli Drepper.
89601
89602 1999-01-02  Jim Meyering  <meyering@ascend.com>
89603
89604         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89605
89606 1998-12-18  Jim Meyering  <meyering@ascend.com>
89607
89608         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89609         Based on a suggestion from Lars Hecking.
89610
89611 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89612
89613         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89614
89615 1998-11-16  Jim Meyering  <meyering@ascend.com>
89616
89617         * m4/lfs.m4: Double-quote the `uname...` expression.
89618
89619 1998-11-14  Jim Meyering  <meyering@ascend.com>
89620
89621         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89622         * m4/stat.m4: Likewise.
89623
89624 1998-11-03  Jim Meyering  <meyering@ascend.com>
89625
89626         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89627         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89628
89629 1998-10-18  Jim Meyering  <meyering@ascend.com>
89630
89631         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89632
89633 1998-10-17  Jim Meyering  <meyering@ascend.com>
89634
89635         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89636         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89637         calls for those previously hard-coded headers.  Instead, take a new
89638         parameter.
89639         (jm_CHECK_DECLARATIONS): Reflect interface change.
89640         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89641         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89642
89643         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89644
89645 1998-10-14  Jim Meyering  <meyering@ascend.com>
89646
89647         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89648         instead of "TZ=America/Vancouver".  From Paul Eggert.
89649
89650 1998-10-11  Jim Meyering  <meyering@ascend.com>
89651
89652         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89653         This adds a test for a recently added compatibility fix for mktime.c.
89654         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89655
89656 1998-09-27  Jim Meyering  <meyering@ascend.com>
89657
89658         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89659
89660         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89661         ../configure.in, including a change from Gordon Matzigkeit to allow
89662         cross-compiling for the Hurd.
89663
89664         * m4/glibc.m4: New file/macro to test for the GNU C Library
89665         versions 1 and 2.  From Gordon Matzigkeit.
89666         Indent.
89667
89668 1998-09-21  Jim Meyering  <meyering@ascend.com>
89669
89670         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89671
89672 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89673
89674         Port nanosecond-resolution times to UnixWare 2.1.2 and
89675         pedantic Solaris 2.6.
89676
89677         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89678         AC_STRUCT_ST_MTIM.
89679         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89680         Generate name of ns member, instead of just 1 or undef.
89681         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89682
89683 1998-08-15  Jim Meyering  <meyering@ascend.com>
89684
89685         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89686         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89687         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89688         instead of jm_TYPE_SSIZE_T.
89689
89690 1998-08-12  Jim Meyering  <meyering@ascend.com>
89691
89692         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89693
89694 1998-08-02  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89697         in acconfig.h manually.
89698
89699 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89700
89701         * m4/st_mtim.m4: New file.
89702
89703 1998-07-28  Jim Meyering  <meyering@ascend.com>
89704
89705         * m4/utimes.m4: Undef stat.
89706
89707 1998-07-25  Jim Meyering  <meyering@ascend.com>
89708
89709         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89710         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89711
89712 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89713
89714         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89715         uid and gid actually remain unchanged.
89716
89717 1998-07-07  Jim Meyering  <meyering@ascend.com>
89718
89719         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89720
89721 1998-07-04  Jim Meyering  <meyering@ascend.com>
89722
89723         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89724         to prove that this macro can be used in packages without regex.c.
89725
89726 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89727
89728         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89729         is to be used.
89730
89731 1998-07-03  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89734
89735         * m4/gettext.m4: New file -- from gettext-0.10.35.
89736         * m4/lcmessage.m4: Likewise.
89737         * m4/progtest.m4: Likewise.
89738
89739         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89740         * m4/jm-macros.m4: Require the new macro.
89741
89742 1998-06-29  Jim Meyering  <meyering@ascend.com>
89743
89744         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89745         for the definition of NGROUPS (used in a system header included
89746         by sys/mount.h).
89747
89748 1998-06-28  Jim Meyering  <meyering@ascend.com>
89749
89750         * m4/ls-mntd-fs.m4: New file.
89751         * m4/fstypename.m4: New file.
89752
89753         * m4/jm-macros.m4: Require the new macro.
89754         * m4/jm-glibc-io.m4: New file.
89755
89756 1998-05-19  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89759         * m4/lchown.m4: New file.
89760
89761         * m4/Makefile.am.in: New file.
89762         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89763
89764 1998-05-14  Jim Meyering  <meyering@ascend.com>
89765
89766         * m4/Makefile.am (EXTRA_DIST): Add them.
89767         * m4/jm-macros.m4: New file.
89768         * m4/utimbuf.m4: New file.
89769
89770 1998-05-12  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89773
89774 1998-05-11  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/isc-posix.m4: New file.
89777
89778 1998-05-10  Jim Meyering  <meyering@ascend.com>
89779
89780         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89781
89782 1998-05-09  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89785         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89786         with automake.
89787
89788         * m4/ssize_t.m4: New file.
89789         * m4/mktime.m4: Remove file -- the new automake has this now.
89790
89791 1998-04-26  Jim Meyering  <meyering@ascend.com>
89792
89793         * m4/assert.m4: New file.
89794         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89795
89796 1998-04-05  Jim Meyering  <meyering@ascend.com>
89797
89798         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89799         (jm_PREREQ): Use it here.
89800
89801 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89802
89803         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89804         in acconfig.h.
89805
89806 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89807
89808         * m4/prereq.m4: New file.
89809         * m4/error.m4: New file.
89810         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89811
89812 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89813
89814         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89815         cache-check for the same variable -- that defeated the purpose of
89816         the test; the test program was never run.  This was a problem only
89817         on systems with losing getline functions -- HP-UX 10.20 is one.
89818         Reported by Bjorn Helgaas.
89819
89820 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89821
89822         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89823
89824 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89825
89826         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89827
89828         * m4/const.m4: New file.  Use an initializer in this declaration
89829         typedef int charset[2]; const charset x;
89830         Reported by Bob Glickstein.
89831
89832 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89833
89834         * m4/chown.m4: Fix reversed types on -1 args to chown.
89835         From Kaveh Ghazi.
89836
89837 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89838
89839         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89840         Add lseek and memchr.
89841
89842         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89843         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89844         have a 20-character limit on names.
89845
89846 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89847
89848         * m4/inttypes_h.m4: New file.
89849         * m4/uintmax_t.m4: New file.
89850         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89851
89852
89853         -----
89854
89855         Local Variables:
89856         coding: utf-8
89857         End:
89858
89859         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89860
89861         Copying and distribution of this file, with or without
89862         modification, are permitted provided the copyright notice
89863         and this notice are preserved.